Celoscan
Alfajores Celoscan
Search
K
Links

Transactions

Check Contract Execution Status

Returns the status code of a contract execution.
https://api-alfajores.celoscan.io/api
?module=transaction
&action=getstatus
&txhash=0x145a32e5db2f847ab335501dbef36317c92838a51cf8e63556221409f529b397
&apikey=YourApiKeyToken
Try this endpoint in your browser
🔗
Request
Response
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-alfajores.celoscan.io/api
?module=transaction
&action=gettxreceiptstatus
&txhash=0xbf0727362a295df06659f187c194ff05928c639cf5b90b1f4b52fa4b5c444209
&apikey=YourApiKeyToken
Try this endpoint in your browser
🔗
Request
Response
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.