Skip to Content
dApps
Sur cette page

pushTx

Diffuser une transaction brute signée.

Méthode

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

Paramètres

  • rawtx — obligatoire string la transaction brute à diffuser

Réponse

txid — string

Exemple

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

Démonstration

Ouvrir l’exemple 

Dernière mise à jour le