Skip to Content
dApps
このページの内容

pushTx

署名済みの生トランザクションをブロードキャストします。

メソッド

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

パラメーター

  • rawtx — 必須 string 送信する rawtx

レスポンス

txid — string

例

const provider = (window.$onekey && window.$onekey.btc) || window.unisat; const rawtx = "<SIGNED_RAW_TRANSACTION_HEX>"; const txid = await provider.pushTx(rawtx);

デモ

例を開く 

最終更新日