pushPsbt

Push Transaction

Method

async function pushPsbt(psbtHex: string): string

Params

  • rawtxrequired string the hex string of psbt to push

Response

txidstring

Example

const provider = (window.$onekey && window.$onekey.btc) || window.unisat;

const psbtHex = "010203"
const txid = async provider.pushPsbt(psbtHex);

Demo

Last updated

Was this helpful?