Builder

class Builder(context: Context)

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
fun blockSignals(signals: Flow<Unit>?): <Error class: unknown class>

Wire a chain block-tick Flow (emit once per new block) so MidnightContract.observeLedger refreshes reactively instead of polling. The SDK injects one mapped from the indexer's block subscription. Optional — without it observeLedger falls back to a poll.

Link copied to clipboard
Link copied to clipboard
fun indexerUrl(url: String): <Error class: unknown class>
Link copied to clipboard
fun networkId(id: String): <Error class: unknown class>
Link copied to clipboard
fun operationListener(listener: ContractOperationListener?): <Error class: unknown class>

Wire a ContractOperationListener so every contract call/deploy through this config runs as a tracked foreground operation (the SDK injects one). Optional — configs without it behave exactly as before.

Link copied to clipboard
fun transactionBalancer(balancer: TransactionBalancer): <Error class: unknown class>

Provide an embedded TransactionBalancer instead of a remote wallet URL.

Link copied to clipboard
fun walletUrl(url: String): <Error class: unknown class>