Sur cette page
pushTx
Diffuser une transaction brute signée.
Méthode
declare function pushTx(rawtx: string): Promise<string>;Paramètres
rawtx— obligatoirestringla 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
Dernière mise à jour le