Skip to content

Commit c04aac0

Browse files
committed
added docs for /v3/transactions
1 parent 7f7b110 commit c04aac0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/rpc-endpoints.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,3 +578,20 @@ tenure, `tip_block_id` identifies the highest-known block in this tenure, and
578578
Get number of blocks signed by signer during a given reward cycle
579579

580580
Returns a non-negative integer
581+
582+
### GET /v3/transactions/[Transaction ID]
583+
584+
Returns the index_block_hash, the transaction body (as hex) and the result given the TXID.
585+
586+
```json
587+
{
588+
"index_block_hash": "...",
589+
"tx": "...",
590+
"result": "..."
591+
}
592+
```
593+
594+
This feature requires enabling of transaction indexing by setting the `txindex` node option.
595+
596+
This will return 404 if the transaction does not exist and 501 (Not Implemented) if
597+
transaction indexing is not enabled.

0 commit comments

Comments
 (0)