All pages
Powered by GitBook
1 of 1

Transactions

Check Contract Execution Status

Returns the status code of a contract execution.

https://api-curtis.apescan.io/api
   ?module=transaction
   &action=getstatus
   &txhash=0x8dac9d2429f2f73cab7db5d26986f77b96552188b1c969a50ce7bff563ffbb6c
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

Parameter
Description

txhash

the string representing the transaction hash to check the execution status

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":{
      "isError":"1",
      "errDescription":"execution reverted"
   }
}

📖 Tip: The isError field returns 0 for successful transactions and 1 for failed transactions.

Check Transaction Receipt Status

Returns the status code of a transaction execution.

📝 Note: Only applicable for post Byzantium Fork transactions.

https://api-curtis.apescan.io/api
   ?module=transaction
   &action=gettxreceiptstatus
   &txhash=0x57fe171a6bcf99669f4bb4a0947a59503f7a88059a9749e3d3ebecda53c08f55
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

Parameter
Description

txhash

the string representing the transaction hash to check the execution status

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":{
      "status":"0"
   }
}

📖 Tip: The status field returns 0 for failed transactions and 1 for successful transactions.