Transactions
Returns the status code of a contract execution.
https://api.bscscan.com/api
?module=transaction
&action=getstatus
&txhash=0xec2ff9b8eeeaed7166e15c7fdbf6746524f85e7db6799b11a46837db246b189d
&apikey=YourApiKeyToken
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 transactionsReturns the status code of a transaction execution.
https://api.bscscan.com/api
?module=transaction
&action=gettxreceiptstatus
&txhash=0xe9975702518c79caf81d5da65dea689dcac701fcdd063f848d4f03c85392fd00
&apikey=YourApiKeyToken
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":"1"
}
}
Tip: The
📖
status
field returns 0
for failed transactions and 1
for successful transactions.Last modified 4mo ago