DAppConnectorClient
Connects to a DApp Connector wallet (e.g., mn serve) via WebSocket JSON-RPC.
Provides methods to balance and submit proven transactions.
Usage:
val client = DAppConnectorClient("ws://10.0.2.2:9932")
client.connect()
val balanced = client.balanceTransaction(provenTxHex)
client.submitTransaction(balanced)
client.disconnect()Content copied to clipboard
Functions
Link copied to clipboard
open suspend fun balanceAndSubmit(provenTxHex: String, onProgress: suspend (BalanceProgress) -> Unit? = null)
Balance and submit a proven transaction in one operation.
Link copied to clipboard
Balance a proven transaction by adding dust fee inputs.
Balance a proven transaction (adds dust fees).
Link copied to clipboard
Link copied to clipboard
Get wallet configuration (network, endpoints).
Link copied to clipboard
Submit a balanced transaction to the blockchain.