GET /tx/{hash}
Where a transaction is: wait for indexed before reading state it changed.
GET https://marketmayhem.co/api/v1/tx/{hash}Parameters
Section titled “Parameters”| Name | In | Required | Meaning |
|---|---|---|---|
hash | path | yes | The transaction hash |
Response
Section titled “Response”| Field | Type | Required | Meaning |
|---|---|---|---|
hash | string | yes | A transaction hash |
status | unknown · pending · failed · confirmed · indexed | yes | indexed: mined and in our reads; wait for it before reading state it changed |
block | integer | The block it was mined in | |
gasUsed | string | Gas it used | |
note | string |
A real response
Section titled “A real response”Captured from BSC testnet, exactly as the API sent it (long calldata shortened).
{ "hash": "0xfa13f8a2894a595441cc5a54f695f5d5655068a43aef392f616f5510a884d49d", "status": "indexed", "block": 133247606, "gasUsed": "135801"}Errors
Section titled “Errors”Every error is { "error": { "code", "message", "fix"? } }. This endpoint can answer:
INVALID_HASH: That is not a transaction hash.