diff --git a/README-bitcoin.md b/README-bitcoin.md index f7d87a211..1b96ddb24 100644 --- a/README-bitcoin.md +++ b/README-bitcoin.md @@ -662,7 +662,7 @@ Broadcast a raw transaction to the network. The transaction should be provided a **Parameters:** -- {string} txid +- {string} txhex [ [NodeJS Example](examples/nodejs/bitcoin/transactions.ts) ] [ [HTML Example](examples/html/bitcoin/transactions.html) ] [ [Top](#features) ] @@ -671,9 +671,9 @@ const { bitcoin: { transactions }, } = mempoolJS(); -const txid = '15e10745f15593a899cef391191bdd3d7c12412cc4696b7bcb669d0feadc8521'; +const txhex = '15e10745f15593a899cef391191bdd3d7c12412cc4696b7bcb669d0feadc8521'; -const postTx = await transactions.postTx({ txid }); +const postTx = await transactions.postTx({ txhex }); console.log(postTx); ``` diff --git a/README-liquid.md b/README-liquid.md index df36041eb..602681852 100644 --- a/README-liquid.md +++ b/README-liquid.md @@ -677,7 +677,7 @@ Broadcast a raw transaction to the network. The transaction should be provided a **Parameters:** -- {string} txid +- {string} txhex [ [NodeJS Example](examples/nodejs/liquid/transactions.ts) ] [ [HTML Example](examples/html/liquid/transactions.html) ] [ [Top](#features) ] @@ -686,9 +686,9 @@ const { liquid: { transactions }, } = mempoolJS(); -const txid = '15e10745f15593a899cef391191bdd3d7c12412cc4696b7bcb669d0feadc8521'; +const txhex = '15e10745f15593a899cef391191bdd3d7c12412cc4696b7bcb669d0feadc8521'; -const postTx = await transactions.postTx({ txid }); +const postTx = await transactions.postTx({ txhex }); console.log(postTx); ```