File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,18 @@ JSON-RPC APIs are APIs provided by running a JeChain RPC server. They can be use
190
190
* Status: 400
191
191
* Body: ` { success: false, payload: null, error: { message: "Invalid transaction index." } } `
192
192
193
+ * ` /get_transactionByTxHash ` :
194
+ * Use case: Get transaction through its hash.
195
+ * Request body: ` { params: { hash: <tx_hash_hex_string> } } `
196
+ * Reply body: ` { success: true, payload: { transaction: <transaction_object> } } `
197
+ * Error body:
198
+ * Invalid request (not enough params):
199
+ * Status: 400
200
+ * Body: ` { success: false, payload: null, error: { message: "Invalid request." } } `
201
+ * Failed to get transaction with the given hash:
202
+ * Status: 400
203
+ * Body: ` { success: false, payload: null, error: { message: "Failed to get transaction with the given hash." } } `
204
+
193
205
### Other errors
194
206
195
207
* Invalid option (non-existent API):
You can’t perform that action at this time.
0 commit comments