Fix post tx documentation.

This commit is contained in:
Miguel Medeiros 2021-08-10 01:44:50 -03:00
parent 4efc927303
commit edab1ad3d5
2 changed files with 6 additions and 6 deletions

View File

@ -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);
```

View File

@ -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);
```