Function Signature
Description
Submits a signed Bitcoin P2WPKH transaction to the network and returns its hash. This is the final step of the Bitcoin send flow:buildBitcoinP2wpkhTransaction— build the PSBT.rawSign— sign every entry oftransaction.signatureHashes.broadcastBitcoinP2wpkhTransaction— submit the signed transaction.
sendAsset performs all
three for you and returns the transaction hash directly.
Parameters
Supported chainId values
Returns
PortalBroadcastBitcoinP2wpkhTransactionResponse
Example
The full build, sign, and broadcast flow:Errors
Throws aPortalException on failure:
Implementation Notes
signaturesmust line up withsignatureHashesone-for-one and in order. A missing or reordered signature fails the broadcast.- Do not modify
rawTxHexbetween the build and broadcast calls — pass the value through as-is. - This endpoint accepts Bitcoin P2WPKH chains only. Use
requestwitheth_sendTransactionfor EVM, orsol_signAndSendTransactionfor Solana. txHashis a real on-chain Bitcoin txid. Account Abstraction is EVM-only, so unlike EVM sends this is never a UserOperation hash.
Related
- buildBitcoinP2wpkhTransaction
- rawSign
- sendAsset
- getTransactionDetails — look the broadcast transaction up afterwards
- getClient — where the wallet’s Bitcoin addresses live