Skip to Content
dApps
On this page

pushPsbt

Broadcast a finalized PSBT.

Method

declare function pushPsbt(psbtHex: string): Promise<string>;

Params

  • psbtHex — required string the hex string of psbt to push

Response

txid — string

Example

const provider = (window.$onekey && window.$onekey.btc) || window.unisat; const psbtHex = "<FINALIZED_PSBT_HEX>"; // Supply a complete finalized PSBT const txid = await provider.pushPsbt(psbtHex);

Demo

Open example 

Last updated on