PolygonScan · Example Payload

Get Transactions

Example request and response for retrieving normal transactions for a Polygon address.

BlockchainPolygonExplorerWeb3EVMSmart ContractsDeFiCryptocurrency

Get Transactions is an example object payload from PolygonScan, with 5 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

titledescriptionrequestresponsenotes

Example Payload

Raw ↑
{
  "title": "Get Normal Transactions by Address",
  "description": "Example request and response for retrieving normal transactions for a Polygon address.",
  "request": {
    "method": "GET",
    "url": "https://api.etherscan.io/v2/api",
    "parameters": {
      "chainid": "137",
      "module": "account",
      "action": "txlist",
      "address": "0xc5102fE9359FD9a28f877a67E36B0F050d81a3CC",
      "startblock": "0",
      "endblock": "999999999",
      "page": "1",
      "offset": "10",
      "sort": "asc",
      "apikey": "YourApiKeyToken"
    },
    "curl": "curl 'https://api.etherscan.io/v2/api?chainid=137&module=account&action=txlist&address=0xc5102fE9359FD9a28f877a67E36B0F050d81a3CC&startblock=0&endblock=999999999&page=1&offset=10&sort=asc&apikey=YourApiKeyToken'"
  },
  "response": {
    "status": "200 OK",
    "headers": {
      "Content-Type": "application/json; charset=utf-8"
    },
    "body": {
      "status": "1",
      "message": "OK",
      "result": [
        {
          "blockNumber": "20000000",
          "blockHash": "0xabc123...",
          "timeStamp": "1650000000",
          "hash": "0xdef456...",
          "nonce": "1",
          "transactionIndex": "0",
          "from": "0xc5102fE9359FD9a28f877a67E36B0F050d81a3CC",
          "to": "0x742d35Cc6634C0532925a3b8D4C9C2e2B6F5C9Aa",
          "value": "1000000000000000000",
          "gas": "21000",
          "gasPrice": "30000000000",
          "input": "0x",
          "methodId": "0x",
          "functionName": "",
          "contractAddress": "",
          "cumulativeGasUsed": "21000",
          "txreceipt_status": "1",
          "gasUsed": "21000",
          "confirmations": "1000000",
          "isError": "0"
        }
      ]
    }
  },
  "notes": "Returns up to offset transactions per page. Use page parameter for pagination. Sort asc returns oldest transactions first."
}