broadcast Bitcoin P2wpkh Transaction
open suspend fun broadcastBitcoinP2wpkhTransaction(chainId: String, params: BroadcastParam): Result<BroadcastBitcoinP2wpkhTransactionResponse>
open suspend fun broadcastBitcoinP2wpkhTransaction(chainId: String, params: BroadcastParam, traceId: String?): Result<BroadcastBitcoinP2wpkhTransactionResponse>
Broadcasts a signed Bitcoin P2WPKH transaction for the specified blockchain.
Return
A Result containing BroadcastBitcoinP2wpkhTransactionResponse if successful, or an error if the operation fails.
Parameters
chain Id
The blockchain identifier, must start with "bip122:".
params
The signatures and raw transaction hex produced by buildBitcoinP2wpkhTransaction.
trace Id
Optional trace ID forwarded as the X-Portal-Trace-Id header. When null, a new UUID is generated for this request. Pass a shared value (e.g. from io.portalhq.android.data.SendAssetParams) to correlate multi-step operations.
Throws
If chainId does not start with "bip122:".