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

Transactions

PreviousContractsNextBlocks

Last updated 9 months ago

Check Contract Execution Status

Returns the status code of a contract execution.

https://api.polygonscan.com/api
   ?module=transaction
   &action=getstatus
   &txhash=0x591ca00bf6b404e24e21732023abc0416673beff9586f37e61fb0f07ca560940
   &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":"Bad jump destination"
   }
}

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.

https://api.polygonscan.com/api
   ?module=transaction
   &action=gettxreceiptstatus
   &txhash=0x591ca00bf6b404e24e21732023abc0416673beff9586f37e61fb0f07ca560940
   &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":"1"
   }
}

Try this endpoint in your

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

🎯
📖
🔗
📖
browser
🔗
browser