docs: add documentation for addresstxid event
This commit is contained in:
parent
28ff52ece6
commit
83880910dc
@ -298,12 +298,14 @@ node.services.bitcoind.on('block', function(blockHash) {
|
|||||||
For details on instantiating a bus for a node, see the [Bus Documentation](../bus.md).
|
For details on instantiating a bus for a node, see the [Bus Documentation](../bus.md).
|
||||||
- Name: `bitcoind/rawtransaction`
|
- Name: `bitcoind/rawtransaction`
|
||||||
- Name: `bitcoind/hashblock`
|
- Name: `bitcoind/hashblock`
|
||||||
|
- Name: `bitcoind/addresstxid`, Arguments: [address, address...]
|
||||||
|
|
||||||
**Examples:**
|
**Examples:**
|
||||||
|
|
||||||
```js
|
```js
|
||||||
bus.subscribe('bitcoind/rawtransaction');
|
bus.subscribe('bitcoind/rawtransaction');
|
||||||
bus.subscribe('bitcoind/hashblock');
|
bus.subscribe('bitcoind/hashblock');
|
||||||
|
bus.subscribe('bitcoind/addresstxid', ['13FMwCYz3hUhwPcaWuD2M1U2KzfTtvLM89']);
|
||||||
|
|
||||||
bus.on('bitcoind/rawtransaction', function(transactionHex) {
|
bus.on('bitcoind/rawtransaction', function(transactionHex) {
|
||||||
//...
|
//...
|
||||||
@ -312,4 +314,9 @@ bus.on('bitcoind/rawtransaction', function(transactionHex) {
|
|||||||
bus.on('bitcoind/hashblock', function(blockhashHex) {
|
bus.on('bitcoind/hashblock', function(blockhashHex) {
|
||||||
//...
|
//...
|
||||||
});
|
});
|
||||||
|
|
||||||
|
bus.on('bitcoind/addresstxid', function(data) {
|
||||||
|
// data.address;
|
||||||
|
// data.txid;
|
||||||
|
});
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user