Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 545 Bytes

File metadata and controls

29 lines (17 loc) · 545 Bytes

pushTx

Push Transaction

Method

async function pushTx(rawtx: string): string

Params

  • rawtxrequired string rawtx to push

Response

txidstring

Example

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

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

Demo

{% embed url="https://codepen.io/OneKeyHQ/pen/VwgGzxO" %}