Skip to content

Commit 1501722

Browse files
committed
updated openapi description
1 parent c04aac0 commit 1501722

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

docs/rpc/openapi.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,3 +866,33 @@ paths:
866866
schema:
867867
type: integer
868868
example: 7
869+
/v3/transactions/{txid}:
870+
post:
871+
summary: Returns index_block_hash, transaction body and result given a TXID
872+
tags:
873+
- Transactions
874+
description: Get a JSON with the index_block_hash, the Transaction body as hex and the result.
875+
operationId: get_transactions
876+
parameters:
877+
- name: txid
878+
in: path
879+
required: true
880+
description: Transaction ID
881+
schema:
882+
type: string
883+
responses:
884+
"200":
885+
description: Transaction JSON with index_block_hash, transaction body and result
886+
content:
887+
application/json:
888+
schema:
889+
type: string
890+
example: '"e161978626f216b2141b156ade10501207ae535fa365a13ef5d7a7c9310a09f2"'
891+
"404":
892+
description: Transaction not found
893+
content:
894+
application/text-plain: {}
895+
"501":
896+
description: Transaction indexing not enabled
897+
content:
898+
application/text-plain: {}

0 commit comments

Comments
 (0)