Last updated 7 months ago
Returns the status code of a transaction execution.
https://api-amoy.polygonscan.com/api ?module=transaction &action=gettxreceiptstatus &txhash=0x2547c617f6507d622aa901bcc70e36d59a5b8232dbb24a20ad3d74e6bb884cd3 &apikey=YourApiKeyToken
Try this endpoint in your browser
Query Parameters
Sample Response
{ "status":"1", "message":"OK", "result":{ "status":"1" } }
Tip: The status field returns 0 for failed transactions and 1 for successful transactions.
status
0
1
txhash
the string representing the transaction hash to check the execution status
string