pushTx

Push Transaction

Method

async function pushTx(rawtx: string): string

Params

  • rawtx — required string rawtx to push

Response

txid — string

Example

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

const rawtx = "010203"
const txid = async provider.pushTx(rawtx);

Demo

Last updated