broadcast Bitcoin P2wpkh Transaction
suspend fun broadcastBitcoinP2wpkhTransaction(chainId: String, params: BroadcastParam): Result<BroadcastBitcoinP2wpkhTransactionResponse>
See also
suspend fun broadcastBitcoinP2wpkhTransaction(chainId: String, params: BroadcastParam, traceId: String?): Result<BroadcastBitcoinP2wpkhTransactionResponse>
Broadcasts a signed Bitcoin P2WPKH transaction to the network.
Return
A Result containing the broadcast transaction hash.
Parameters
chain Id
The CAIP-2 chain identifier for the Bitcoin network, must start with "bip122:".
params
The signatures produced by rawSign and the rawTxHex returned by buildBitcoinP2wpkhTransaction.
trace Id
Optional trace ID for request correlation. Forwarded as the X-Portal-Trace-Id header. When null, a new UUID is generated for this request. Pass a shared value to correlate the build, sign and broadcast steps of a single send.