Skip to Content
dApps
On this page

pushTx

Broadcast a signed raw transaction.

Method

declare function pushTx(rawtx: string): Promise<string>;

Params

  • rawtx — required string rawtx 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

Open example 

Last updated on