ots
ots_searchTransactionsAfter
Returns transactions sent or received by an address, searching forwards from a given transaction index.
Returns transactions sent or received by an address, searching forwards from a given transaction index.
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | Address to search transactions for. |
| 2 | number | Block number to start searching forwards from. Use 0 to start from genesis. |
| 3 | number | Page size (max number of results to return). |
Returns
| Field | Type | Description |
|---|---|---|
txs | array | Array of transaction objects matching the address. |
receipts | array | Corresponding transaction receipts. |
firstPage | boolean | Whether this is the first page (oldest). |
lastPage | boolean | Whether this is the last page (most recent). |
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"ots_searchTransactionsAfter","params":["0x0000000000000000000000000000000000000000", 0, 5],"id":1}'
TRY IT
Notes
- Use
0as the block number to start from genesis. - Pair with
ots_searchTransactionsBeforefor backward pagination. - Requires the OTS address appearance index to be built on the node.
