Arbiscan
HomeTwitterKnowledge Base
Arbiscan
Arbiscan
  • Introduction
  • ✨Getting Started
    • Creating an Account
    • Getting an API key
    • Endpoint URLs
  • 🎯API Endpoints
    • Accounts
    • Contracts
    • Transactions
    • Blocks
    • Logs
    • Geth Proxy
    • Tokens
    • Stats
  • 🏆API PRO
    • Arbiscan API PRO
    • API PRO Endpoints
  • 📖Tutorials
    • Signing Raw Transactions
    • Read/Write Smart Contracts
    • Integrating Google Sheets
    • Verifying Contracts Programmatically
  • 🔧Misc Tools & Utilities
    • Libraries
    • Plugins
  • 🤝Support
    • FAQ
    • Rate Limits
    • Common Error Messages
    • Getting Help
  • Visit Arbiscan.io
Powered by GitBook
On this page
  • Check Contract Execution Status
  • Check Transaction Receipt Status
  1. API Endpoints

Transactions

PreviousContractsNextBlocks

Last updated 2 years ago

Check Contract Execution Status

Returns the status code of a contract execution.

https://api.arbiscan.io/api
   ?module=transaction
   &action=getstatus
   &txhash=0x8cb52a2787728fb4011581c272c7e50092b65c0ba6f89314c2eb085fc71abb10
   &apikey=YourApiKeyToken

Try this endpoint in your

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":"Revert"
   }
}

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 transactions.

https://api.arbiscan.io/api
   ?module=transaction
   &action=gettxreceiptstatus
   &txhash=0x89bb28f55047a8ca895e6d11bf7d537e3e54bee804fb7e1d83eec4f133abc5f3
   &apikey=YourApiKeyToken

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"
   }
}

Try this endpoint in your

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

🎯
📖
🔗
📖
📝
browser
Byzantium Fork
🔗
browser