On this page
pushTx
Broadcast a signed raw transaction.
Method
declare function pushTx(rawtx: string): Promise<string>;Params
rawtx— requiredstringrawtx to push
Response
txid — string
Example
const provider = (window.$onekey && window.$onekey.btc) || window.unisat;
const rawtx = "<SIGNED_RAW_TRANSACTION_HEX>";
const txid = await provider.pushTx(rawtx);Demo
Last updated on