Skip to content

GET /tx/{hash}

Where a transaction is: wait for indexed before reading state it changed.

GET https://marketmayhem.co/api/v1/tx/{hash}
NameInRequiredMeaning
hashpathyesThe transaction hash
FieldTypeRequiredMeaning
hashstringyesA transaction hash
statusunknown · pending · failed · confirmed · indexedyesindexed: mined and in our reads; wait for it before reading state it changed
blockintegerThe block it was mined in
gasUsedstringGas it used
notestring

Captured from BSC testnet, exactly as the API sent it (long calldata shortened).

{
"hash": "0xfa13f8a2894a595441cc5a54f695f5d5655068a43aef392f616f5510a884d49d",
"status": "indexed",
"block": 133247606,
"gasUsed": "135801"
}

Every error is { "error": { "code", "message", "fix"? } }. This endpoint can answer: