Skip to main content

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:
  1. buildBitcoinP2wpkhTransaction — build the PSBT.
  2. rawSign — sign every entry of transaction.signatureHashes.
  3. broadcastBitcoinP2wpkhTransaction — submit the signed transaction.
Pass the PSBT through from the build step unchanged, along with the signatures in the same order as the hashes they were produced from. If you do not need control over the individual steps, 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 a PortalException on failure:

Implementation Notes

  • signatures must line up with signatureHashes one-for-one and in order. A missing or reordered signature fails the broadcast.
  • Do not modify rawTxHex between the build and broadcast calls — pass the value through as-is.
  • This endpoint accepts Bitcoin P2WPKH chains only. Use request with eth_sendTransaction for EVM, or sol_signAndSendTransaction for Solana.
  • txHash is a real on-chain Bitcoin txid. Account Abstraction is EVM-only, so unlike EVM sends this is never a UserOperation hash.