# Get Address ERC20 Token Holding Source: https://docs.etherscan.io/api-reference/endpoint/addresstokenbalance openapi/api-reference/endpoint/addresstokenbalance.json GET /v2/api Retrieves the list of ERC-20 tokens and balances held by a specified address. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above > [!WARNING] > > This endpoint is throttled to **2 calls/second** regardless of API Pro tier. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "TokenAddress": "0xffffffff2ba8f66d4e51811c5190992176930278", "TokenName": "Furucombo", "TokenSymbol": "COMBO", "TokenQuantity": "1861606940000000000", "TokenDivisor": "18", "TokenPriceUSD": "0.000891470000000000" }, { "TokenAddress": "0x53a1e9912323b8016424d6287286e3b6de263f76", "TokenName": "PUTIN Token", "TokenSymbol": "PTT", "TokenQuantity": "3500000000000000000000", "TokenDivisor": "18", "TokenPriceUSD": "0.000000000000000000" } ] } ``` # Get Address ERC721 Token Holding Source: https://docs.etherscan.io/api-reference/endpoint/addresstokennftbalance openapi/api-reference/endpoint/addresstokennftbalance.json GET /v2/api Retrieves the ERC-721 tokens and their quantities owned by a specific address. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above > [!WARNING] > > This endpoint is throttled to **2 calls/second** regardless of API Pro tier. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "TokenAddress": "0x26d85a13212433fe6a8381969c2b0db390a0b0ae", "TokenName": "Ten Years Of Ethereum", "TokenSymbol": "10YETH", "TokenQuantity": "1" } ] } ``` # Get Address ERC721 Token Inventory by Contract Source: https://docs.etherscan.io/api-reference/endpoint/addresstokennftinventory openapi/api-reference/endpoint/addresstokennftinventory.json GET /v2/api Retrieves the ERC-721 token IDs owned by an address for a given NFT contract. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above > [!WARNING] > > This endpoint is throttled to **2 calls/second** regardless of API Pro tier. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "TokenAddress": "0xed5af388653567af2f388e6224dc7c4b3241c544", "TokenId": "453" }, { "TokenAddress": "0xed5af388653567af2f388e6224dc7c4b3241c544", "TokenId": "8160" } ] } ``` # ERC1155 Token Transfers Advanced Filter Source: https://docs.etherscan.io/api-reference/endpoint/advanced-filter-token1155tx openapi/api-reference/endpoint/advanced-filter-token1155tx.json GET /v2/api Retrieves ERC1155 token transfers with advanced from and to address filtering. Beta Explore and preview data from our [Advanced Filter](https://etherscan.io/advanced-filter) page. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "blockNumber": "13472395", "timeStamp": "1634973285", "hash": "0x643b15f3ffaad5d38e33e5872b4ebaa7a643eda8b50ffd5331f682934ee65d4d", "nonce": "41", "blockHash": "0xa5da536dfbe8125eb146114e2ee0d0bdef2b20483aacbf30fed6b60f092059e6", "transactionIndex": "100", "gas": "140000", "gasPrice": "52898577246", "gasUsed": "105030", "cumulativeGasUsed": "11739203", "input": "deprecated", "methodId": "0x3e6b214b", "functionName": "", "contractAddress": "0x76be3b62873462d2142405439777e971754e8e77", "from": "0x1e63326a84d2fa207bdfa856da9278a93deba418", "to": "0x83f564d180b58ad9a02a449105568189ee7de8cb", "tokenID": "10371", "tokenValue": "1", "tokenName": "parallel", "tokenSymbol": "LL", "confirmations": "9995266" } ] } ``` # ERC721 Token Transfers Advanced Filter Source: https://docs.etherscan.io/api-reference/endpoint/advanced-filter-tokennfttx openapi/api-reference/endpoint/advanced-filter-tokennfttx.json GET /v2/api Retrieves ERC721 token transfers with advanced from and to address filtering. Beta Explore and preview data from our [Advanced Filter](https://etherscan.io/advanced-filter) page. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "blockNumber": "4708120", "timeStamp": "1512907118", "hash": "0x031e6968a8de362e4328d60dcc7f72f0d6fc84284c452f63176632177146de66", "nonce": "0", "blockHash": "0x4be19c278bfaead5cb0bc9476fa632e2447f6e6259e0303af210302d22779a24", "from": "0xb1690c08e213a35ed9bab7b318de14420fb57d8c", "contractAddress": "0x06012c8cf97bead5deae237070f9587f8e7a266d", "to": "0x6975be450864c02b4613023c2152ee0743572325", "tokenID": "202106", "tokenName": "CryptoKitties", "tokenSymbol": "CK", "tokenDecimal": "0", "transactionIndex": "81", "gas": "158820", "gasPrice": "40000000000", "gasUsed": "60508", "cumulativeGasUsed": "4880352", "input": "deprecated", "methodId": "0x454a2ab3", "functionName": "bid(uint256 _tokenId)", "confirmations": "18759540" } ] } ``` # ERC20 Token Transfers Advanced Filter Source: https://docs.etherscan.io/api-reference/endpoint/advanced-filter-tokentx openapi/api-reference/endpoint/advanced-filter-tokentx.json GET /v2/api Retrieves ERC20 token transfers with advanced from and to address filtering. Beta Explore and preview data from our [Advanced Filter](https://etherscan.io/advanced-filter) page. ## Token reputation Each transfer includes `statusRep`, a string representing the token's reputation, not the transaction's success or failure. | Value | Reputation | Meaning | | - | - | - | | `"0"` | Unknown | The token's reputation is unknown. | | `"1"` | Neutral | The token is categorized as neutral. This does not guarantee safety. | | `"2"` | Unsafe | The token is categorized as unsafe. | ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "blockNumber": "4730207", "timeStamp": "1513240363", "hash": "0xe8c208398bd5ae8e4c237658580db56a2a94dfa0ca382c99b776fa6e7d31d5b4", "nonce": "406", "blockHash": "0x022c5e6a3d2487a8ccf8946a2ffb74938bf8e5c8a3f6d91b41c56378a96b5c37", "from": "0x642ae78fafbb8032da552d619ad43f1d81e4dd7c", "contractAddress": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2", "to": "0x4e83362442b8d1bec281594cea3050c8eb01311c", "value": "5901522149285533025181", "tokenName": "Maker", "tokenSymbol": "MKR", "tokenDecimal": "18", "statusRep": "1", "transactionIndex": "81", "gas": "940000", "gasPrice": "32010000000", "gasUsed": "77759", "cumulativeGasUsed": "2523379", "input": "deprecated", "methodId": "0xbe040fb0", "functionName": "redeem()", "confirmations": "18737452" } ] } ``` # Normal Transactions Advanced Filter Source: https://docs.etherscan.io/api-reference/endpoint/advanced-filter-txlist openapi/api-reference/endpoint/advanced-filter-txlist.json GET /v2/api Retrieves Normal Transactions with advanced from and to address filtering. Beta Explore and preview data from our [Advanced Filter](https://etherscan.io/advanced-filter) page. ```json Example response theme={null} { "status":"1", "message":"OK", "result":[ { "blockNumber":"25115190", "blockHash":"0x761e4c9928f804d020809bb21404787595bd1062f1ad975f4ee667514b9dfd31", "timeStamp":"1779024299", "hash":"0xf292888b132e986f79d95f5788fc21ca08e2096a7fa48ec1c5f265692f01e572", "nonce":"756", "transactionIndex":"180", "from":"0x9480fc2a527bb0f0e5e6a3cf2922bcd123b71302", "to":"0x71c7656ec7ab88b098defb751b7401b5f6d8976f", "value":"1000000000000000", "gas":"21000", "gasPrice":"707543925", "input":"0x", "methodId":"0x", "functionName":"", "contractAddress":"", "cumulativeGasUsed":"23218602", "txreceipt_status":"1", "gasUsed":"21000", "confirmations":"144453", "isError":"0" }, { "blockNumber":"25110948", "blockHash":"0x787fcf3940a9c4903759c8db8f1e8ce7220dbe8a33b51cc274a1ab0f81dcb8fa", "timeStamp":"1778973191", "hash":"0x0978044c1bcefb3875e60e32ad17ac0ee5790ff288c7bf962b7c2da011a3e2da", "nonce":"2356321", "transactionIndex":"165", "from":"0xcfc0f98f30742b6d880f90155d4ebb885e55ab33", "to":"0x71c7656ec7ab88b098defb751b7401b5f6d8976f", "value":"2280025690430300", "gas":"21000", "gasPrice":"99688389", "input":"0x", "methodId":"0x", "functionName":"", "contractAddress":"", "cumulativeGasUsed":"20407487", "txreceipt_status":"1", "gasUsed":"21000", "confirmations":"148695", "isError":"0" }, { "blockNumber":"25100650", "blockHash":"0x73d81243ce7d02253897285f13f0d902e809f4e81afe8d3279c3009e84493003", "timeStamp":"1778849339", "hash":"0xf4322f6349742333252e8b3a343ffea99956128b592671f0584369991cff1382", "nonce":"1", "transactionIndex":"110", "from":"0xb0c8bf8d41df1051d6e43a92df1ce00be18319d4", "to":"0x71c7656ec7ab88b098defb751b7401b5f6d8976f", "value":"25184345489993000", "gas":"21000", "gasPrice":"614976667", "input":"0x", "methodId":"0x", "functionName":"", "contractAddress":"", "cumulativeGasUsed":"14457597", "txreceipt_status":"1", "gasUsed":"21000", "confirmations":"158993", "isError":"0" }, { "blockNumber":"25098446", "blockHash":"0xc6bc028585270139d04ef58831142a615e1f29fb1c19b6857bd186d714109d73", "timeStamp":"1778822831", "hash":"0x6fa98ca16eb30b2cfda0bf960d2d8451b16bf4fb2785add8ad842c79c0be3c2f", "nonce":"6", "transactionIndex":"72", "from":"0xe58bfe009d7252d4bfc3c319e3a0cdf8056877a9", "to":"0x71c7656ec7ab88b098defb751b7401b5f6d8976f", "value":"86405841050975", "gas":"23100", "gasPrice":"187248990", "input":"0x", "methodId":"0x", "functionName":"", "contractAddress":"", "cumulativeGasUsed":"11640736", "txreceipt_status":"1", "gasUsed":"21000", "confirmations":"161197", "isError":"0" }, { "blockNumber":"25094060", "blockHash":"0x3d669f6f6eb063aef8e3b9ce01922b3b627a71cfb4ff8bc68026f89b163548ca", "timeStamp":"1778769947", "hash":"0x6d3758dde23f8e620d4a305a423578692f0cc8aa3dd2e125139b2ee692e5ae17", "nonce":"5398496", "transactionIndex":"208", "from":"0x264bd8291fae1d75db2c5f573b07faa6715997b5", "to":"0x71c7656ec7ab88b098defb751b7401b5f6d8976f", "value":"26574330000000000", "gas":"500000", "gasPrice":"1395684614", "input":"0x", "methodId":"0x", "functionName":"", "contractAddress":"", "cumulativeGasUsed":"19852043", "txreceipt_status":"1", "gasUsed":"21000", "confirmations":"165583", "isError":"0" }, { "blockNumber":"25085369", "blockHash":"0xdbd0753accd55baa9f6c094dd3a01fb62bc455660d78d8beae4135828cc1921e", "timeStamp":"1778665091", "hash":"0xd4c1ee9f43b1e729edcb0ceb3cd3506e8a68fd88863af7e6d69a0f023b381622", "nonce":"18", "transactionIndex":"166", "from":"0x58db80d3949398cd0425397039c46241e13a8f33", "to":"0x71c7656ec7ab88b098defb751b7401b5f6d8976f", "value":"7770000000000000", "gas":"31500", "gasPrice":"2125485961", "input":"0x", "methodId":"0x", "functionName":"", "contractAddress":"", "cumulativeGasUsed":"19841086", "txreceipt_status":"1", "gasUsed":"21000", "confirmations":"174274", "isError":"0" }, { "blockNumber":"25063398", "blockHash":"0x1051916494c8aebcdb5b6ee117b5abed2da13c8bb68fddec2e3aaf93400aaff3", "timeStamp":"1778400479", "hash":"0x55718bcae56111fdabb477a90db212d141d0192f46dd03d82c10328dea1694aa", "nonce":"0", "transactionIndex":"233", "from":"0x71c7662162200fe5698f60651c4f8c09c448976f", "to":"0x71c7656ec7ab88b098defb751b7401b5f6d8976f", "value":"9149354516798", "gas":"21000", "gasPrice":"189722547", "input":"0x", "methodId":"0x", "functionName":"", "contractAddress":"", "cumulativeGasUsed":"21912088", "txreceipt_status":"1", "gasUsed":"21000", "confirmations":"196245", "isError":"0" }, { "blockNumber":"25019896", "blockHash":"0x1a22015e8121cb57244fe466565dd28853d04fa42718d1f1cf6a6f2493b3354f", "timeStamp":"1777876739", "hash":"0xd12412d17862dbea174cd2204aa5a9f9dabab06d7113c00e8a9e32eaf7000e02", "nonce":"10", "transactionIndex":"84", "from":"0x10dfb4f4640fdb8e4dd5da3b6a95f5b1ece453b2", "to":"0x71c7656ec7ab88b098defb751b7401b5f6d8976f", "value":"67272908681009", "gas":"21000", "gasPrice":"1216643736", "input":"0x", "methodId":"0x", "functionName":"", "contractAddress":"", "cumulativeGasUsed":"10068159", "txreceipt_status":"1", "gasUsed":"21000", "confirmations":"239747", "isError":"0" }, { "blockNumber":"25002175", "blockHash":"0xa65b4d7ad52e2120791e4b85b43eec6579cbf331dd6614916077de1ced83fc46", "timeStamp":"1777663523", "hash":"0x01a53b23ffd82a81ec494605adb975a4322731d6d5346163429465a3b9eeafc6", "nonce":"0", "transactionIndex":"163", "from":"0x45d665904331f915b88d340f6424526205980088", "to":"0x71c7656ec7ab88b098defb751b7401b5f6d8976f", "value":"0", "gas":"30000", "gasPrice":"296172198", "input":"0x", "methodId":"0x", "functionName":"", "contractAddress":"", "cumulativeGasUsed":"12399193", "txreceipt_status":"1", "gasUsed":"21000", "confirmations":"257468", "isError":"0" }, { "blockNumber":"24981765", "blockHash":"0x888a4dcbebde46b30e44eafe3ec7c2287612c4db022aecf6b4506b017a2ea36f", "timeStamp":"1777417847", "hash":"0x7ecb5b61fa626a93a9259691c6439d14e3f7288f200eb01c08388b37f0ebcae2", "nonce":"10", "transactionIndex":"364", "from":"0xb873178dc3cc31a16c9bae6894636fce17fbb12b", "to":"0x71c7656ec7ab88b098defb751b7401b5f6d8976f", "value":"8021004715484893", "gas":"21000", "gasPrice":"1377717191", "input":"0x", "methodId":"0x", "functionName":"", "contractAddress":"", "cumulativeGasUsed":"22455577", "txreceipt_status":"1", "gasUsed":"21000", "confirmations":"277878", "isError":"0" } ] } ``` # Internal Transactions Advanced Filter Source: https://docs.etherscan.io/api-reference/endpoint/advanced-filter-txlistinternal openapi/api-reference/endpoint/advanced-filter-txlistinternal.json GET /v2/api Retrieves Internal Transactions with advanced from and to address filtering. Beta Explore and preview data from our [Advanced Filter](https://etherscan.io/advanced-filter) page. ```json Example response theme={null} { "status":"1", "message":"OK", "result":[ { "blockNumber":"2535368", "timeStamp":"1477837690", "hash":"0x8a1a9989bda84f80143181a68bc137ecefa64d0d4ebde45dd94fc0cf49e70cb6", "from":"0x20d42f2e99a421147acf198d775395cac2e8b03d", "to":"", "value":"0", "contractAddress":"0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3", "input":"", "type":"create", "gas":"254791", "gasUsed":"46750", "traceId":"0", "isError":"0", "errCode":"" } ] } ``` # Get Native Balance for an Address Source: https://docs.etherscan.io/api-reference/endpoint/balance openapi/api-reference/endpoint/balance.json GET /v2/api Retrieves the native token balance held by a specific address. ```json Example response theme={null} { "status":"1", "message":"OK", "result":"172774397764084972158218" } ``` # Get Historical Native Balance for an Address Source: https://docs.etherscan.io/api-reference/endpoint/balancehistory openapi/api-reference/endpoint/balancehistory.json GET /v2/api Retrieves the balance of a specified address at a given block height. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above > [!WARNING] > > This endpoint is throttled to **2 calls/second** regardless of API Pro tier. ```json Example response theme={null} { "status": "1", "message": "OK", "result": "610538078574759898951277" } ``` # Get Native Balance for Multiple Addresses Source: https://docs.etherscan.io/api-reference/endpoint/balancemulti openapi/api-reference/endpoint/balancemulti.json GET /v2/api Retrieves the native token balance held by multiple addresses in a single call. ```json Example response theme={null} { "status":"1", "message":"OK", "result":[ { "account":"0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a", "balance":"40891631566070000000000" }, { "account":"0x63a9975ba31b0b9626b34300f7f627147df1f526", "balance":"332567136222827062478" }, { "account":"0x198ef1ec325a96cc354c7266a038be8b5c558f67", "balance":"12005264493462223951724" } ] } ``` # Chainlist Source: https://docs.etherscan.io/api-reference/endpoint/chainlist openapi/api-reference/endpoint/chainlist.json GET /v2/chainlist Returns the list of all supported Etherscan mainnet and testnet chains. ```json Example response theme={null} { "comments": "List of API endpoints maintained by Etherscan EAAS. Available Status codes are (0)=Offline, (1)=Ok, (2)=Degraded", "totalcount": 67, "result": [ { "chainname": "Ethereum Mainnet", "chainid": "1", "blockexplorer": "https://etherscan.io/", "apiurl": "https://api.etherscan.io/v2/api?chainid=1", "status": 1, "comment": "" }, { "chainname": "Sepolia Testnet", "chainid": "11155111", "blockexplorer": "https://sepolia.etherscan.io/", "apiurl": "https://api.etherscan.io/v2/api?chainid=11155111", "status": 1, "comment": "" }, { "chainname": "Base Mainnet", "chainid": "8453", "blockexplorer": "https://basescan.org/", "apiurl": "https://api.etherscan.io/v2/api?chainid=8453", "status": 1, "comment": "" }, { "chainname": "Polygon Mainnet", "chainid": "137", "blockexplorer": "https://polygonscan.com/", "apiurl": "https://api.etherscan.io/v2/api?chainid=137", "status": 1, "comment": "" }, { "chainname": "Arbitrum One Mainnet", "chainid": "42161", "blockexplorer": "https://arbiscan.io/", "apiurl": "https://api.etherscan.io/v2/api?chainid=42161", "status": 1, "comment": "" } ] } ``` # Get Ethereum Nodes Size Source: https://docs.etherscan.io/api-reference/endpoint/chainsize openapi/api-reference/endpoint/chainsize.json GET /v2/api Retrieves the total size of the Ethereum blockchain, in bytes, within a specified date range. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "blockNumber": "7156164", "chainTimeStamp": "2019-02-01", "chainSize": "184726421279", "clientType": "Geth", "syncMode": "Default" }, { "blockNumber": "7161012", "chainTimeStamp": "2019-02-02", "chainSize": "184726654448", "clientType": "Geth", "syncMode": "Default" } ] } ``` # Check Proxy Contract Verification Status Source: https://docs.etherscan.io/api-reference/endpoint/checkproxyverification openapi/api-reference/endpoint/checkproxyverification.json GET /v2/api Check the status of a proxy contract verification. ```json Example response theme={null} { "status": "0", "message": "NOTOK", "result": "The proxy contract at 0xcbdcd3815b5f975e1a2c944a9b2cd1c985a1cb7f does not seem to be verified. Please verify and publish the contract source before proceeding with this proxy verification." } ``` # Check Source Code Verification Status Source: https://docs.etherscan.io/api-reference/endpoint/checkverifystatus openapi/api-reference/endpoint/checkverifystatus.json GET /v2/api Check the status of a source code verification request. ```json Example response theme={null} { "status": "1", "message": "OK", "result": "Pass - Verified" } ``` # Get Daily Average Block Size Source: https://docs.etherscan.io/api-reference/endpoint/dailyavgblocksize openapi/api-reference/endpoint/dailyavgblocksize.json GET /v2/api Retrieves the average daily block size over a specified date range. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "UTCDate": "2019-02-01", "unixTimeStamp": "1548979200", "blockSize_bytes": 20373 }, { "UTCDate": "2019-02-02", "unixTimeStamp": "1549065600", "blockSize_bytes": 17499 } ] } ``` # Get Daily Average Block Time Source: https://docs.etherscan.io/api-reference/endpoint/dailyavgblocktime openapi/api-reference/endpoint/dailyavgblocktime.json GET /v2/api Retrieves the daily average time taken to successfully mine a block. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "UTCDate": "2019-02-01", "unixTimeStamp": "1548979200", "blockTime_sec": "17.67" }, { "UTCDate": "2019-02-02", "unixTimeStamp": "1549065600", "blockTime_sec": "17.41" } ] } ``` # Get Daily Average Gas Limit Source: https://docs.etherscan.io/api-reference/endpoint/dailyavggaslimit openapi/api-reference/endpoint/dailyavggaslimit.json GET /v2/api Retrieve daily average gas limit statistics. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "UTCDate": "2019-02-01", "unixTimeStamp": "1548979200", "gasLimit": "8001360" }, { "UTCDate": "2019-02-02", "unixTimeStamp": "1549065600", "gasLimit": "8001269" } ] } ``` # Get Daily Average Gas Price Source: https://docs.etherscan.io/api-reference/endpoint/dailyavggasprice openapi/api-reference/endpoint/dailyavggasprice.json GET /v2/api Retrieve daily average gas price statistics. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "UTCDate": "2019-02-01", "unixTimeStamp": "1548979200", "maxGasPrice_Wei": "60814303896257", "minGasPrice_Wei": "432495", "avgGasPrice_Wei": "13234562600" }, { "UTCDate": "2019-02-02", "unixTimeStamp": "1549065600", "maxGasPrice_Wei": "20000000000000", "minGasPrice_Wei": "2352", "avgGasPrice_Wei": "12000569516" } ] } ``` # Get Daily Average Network Hash Rate Source: https://docs.etherscan.io/api-reference/endpoint/dailyavghashrate openapi/api-reference/endpoint/dailyavghashrate.json GET /v2/api Retrieves the historical hash rate, reflecting the processing power of the network over time. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "UTCDate": "2019-02-01", "unixTimeStamp": "1548979200", "networkHashRate": "143116.0140" }, { "UTCDate": "2019-02-02", "unixTimeStamp": "1549065600", "networkHashRate": "143036.2313" } ] } ``` # Get Daily Average Network Difficulty Source: https://docs.etherscan.io/api-reference/endpoint/dailyavgnetdifficulty openapi/api-reference/endpoint/dailyavgnetdifficulty.json GET /v2/api Returns the historical mining difficulty data of the network. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "UTCDate": "2019-02-01", "unixTimeStamp": "1548979200", "networkDifficulty": "2,408.028" }, { "UTCDate": "2019-02-02", "unixTimeStamp": "1549065600", "networkDifficulty": "2,358.910" } ] } ``` # Get Daily Block Count and Rewards Source: https://docs.etherscan.io/api-reference/endpoint/dailyblkcount openapi/api-reference/endpoint/dailyblkcount.json GET /v2/api Retrieves the daily count of mined blocks along with the corresponding block rewards. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "UTCDate": "2019-02-01", "unixTimeStamp": "1548979200", "blockCount": 4848, "blockRewards_Eth": "14929.464690870590355682" }, { "UTCDate": "2019-02-02", "unixTimeStamp": "1549065600", "blockCount": 4935, "blockRewards_Eth": "15120.386084685869906669" } ] } ``` # Get Daily Block Rewards Source: https://docs.etherscan.io/api-reference/endpoint/dailyblockrewards openapi/api-reference/endpoint/dailyblockrewards.json GET /v2/api Retrieves the daily distribution of block rewards to miners. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "UTCDate": "2019-02-01", "unixTimeStamp": "1548979200", "blockRewards_Eth": "15300.65625" }, { "UTCDate": "2019-02-02", "unixTimeStamp": "1549065600", "blockRewards_Eth": "15611.625" } ] } ``` # Get Daily ENS Registration Count Source: https://docs.etherscan.io/api-reference/endpoint/dailyensregister openapi/api-reference/endpoint/dailyensregister.json GET /v2/api Retrieves the daily count of ENS registrations on Ethereum. Ethereum > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "UTCDate": "2026-02-01", "unixTimeStamp": "1769904000", "ensRegistrationCount": 14 }, { "UTCDate": "2026-02-02", "unixTimeStamp": "1769990400", "ensRegistrationCount": 7 }, { "UTCDate": "2026-02-03", "unixTimeStamp": "1770076800", "ensRegistrationCount": 5 } ] } ``` # Get Ethereum Daily Total Gas Used Source: https://docs.etherscan.io/api-reference/endpoint/dailygasused openapi/api-reference/endpoint/dailygasused.json GET /v2/api Retrieves the total daily gas usage for transactions within the network > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "UTCDate": "2019-02-01", "unixTimeStamp": "1548979200", "gasUsed": "32761450415" }, { "UTCDate": "2019-02-02", "unixTimeStamp": "1549065600", "gasUsed": "30168904532" } ] } ``` # Get Daily Network Utilization Source: https://docs.etherscan.io/api-reference/endpoint/dailynetutilization openapi/api-reference/endpoint/dailynetutilization.json GET /v2/api Retrieves the daily average percentage of gas used relative to the gas limit. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "UTCDate": "2019-02-01", "unixTimeStamp": "1548979200", "networkUtilization": "0.8464" }, { "UTCDate": "2019-02-02", "unixTimeStamp": "1549065600", "networkUtilization": "0.7687" } ] } ``` # Get Daily New Address Count Source: https://docs.etherscan.io/api-reference/endpoint/dailynewaddress openapi/api-reference/endpoint/dailynewaddress.json GET /v2/api Retrieves the daily count of newly created addresses. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "UTCDate": "2019-02-01", "unixTimeStamp": "1548979200", "newAddressCount": 54081 }, { "UTCDate": "2019-02-02", "unixTimeStamp": "1549065600", "newAddressCount": 65152 } ] } ``` # Get Daily Transaction Count Source: https://docs.etherscan.io/api-reference/endpoint/dailytx openapi/api-reference/endpoint/dailytx.json GET /v2/api Retrieves the daily number of transactions executed in the blockchain. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "UTCDate": "2019-02-01", "unixTimeStamp": "1548979200", "transactionCount": 498856 }, { "UTCDate": "2019-02-02", "unixTimeStamp": "1549065600", "transactionCount": 450314 } ] } ``` # Get Daily Network Transaction Fee Source: https://docs.etherscan.io/api-reference/endpoint/dailytxnfee openapi/api-reference/endpoint/dailytxnfee.json GET /v2/api Retrieves the total transaction fees paid to miners each day. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "UTCDate": "2019-02-01", "unixTimeStamp": "1548979200", "transactionFee_Eth": "358.558440870590355682" }, { "UTCDate": "2019-02-02", "unixTimeStamp": "1549065600", "transactionFee_Eth": "286.886084685869906669" } ] } ``` # Get Daily Uncle Block Count and Rewards Source: https://docs.etherscan.io/api-reference/endpoint/dailyuncleblkcount openapi/api-reference/endpoint/dailyuncleblkcount.json GET /v2/api Returns the daily count of Uncle blocks mined and their associated rewards. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "UTCDate": "2019-02-01", "unixTimeStamp": "1548979200", "uncleBlockCount": 287, "uncleBlockRewards_Eth": "729.75" }, { "UTCDate": "2019-02-02", "unixTimeStamp": "1549065600", "uncleBlockCount": 304, "uncleBlockRewards_Eth": "778.125" } ] } ``` # eth_blockNumber Source: https://docs.etherscan.io/api-reference/endpoint/ethblocknumber openapi/api-reference/endpoint/ethblocknumber.json GET /v2/api Fetch the latest block number. ```json Example response theme={null} { "jsonrpc": "2.0", "id": 83, "result": "0x1661760" } ``` # eth_call Source: https://docs.etherscan.io/api-reference/endpoint/ethcall openapi/api-reference/endpoint/ethcall.json GET /v2/api Execute a call without creating a transaction. ```json Example response theme={null} { "jsonrpc": "2.0", "id": 1, "result": "0x00000000000000000000000000000000000000000000000000000000115ded1b" } ``` # Get Ether Historical Price Source: https://docs.etherscan.io/api-reference/endpoint/ethdailyprice openapi/api-reference/endpoint/ethdailyprice.json GET /v2/api Returns the historical price data for 1 ETH. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "UTCDate": "2019-02-01", "unixTimeStamp": "1548979200", "value": "107.03" }, { "UTCDate": "2019-02-02", "unixTimeStamp": "1549065600", "value": "111.00" } ] } ``` # eth_estimateGas Source: https://docs.etherscan.io/api-reference/endpoint/ethestimategas openapi/api-reference/endpoint/ethestimategas.json GET /v2/api Estimate the gas required for a transaction. ```json Example response theme={null} { "jsonrpc": "2.0", "id": 1, "result": "0x66ac" } ``` # eth_gasPrice Source: https://docs.etherscan.io/api-reference/endpoint/ethgasprice openapi/api-reference/endpoint/ethgasprice.json GET /v2/api Get the current gas price. ```json Example response theme={null} { "jsonrpc": "2.0", "id": 73, "result": "0x1d9d2db2" } ``` # eth_getBlockByNumber Source: https://docs.etherscan.io/api-reference/endpoint/ethgetblockbynumber openapi/api-reference/endpoint/ethgetblockbynumber.json GET /v2/api Get block information by number. ```json Example response theme={null} { "jsonrpc": "2.0", "id": 1, "result": { "difficulty": "0x1d95715bd14", "extraData": "0x", "gasLimit": "0x2fefd8", "gasUsed": "0x5208", "hash": "0x7eb7c23a5ac2f2d70aa1ba4e5c56d89de5ac993590e5f6e79c394e290d998ba8", "logsBloom": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "miner": "0xf927a40c8b7f6e07c5af7fa2155b4864a4112b13", "mixHash": "0x13dd2c8aec729f75aebcd79a916ecb0f7edc6493efcc6a4da8d7b0ab3ee88444", "nonce": "0xc60a782e2e69ce22", "number": "0x10d4f", "parentHash": "0xf8d01370e6e274f8188954fbee435b40c35b2ad3d4ab671f6d086cd559e48f04", "receiptsRoot": "0x0c44b7ed0fefb613ec256341aa0ffdb643e869e3a0ebc8f58e36b4e47efedd33", "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", "size": "0x275", "stateRoot": "0xd64a0f63e2c7f541e6e6f8548a10a5c4e49fda7ac1aa80f9dddef648c7b9e25f", "timestamp": "0x55c9ea07", "transactions": [ { "blockHash": "0x7eb7c23a5ac2f2d70aa1ba4e5c56d89de5ac993590e5f6e79c394e290d998ba8", "blockNumber": "0x10d4f", "from": "0x4458f86353b4740fe9e09071c23a7437640063c9", "gas": "0x5208", "gasPrice": "0xba43b7400", "hash": "0xa442249820de6be754da81eafbd44a865773e4b23d7c0522d31fd03977823008", "input": "0x", "nonce": "0x1", "to": "0xbf3403210f9802205f426759947a80a9fda71b1e", "transactionIndex": "0x0", "value": "0xaa9f075c200000", "type": "0x0", "v": "0x1b", "r": "0x2c2789c6704ba2606e200e1ba4fd17ba4f0e0f94abe32a12733708c3d3442616", "s": "0x2946f47e3ece580b5b5ecb0f8c52604fa5f60aeb4103fc73adcbf6d620f9872b" } ], "transactionsRoot": "0x4a5b78c13d11559c9541576834b5172fe8b18507c0f9f76454fcdddedd8dff7a", "uncles": [] } } ``` # eth_getBlockTransactionCountByNumber Source: https://docs.etherscan.io/api-reference/endpoint/ethgetblocktransactioncountbynumber openapi/api-reference/endpoint/ethgetblocktransactioncountbynumber.json GET /v2/api Get the number of transactions in a block. ```json Example response theme={null} { "jsonrpc": "2.0", "id": 1, "result": "0x3" } ``` # eth_getCode Source: https://docs.etherscan.io/api-reference/endpoint/ethgetcode openapi/api-reference/endpoint/ethgetcode.json GET /v2/api Get the code stored at an address. ```json Example response theme={null} { "jsonrpc": "2.0", "id": 1, "result": "0x3660008037602060003660003473273930d21e01ee25e4c219b63259d214872220a261235a5a03f21560015760206000f3" } ``` # eth_getStorageAt Source: https://docs.etherscan.io/api-reference/endpoint/ethgetstorageat openapi/api-reference/endpoint/ethgetstorageat.json GET /v2/api Get the value at a storage position. ```json Example response theme={null} { "jsonrpc": "2.0", "id": 1, "result": "0x0000000000000000000000000000000000000000000000000000000000000000" } ``` # eth_getTransactionByBlockNumberAndIndex Source: https://docs.etherscan.io/api-reference/endpoint/ethgettransactionbyblocknumberandindex openapi/api-reference/endpoint/ethgettransactionbyblocknumberandindex.json GET /v2/api Get transaction details by block number and index. ```json Example response theme={null} { "jsonrpc": "2.0", "id": 1, "result": { "blockHash": "0x13c5311a78b9a8790c58f1d0d0660226352a498cc98b06e1861f1967d3a9d1b4", "blockNumber": "0xc6331d", "from": "0xd1af036d589b6ebfbaa184b339a30d32ef611708", "gas": "0x11170", "gasPrice": "0x5b7e259a7", "maxFeePerGas": "0x5b7e259a7", "maxPriorityFeePerGas": "0x5b7e259a7", "hash": "0xc7ef51f0bfe85eefbb1d4d88f5a39e82fbfc94987d8cbcb515f74d80b6e44902", "input": "0x2d2da806000000000000000000000000d1af036d589b6ebfbaa184b339a30d32ef611708", "nonce": "0x0", "to": "0xabea9132b05a70803a4e85094fd0e1800777fbef", "transactionIndex": "0x11a", "value": "0x57930b5db6a000", "type": "0x2", "accessList": [], "chainId": "0x1", "v": "0x0", "r": "0x595619be17755f7427d07626275e4c89b8f9d5a0a668515165ea000d30f26325", "s": "0x33d4b22c7c779fc9f04c81788cb4268d2c3f8dc9e219245570bdd384c6ca6690", "yParity": "0x0" } } ``` # eth_getTransactionByHash Source: https://docs.etherscan.io/api-reference/endpoint/ethgettransactionbyhash openapi/api-reference/endpoint/ethgettransactionbyhash.json GET /v2/api Get transaction details by hash. ```json Example response theme={null} { "jsonrpc": "2.0", "id": 1, "result": { "blockHash": "0xf850331061196b8f2b67e1f43aaa9e69504c059d3d3fb9547b04f9ed4d141ab7", "blockNumber": "0xcf2420", "from": "0x00192fb10df37c9fb26829eb2cc623cd1bf599e8", "gas": "0x5208", "gasPrice": "0x19f017ef49", "maxFeePerGas": "0x1f6ea08600", "maxPriorityFeePerGas": "0x3b9aca00", "hash": "0xbc78ab8a9e9a0bca7d0321a27b2c03addeae08ba81ea98b03cd3dd237eabed44", "input": "0x", "nonce": "0x33b79d", "to": "0xc67f4e626ee4d3f272c2fb31bad60761ab55ed9f", "transactionIndex": "0x5b", "value": "0x19755d4ce12c00", "type": "0x2", "accessList": [], "chainId": "0x1", "v": "0x0", "r": "0xa681faea68ff81d191169010888bbbe90ec3eb903e31b0572cd34f13dae281b9", "s": "0x3f59b0fa5ce6cf38aff2cfeb68e7a503ceda2a72b4442c7e2844d63544383e3", "yParity": "0x0" } } ``` # eth_getTransactionCount Source: https://docs.etherscan.io/api-reference/endpoint/ethgettransactioncount openapi/api-reference/endpoint/ethgettransactioncount.json GET /v2/api Get the number of transactions sent from an address. ```json Example response theme={null} { "jsonrpc": "2.0", "id": 1, "result": "0x73" } ``` # eth_getTransactionReceipt Source: https://docs.etherscan.io/api-reference/endpoint/ethgettransactionreceipt openapi/api-reference/endpoint/ethgettransactionreceipt.json GET /v2/api Get the receipt of a transaction by hash. ```json Example response theme={null} { "jsonrpc": "2.0", "id": 1, "result": { "blockHash": "0x07c17710dbb7514e92341c9f83b4aab700c5dba7c4fb98caadd7926a32e47799", "blockNumber": "0xcf2427", "contractAddress": null, "cumulativeGasUsed": "0xeb67d5", "effectiveGasPrice": "0x1a96b24c26", "from": "0x292f04a44506c2fd49bac032e1ca148c35a478c8", "gasUsed": "0xb41d", "logs": [ { "address": "0xdac17f958d2ee523a2206206994597c13d831ec7", "topics": [ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "0x000000000000000000000000292f04a44506c2fd49bac032e1ca148c35a478c8", "0x000000000000000000000000ab6960a6511ff18ed8b8c012cb91c7f637947fc0" ], "data": "0x00000000000000000000000000000000000000000000000000000000013f81a6", "blockNumber": "0xcf2427", "transactionHash": "0xadb8aec59e80db99811ac4a0235efa3e45da32928bcff557998552250fa672eb", "transactionIndex": "0x122", "blockHash": "0x07c17710dbb7514e92341c9f83b4aab700c5dba7c4fb98caadd7926a32e47799", "logIndex": "0xdb", "removed": false } ], "logsBloom": "0x0000000000000000000000000000000000000000000000000000000000000400000000000400000000000000000001000000000000000000000000000000000000000000000000000000000800000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000001000000000110000000000000000000000000000000000000000000000000000000200100000000000000000000000000080000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "status": "0x1", "to": "0xdac17f958d2ee523a2206206994597c13d831ec7", "transactionHash": "0xadb8aec59e80db99811ac4a0235efa3e45da32928bcff557998552250fa672eb", "transactionIndex": "0x122", "type": "0x2" } } ``` # eth_getUncleByBlockNumberAndIndex Source: https://docs.etherscan.io/api-reference/endpoint/ethgetunclebyblocknumberandindex openapi/api-reference/endpoint/ethgetunclebyblocknumberandindex.json GET /v2/api Get uncle block details by block number and index. ```json Example response theme={null} { "jsonrpc": "2.0", "id": 1, "result": { "baseFeePerGas": "0x65a42b13c", "difficulty": "0x1b1457a8247bbb", "extraData": "0x486976656f6e2063612d68656176792059476f6e", "gasLimit": "0x1ca359a", "gasUsed": "0xb48fe1", "hash": "0x1da88e3581315d009f1cb600bf06f509cd27a68cb3d6437bda8698d04089f14a", "logsBloom": "0xf1a360ca505cdda510d810c1c81a03b51a8a508ed601811084833072945290235c8721e012182e40d57df552cf00f1f01bc498018da19e008681832b43762a30c26e11709948a9b96883a42ad02568e3fcc3000004ee12813e4296498261619992c40e22e60bd95107c5bd8462fcca570a0095d52a4c24720b00f13a2c3d62aca81e852017470c109643b15041fd69742406083d67654fc841a18b405ab380e06a8c14c0138b6602ea8f48b2cd90ac88c3478212011136802900264718a085047810221225080dfb2c214010091a6f233883bb0084fa1c197330a10bb0006686e678b80e50e4328000041c218d1458880181281765d28d51066058f3f80a7822", "miner": "0x1ad91ee08f21be3de0ba2ba6918e714da6b45836", "mixHash": "0xa8e1dbbf073614c7ed05f44b9e92fbdb3e1d52575ed8167fa57f934210bbb0a2", "nonce": "0x28cc3e5b7bee9866", "number": "0xc63274", "parentHash": "0x496dae3e722efdd9ee1eb69499bdc7ed0dca54e13cd1157a42811c442f01941f", "receiptsRoot": "0x9c9a7a99b4af7607691a7f2a50d474290385c0a6f39c391131ea0c67307213f4", "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", "size": "0x224", "stateRoot": "0xde9a11f0ee321390c1a7843cab7b9ffd3779d438bc8f77de4361dfe2807d7dee", "timestamp": "0x6110bd1a", "transactionsRoot": "0xa04a79e531db3ec373cb63e9ebfbc9c95525de6347958918a273675d4f221575", "uncles": [] } } ``` # Get Ether Last Price Source: https://docs.etherscan.io/api-reference/endpoint/ethprice openapi/api-reference/endpoint/ethprice.json GET /v2/api Retrieves the latest price of the native/gas token. ```json Example response theme={null} { "status": "1", "message": "OK", "result": { "ethbtc": "0.0368322132423383", "ethbtc_timestamp": "1759139509", "ethusd": "4129.30651044757", "ethusd_timestamp": "1759139509" } } ``` # eth_sendRawTransaction Source: https://docs.etherscan.io/api-reference/endpoint/ethsendrawtransaction openapi/api-reference/endpoint/ethsendrawtransaction.json GET /v2/api Broadcast a signed transaction to the network. ```json Example response theme={null} { "jsonrpc": "2.0", "id": 1, "error": { "code": -32000, "message": "rlp: value size exceeds available input length" } } ``` # Get Total Supply of Ether Source: https://docs.etherscan.io/api-reference/endpoint/ethsupply openapi/api-reference/endpoint/ethsupply.json GET /v2/api Retrieves the current circulating supply of Ether, excluding ETH2 staking rewards and EIP-1559 burned fees. ```json Example response theme={null} { "status": "1", "message": "OK", "result": "122373866217800000000000000" } ``` # Get Total Supply of Ether 2 Source: https://docs.etherscan.io/api-reference/endpoint/ethsupply2 openapi/api-reference/endpoint/ethsupply2.json GET /v2/api Retrieves the current Ether supply, including circulation, ETH2 staking rewards, EIP-1559 burned fees, and total ETH withdrawn from the beacon chain. ```json Example response theme={null} { "status": "1", "message": "OK", "result": { "EthSupply": "122373866217800000000000000", "Eth2Staking": "2940327167090033000000000", "BurntFees": "4610942856337430575173814", "WithdrawnTotal": "7618584348954597000000000" } } ``` # Export Address Tags (Legacy) Source: https://docs.etherscan.io/api-reference/endpoint/exportaddresstags openapi/api-reference/endpoint/exportaddresstags.json GET /v1/api.ashx Export the list of addresses tagged with a given Etherscan label (Legacy). > [!WARNING] > > This is the legacy version, maintained for existing integrations. For new projects, use the [multichain version](/api-reference/endpoint/exportaddresstags-v2). > [!NOTE] > > This is a PRO endpoint, available to the [Enterprise tier](https://etherscan.io/apis) > [!WARNING] > > This endpoint is throttled to 2 calls/s and 100 calls/day ```csv Downloaded CSV theme={null} "address";"nametag";"internal_nametag";"url";"shortdescription";"notes_1";"notes_2";"labels";"labels_slug";"reputation";"other_attributes";"lastupdatedtimestamp" "0x0000000000000000000000000000000000001111";"Fake_Phishing589039";"";"";"";"There are reports that this address was used in a Phishing scam. Please exercise caution when interacting with it. Reported by HashDit.";"";"Phish / Hack";"phish-hack";"2";"";"1728292621" "0x00000000001adc2c0b202d0f72ad9d50f0675296";"Fake_Phishing1334182";"";"";"";"There are reports that this address was used in a Phishing scam. Please exercise caution when interacting with it. Reported by BlockSec.";"";"Phish / Hack";"phish-hack";"2";"";"1757057505" "0x00000000006a2b6820feb8d5ac00cb6800795d8f";"Fake_Phishing326507";"";"";"";"There are reports that this address was used in a Phishing scam. Please exercise caution when interacting with it.";"";"Phish / Hack";"phish-hack";"2";"";"1711418316" "0x0000000000d67e5d5f991a40f04ed40fa3b150df";"Fake_Phishing326508";"";"";"";"There are reports that this address was used in a Phishing scam. Please exercise caution when interacting with it.";"";"Phish / Hack";"phish-hack";"2";"";"1711418362" "0x0000000000e7f7e18e6b7890ea1227ff088e6653";"Fake_Phishing686515";"";"";"";"There are reports that this address was used in a Phishing scam. Please exercise caution when interacting with it. Reported by ScamSniffer.";"";"Phish / Hack";"phish-hack";"2";"";"1734599538" "0x00000000020e203eb8fc5d0724e7c93e6b002c71";"Fake_Phishing119146";"";"";"";"Warning! This address may be attempting to impersonate a similar looking address. Please proceed with caution.";"";"Phish / Hack";"phish-hack";"2";"";"1738570688" ``` # Export Address Tags Source: https://docs.etherscan.io/api-reference/endpoint/exportaddresstags-v2 openapi/api-reference/endpoint/exportaddresstags-v2.json GET /v2/api Generates a temporary download URL for the addresses tagged with a given label (CSV or ZIP file). > [!NOTE] > > Metadata Exports are available exclusively to [Enterprise plan](https://etherscan.io/api/pricing) customers. [Contact Sales](https://etherscan.io/api/pricing#contactSection) to explore Enterprise access. > [!WARNING] > > This endpoint is throttled to 2 calls/s and 100 calls/day > [!TIP] > > The `result` is a temporary download link, not the data itself. Fetch that URL within 5 minutes to download the export (CSV or ZIP, set by the `format` parameter). To find valid `label` values, see [Export Label Master List](/api-reference/endpoint/getlabelmasterlist-v2). ```json Example response theme={null} { "status": "1", "message": "OK", "result": "https://metadata-export.etherscan.io/1/ofac-sanctioned_latest_nametags.csv?X-Amz-Expires=300&response-content-disposition=attachment%3B%20filename%3Dexport-ofac-sanctioned_latest_nametags.csv&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0056c267039aefa0000000005/20260305/us-east-005/s3/aws4_request&X-Amz-Date=20260305T082747Z&X-Amz-SignedHeaders=host&X-Amz-Signature=ab0edf183956eb13c3cf58d38d6388e8cf16e2e9ec66f51b8ac00766b01b88ae" } ``` ```csv Downloaded CSV theme={null} "address";"nametag";"internal_nametag";"url";"shortdescription";"notes_1";"notes_2";"labels";"labels_slug";"reputation";"other_attributes";"lastupdatedtimestamp" "0x0000000000000000000000000000000000001111";"Fake_Phishing589039";"";"";"";"There are reports that this address was used in a Phishing scam. Please exercise caution when interacting with it. Reported by HashDit.";"";"Phish / Hack";"phish-hack";"2";"";"1728292621" "0x00000000001adc2c0b202d0f72ad9d50f0675296";"Fake_Phishing1334182";"";"";"";"There are reports that this address was used in a Phishing scam. Please exercise caution when interacting with it. Reported by BlockSec.";"";"Phish / Hack";"phish-hack";"2";"";"1757057505" "0x00000000006a2b6820feb8d5ac00cb6800795d8f";"Fake_Phishing326507";"";"";"";"There are reports that this address was used in a Phishing scam. Please exercise caution when interacting with it.";"";"Phish / Hack";"phish-hack";"2";"";"1711418316" "0x0000000000d67e5d5f991a40f04ed40fa3b150df";"Fake_Phishing326508";"";"";"";"There are reports that this address was used in a Phishing scam. Please exercise caution when interacting with it.";"";"Phish / Hack";"phish-hack";"2";"";"1711418362" "0x0000000000e7f7e18e6b7890ea1227ff088e6653";"Fake_Phishing686515";"";"";"";"There are reports that this address was used in a Phishing scam. Please exercise caution when interacting with it. Reported by ScamSniffer.";"";"Phish / Hack";"phish-hack";"2";"";"1734599538" "0x00000000020e203eb8fc5d0724e7c93e6b002c71";"Fake_Phishing119146";"";"";"";"Warning! This addre ``` # Resolve an ENS Name to an Address Source: https://docs.etherscan.io/api-reference/endpoint/forwardresolve openapi/api-reference/endpoint/forwardresolve.json GET /v2/api Resolves an ENS name or onchain subdomain, such as etherscan.eth or gm.etherscan.eth, to its address. Ethereum > [!WARNING] > > This endpoint is throttled to **1 call/second** on the Free API tier. > [!NOTE] > > Results are cached for up to 5 minutes. Onchain name changes reflect automatically after this period. > [!NOTE] > > Names that require offchain resolution (EIP-3668: CCIP Read and ENSIP-10: Wildcard Resolution), such as `jesse.base.eth`, are not supported. ```json Example response theme={null} { "status": "1", "message": "OK", "result": "0xcefcc00a025d6bcc259d082c883144c36c17903f" } ``` # Get Address Funded By Source: https://docs.etherscan.io/api-reference/endpoint/fundedby openapi/api-reference/endpoint/fundedby.json GET /v2/api Retrieves the address and transaction that first funded a specific EOA address, useful for tracing fund origins. Not available to contract addresses. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above > [!WARNING] > > This endpoint is throttled to **2 calls/second** regardless of API Pro tier. ```json Example response theme={null} { "status": "1", "message": "OK", "result": { "block": 53708500, "timeStamp": "1708349932", "fundingAddress": "0x6969174fd72466430a46e18234d0b530c9fd5f49", "fundingTxn": "0xbc0ca4a67eb1555920552246409626cd60df01314dd2bcdb99718b506d9c9946", "value": "1000000000000000" } } ``` # Get Estimation of Confirmation Time Source: https://docs.etherscan.io/api-reference/endpoint/gasestimate openapi/api-reference/endpoint/gasestimate.json GET /v2/api Estimate confirmation time based on a provided gas price. ```json Example response theme={null} { "status": "1", "message": "OK", "result": "45" } ``` # Get Gas Oracle Source: https://docs.etherscan.io/api-reference/endpoint/gasoracle openapi/api-reference/endpoint/gasoracle.json GET /v2/api Get current gas price recommendations. Ethereum MainnetBNB Smart Chain MainnetPolygon MainnetCelo MainnetGnosisLinea Mainnet ```json Example response theme={null} { "status": "1", "message": "OK", "result": { "LastBlock": "23467872", "SafeGasPrice": "0.496839934", "ProposeGasPrice": "0.496840168", "FastGasPrice": "0.55411917", "suggestBaseFee": "0.496839934", "gasUsedRatio": "0.405942555555556,0.784013777777778,0.502624148542588,0.719479644444444,0.45673524947105" } } ``` # Get Contract ABI Source: https://docs.etherscan.io/api-reference/endpoint/getabi openapi/api-reference/endpoint/getabi.json GET /v2/api Retrieve the ABI for a verified smart contract. ```json Example response theme={null} { "status": "1", "message": "OK", "result": "[{\"constant\":false,\"inputs\":[{\"name\":\"_c\",\"type\":\"string\"}],\"name\":\"enterValue\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"test\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]" } ``` # Get Metadata for an Address Source: https://docs.etherscan.io/api-reference/endpoint/getaddresstag openapi/api-reference/endpoint/getaddresstag.json GET /v2/api Get nametags and metadata for the specified address. > [!NOTE] > > This is a PRO+ endpoint and is available exclusively to the [Pro Plus plan](https://etherscan.io/api/pricing). > [!WARNING] > > This endpoint is throttled to **2 calls/second** regardless of API Pro tier. ```json Example response theme={null} { "status":"1", "message":"OK", "result":[ { "address":"0xa9d1e08c7793af67e9d92fe308d5697fb81d3e43", "nametag":"Coinbase 10", "internal_nametag":"", "url":"https://coinbase.com", "shortdescription":"", "notes_1":"", "notes_2":"", "labels":[ "Coinbase", "Exchange" ], "labels_slug":[ "coinbase", "exchange" ], "reputation":0, "other_attributes":[ ], "lastupdatedtimestamp":1721899658 } ] } ``` # Get API Usage Source: https://docs.etherscan.io/api-reference/endpoint/getapilimit openapi/api-reference/endpoint/getapilimit.json GET /v2/api Returns your current API credit usage and limit for the interval. ```json Example response theme={null} { "status": "1", "message": "OK", "result": { "creditsUsed": 22, "creditsAvailable": 1499978, "creditLimit": 1500000, "limitInterval": "daily", "intervalExpiryTimespan": "08:42:34" } } ``` # Get Estimated Block Countdown by Block Number Source: https://docs.etherscan.io/api-reference/endpoint/getblockcountdown openapi/api-reference/endpoint/getblockcountdown.json GET /v2/api Retrieves the estimated time, in seconds, until a specified block is mined. ```json Example response theme={null} { "status":"1", "message":"OK", "result":{ "CurrentBlock":"25788160", "CountdownBlock":"25789159", "RemainingBlock":"999", "EstimateTimeInSec":"12003.0" } } ``` # Get Block Number by Timestamp Source: https://docs.etherscan.io/api-reference/endpoint/getblocknobytime openapi/api-reference/endpoint/getblocknobytime.json GET /v2/api Retrieves the block number mined at a specific timestamp. ```json Example response theme={null} { "status": "1", "message": "OK", "result": "9251482" } ``` # Get Block and Uncle Rewards by Block Number Source: https://docs.etherscan.io/api-reference/endpoint/getblockreward openapi/api-reference/endpoint/getblockreward.json GET /v2/api Retrieves block rewards along with associated Uncle block rewards. ```json Example response theme={null} { "status": "1", "message": "OK", "result": { "blockNumber": "2165403", "timeStamp": "1472533979", "blockMiner": "0x13a06d3dfe21e0db5c016c03ea7d2509f7f8d1e3", "blockReward": "5314181600000000000", "uncles": [ { "miner": "0xbcdfc35b86bedf72f0cda046a3c16829a2ef41d1", "unclePosition": "0", "blockreward": "3750000000000000000" }, { "miner": "0x0d0c9855c722ff0c78f21e43aa275a5b8ea60dce", "unclePosition": "1", "blockreward": "3750000000000000000" } ], "uncleInclusionReward": "312500000000000000" } } ``` # Get Block Transaction Counts by Block Number Source: https://docs.etherscan.io/api-reference/endpoint/getblocktxnscount openapi/api-reference/endpoint/getblocktxnscount.json GET /v2/api Retrieves transaction counts for a specified Ethereum block. Ethereum ```json Example response theme={null} { "status": "1", "message": "OK", "result": { "block": 24884529, "txsCount": 87, "internalTxsCount": 55, "erc20TxsCount": 103, "erc721TxsCount": 1, "erc1155TxsCount": 0 } } ``` # Get Contract Creator and Creation Tx Hash Source: https://docs.etherscan.io/api-reference/endpoint/getcontractcreation openapi/api-reference/endpoint/getcontractcreation.json GET /v2/api Retrieve a contract's deployer address and creation transaction. ```json Example response theme={null} { "status":"1", "message":"OK", "result":[ { "contractAddress":"0xdac17f958d2ee523a2206206994597c13d831ec7", "contractCreator":"0x36928500bc1dcd7af6a2b4008875cc336b927d57", "txHash":"0x2f1c5c2b44f771e942a8506148e256f94f1a464babc938ae0690c6e34cd79190", "blockNumber":"4634748", "timestamp":"1511829681", "contractFactory":"", "creationBytecode":"0x606060405260008060146101000a81548160ff0219169083151502179055506000600355600060045534156200003457600080fd5b60405162002d7c38038062002d7c83398101604052808051906020019091908051820191906020018051820191906020018051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550836001819055508260079080519060200190620000cf9291906200017a565b508160089080519060200190620000e89291906200017a565b508060098190555083600260008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600a60146101000a81548160ff0219169083151502179055505050505062000229565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001bd57805160ff1916838001178555620001ee565b82800160010185558215620001ee579182015b82811115620001ed578251825591602001919060" } ] } ``` # Get Deposit Transactions by Address Source: https://docs.etherscan.io/api-reference/endpoint/getdeposittxs openapi/api-reference/endpoint/getdeposittxs.json GET /v2/api Retrieves all deposit transactions made by a specified address. Arbitrum One MainnetArbitrum Sepolia TestnetOP MainnetOP Sepolia Testnet ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "blockNumber": "132992375", "timeStamp": "1741583527", "blockHash": "0xef2ff158c8b12be842429f4a8cde58bfa6a389c5274b46f8a1dd2ee7f958ca4d", "hash": "0x64ccd0cfa9f333578b36227492f3bc7f5f3ec4bfa82cdc46f82884db680d8e5b", "nonce": "520502", "from": "0x36bde71c97b33cc4729cf772ae268934f7ab70b2", "to": "0x4200000000000000000000000000000000000007", "value": "598200000000000", "gas": "490798", "gasPrice": "0", "input": "0xd764ad0b000100000000000000000000000000000000000000000000000000000002802a00000000000000000000000099c9fc46f92e8a1c0dec1b1747d010903e884be10000000000000000000000004200000000000000000000000000000000000001000000000000000000000000000000000000000000000000000002200f4a81300000000000000000000000000000000000000000000000000000000000000030d4000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000a41635f5fd0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae00000000000000000000000080f3950a4d371c43360f292a4170624abd9eed03000000000000000000000000000000000000000000000000000002200f4a813000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "cumulativeGasUsed": "169497", "gasUsed": "117234", "isError": "0", "errDescription": "", "txreceipt_status": "1", "queueIndex": "999999", "L1transactionhash": "0x303bd05c47e62e1243a33210e535ebc70a7567e53a9972fbdef52ee5bcda5acb", "L1TxOrigin": "0x36bde71c97b33cc4729cf772ae268934f7ab70b2", "tokenAddress": "ETH", "tokenSentFrom": "", "tokenSentTo": "0x80f3950a4d371c43360f292a4170624abd9eed03", "tokenValue": "598200000000000" }, { "blockNumber": "134878032", "timeStamp": "1745354841", "blockHash": "0xd1a47b46e3aaed25c594507cf9df59c9ba7a25542fabed7e2b646efe8b6944f9", "hash": "0xb7cbf6eb529f60b28c6707a52e17c84e75bbe0a968e668a29e5a7550bfb00e92", "nonce": "527247", "from": "0x36bde71c97b33cc4729cf772ae268934f7ab70b2", "to": "0x4200000000000000000000000000000000000007", "value": "1195403000000000", "gas": "490798", "gasPrice": "0", "input": "0xd764ad0b0001000000000000000000000000000000000000000000000000000000029a8300000000000000000000000099c9fc46f92e8a1c0dec1b1747d010903e884be100000000000000000000000042000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000043f36732dae00000000000000000000000000000000000000000000000000000000000000030d4000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000a41635f5fd0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae00000000000000000000000080f3950a4d371c43360f292a4170624abd9eed030000000000000000000000000000000000000000000000000000043f36732dae000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "cumulativeGasUsed": "147297", "gasUsed": "92234", "isError": "0", "errDescription": "", "txreceipt_status": "1", "queueIndex": "999999", "L1transactionhash": "0xdca5992b97fcb3d2aa4d06f8c47c0786c0007009d15445712931ee0998f94caa", "L1TxOrigin": "0x36bde71c97b33cc4729cf772ae268934f7ab70b2", "tokenAddress": "ETH", "tokenSentFrom": "", "tokenSentTo": "0x80f3950a4d371c43360f292a4170624abd9eed03", "tokenValue": "1195403000000000" } ] } ``` # Export Label Master List (Legacy) Source: https://docs.etherscan.io/api-reference/endpoint/getlabelmasterlist openapi/api-reference/endpoint/getlabelmasterlist.json GET /v1/api.ashx Retrieve the master list of address labels and categories in Etherscan metadata (Legacy). > [!WARNING] > > This is the legacy version, maintained for existing integrations. For new projects, use the [multichain version](/api-reference/endpoint/getlabelmasterlist-v2). > [!NOTE] > > This is a PRO endpoint, available to the [Enterprise tier](https://etherscan.io/apis) ```json Example response theme={null} { "status":"1", "message":"OK", "result":[ { "labelname":"Axelar", "labelslug":"axelar", "shortdescription":"Axelar delivers secure cross-chain communication for Web3. Its infrastructure enables dApp users to interact with any asset or application, on any chain, with one click. Axelar is an overlay network, delivering Turing-complete message passing via proof-of-stake and permissionless protocols.", "notes":"", "lastupdatedtimestamp":1712897117 }, { "labelname":"Binance", "labelslug":"binance", "shortdescription":"Binance is one of the world’s leading blockchain ecosystems, with a product suite that includes the largest digital asset exchange.", "notes":"", "lastupdatedtimestamp":1759922816 } ] } ``` # Export Label Master List Source: https://docs.etherscan.io/api-reference/endpoint/getlabelmasterlist-v2 openapi/api-reference/endpoint/getlabelmasterlist-v2.json GET /v2/api Generates a temporary download URL for the latest label master list (JSON file). > [!NOTE] > > Metadata Exports are available exclusively to [Enterprise plan](https://etherscan.io/api/pricing) customers. [Contact Sales](https://etherscan.io/api/pricing#contactSection) to explore Enterprise access. > [!TIP] > > The `result` is a temporary download link, not the data itself. Fetch that URL within 5 minutes to download the label master list (JSON). Use the label slugs it contains as the `label` value in [Export Address Tags](/api-reference/endpoint/exportaddresstags-v2). ```json Example response theme={null} { "status": "1", "message": "OK", "result": "https://metadata-export.etherscan.io/1/labelmasterlist_latest.json?X-Amz-Expires=300&response-content-disposition=attachment%3B%20filename%3Dexport-labelmasterlist_latest.json&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0056c267039aefa0000000005/20260305/us-east-005/s3/aws4_request&X-Amz-Date=20260305T082933Z&X-Amz-SignedHeaders=host&X-Amz-Signature=a795d41a87821a3224b3d9e56819f0fdc5b869c43278c6c96773966798a80f71" } ``` ```json Downloaded JSON theme={null} { "status":"1", "message":"OK", "result":[ { "labelname":"Axelar", "labelslug":"axelar", "shortdescription":"Axelar delivers secure cross-chain communication for Web3. Its infrastructure enables dApp users to interact with any asset or application, on any chain, with one click. Axelar is an overlay network, delivering Turing-complete message passing via proof-of-stake and permissionless protocols.", "notes":"", "lastupdatedtimestamp":1712897117 }, { "labelname":"Binance", "labelslug":"binance", "shortdescription":"Binance is one of the world’s leading blockchain ecosystems, with a product suite that includes the largest digital asset exchange.", "notes":"", "lastupdatedtimestamp":1759922816 } ] } ``` # Get Event Logs by Address Source: https://docs.etherscan.io/api-reference/endpoint/getlogs openapi/api-reference/endpoint/getlogs.json GET /v2/api Retrieves event logs from a specific address, with optional block range filtering. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "address": "0xbd3531da5cf5857e7cfaa92426877b022e612cf8", "topics": [ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "0x0000000000000000000000000000000000000000000000000000000000000000", "0x000000000000000000000000c45a4b3b698f21f88687548e7f5a80df8b99d93d", "0x00000000000000000000000000000000000000000000000000000000000000b5" ], "data": "0x", "blockNumber": "0xc48174", "blockHash": "0x837e109ab8b1b40ec7d1032bff82397325d85e719b97d900fa0d9aa9745b2c27", "timeStamp": "0x60f9ce56", "gasPrice": "0x2e90edd000", "gasUsed": "0x247205", "logIndex": "0x", "transactionHash": "0x4ffd22d986913d33927a392fe4319bcd2b62f3afe1c15a2c59f77fc2cc4c20a9", "transactionIndex": "0x" }, { "address": "0xbd3531da5cf5857e7cfaa92426877b022e612cf8", "topics": [ "0x645f26e653c951cec836533f8fe0616d301c20a17153debc17d7c3dbe4f32b28", "0x00000000000000000000000000000000000000000000000000000000000000b5" ], "data": "0x", "blockNumber": "0xc48174", "blockHash": "0x837e109ab8b1b40ec7d1032bff82397325d85e719b97d900fa0d9aa9745b2c27", "timeStamp": "0x60f9ce56", "gasPrice": "0x2e90edd000", "gasUsed": "0x247205", "logIndex": "0x1", "transactionHash": "0x4ffd22d986913d33927a392fe4319bcd2b62f3afe1c15a2c59f77fc2cc4c20a9", "transactionIndex": "0x" } ] } ``` # Get Event Logs by Address and Topics Source: https://docs.etherscan.io/api-reference/endpoint/getlogs-address-topics openapi/api-reference/endpoint/getlogs-address-topics.json GET /v2/api Retrieves event logs from a specified address, filtered by topics and block range. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "address": "0x59728544b08ab483533076417fbbb2fd0b17ce3a", "topics": [ "0x27c4f0403323142b599832f26acd21c74a9e5b809f2215726e244a4ac588cd7d", "0x00000000000000000000000023581767a106ae21c074b2276d25e5c3e136a68b", "0x000000000000000000000000000000000000000000000000000000000000236d", "0x000000000000000000000000c8a5592031f93debea5d9e67a396944ee01bb2ca" ], "data": "0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000f207539952d0000", "blockNumber": "0xe60262", "blockHash": "0xb40d77b4ffba5ae2a38cbc87a65a6c9b56f9af5d8bf320aa1f1b6af00b850778", "timeStamp": "0x62c26caf", "gasPrice": "0x5e2d742c9", "gasUsed": "0xfb7f8", "logIndex": "0x4b", "transactionHash": "0x26fe1a0a403fd44ef11ee72f3b4ceff590b6ea533684cb279cb4242be463304c", "transactionIndex": "0x39" }, { "address": "0x59728544b08ab483533076417fbbb2fd0b17ce3a", "topics": [ "0x27c4f0403323142b599832f26acd21c74a9e5b809f2215726e244a4ac588cd7d", "0x00000000000000000000000023581767a106ae21c074b2276d25e5c3e136a68b", "0x0000000000000000000000000000000000000000000000000000000000002261", "0x000000000000000000000000c8a5592031f93debea5d9e67a396944ee01bb2ca" ], "data": "0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000de0b6b3a7640000", "blockNumber": "0xe6035b", "blockHash": "0x5a46aeca5eaf8af1fbf56439b12dfea8fb27d18ca31020cc723271e119cffc04", "timeStamp": "0x62c27ab1", "gasPrice": "0x27e523173", "gasUsed": "0x3b86e", "logIndex": "0x1d7", "transactionHash": "0x3a299413cf2c91e376e542efcf3fc308c562da79af6e992401217cc6208c7f74", "transactionIndex": "0x92" } ] } ``` # Get Event Logs by Topics Source: https://docs.etherscan.io/api-reference/endpoint/getlogs-topics openapi/api-reference/endpoint/getlogs-topics.json GET /v2/api Retrieves event logs within a specified block range, filtered by topics. > [!NOTE] > > Provide at least one of `topic0`, `topic1`, `topic2`, or `topic3`. A request with no topic returns an empty result shown as `"result": "Error!"`. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "address": "0xbd3531da5cf5857e7cfaa92426877b022e612cf8", "topics": [ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "0x0000000000000000000000000000000000000000000000000000000000000000", "0x000000000000000000000000c45a4b3b698f21f88687548e7f5a80df8b99d93d", "0x00000000000000000000000000000000000000000000000000000000000000b5" ], "data": "0x", "blockNumber": "0xc48174", "blockHash": "0x837e109ab8b1b40ec7d1032bff82397325d85e719b97d900fa0d9aa9745b2c27", "timeStamp": "0x60f9ce56", "gasPrice": "0x2e90edd000", "gasUsed": "0x247205", "logIndex": "0x", "transactionHash": "0x4ffd22d986913d33927a392fe4319bcd2b62f3afe1c15a2c59f77fc2cc4c20a9", "transactionIndex": "0x" } ] } ``` # Get Blocks Validated by Address Source: https://docs.etherscan.io/api-reference/endpoint/getminedblocks openapi/api-reference/endpoint/getminedblocks.json GET /v2/api Retrieves the list of blocks validated by a specified address. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "blockNumber": "20226140", "timeStamp": "1720011623", "blockReward": "33424103001400554" } ] } ``` # Get Contract Source Code Source: https://docs.etherscan.io/api-reference/endpoint/getsourcecode openapi/api-reference/endpoint/getsourcecode.json GET /v2/api Retrieve the source code for a verified smart contract. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "SourceCode": "pragma solidity 0.4.26;\r\n\r\ncontract Test12345 {\r\n string public test;\r\n \r\n function enterValue(string _c) {\r\n test = _c;\r\n }\r\n}", "ABI": "[{\"constant\":false,\"inputs\":[{\"name\":\"_c\",\"type\":\"string\"}],\"name\":\"enterValue\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"test\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]", "ContractName": "Test12345", "CompilerVersion": "v0.4.26+commit.4563c3fc", "CompilerType": "solc", "OptimizationUsed": "1", "Runs": "200", "ConstructorArguments": "", "EVMVersion": "Default", "Library": "", "ContractFileName": "", "LicenseType": "None", "Proxy": "0", "Implementation": "", "SwarmSource": "bzzr://f6b932198e10e83a6c872406a4252cf5eea48f37bac9a33085eba887820370cf", "SimilarMatch": "0x60810f4d8a618edb533a168e790ab6c09b0e7707" } ] } ``` # Check Contract Execution Status Source: https://docs.etherscan.io/api-reference/endpoint/getstatus openapi/api-reference/endpoint/getstatus.json GET /v2/api Retrieves the current status and execution result of a specific transaction. ```json Example response theme={null} { "status": "1", "message": "OK", "result": { "isError": "1", "errDescription": "Bad jump destination" } } ``` # Check Transaction Receipt Status Source: https://docs.etherscan.io/api-reference/endpoint/gettxreceiptstatus openapi/api-reference/endpoint/gettxreceiptstatus.json GET /v2/api Retrieves the execution status of a specific transaction using its transaction hash. ```json Example response theme={null} { "status": "1", "message": "OK", "result": { "status": "1" } } ``` # Get Withdrawal Transactions by Address Source: https://docs.etherscan.io/api-reference/endpoint/getwithdrawaltxs openapi/api-reference/endpoint/getwithdrawaltxs.json GET /v2/api Retrieves all withdrawal transactions made by a specified address. Arbitrum One MainnetArbitrum Sepolia TestnetOP MainnetOP Sepolia Testnet ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "blockNumber": "496234531", "timeStamp": "1787159092", "blockHash": "0x32e87bebfa7024c53c2bc7b1050d52cbb69caa7ad84b08f10c66726ee6026d29", "hash": "0x6ed77f95f0f96483a053d3053991d0eee9eb4d224508bb9f96962bda99c47f95", "nonce": "259", "from": "0x6d3ff6a8206a40d5a0089aab8bc8ebe8e2d676c8", "to": "0xffde4b34628df0c87a3a31d68c178a22ec62c204", "value": "20000000000000", "gas": "13595520", "gasPrice": "32178000", "input": "0x43f4e6ba0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000508000000000000000000000000000000000000000000000000000000000000055a000000000000000000000000000000000000000000000000000000000000055c00000000000000000000000000000000000000000000000000000000000005ae000000000000000000000000000000000000000000000000000000000000076000000000000000000000000000000000000000000000000000000f830fc71e00000000000000000000000000000000000000000000000000000000000000001b9000000000000000000000000000000000000000000000056bc75e2d631000000000000000000000000000000000000000000000000000015af1d78b58c40000000000000000000000000000000000000000000000000000000000000000000d3000000000000000000000000c6962004f452be9203591991d15f6b388e09e8d000000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000ffffffffffffffffffffffffffffffff0000000000000000000000002f5e87c9312fa29aed5c179e456625d79015299c00000000000", "cumulativeGasUsed": "10492249", "gasUsed": "9425167", "isError": "0", "errDescription": "", "txreceipt_status": "1", "status": "Waiting", "L1transactionhash": "", "tokenAddress": "0xfa7f8980b0f1e64a2062791cc3b0871572f1f7f0", "tokenValue": "2000000000000000000000" } ] } ``` # Get Total Nodes Count Source: https://docs.etherscan.io/api-reference/endpoint/nodecount openapi/api-reference/endpoint/nodecount.json GET /v2/api Retrieves the total count of discoverable Ethereum nodes. ```json Example response theme={null} { "status": "1", "message": "OK", "result": { "UTCDate": "2025-09-25", "TotalNodeCount": "11786" } } ``` # Get Historical Total Nodes Count Source: https://docs.etherscan.io/api-reference/endpoint/nodecounthistory openapi/api-reference/endpoint/nodecounthistory.json GET /v2/api Retrieves the historical daily count of discoverable Ethereum nodes. Ethereum > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "UTCDate": "2026-02-01", "TotalNodeCount": "14161" }, { "UTCDate": "2026-02-02", "TotalNodeCount": "13938" }, { "UTCDate": "2026-02-03", "TotalNodeCount": "13617" } ] } ``` # Get ERC1155 Token Transfers by Address Source: https://docs.etherscan.io/api-reference/endpoint/token1155tx openapi/api-reference/endpoint/token1155tx.json GET /v2/api Retrieves ERC-1155 token transfers, filtered by address and/or token contract. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "blockNumber": "13472395", "timeStamp": "1634973285", "hash": "0x643b15f3ffaad5d38e33e5872b4ebaa7a643eda8b50ffd5331f682934ee65d4d", "nonce": "41", "blockHash": "0xa5da536dfbe8125eb146114e2ee0d0bdef2b20483aacbf30fed6b60f092059e6", "transactionIndex": "100", "gas": "140000", "gasPrice": "52898577246", "gasUsed": "105030", "cumulativeGasUsed": "11739203", "input": "deprecated", "methodId": "0x3e6b214b", "functionName": "", "contractAddress": "0x76be3b62873462d2142405439777e971754e8e77", "from": "0x1e63326a84d2fa207bdfa856da9278a93deba418", "to": "0x83f564d180b58ad9a02a449105568189ee7de8cb", "tokenID": "10371", "tokenValue": "1", "tokenName": "parallel", "tokenSymbol": "LL", "confirmations": "9995266" } ] } ``` # Get ERC20-Token Account Balance for TokenContractAddress Source: https://docs.etherscan.io/api-reference/endpoint/tokenbalance openapi/api-reference/endpoint/tokenbalance.json GET /v2/api Retrieves the current ERC-20 token balance for a specified address. ```json Example response theme={null} { "status": "1", "message": "OK", "result": "135499" } ``` # Get Historical ERC20-Token Account Balance by BlockNo Source: https://docs.etherscan.io/api-reference/endpoint/tokenbalancehistory openapi/api-reference/endpoint/tokenbalancehistory.json GET /v2/api Retrieves the ERC-20 token balance for a specified address at a given block height. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above > [!WARNING] > > This endpoint is throttled to **2 calls/second** regardless of API Pro tier. ```json Example response theme={null} { "status": "1", "message": "OK", "result": "135499" } ``` # Get Token Holder Count by Contract Address Source: https://docs.etherscan.io/api-reference/endpoint/tokenholdercount openapi/api-reference/endpoint/tokenholdercount.json GET /v2/api Retrieves a simple count of ERC-20 token holders. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": "30506" } ``` # Get Token Holder List by Contract Address Source: https://docs.etherscan.io/api-reference/endpoint/tokenholderlist openapi/api-reference/endpoint/tokenholderlist.json GET /v2/api Retrieves the current list of ERC-20 token holders and their token balances. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "TokenHolderAddress": "0xa5b7d615c99f011a22f16f5809890ca6900200a3", "TokenHolderQuantity": "2" }, { "TokenHolderAddress": "0x0412a1d25fbdcabc536603198330021ccb13240b", "TokenHolderQuantity": "3385700" } ] } ``` # Get Token Info by ContractAddress Source: https://docs.etherscan.io/api-reference/endpoint/tokeninfo openapi/api-reference/endpoint/tokeninfo.json GET /v2/api Retrieves project details and social media links for an ERC-20/ERC-721/ERC-1155 token. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above > [!WARNING] > > This endpoint is throttled to **2 calls/second** regardless of API Pro tier. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "contractAddress": "0x0e3a2a1f2146d86a604adc220b4967a898d7fe07", "tokenName": "Gods Unchained Cards", "symbol": "CARD", "divisor": "0", "tokenType": "ERC721", "totalSupply": "6972003", "blueCheckmark": "true", "description": "A TCG on the Ethereum blockchain that uses NFT's to bring real ownership to in-game assets.", "website": "https://godsunchained.com/", "email": "", "blog": "https://medium.com/@fuelgames", "reddit": "https://www.reddit.com/r/GodsUnchained/", "slack": "", "facebook": "https://www.facebook.com/godsunchained/", "twitter": "https://twitter.com/godsunchained", "bitcointalk": "", "github": "", "telegram": "", "wechat": "", "linkedin": "", "discord": "https://discordapp.com/invite/DKGr2pW", "whitepaper": "", "tokenPriceUSD": "0.000000000000000000", "image": "" } ] } ``` # Get ERC721 Token Transfers by Address Source: https://docs.etherscan.io/api-reference/endpoint/tokennfttx openapi/api-reference/endpoint/tokennfttx.json GET /v2/api Retrieves ERC-721 token transfers, filtered by address and/or token contract. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "blockNumber": "4708120", "timeStamp": "1512907118", "hash": "0x031e6968a8de362e4328d60dcc7f72f0d6fc84284c452f63176632177146de66", "nonce": "0", "blockHash": "0x4be19c278bfaead5cb0bc9476fa632e2447f6e6259e0303af210302d22779a24", "from": "0xb1690c08e213a35ed9bab7b318de14420fb57d8c", "contractAddress": "0x06012c8cf97bead5deae237070f9587f8e7a266d", "to": "0x6975be450864c02b4613023c2152ee0743572325", "tokenID": "202106", "tokenName": "CryptoKitties", "tokenSymbol": "CK", "tokenDecimal": "0", "transactionIndex": "81", "gas": "158820", "gasPrice": "40000000000", "gasUsed": "60508", "cumulativeGasUsed": "4880352", "input": "deprecated", "methodId": "0x454a2ab3", "functionName": "bid(uint256 _tokenId)", "confirmations": "18759540" } ] } ``` # Get ERC20-Token TotalSupply by ContractAddress Source: https://docs.etherscan.io/api-reference/endpoint/tokensupply openapi/api-reference/endpoint/tokensupply.json GET /v2/api Returns the amount of an ERC-20 token in circulation. ```json Example response theme={null} { "status": "1", "message": "OK", "result": "21265524714464" } ``` # Get Historical ERC20-Token TotalSupply by ContractAddress & BlockNo Source: https://docs.etherscan.io/api-reference/endpoint/tokensupplyhistory openapi/api-reference/endpoint/tokensupplyhistory.json GET /v2/api Returns the amount of an ERC-20 token in circulation at a certain block height. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above > [!WARNING] > > This endpoint is throttled to **2 calls/second** regardless of API Pro tier. ```json Example response theme={null} { "status": "1", "message": "OK", "result": "21265524714464" } ``` # Get ERC20 Token Transfers by Address Source: https://docs.etherscan.io/api-reference/endpoint/tokentx openapi/api-reference/endpoint/tokentx.json GET /v2/api Retrieves ERC-20 token transfers, filtered by address and/or token contract. ## Token reputation Each transfer includes `statusRep`, a string representing the token's reputation, not the transaction's success or failure. | Value | Reputation | Meaning | | - | - | - | | `"0"` | Unknown | The token's reputation is unknown. | | `"1"` | Neutral | The token is categorized as neutral. This does not guarantee safety. | | `"2"` | Unsafe | The token is categorized as unsafe. | ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "blockNumber": "4730207", "timeStamp": "1513240363", "hash": "0xe8c208398bd5ae8e4c237658580db56a2a94dfa0ca382c99b776fa6e7d31d5b4", "nonce": "406", "blockHash": "0x022c5e6a3d2487a8ccf8946a2ffb74938bf8e5c8a3f6d91b41c56378a96b5c37", "from": "0x642ae78fafbb8032da552d619ad43f1d81e4dd7c", "contractAddress": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2", "to": "0x4e83362442b8d1bec281594cea3050c8eb01311c", "value": "5901522149285533025181", "tokenName": "Maker", "tokenSymbol": "MKR", "tokenDecimal": "18", "statusRep": "1", "transactionIndex": "81", "gas": "940000", "gasPrice": "32010000000", "gasUsed": "77759", "cumulativeGasUsed": "2523379", "input": "deprecated", "methodId": "0xbe040fb0", "functionName": "redeem()", "confirmations": "18737452" } ] } ``` # Get Top Token Holders Source: https://docs.etherscan.io/api-reference/endpoint/topholders openapi/api-reference/endpoint/topholders.json GET /v2/api Returns the list of top holders for a specified ERC-20 token. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above. > [!WARNING] > > This endpoint is throttled to **2 calls/second** regardless of API Pro tier. HyperEVM (999) is not supported yet. ![Token holders](https://mintcdn.com/etherscan/_gIsWVKPgcVhiZQW/images/features/holders.png?fit=max\&auto=format\&n=_gIsWVKPgcVhiZQW\&q=85\&s=9e6457139c74e1173d79e860ae4c9b08) ```json Example response theme={null} { "status": "1", "message": "Ok", "result": [ { "TokenHolderAddress": "0x4da27a545c0c5b758a6ba100e3a049001de870f5", "TokenHolderQuantity": "2696124.3026660371030000", "TokenHolderAddressType": "C" }, { "TokenHolderAddress": "0xa700b4eb416be35b2911fd5dee80678ff64ff6c9", "TokenHolderQuantity": "1650828.8050095955930000", "TokenHolderAddressType": "C" } ] } ``` # Get Normal Transactions By Address Source: https://docs.etherscan.io/api-reference/endpoint/txlist openapi/api-reference/endpoint/txlist.json GET /v2/api Retrieves the transaction history of a specified address, with optional pagination. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "blockNumber": "23467053", "blockHash": "0xf5646226f819fbdd6b2f1cb99de6e5d17da3d876ec166e69f4e9736c8ebf7ab4", "timeStamp": "1759129619", "hash": "0xf9db905d77704596d3600816bc70201586cfeec13bcf576320e2f38d6ca851a0", "nonce": "8", "transactionIndex": "184", "from": "0x2449ecef5012f0a0e153b278ef4fcc9625bc4c78", "to": "0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc", "value": "0", "gas": "73271", "gasPrice": "238744402", "input": "0x5c19a95c0000000000000000000000002449ecef5012f0a0e153b278ef4fcc9625bc4c78", "methodId": "0x5c19a95c", "functionName": "delegate(address to)", "contractAddress": "", "cumulativeGasUsed": "22498564", "txreceipt_status": "1", "gasUsed": "48847", "confirmations": "589", "isError": "0" } ] } ``` # Get Internal Transactions by Address Source: https://docs.etherscan.io/api-reference/endpoint/txlistinternal openapi/api-reference/endpoint/txlistinternal.json GET /v2/api Retrieves the internal transaction history of a specified address, with optional pagination. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "blockNumber": "2535368", "timeStamp": "1477837690", "hash": "0x8a1a9989bda84f80143181a68bc137ecefa64d0d4ebde45dd94fc0cf49e70cb6", "from": "0x20d42f2e99a421147acf198d775395cac2e8b03d", "to": "", "value": "0", "contractAddress": "0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3", "input": "", "type": "create", "gas": "254791", "gasUsed": "46750", "traceId": "0", "isError": "0", "errCode": "" } ] } ``` # Get Internal Transactions by Block Range Source: https://docs.etherscan.io/api-reference/endpoint/txlistinternal-blockrange openapi/api-reference/endpoint/txlistinternal-blockrange.json GET /v2/api Returns internal transactions within a specified block range, with optional pagination. > [!NOTE] > > This is a PRO endpoint, available to the [Standard Plan](/rate-limits) and above ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "blockNumber": "13481773", "timeStamp": "1635100060", "hash": "0x8b440f5ec0e986589517b131c5b75e921f2768b9912f028d2cdb009d759036ab", "from": "0x3909336de913344701c6f096502d26208210b39f", "to": "0xff62dfadca3b5643d0b283571fe154d886580c0c", "value": "1159078546481168231", "contractAddress": "", "input": "", "type": "call", "gas": "101300", "gasUsed": "13898", "traceId": "3", "isError": "0", "errCode": "" } ] } ``` # Get Internal Transactions by Transaction Hash Source: https://docs.etherscan.io/api-reference/endpoint/txlistinternal-txhash openapi/api-reference/endpoint/txlistinternal-txhash.json GET /v2/api Retrieves the list of internal transactions executed within a specific transaction. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "blockNumber": "1743059", "timeStamp": "1466489498", "from": "0x2cac6e4b11d6b58f6d3c1c9d5fe8faa89f60e5a2", "to": "0x66a1c3eaf0f1ffc28d209c0763ed0ca614f3b002", "value": "7106740000000000", "contractAddress": "", "input": "", "type": "call", "gas": "2300", "gasUsed": "0", "isError": "0", "errCode": "" } ] } ``` # Get Plasma Deposits by Address Source: https://docs.etherscan.io/api-reference/endpoint/txnbridge openapi/api-reference/endpoint/txnbridge.json GET /v2/api Retrieves a list of Plasma deposit transactions received by a specified address. Polygon MainnetGnosisBitTorrent Chain Mainnet ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "hash": "0xf645deb2b6fbb8b76ccbcf4bde782e28d3520e8a30e9a568b9b8c526e2fd8434", "blockNumber": "51844560", "timeStamp": "1704181285", "from": "0x0000000000000000000000000000000000000000", "address": "0x4880bd4695a8e59dc527d124085749744b6c988e", "amount": "2341706540000000000", "tokenName": "Polygon Token", "symbol": "POL", "contractAddress": "0x0000000000000000000000000000000000001010", "divisor": "18" } ] } ``` # Get Beacon Chain Withdrawals by Address Source: https://docs.etherscan.io/api-reference/endpoint/txsbeaconwithdrawal openapi/api-reference/endpoint/txsbeaconwithdrawal.json GET /v2/api Retrieves beacon chain withdrawals, optionally filtered by address. ```json Example response theme={null} { "status": "1", "message": "OK", "result": [ { "withdrawalIndex": "13", "validatorIndex": "117823", "address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f", "amount": "3402931175", "blockNumber": "17034877", "timestamp": "1681338599" } ] } ``` # Verify Proxy Contract Source: https://docs.etherscan.io/api-reference/endpoint/verifyproxycontract openapi/api-reference/endpoint/verifyproxycontract.json POST /v2/api Submit a proxy contract for verification. ```json Example response theme={null} { "status": "1", "message": "OK", "result": "a7lpxkm9kpcpicx7daftmjifrfhiuhf5vqqnawhkfhzfrcpnxj" } ``` # Verify Solidity Source Code Source: https://docs.etherscan.io/api-reference/endpoint/verifysourcecode openapi/api-reference/endpoint/verifysourcecode.json POST /v2/api Submit a Solidity source code for verification. ```json Example response theme={null} { "status": "1", "message": "OK", "result": "a7lpxkm9kpcpicx7daftmjifrfhiuhf5vqqnawhkfhzfrcpnxj" } ``` # Verify Stylus Source Code Source: https://docs.etherscan.io/api-reference/endpoint/verifystylus openapi/api-reference/endpoint/verifystylus.json POST /v2/api Submit Stylus source code for verification. Arbitrum One MainnetArbitrum Sepolia Testnet ```json Example response theme={null} { "status": "1", "message": "OK", "result": "a7lpxkm9kpcpicx7daftmjifrfhiuhf5vqqnawhkfhzfrcpnxj" } ``` # Verify Vyper Source Code Source: https://docs.etherscan.io/api-reference/endpoint/verifyvyper openapi/api-reference/endpoint/verifyvyper.json POST /v2/api Submit a Vyper contract for verification. ```json Example response theme={null} { "status": "1", "message": "OK", "result": "a7lpxkm9kpcpicx7daftmjifrfhiuhf5vqqnawhkfhzfrcpnxj" } ``` # Verify zkSync Source Code Source: https://docs.etherscan.io/api-reference/endpoint/verifyzksyncsourcecode openapi/api-reference/endpoint/verifyzksyncsourcecode.json POST /v2/api Submit zkSync source code for verification. ```json Example response theme={null} { "status": "1", "message": "OK", "result": "a7lpxkm9kpcpicx7daftmjifrfhiuhf5vqqnawhkfhzfrcpnxj" } ``` # API Status Source: https://docs.etherscan.io/api-status Check Etherscan API status and rule out issues in your own request when calls fail. If the API is not responding as expected, this page helps you tell an API outage apart from an issue in your own request: > [card] [Etherscan Status](https://status.etherscan.io/) > > Live API uptime and incident history. Check here first. ## Rule out your own request If the status page shows no incident, confirm the problem is not on your side. **1. Confirm the API responds** This returns the latest Ethereum block number. Replace `YourApiKey` and call the endpoint: ``` https://api.etherscan.io/v2/api?chainid=1&module=proxy&action=eth_blockNumber&apikey=YourApiKey ``` A `result` with a block number (in hex) means the API is up and your key is valid. An error under `result` points to your request or key. See [Common error messages](/common-error-messages). **2. Check your usage** Confirm you are within your daily quota with the `getapilimit` endpoint: ``` https://api.etherscan.io/v2/api?module=getapilimit&action=getapilimit&apikey=YourApiKey ``` The response shows the calls allowed and used for the day, so you can tell a rate-limit block from a service issue. ## Still stuck? If calls fail across chains, your key and request are correct, and the status page shows no incident, [contact us](/resources/contact-us). # Prediction Market APIs Source: https://docs.etherscan.io/beta/prediction-market Opt in for beta access to prediction market data APIs such as Polymarket. We're working on indexing trades from prediction markets (Polymarket atm). If you're working on tax, accounting, or analytics, [send us](https://etherscan.io/contactus?id=11) a quick email for beta access! # ChatGPT Plugin Source: https://docs.etherscan.io/build-with-ai/chatgpt-plugin Install the Etherscan plugin in ChatGPT and query live onchain data in chat, with no API key. The Etherscan plugin brings live onchain data into ChatGPT. Install it from ChatGPT's plugin directory, then ask about wallets, transactions, and contracts in plain language. It needs no API key or Etherscan account, and every tool is read-only. ## Get started **1. Install the plugin** Open [Etherscan in ChatGPT's plugin directory](https://chatgpt.com/plugins/plugin_asdk_app_6a9a645c20f4819187369704eae1f1ec), sign in to ChatGPT, and select **Install plugin**. ![The Etherscan plugin in ChatGPT's plugin directory, with the Install plugin button and three starter prompts](https://mintcdn.com/etherscan/R64_c93VXA2DWBFt/images/chatgpt-plugin.png?fit=max\&auto=format\&n=R64_c93VXA2DWBFt\&q=85\&s=13c1b77725eb27b6997d8abdc50c57c6) **2. Ask your first question** Start a new chat and ask in plain language: ```text theme={null} Inspect a verified Ethereum smart contract and its deployment details. 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 ``` In this example, ChatGPT reads the contract's verified source, ABI, and deployment details from Etherscan, then shows the result in an interactive Etherscan card. It explains that this is USDC, a verified upgradeable proxy, with its deployment block, creator, and implementation contract. ![ChatGPT showing an interactive Etherscan card for the USDC contract: contract overview, upgradeable proxy type, and deployment block](https://mintcdn.com/etherscan/R64_c93VXA2DWBFt/images/chatgpt-plugin-ask.png?fit=max\&auto=format\&n=R64_c93VXA2DWBFt\&q=85\&s=e4120ae3cbd7d510aded0d9897fa2a7d) ## What you can ask Ask in plain language. ChatGPT picks the right Etherscan tools for: * Native coin balances and ERC-20, ERC-721, and ERC-1155 token transfers for any address * Normal and internal transaction history * A transaction's details, receipt, and status * Verified contract source code and ABI, plus a contract's creator and creation transaction * Event logs filtered by address and topics * The block at a given time, current gas prices, and the list of supported chains It works across 50+ [supported chains](/supported-chains). Name the chain in your question, such as "on Base" or "on Arbitrum". ## Limits The plugin uses the keyless [Etherscan MCP](/build-with-ai/mcp) server: * **16 read-only tools.** The PRO tools are not included: token holdings, token info, top holders, funding source, and address labels. * **Rate limited.** Its limits are separate from API plans. Need the PRO tools or higher limits? Set up the Etherscan MCP server with your own API key in Codex instead. It includes all 21 tools and uses your API plan's limits. See [Etherscan MCP](/build-with-ai/mcp) for setup. ## What the plugin installs The plugin installs two parts: * **The Etherscan app:** the connection to Etherscan's tools. * **The `etherscan` skill:** instructions that guide how ChatGPT uses those tools. It calls the narrowest tool for your question, shows results in an Etherscan card unless you ask for plain text, and keeps exact addresses, hashes, and amounts. It never invents labels, identities, or risk scores that Etherscan did not return. If you don't name a chain, the skill uses Ethereum Mainnet and says so. Name the chain in your question to query another one. ## Good to know * **Read-only.** Every tool reads public onchain data. Nothing signs or sends a transaction. * **Verify what matters.** Results keep exact addresses, hashes, and amounts, so you can check them on Etherscan. * **Chat context.** When the plugin is connected, ChatGPT may share relevant chats and memories with it to answer your requests. See OpenAI's [apps in ChatGPT](https://help.openai.com/en/articles/11487775-apps-in-chatgpt) guide and Etherscan's [privacy policy](https://etherscan.io/privacypolicy). # Claude Connector Source: https://docs.etherscan.io/build-with-ai/claude-connector Add the Etherscan connector to Claude and query live onchain data in chat, with no API key. The Etherscan connector brings live onchain data into Claude. Add it from Claude's connector directory, then ask about wallets, transactions, and contracts in plain language. It needs no API key or Etherscan account, and every tool is read-only. ## Get started **1. Add the connector** Open [Etherscan in Claude's connector directory](https://claude.ai/directory/etherscan), sign in to Claude, and select **Connect to Claude**. ![The Etherscan connector in Claude's connector directory, with the Connect to Claude button](https://mintcdn.com/etherscan/R64_c93VXA2DWBFt/images/claude-connector.webp?fit=max\&auto=format\&n=R64_c93VXA2DWBFt\&q=85\&s=bd907447eebca7e374ed7390f59ea318) **2. Ask your first question** Start a new chat and ask in plain language: ```text theme={null} Inspect a verified Ethereum smart contract and its deployment details. 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 ``` In this example, Claude calls three Etherscan tools: * `get_contract_source` for the verified source code and metadata * `get_contract_creation` for the deployer and creation transaction * `get_contract_abi` for the contract's ABI It then explains that this is USDC, a verified upgradeable proxy, with its deployment details and current implementation. ![Claude using the Etherscan connector to inspect the USDC contract: proxy name, compiler, deployer, creation transaction, and deployment date](https://mintcdn.com/etherscan/R64_c93VXA2DWBFt/images/claude-connector-ask.png?fit=max\&auto=format\&n=R64_c93VXA2DWBFt\&q=85\&s=7d7538eefb60bf18e386ee1679de8b16) ## What you can ask Ask in plain language. Claude picks the right Etherscan tools for: * Native coin balances and ERC-20, ERC-721, and ERC-1155 token transfers for any address * Normal and internal transaction history * A transaction's details, receipt, and status * Verified contract source code and ABI, plus a contract's creator and creation transaction * Event logs filtered by address and topics * The block at a given time, current gas prices, and the list of supported chains It works across 50+ [supported chains](/supported-chains). Name the chain in your question, such as "on Base" or "on Arbitrum". Results can also appear as an interactive Etherscan card. ## Limits The connector uses the keyless [Etherscan MCP](/build-with-ai/mcp) server: * **16 read-only tools.** The PRO tools are not included: token holdings, token info, top holders, funding source, and address labels. * **Rate limited.** Its limits are separate from API plans. Need the PRO tools or higher limits? Set up the Etherscan MCP server with your own API key in Claude Desktop or Claude Code instead. It includes all 21 tools and uses your API plan's limits. See [Etherscan MCP](/build-with-ai/mcp) for setup. ## Good to know * **Read-only.** Every tool reads public onchain data. Nothing signs or sends a transaction. * **Verify what matters.** Results keep exact addresses, hashes, and amounts, so you can check them on Etherscan. * **Guard against prompt injection.** Be cautious when combining Etherscan with other connectors in the same chat. # Etherscan CLI Source: https://docs.etherscan.io/build-with-ai/cli Query the Etherscan API from the terminal, scripts, and CI, with structured output for agents. Explore endpoints interactively or script them across every [supported chain](/supported-chains) by name or ID, with clean JSON by default (or tables and CSV for people) across accounts, contracts, tokens, logs, gas, stats, and name tags. ![The Etherscan CLI interactive explorer (etherscan tui), listing the Account module endpoints](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/cli-tui.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=13ff605d9b4aa4ab2ac02dbcf269b695) [GitHub →](https://github.com/etherscan/etherscan-cli) | [Command reference →](#command-reference) ## Get started **1. Install** ```bash Homebrew (macOS, Linux) theme={null} brew install etherscan/etherscan-cli/etherscan ``` ```bash npm (macOS, Linux, Windows) theme={null} npm install -g @etherscan/cli # Or run without installing npx @etherscan/cli version ``` ```bash Script (macOS, Linux) theme={null} curl -fsSL https://raw.githubusercontent.com/etherscan/etherscan-cli/master/scripts/install.sh | sh ``` ```powershell Windows theme={null} # PowerShell irm https://raw.githubusercontent.com/etherscan/etherscan-cli/master/scripts/install.ps1 | iex # Command Prompt powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/etherscan/etherscan-cli/master/scripts/install.ps1 | iex" ``` ```bash Go theme={null} # Requires Go 1.25+; ensure GOBIN (or GOPATH/bin) is on your PATH go install github.com/etherscan/etherscan-cli/cmd/etherscan@latest ``` Then verify the install: ```bash theme={null} etherscan version ``` Upgrade any time with: ```bash theme={null} etherscan update ``` Prebuilt binaries for your operating system are also on the [releases page](https://github.com/etherscan/etherscan-cli/releases). **2. Authenticate** First, [create a free API key](/set-up-your-api-key) if you do not have one. Then save it locally and confirm the active identity: ```bash theme={null} etherscan login etherscan whoami ``` **3. Run your first commands** Get a native balance (JSON by default): ```bash theme={null} etherscan account balance 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 ``` Run the same query on another chain, by name or chain ID: ```bash theme={null} etherscan --chain arbitrum account balance 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 ``` List every supported chain: ```bash theme={null} etherscan chains ``` Or open the full-screen interactive explorer: ```bash theme={null} etherscan tui ``` ## Command reference Commands follow `etherscan `, mirroring the API. JSON is the default output; switch it with `-o table` or `-o csv`, use `--compact` to strip whitespace, and `--all` (bounded by `--max-pages`) to page through list endpoints. | Module | Covers | | - | - | | `account` | Balances, transactions, transfers, funding | | `contract` | ABI, source, creation, verification | | `transaction` | Execution and receipt status | | `block` | Rewards, counts, timestamps | | `gastracker` | Gas oracle and confirmation estimates | | `logs` | Event logs | | `stats` | Supply, price, and daily network metrics | | `token` | Supply, holders, and token metadata | | `proxy` | JSON-RPC-compatible calls | For a command's options, run: ```bash theme={null} etherscan --help ``` The full flag reference lives in the [README](https://github.com/etherscan/etherscan-cli#output-and-pagination). ## Practical workflows Common tasks and the commands you would run for each. ### Follow wallet activity Recent normal transactions: ```bash theme={null} etherscan account txlist 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 --page 1 --offset 10 ``` ERC-20 transfers as a readable table instead of the default JSON: ```bash theme={null} etherscan account tokentx 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 -o table ``` Collect multiple pages for analysis: ```bash theme={null} etherscan account txlist 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 --all --max-pages 50 -o csv ``` ### Inspect a smart contract WETH contract ABI: ```bash theme={null} etherscan contract getabi 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 ``` Verified source metadata: ```bash theme={null} etherscan contract getsourcecode 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 ``` ### Switch chains Chain names and numeric IDs both work: ```bash theme={null} etherscan --chain arbitrum gastracker oracle ``` ```bash theme={null} etherscan --chain 42161 account balance 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 ``` See every chain built into this release: ```bash theme={null} etherscan chains ``` ### Build scripts and agent workflows Clean JSON for jq, Python, or an AI agent: ```bash theme={null} etherscan account txlist 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 --compact | jq '.[0]' ``` CSV for spreadsheets and data pipelines: ```bash theme={null} etherscan account tokentx 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 -o csv > token-transfers.csv ``` # Build with AI Source: https://docs.etherscan.io/build-with-ai/introduction Connect AI agents and coding tools to the Etherscan API across 50+ chains, with MCP, a CLI, and skills. Give your AI agents and coding assistants direct access to onchain data through the same API that powers etherscan.io, across 50+ [supported chains](/supported-chains). New to the API? [Create an API key](/set-up-your-api-key) to get started. Chain availability and endpoint access depend on your [API plan](https://etherscan.io/api/pricing). ![Build with AI: connect AI agents to the Etherscan API](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/build-with-ai.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=4e798ad9ebe6c9a75d92bb70a7b9d0c1) ## Core tools > [card] [Etherscan MCP](/build-with-ai/mcp) > > Tool-based, authenticated API access for chat agents like Claude and ChatGPT. > [card] [Etherscan CLI](/build-with-ai/cli) > > Query the API from the terminal, scripts, and CI, with structured output. > [card] [Etherscan Skills](/build-with-ai/skills) > > Installable agent skills that teach agents to work with onchain data through Etherscan. > [card] [Etherscan Flow](/build-with-ai/skills/etherscan-flow) > > A skill to trace, verify, and visualize onchain money flows into a case file. ## Use in AI apps Add Etherscan to a chat app in one click, with no API key. > [card] [ChatGPT Plugin](/build-with-ai/chatgpt-plugin) > > Install the Etherscan plugin from ChatGPT's plugin directory. > [card] [Claude Connector](/build-with-ai/claude-connector) > > Add the Etherscan connector from Claude's connector directory. ## Machine-readable docs Point an agent straight at the docs: load [`llms.txt`](https://docs.etherscan.io/llms.txt) for the index or [`llms-full.txt`](https://docs.etherscan.io/llms-full.txt) for the full export, or append `.md` to any page URL. For an agent that searches as it works, connect the [Docs MCP](/build-with-ai/docs-mcp) to query these docs directly over MCP. # Etherscan MCP Source: https://docs.etherscan.io/build-with-ai/mcp Connect AI agents to live Etherscan API data through the Model Context Protocol, with or without an API key. The Etherscan MCP server connects AI agents to live onchain data across 50+ [supported chains](/supported-chains), over [MCP](https://modelcontextprotocol.io). Connect it to a client like Claude Desktop, Claude Code, or Codex, then ask in plain language and get answers grounded in real Etherscan API responses. ![The Etherscan MCP](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/mcp.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=fdb039d30d49a743ca0eae4bd7f5d72b) > [!TIP] > > One connection covers every chain, just pass the `chainid`. Ask about Arbitrum and the agent uses `chainid=42161`. See [Supported chains](/supported-chains) for the full list. > [!WARNING] > > Etherscan runs two official MCP servers: `https://mcp.etherscan.io/mcp` and `https://mcp-keyless.etherscan.io/mcp`. Listings on MCP marketplaces or directories that call themselves "Etherscan MCP" are unofficial and unaffiliated with Etherscan. Do not paste your API key into them. ## Connection details Etherscan runs two servers, both over the Streamable HTTP transport. The authenticated server uses your API key and has every tool. The keyless server needs no API key and has limited tools and rate limits. | | Authenticated server | Keyless server | | - | - | - | | **URL** | `https://mcp.etherscan.io/mcp` | `https://mcp-keyless.etherscan.io/mcp` | | **Authentication** | `Authorization: Bearer ` | None | | **Tools** | All 21 | 16 of 21, no PRO tools (see [Tools](#tools)) | | **Usage** | Counts toward your [API plan](/rate-limits) | Rate limited, separate from API plans | ## Get started The steps below connect the authenticated server. First, [create a free API key](/set-up-your-api-key) if you do not have one. Then pick your client below and follow it end to end. Or use the keyless server without an API key, with limited tools and rate limits: use `https://mcp-keyless.etherscan.io/mcp` as the URL and leave out the API key. > [tab] Claude Desktop > > [Claude Desktop](https://claude.ai/download) is Anthropic's desktop chat app. > > **1. Add Etherscan to your config** > > In Claude Desktop, open **Settings > Developer > Edit Config** to open the `claude_desktop_config.json` file. > > ![Claude Desktop Settings > Developer, showing the Edit Config button](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/claude-desktop-config.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=97b14a68ffd5123bd9077e3070f83268) > > In the file that opens, add the `etherscan` server (replace `YourApiKey` with your key): > > ```json claude_desktop_config.json theme={null} > { > "mcpServers": { > "etherscan": { > "command": "npx", > "args": [ > "-y", > "mcp-remote", > "https://mcp.etherscan.io/mcp", > "--header", > "Authorization:${AUTH_TOKEN}" > ], > "env": { > "AUTH_TOKEN": "Bearer YourApiKey" > } > } > } > } > ``` > > Requires [Node.js](https://nodejs.org). > > **2. Confirm it's connected** > > Save, then fully quit Claude Desktop and reopen it. Then open **Settings > Developer** and look for `etherscan` under Local MCP servers with a **running** badge. > > ![Claude Desktop Settings > Developer showing the Etherscan MCP server with a running badge](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/claude-desktop-connected.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=b4abd4448a6acd9a42c18e3f01312d82) > > **3. Ask your first question** > > Ask in plain language and approve the tool calls when prompted: > > ```text theme={null} > Give me a one-liner summary for this transaction: 0xa44757750f25d11d8d22434a68c39c6962a55ddf369ce202624950ada3080acf > ``` > > In this example, it calls two tools: > > * `get_transaction_by_hash` for the sender, recipient, amount, and input data > * `get_transaction_receipt` to confirm the transaction succeeded > > It then answers with a one-line summary. Both tools work on the free API plan. > > ![Claude Desktop giving a one-line summary of a USDT transfer via the Etherscan MCP, then adding Etherscan name tags: Bitstamp 61 sent 269,618.78 USDT to a Bitget deposit address](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/claude-desktop-ask.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=b3bb94c6eac251e12952e236eb39fb9a) > > To label the addresses involved with their Etherscan name tags, follow up with: > > ```text theme={null} > Add the Etherscan name tags and labels for the sender and recipient > ``` > > This uses `get_address_labels`, a PRO+ tool available on the [Pro Plus plan](https://etherscan.io/api/pricing). > [tab] Claude Code CLI > > [Claude Code](https://code.claude.com/docs/en/quickstart#step-1-install-claude-code) is Anthropic's coding assistant that runs in your terminal. > > **1. Add the server** > > Run this in your terminal, replacing `YourApiKey` with your key: > > ```bash theme={null} > claude mcp add --transport http etherscan \ > https://mcp.etherscan.io/mcp \ > --header "Authorization: Bearer YourApiKey" > ``` > > **2. Confirm it's connected** > > Check the server's status and look for `Status: ✔ Connected`: > > ```bash theme={null} > claude mcp get etherscan > ``` > > **3. Ask your first question** > > Start a Claude Code session by running `claude`, then ask in plain language and let the agent pick the tools: > > ```text theme={null} > Give me a one-liner summary for this transaction: 0xa44757750f25d11d8d22434a68c39c6962a55ddf369ce202624950ada3080acf > ``` > > In this example, it calls the tool `get_transaction_by_hash` for the sender, recipient, amount, and input data. It then answers with a one-line summary. This tool works on the free API plan. > > ![Claude Code giving a one-line summary of a USDT transfer via the Etherscan MCP](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/mcp-example.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=e3b2693e89d4397ffb3aabd20b5c6709) > > To label the addresses involved with their Etherscan name tags, follow up with: > > ```text theme={null} > Add the Etherscan name tags and labels for the sender and recipient > ``` > > This uses `get_address_labels`, a PRO+ tool available on the [Pro Plus plan](https://etherscan.io/api/pricing). > [tab] Codex Desktop > > Codex Desktop is the ChatGPT desktop app running OpenAI's [Codex](https://developers.openai.com/codex) agent, which can connect to MCP servers. > > **1. Add the server** > > In Codex Desktop, open **Settings > Plugins > Add > Add MCP Server**. > > ![Codex Desktop Settings > Plugins showing the MCP servers list and the Add server button](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/codex-desktop-mcp.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=3d13f2a575bafa0649756ab4ef7667ce) > > Enter the following server details (replace `YourApiKey` with your key): > > * **Name:** Etherscan MCP > * **Type:** Streamable HTTP > * **URL:** `https://mcp.etherscan.io/mcp` > * **Headers:** `Key=AUTHORIZATION`, `Value=Bearer YourApiKey` > > **2. Confirm it's connected** > > Save, then fully quit Codex Desktop and reopen it. Then run `/mcp` and confirm that `etherscan` is listed as an enabled server. > > ![Codex Desktop showing the Etherscan MCP server enabled under Servers](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/codex-desktop-connected.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=d5d567ae329636b01e28abc6afdac391) > > **3. Ask your first question** > > Ask in plain language: > > ```text theme={null} > Give me a one-liner summary for this transaction: 0xa44757750f25d11d8d22434a68c39c6962a55ddf369ce202624950ada3080acf. use mcp > ``` > > In this example, it calls two tools: > > * `get_transaction_by_hash` for the sender, recipient, amount, and input data > * `get_transaction_receipt` to confirm the transaction succeeded > > It then answers with a one-line summary. Both tools work on the free API plan. > > ![Codex Desktop giving a one-line summary of a USDT transfer via the Etherscan MCP](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/codex-desktop-ask.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=028cf5bfd93f2c54167c4b86aee67faa) > > To label the addresses involved with their Etherscan name tags, follow up with: > > ```text theme={null} > Add the Etherscan name tags and labels for the sender and recipient > ``` > > This uses `get_address_labels`, a PRO+ tool available on the [Pro Plus plan](https://etherscan.io/api/pricing). > [tab] Codex CLI > > [Codex CLI](https://learn.chatgpt.com/docs/codex/cli#getting-started) is OpenAI's coding agent in your terminal. > > **1. Set your API key as an environment variable** > > Run this in your terminal (replace `YourApiKey` with your key): > > ```bash theme={null} > export ETHERSCAN_API_KEY=YourApiKey > ``` > > **2. Add the server** > > Run this in your terminal: > > ```bash theme={null} > codex mcp add etherscan \ > --url https://mcp.etherscan.io/mcp \ > --bearer-token-env-var ETHERSCAN_API_KEY > ``` > > **3. Confirm it's connected** > > Check the server and look for `enabled: true`: > > ```bash theme={null} > codex mcp get etherscan > ``` > > **4. Ask your first question** > > Start a Codex session by running `codex`, then ask in plain language and let the agent pick the tools: > > ```text theme={null} > Give me a one-liner summary for this transaction: 0xa44757750f25d11d8d22434a68c39c6962a55ddf369ce202624950ada3080acf. use mcp > ``` > > In this example, it calls two tools: > > * `get_transaction_by_hash` for the sender, recipient, amount, and input data > * `get_transaction_receipt` to confirm the transaction succeeded > > It then answers with a one-line summary. Both tools work on the free API plan. > > ![Codex CLI giving a one-line summary of a USDT transfer via the Etherscan MCP](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/codex-cli-ask.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=cff3b26e226548a430f5563d9a2b1853) > > To label the addresses involved with their Etherscan name tags, follow up with: > > ```text theme={null} > Add the Etherscan name tags and labels for the sender and recipient > ``` > > This uses `get_address_labels`, a PRO+ tool available on the [Pro Plus plan](https://etherscan.io/api/pricing). ## Example prompts Ask in plain language and let the agent pick the tools. Copy one to try it: ```text theme={null} Build a wallet snapshot for 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum and Arbitrum: native balance, top token holdings, and the 10 most recent transactions. ``` ```text theme={null} Is 0xdAC17F958D2ee523a2206206994597C13D831ec7 verified? Summarize what the contract does and who deployed it. ``` ```text theme={null} Who are the top 10 holders of USDT (0xdAC17F958D2ee523a2206206994597C13D831ec7), and what share does each hold? ``` ```text theme={null} Trace transaction 0x: show its internal transfers and whether it succeeded. ``` ```text theme={null} List the 20 most recent ERC-20 token transfers for 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Arbitrum. ``` ## Tools The authenticated server exposes 21 tools. The keyless server exposes 16 of them, leaving out the five PRO tools, which require a paid plan. The agent selects and calls them for you; you rarely name a tool yourself. | Category | Tool | Returns | Keyless | | - | - | - | - | | Balances | `get_native_balance` | Native coin balance for an address | ✓ | | | `get_token_balances` | ERC-20 token holdings for an address, with USD values | ✗ | | Transactions | `get_transactions` | Normal (external) transactions an address signed | ✓ | | | `get_internal_transactions` | Contract-triggered internal transfers for an address | ✓ | | | `get_transaction_by_hash` | Full transaction details for a hash: sender, recipient, value, input, gas | ✓ | | | `get_transaction_receipt` | Receipt for a transaction: status, gas used, logs, and any created contract | ✓ | | | `get_transaction_status` | Contract execution status for a transaction | ✓ | | | `get_transaction_receipt_status` | Receipt status (success or fail) for a transaction | ✓ | | Transfers | `get_token_transfers` | Token transfers for an address or contract: ERC-20, ERC-721, or ERC-1155 | ✓ | | Tokens | `get_token_info` | Project and metadata for a token contract | ✗ | | | `get_token_top_holders` | Largest holders of a token | ✗ | | Contracts | `get_contract_source` | Verified source code for a contract | ✓ | | | `get_contract_abi` | ABI for a verified contract | ✓ | | | `get_contract_creation` | Deployer address and creation transaction for a contract | ✓ | | Logs | `get_logs` | Event logs filtered by contract address and topics over a block range | ✓ | | Address intelligence | `get_address_labels` | Etherscan name tag, labels, and attributes for an address | ✗ | | | `get_funded_by` | The address and transaction that first funded an address | ✗ | | Network | `get_supported_chains` | Supported chains and their chain IDs | ✓ | | | `get_gas_oracle` | Current gas price recommendations | ✓ | | | `get_block_by_timestamp` | The block number at a given timestamp | ✓ | | Display | `render_etherscan_widget` | An explorer-style card showing results from the other tools | ✓ | ## Good to know * **Read-only.** Every tool reads public onchain data. Nothing signs or sends a transaction. * **On the authenticated server, every tool call uses your API quota.** Each MCP tool call makes one or more Etherscan API requests, and every request counts toward your API plan's rate limits, exactly like calling the API directly. See [Rate limits](/rate-limits). * **The keyless server is rate limited.** Its limits are separate from API plans. For higher limits and PRO tools, use the authenticated server. * **Guard against prompt injection.** Enable your client's human-confirmation prompts, and be cautious when combining Etherscan with other MCP servers in the same session. # Etherscan Skills Source: https://docs.etherscan.io/build-with-ai/skills Installable agent skills that teach AI agents how to work with onchain data through Etherscan. Skills are reusable instructions that teach an AI agent how to complete a task: which endpoints to call, how to set parameters, and the edge cases to handle. Install one into a coding agent like Claude Code or Codex, then work in plain language. Each skill installs from [skills.sh](https://skills.sh) or GitHub, and pairs well with the [Etherscan MCP](/build-with-ai/mcp) or [CLI](/build-with-ai/cli), which make the actual calls. > [card] [Etherscan Orchestrator](/build-with-ai/skills/etherscan) > > The general skill: route any onchain task to the right Etherscan interface. > [card] [Etherscan Flow](/build-with-ai/skills/etherscan-flow) > > Trace, verify, and visualize onchain money flows into a case file. > [card] [Etherscan Contract Review](/build-with-ai/skills/etherscan-contract-review) > > Explain what a verified deployed contract does, with source references. > [card] [Etherscan Transaction Debugger](/build-with-ai/skills/etherscan-transaction-debugger) > > Explain what a transaction did and why, from live Etherscan data. # Etherscan Orchestrator Source: https://docs.etherscan.io/build-with-ai/skills/etherscan The general skill that routes any onchain task to the right Etherscan interface: explorer website, API, CLI, or MCP. The [Etherscan Orchestrator](https://github.com/etherscan/skills/blob/main/skills/etherscan/SKILL.md) is a skill that teaches an AI agent to pick the right Etherscan interface for a task, the [explorer website](https://etherscan.io), the [API](/endpoint-overview), the [CLI](/build-with-ai/cli), or the [MCP](/build-with-ai/mcp), then construct a correct request for it. ## Get started **1. Install the skill** > [tab] Claude Code CLI / Codex CLI > > Add the skill with the [skills.sh](https://skills.sh) CLI. `-g` installs it globally (user-level, so it is available in every project) and `-a '*'` installs it for every agent you have set up (Claude Code, Codex, and others): > > ```bash theme={null} > npx skills add https://github.com/etherscan/skills --skill etherscan -g -a '*' -y > ``` > > Or clone the repo and move the folder into your agent's skills directory, `~/.claude/skills/` or `~/.codex/skills/`: > > ```bash theme={null} > git clone https://github.com/etherscan/skills.git etherscan-skills > cp -r etherscan-skills/skills/etherscan ~/.claude/skills/ > ``` > [tab] Claude Desktop > > Claude Desktop installs a skill from a ZIP you upload. Zip must contain exactly one SKILL.md file. > > 1. Download the [Etherscan skills repo](https://github.com/etherscan/skills/archive/refs/heads/main.zip), unzip it, and compress just the `skills-main/skills/etherscan` folder into `etherscan.zip`. > > ``` > skills-main/ > └── skills/ > ├── etherscan/ ← zip this folder > ├── etherscan-contract-review/ > ├── etherscan-flow/ > └── etherscan-transaction-debugger/ > ``` > > 2. In Claude Desktop, go to **Settings > Skills > Add > Upload a skill** and select the `etherscan.zip` file. > > ![Claude Desktop Settings > Skills, uploading the Etherscan skill ZIP](https://mintcdn.com/etherscan/yaW251JzNAHBk6pN/images/claude-desktop-skill-upload.png?fit=max\&auto=format\&n=yaW251JzNAHBk6pN\&q=85\&s=c470de57319b4e45ad795396bc9e1e89) > > 3. The Etherscan skill is now ready to be used. > > ![Claude Desktop Etherscan skill is toggled on](https://mintcdn.com/etherscan/yaW251JzNAHBk6pN/images/claude-desktop-skill-active.png?fit=max\&auto=format\&n=yaW251JzNAHBk6pN\&q=85\&s=d3e9de3a25d934d23874624112d1c0bd) **2. Ask your first question** Describe the task in plain language. ```text theme={null} Get all ERC-20 transfers for 0x9fC3dc011b461664c835F2527fffb1169b3C213e and save them as CSV. use etherscan skill ``` The skill confirms the chain, then routes to whatever interface you have connected ([CLI](/build-with-ai/cli), [MCP](/build-with-ai/mcp), or [API](/endpoint-overview)) and constructs the request to spec. ## More prompts to try Describe the task in plain language and let the skill pick the interface. Copy one to try it: ```text theme={null} Build a wallet snapshot for 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum and Arbitrum: native balance, top token holdings, and the 10 most recent transactions. ``` ```text theme={null} Is 0xdAC17F958D2ee523a2206206994597C13D831ec7 verified? Summarize what the contract does and who deployed it. ``` ```text theme={null} Who are the top 10 holders of USDT (0xdAC17F958D2ee523a2206206994597C13D831ec7), and what share does each hold? ``` ```text theme={null} Trace transaction 0x: show its internal transfers and whether it succeeded. ``` ```text theme={null} Resolve vitalik.eth, show its balance, and include any name tags or labels Etherscan has for it. ``` ## What it does The skill guides the agent through a task instead of guessing: * **Routes to a specialized skill when one fits:** for a dedicated workflow like tracing money flows, it hands off to that skill; otherwise it handles the routing itself. * **Clarifies the request:** the target chain and chain ID, the address or transaction, and the actual intent. * **Discovers what is available:** it runs read-only checks for an installed CLI (and its version) and a connected MCP client, then tells you what it found. * **Selects the interface** best suited to the task, then constructs the request per Etherscan's documented specification and respects authentication, plan, and rate limits. | Interface | Best for | | - | - | | Website | Explorer pages, user-facing tools, exports, token approvals, contract utilities | | API | Selecting endpoints, constructing requests, interpreting responses | | CLI | Terminal commands, automation, and structured output | | MCP | Agent-driven, read-only tool calls | > [!NOTE] > > The skill never prints your API key and asks for explicit approval before any state-changing action. # Etherscan Contract Review Source: https://docs.etherscan.io/build-with-ai/skills/etherscan-contract-review An installable agent skill that explains what a verified deployed contract does, with a source reference behind every claim. The [Etherscan Contract Review](https://github.com/etherscan/skills/tree/main/skills/etherscan-contract-review) skill produces a developer-first explanation of a verified deployed EVM contract. Give it a contract address and chain and it retrieves the verified source, ABI, and proxy metadata, then explains what the contract does, how its code fits together, what ordinary users can do, what privileged operators can change, and where assets move, with a source reference behind every material claim. ![An Etherscan Contract Review of a verified contract: developer overview, user and admin flows, and source references.](https://mintcdn.com/etherscan/ZvFQoCgGKRkor3l5/images/etherscan-contract-review.png?fit=max\&auto=format\&n=ZvFQoCgGKRkor3l5\&q=85\&s=dec3d7c18521368669c34a4831971313) > [!NOTE] > > This is a developer-oriented review for onboarding, integration triage, and preliminary review. It is not a security audit, safety certification, or formal verification. ## Get started **1. Install the skill** > [tab] Claude Code CLI / Codex CLI > > Add the skill with the [skills.sh](https://skills.sh) CLI. `-g` installs it globally (user-level, so it is available in every project) and `-a '*'` installs it for every agent you have set up (Claude Code, Codex, and others): > > ```bash theme={null} > npx skills add https://github.com/etherscan/skills --skill etherscan-contract-review -g -a '*' -y > ``` > > Or clone the repo and move the folder into your agent's skills directory, `~/.claude/skills/` or `~/.codex/skills/`: > > ```bash theme={null} > git clone https://github.com/etherscan/skills.git etherscan-skills > cp -r etherscan-skills/skills/etherscan-contract-review ~/.claude/skills/ > ``` > [tab] Claude Desktop > > Claude Desktop installs a skill from a ZIP you upload. Zip must contain exactly one SKILL.md file. > > 1. Download the [Etherscan skills repo](https://github.com/etherscan/skills/archive/refs/heads/main.zip), unzip it, and compress just the `skills-main/skills/etherscan-contract-review` folder into `etherscan-contract-review.zip`. > > ``` > skills-main/ > └── skills/ > ├── etherscan/ > ├── etherscan-contract-review/ ← zip this folder > ├── etherscan-flow/ > └── etherscan-transaction-debugger/ > ``` > > 2. In Claude Desktop, go to **Settings > Skills > Add > Upload a skill** and select the `etherscan-contract-review.zip` file. > > ![Claude Desktop Settings > Skills, uploading the Etherscan Contract Review skill ZIP](https://mintcdn.com/etherscan/ZvFQoCgGKRkor3l5/images/claude-desktop-contract-review-upload.png?fit=max\&auto=format\&n=ZvFQoCgGKRkor3l5\&q=85\&s=afcf5d97e7b05ee98be2eb7a4998d900) > > 3. The Etherscan Contract Review skill is now ready to be used. > > ![Claude Desktop Etherscan Contract Review skill is toggled on](https://mintcdn.com/etherscan/ZvFQoCgGKRkor3l5/images/claude-desktop-contract-review-active.png?fit=max\&auto=format\&n=ZvFQoCgGKRkor3l5\&q=85\&s=02bed60a52ca596f4da157a58853e37d) **2. Run your first review** Give it a contract address and chain, then ask for a review. ```text theme={null} review 0xdAC17F958D2ee523a2206206994597C13D831ec7 on Ethereum. use etherscan-contract-review skill ``` ## More prompts to try ```text theme={null} what are the privileged and admin controls on 0x
on Ethereum, and who can call them? ``` ```text theme={null} map the architecture and source files of 0x
on Arbitrum ``` ```text theme={null} where does 0x
move native and token assets, and through which functions? ``` ```text theme={null} is 0x
a proxy? resolve the implementation and explain what it does ``` ## What it produces By default, a structured review that runs from summary to detail: * **Developer overview:** the contract's likely role, who uses it, which assets and permissions matter, and what privileged operators can change. * **Contract identity:** chain, user-facing and implementation addresses, verification and compiler metadata, and when it was observed. * **How it works:** separate user, admin and operator, and asset flows, plus external dependencies. * **Code map:** source responsibilities grouped by entry points, accounting, asset movement, access control, upgradeability, integrations, and validation. * **Important functions, events, and storage**, grouped by responsibility. * **Evidence and uncertainty:** a source reference for each material claim, and a list of what could not be resolved. Every material claim cites the implementation that enforces it, for example `contracts/Vault.sol:Vault.deposit`, not the function name alone. For a focused question, it answers directly with the minimum evidence instead of the full report. ## Good to know * **Source references, not name-reading.** Names, comments, and ABI entries are treated as hints. The skill inspects the implementation before making a behavioral claim, then cites the file, contract, and function behind it. * **Proxies stay separate.** If the address is a proxy, it resolves the implementation where metadata allows and keeps the storage address and implementation responsibilities distinct. When no pattern is confirmed, it preserves the ambiguity rather than guessing. * **Unverified source is stated, not inferred.** If source is unverified or incomplete, it says so and limits the explanation to confirmed ABI, metadata, and bytecode observations. * **API key.** It reads verified source through the Etherscan API, preferring the [CLI](/build-with-ai/cli) or a key from `ETHERSCAN_API_KEY`. It never asks for your key in chat. > [!NOTE] > > The skill is read-only. It retrieves source, ABI, and metadata only. It never verifies, signs, or broadcasts, and it does not run retrieved contract code or scripts. # Etherscan Flow Source: https://docs.etherscan.io/build-with-ai/skills/etherscan-flow An installable agent skill that traces, verifies, and visualizes onchain money flows into an import-ready case file on [etherscan.io/flow](https://etherscan.io/flow). [Etherscan Flow](https://github.com/etherscan/skills/tree/main/skills/etherscan-flow) is an agent skill that turns your agent into an onchain investigator for tracing, verifying, and visualizing onchain money flows. Give it a transaction hash, an address, a resolvable entity, a draft case, or a source URL, and it queries live Etherscan API data and returns a single import-ready Flow Case file of nodes and edges. Every address, amount, and transaction hash is grounded in a real API response. ![An Etherscan Flow Case visualized on the canvas: wallet and contract nodes connected by labeled fund-flow edges](https://mintcdn.com/etherscan/yaW251JzNAHBk6pN/images/etherscan-flow.png?fit=max\&auto=format\&n=yaW251JzNAHBk6pN\&q=85\&s=39c631b795dabe0d6045b3e9fda76fd1) It runs in two modes, plus a document-import path: * **Strict trace:** start from a transaction hash or address and follow the money. * **Business/entity profile:** start from a DAO, protocol, or business, resolve it to verified addresses, then summarize income, spending, and totals. * **Document import:** paste a draft case, notes, or a link you typed, and it verifies every address and claim against the live API. Where the general [Etherscan Orchestrator](/build-with-ai/skills/etherscan) routes a task to the right Etherscan interface, Etherscan Flow owns a full multi-step investigation workflow on top of the API. ## Get started **1. Install the skill** > [tab] Claude Code CLI / Codex CLI > > Add the skill with the [skills.sh](https://skills.sh) CLI. `-g` installs it globally (user-level, so it is available in every project) and `-a '*'` installs it for every agent you have set up (Claude Code, Codex, and others): > > ```bash theme={null} > npx skills add https://github.com/etherscan/skills --skill etherscan-flow -g -a '*' -y > ``` > > Or clone the repo and move the folder into your agent's skills directory, `~/.claude/skills/` or `~/.codex/skills/`: > > ```bash theme={null} > git clone https://github.com/etherscan/skills.git etherscan-skills > cp -r etherscan-skills/skills/etherscan-flow ~/.claude/skills/ > ``` > [tab] Claude Desktop > > Claude Desktop installs a skill from a ZIP you upload. Zip must contain exactly one SKILL.md file. > > 1. Download the [Etherscan skills repo](https://github.com/etherscan/skills/archive/refs/heads/main.zip), unzip it, and compress just the `skills-main/skills/etherscan-flow` folder into `etherscan-flow.zip`. > > ``` > skills-main/ > └── skills/ > ├── etherscan/ > ├── etherscan-contract-review/ > ├── etherscan-flow/ ← zip this folder > └── etherscan-transaction-debugger/ > ``` > > 2. In Claude Desktop, go to **Settings > Skills > Add > Upload a skill** and select the `etherscan-flow.zip` file. > > ![Claude Desktop Settings > Skills, uploading the Etherscan Flow skill ZIP](https://mintcdn.com/etherscan/yaW251JzNAHBk6pN/images/claude-desktop-flow-upload.png?fit=max\&auto=format\&n=yaW251JzNAHBk6pN\&q=85\&s=b56e552339c3ff23b9dbc153e03e73d6) > > 3. The Etherscan Flow skill is now ready to be used. > > ![Claude Desktop Etherscan Flow skill is toggled on](https://mintcdn.com/etherscan/yaW251JzNAHBk6pN/images/claude-desktop-flow-active.png?fit=max\&auto=format\&n=yaW251JzNAHBk6pN\&q=85\&s=903c8afe400cbd43d656991a3acaed67) **2. Run your first trace** Describe the case in plain language. ```text theme={null} trace this scam 0x. use etherscan-flow skill ``` The agent pulls live transactions, follows the money hop by hop, and returns an import-ready Flow Case. ## Provide an API key Etherscan Flow calls the Etherscan API, which needs an [API key](/set-up-your-api-key). The skill resolves one in this order, first usable match wins: 1. The Etherscan [CLI](/build-with-ai/cli) config 2. The Etherscan [MCP](/build-with-ai/mcp) connection 3. An inline `apikey=` in your request 4. The `ETHERSCAN_API_KEY` environment variable 5. A local key file Resolving through the CLI or MCP keeps the key out of the chat transcript. ## Example Usage Paste a hash or address and ask to investigate: ```text theme={null} trace this scam 0x follow the money from this victim wallet 0x
this is the scammer address 0x
, find the victims build a case for this hack 0x
apikey=YOUR_KEY ``` Or profile a DAO, protocol, or business from a verified scope: ```text theme={null} show ENS DAO as a business show ENS DAO as a business using these treasury, controller, and timelock addresses: 0x
0x
map income and spending for this protocol treasury 0x
show where this DAO gets income and how it spends money, with totals, apikey=YOUR_KEY 0x
``` Or import a draft, notes, or any link and have every claim verified onchain: ```text theme={null} extract the flows from this gist and build the case: https://gist.github.com// apikey=YOUR_KEY someone reported this scam on X — verify it and build the case: https://x.com//status/ build a case from the addresses in this article: https:/// here's my draft case JSON — validate it and produce a verified version: ``` ## Run without approving every call A single trace can make many API calls (up to 100), so your agent may prompt you to approve each one. That prompt comes from your agent's own permission system, not from Etherscan Flow. You can safely approve them all at once: every call is a read-only `GET` to a single host, `api.etherscan.io`, so nothing is written or spent. To set that up in Claude Code, Codex, or Claude.ai, see [Stop it asking permission for every call](https://github.com/etherscan/skills/blob/main/skills/etherscan-flow/README.md#stop-it-asking-permission-for-every-call). ## Output You get a single Flow Case JSON file. Open [etherscan.io/flow](https://etherscan.io/flow), choose Import, and paste it: the schema maps one to one, with no reformatting. > [!NOTE] > > Roles, labels, and notes in a case are an agent's inference over public Etherscan data, not Etherscan verdicts, accusations, or legal findings. # Etherscan Transaction Debugger Source: https://docs.etherscan.io/build-with-ai/skills/etherscan-transaction-debugger An installable agent skill that explains what a transaction did, and why, from live Etherscan data with verifiable evidence links. The [Etherscan Transaction Debugger](https://github.com/etherscan/skills/tree/main/skills/etherscan-transaction-debugger) is an agent skill that explains what a transaction actually did. Give it a transaction hash and it reconstructs the supported execution path from live Etherscan data, decodes the calls and events, reconciles the asset and permission changes, and pins down any failure, with direct Etherscan links so you can verify every claim yourself. It works on one transaction, or two for a side-by-side comparison. For following funds across many hops or profiling an address, it hands off to [Etherscan Flow](/build-with-ai/skills/etherscan-flow). For a full contract audit, it is out of scope. ![An Etherscan Transaction Debugger report: what happened, execution flow, asset changes, and verifiable Etherscan links.](https://mintcdn.com/etherscan/ZvFQoCgGKRkor3l5/images/etherscan-transaction-debugger.png?fit=max\&auto=format\&n=ZvFQoCgGKRkor3l5\&q=85\&s=f86793388e47514cead6dc8d3863d086) ## Get started **1. Install the skill** > [tab] Claude Code CLI / Codex CLI > > Add the skill with the [skills.sh](https://skills.sh) CLI. `-g` installs it globally (user-level, so it is available in every project) and `-a '*'` installs it for every agent you have set up (Claude Code, Codex, and others): > > ```bash theme={null} > npx skills add https://github.com/etherscan/skills --skill etherscan-transaction-debugger -g -a '*' -y > ``` > > Or clone the repo and move the folder into your agent's skills directory, `~/.claude/skills/` or `~/.codex/skills/`: > > ```bash theme={null} > git clone https://github.com/etherscan/skills.git etherscan-skills > cp -r etherscan-skills/skills/etherscan-transaction-debugger ~/.claude/skills/ > ``` > [tab] Claude Desktop > > Claude Desktop installs a skill from a ZIP you upload. Zip must contain exactly one SKILL.md file. > > 1. Download the [Etherscan skills repo](https://github.com/etherscan/skills/archive/refs/heads/main.zip), unzip it, and compress just the `skills-main/skills/etherscan-transaction-debugger` folder into `etherscan-transaction-debugger.zip`. > > ``` > skills-main/ > └── skills/ > ├── etherscan/ > ├── etherscan-contract-review/ > ├── etherscan-flow/ > └── etherscan-transaction-debugger/ ← zip this folder > ``` > > 2. In Claude Desktop, go to **Settings > Skills > Add > Upload a skill** and select the `etherscan-transaction-debugger.zip` file. > > ![Claude Desktop Settings > Skills, uploading the Etherscan Transaction Debugger skill ZIP](https://mintcdn.com/etherscan/ZvFQoCgGKRkor3l5/images/claude-desktop-txdebug-upload.png?fit=max\&auto=format\&n=ZvFQoCgGKRkor3l5\&q=85\&s=3773bed4b014aba4e6c68c867acd3622) > > 3. The Etherscan Transaction Debugger skill is now ready to be used. > > ![Claude Desktop Etherscan Transaction Debugger skill is toggled on](https://mintcdn.com/etherscan/ZvFQoCgGKRkor3l5/images/claude-desktop-txdebug-active.png?fit=max\&auto=format\&n=ZvFQoCgGKRkor3l5\&q=85\&s=346a715d4fe07790da50ecedf2f89f86) **2. Run your first debug** Paste a transaction hash and ask what happened. ```text theme={null} explain what happened in transaction 0x. use etherscan-transaction-debugger skill ``` ## More prompts to try ```text theme={null} why did transaction 0x fail? ``` ```text theme={null} which contracts and internal calls were involved in 0x, and where did the assets move? ``` ```text theme={null} was a proxy implementation executed in 0x, and which call reverted? ``` ```text theme={null} compare 0x and 0x and tell me why they behaved differently ``` ## Choose the depth of explanation Name the audience and the skill sets the level of detail. If you do not, it infers a useful one. | Level | What you get | | - | - | | Simple | A short, non-technical summary of the outcome | | Standard | Outcome, the important calls, and asset changes | | Developer | Decoded calldata, call semantics, the proxy path, and failure evidence | | Support | A customer-ready explanation plus escalation notes | | Security | Permissions, callbacks, delegate calls, recipients, and evidence-backed anomalies | ## What it produces A report led by a one or two sentence verdict, then only the sections that fit the request: a transaction summary (status, decoded method, value, gas, fees), what happened, the execution flow, the asset and permission changes, a failure analysis when the transaction reverted, evidence-backed security observations, an **Explore on Etherscan** block of direct links, and a closing note on confidence and what could not be determined. Every claim is tagged by how it is known: **observed** in the transaction data, **derived** by calculation from it, or **inferred** from patterns. Confidence is rated `High`, `Medium`, or `Low` against the evidence. ## Good to know * **Standard and Deep modes.** Standard mode uses Etherscan's transaction, receipt, internal-transaction, ABI, source, proxy, label, and token data, and answers most cases. Deep mode needs a full execution trace and is used for complete internal calls, `DELEGATECALL` behavior, or the exact reverting frame. Without a trace, the call tree is partial and the skill says so rather than guessing the reverting frame. * **It does not invent.** Function names, amounts, revert reasons, proxy relationships, and trace edges come from real data, or are shown as a selector, raw value, or `unknown`. Etherscan internal transactions are never presented as a complete call trace. > [!NOTE] > > The skill is read-only. It does not generate exploit code, sign or broadcast transactions, or call a contract malicious from unusual behavior alone; it surfaces evidence-backed risk indicators and states the uncertainty. # Changelog Source: https://docs.etherscan.io/changelog Recent updates and changes to the Etherscan API. **November 2026** ## Avalanche Fuji and Abstract Sepolia Testnet deprecation **Updated:** November 3, 2026. **Effective date:** November 15, 2026. API support for the following chains will be deprecated: * Avalanche Fuji Testnet (chainid: 43113) * Abstract Sepolia Testnet (chainid: 11124) After the effective date, API requests to these chains will no longer be supported. For Abstract Sepolia Testnet, this replaces the earlier effective date of October 31, 2026. *** ## HyperEVM API moving to paid plans **Updated:** November 2, 2026. **Effective date:** December 1, 2026. HyperEVM Mainnet (chainid: 999) community endpoints remain free until **November 30, 2026**. Effective **December 1, 2026**, they require a [Lite plan or above](https://etherscan.io/api/pricing). Source code and ABI endpoints remain free on all plans, including the Free tier. **October 2026** ## API overage for paid plans **Updated:** October 27, 2026. **Effective date:** November 3, 2026. Requests are blocked once you reach your plan's daily limit, unless overage is turned on. Paid plans (Lite tier and above) can turn on overage to keep requests running past the limit. * **Off by default:** turn on **Allow Overage Charges** under **Usage Limit Preferences** in your [API dashboard](https://etherscan.io/apidashboard), then set a monthly spend cap. * **Pricing:** $0.00003 per call ($3 per 100,000 calls), billed monthly. * **Free tier:** stays capped at the daily limit, with no overage. See [Usage and overage](/rate-limits#usage-and-overage) for details. *** ## Archived chain data **Updated:** October 21, 2026. Historical address transaction data for Blast Mainnet (chainid: 81457) will remain available on request after API support ends on October 31, 2026. See [Archived chains](/archived-chains) for how to request access. *** ## Etherscan in ChatGPT and Claude **Updated:** October 15, 2026. Etherscan is available in ChatGPT and Claude, with no API key or Etherscan account. Add it from each app's directory and ask about wallets, transactions, and contracts in plain language. Both use the keyless [Etherscan MCP](/build-with-ai/mcp) server and are read-only. * **ChatGPT plugin:** available since **September 24, 2026**. See [ChatGPT Plugin](/build-with-ai/chatgpt-plugin). * **Claude connector:** available since **October 8, 2026**. See [Claude Connector](/build-with-ai/claude-connector). *** ## ApeChain & Blast deprecation **Updated:** October 14, 2026. **Effective date:** October 31, 2026. API support for the following chains will be deprecated: * ApeChain Mainnet (chainid: 33139) * ApeChain Curtis Testnet (chainid: 33111) * Blast Mainnet (chainid: 81457) * Blast Sepolia Testnet (chainid: 168587773) After the effective date, API requests to these chains will no longer be supported. *** ## Minimal proxy indicator in Get Contract Source Code **Updated:** October 7, 2026. Effective **September 2, 2026**, the `Proxy` field in [Get Contract Source Code](/api-reference/endpoint/getsourcecode) responses returns `2` for minimal proxy contracts, alongside `0` (not a proxy) and `1` (proxy). For minimal proxies, `Implementation` returns the target contract and `ConstructorArguments` is empty. If your integration checks for `Proxy` equal to `1`, update it to handle `2` as well. *** ## opBNB Mainnet & Testnet deprecation **Updated:** October 1, 2026. **Effective date:** October 12, 2026. API support for the following chains will be deprecated: * opBNB Mainnet (chainid: 204) * opBNB Testnet (chainid: 5611) After the effective date, API requests to these chains will no longer be supported. *** ## Community Free API Limit for Arbitrum **Updated:** October 1, 2026. **Effective date:** November 1, 2026. **Applicable chains:** Arbitrum One Mainnet (42161) and Arbitrum Sepolia Testnet (421614). Effective **November 1, 2026**, we are updating how Free tier API access is allocated on the chains listed above. Each chain will have its own shared pool of free API calls available to all Free tier users collectively, rather than a separate allocation per API key. Once a chain’s shared pool is depleted, Free tier requests on that chain will be temporarily unavailable until the pool resets. The reset time is indicated in the [error response](/common-error-messages#community-free-api-limit) returned with each affected request. For higher, uninterrupted throughput, we recommend upgrading to [API Pro](https://etherscan.io/api/pricing). *** ## Community Free API Limit for Linea **Updated:** October 1, 2026. **Applicable chains:** Linea Mainnet (59144) and Linea Sepolia Testnet (59141). Effective **August 4, 2026**, Free tier API access on the chains listed above is allocated differently. Each chain has its own shared pool of free API calls available to all Free tier users collectively, rather than a separate allocation per API key. Once a chain’s shared pool is depleted, Free tier requests on that chain will be temporarily unavailable until the pool resets. The reset time is indicated in the [error response](/common-error-messages#community-free-api-limit) returned with each affected request. For higher, uninterrupted throughput, we recommend upgrading to [API Pro](https://etherscan.io/api/pricing). **September 2026** ## New endpoint: ENS forward resolution **Updated:** September 28, 2026. The new [Resolve an ENS Name to an Address](/api-reference/endpoint/forwardresolve) endpoint resolves an ENS name or onchain subdomain to its address on Ethereum mainnet. Available on Free and paid plans, with Free tier requests throttled to **1 call/second**. *** ## Arc Mainnet support **Updated:** September 16, 2026. Arc Mainnet is now supported by the Etherscan API. Set `chainid=5042` to query data for the chain, alongside every other [supported chain](/supported-chains). Community endpoints are free until **October 15, 2026**. Effective **October 16, 2026**, they require a [Lite plan or above](https://etherscan.io/api/pricing). Source code and ABI endpoints remain free on all plans, including the Free tier. *** ## Robinhood Chain Mainnet support **Updated:** September 16, 2026. Robinhood Chain Mainnet is now supported by the Etherscan API. Set `chainid=4663` to query data for the chain, alongside every other [supported chain](/supported-chains). Community endpoints are free until **October 15, 2026**. Effective **October 16, 2026**, they require a [Lite plan or above](https://etherscan.io/api/pricing). Source code and ABI endpoints remain free on all plans, including the Free tier. *** ## Community Free API Limit for Katana **Updated:** September 7, 2026. **Applicable chains:** Katana Mainnet (747474) and Katana Bokuto (737373). We are updating how Free tier API access is allocated on the chains listed above. Each chain now has its own shared pool of free API calls available to all Free tier users collectively, rather than a separate allocation per API key. Once a chain’s shared pool is depleted, Free tier requests on that chain will be temporarily unavailable until the pool resets. The reset time is indicated in the [error response](/common-error-messages#community-free-api-limit) returned with each affected request. For higher, uninterrupted throughput, we recommend upgrading to [API Pro](https://etherscan.io/apis). **July 2026** ## Gnosis API moving to paid plans **Updated:** July 24, 2026 **Effective date:** September 1, 2026 The Gnosisscan block explorer (gnosisscan.io) will be discontinued on **August 11, 2026 (23:59 UTC)**. See [Discontinuation of a Block Explorer](https://info.etherscan.com/discontinuation-of-a-block-explorer/) for details. To ease the transition, Gnosis (Chain ID 100) community endpoints will remain free for all users until **August 31, 2026**. Effective **September 1, 2026**, API access will change as follows: * Community endpoints will require a **Lite plan or above**. * Pro endpoints will continue to require a **Standard plan or above**, as they do today. Source code and ABI endpoints are **not affected by this change** and will continue to be free on all plans, including the Free tier. **What you need to do:** If your integration uses endpoints on Gnosis, check your plan tier and upgrade if needed, or update your integration. *** ## Community Free API Limit **Updated:** July 16, 2026 **Applicable chains:** Celo Mainnet (42220) and Celo Sepolia Testnet (11142220) We are updating how Free tier API access is allocated on the chains listed above. Each chain now has its own shared pool of free API calls available to all Free tier users collectively, rather than a separate allocation per API key. Once a chain’s shared pool is depleted, Free tier requests on that chain will be temporarily unavailable until the pool resets. The reset time is indicated in the [error response](https://docs.etherscan.io/resources/common-error-messages#community-free-api-limit) returned with each affected request. For higher, uninterrupted throughput, we recommend upgrading to [API Pro](https://etherscan.io/apis). *** ## Moonbeam Mainnet, Moonriver Mainnet, & Moonbase Alpha Testnet deprecation **Updated:** July 15, 2026 **Effective date:** July 31, 2026 API support for the following chains will be deprecated: * Moonbeam Mainnet (chainid: 1284) * Moonriver Mainnet (chainid: 1285) * Moonbase Alpha Testnet (chainid: 1287) After the effective date, API requests to these chains will no longer be supported. **May 2026** ## \[Upcoming Change] Reduced Maximum Records Per Request on the Free API Tier **Updated:** May 1, 2026 **Effective date:** July 1, 2026 The maximum number of records returned per request will be reduced from **10,000 to 1,000** for **Free tier API users**. This change affects the following endpoints: * [Get Beacon Chain Withdrawals by Address](https://docs.etherscan.io/api-reference/endpoint/txsbeaconwithdrawal) * [Get Blocks Validated by Address](https://docs.etherscan.io/api-reference/endpoint/getminedblocks) * [Get ERC20 Token Transfers by Address](https://docs.etherscan.io/api-reference/endpoint/tokentx) * [Get ERC721 Token Transfers by Address](https://docs.etherscan.io/api-reference/endpoint/tokennfttx) * [Get ERC1155 Token Transfers by Address](https://docs.etherscan.io/api-reference/endpoint/token1155tx) * [Get Ethereum Nodes Size](https://docs.etherscan.io/api-reference/endpoint/chainsize) * [Get Event Logs by Address](https://docs.etherscan.io/api-reference/endpoint/getlogs) * [Get Internal Transactions by Address](https://docs.etherscan.io/api-reference/endpoint/txlistinternal) * [Get Normal Transactions By Address](https://docs.etherscan.io/api-reference/endpoint/txlist) * [Get Plasma Deposits by Address](https://docs.etherscan.io/api-reference/endpoint/txnbridge) **What you need to do:** Update your integration for the above endpoints to paginate records in batches of 1,000 or fewer. **Note:** If your application does not use any of the endpoints listed above, no action is required. *** ## \[Upcoming Change] Get Internal Transactions by Block Range Endpoint Moving to Pro Plans **Updated:** May 1, 2026 **Effective date:** July 1, 2026 [Get Internal Transactions by Block Range](https://docs.etherscan.io/api-reference/endpoint/txlistinternal-blockrange) will be moved to Pro endpoint. **What you need to do:** If your application relies on this endpoint, check your plan tier and upgrade if needed, or update your integration. **Note:** If your application does not use any of the endpoints listed above, no action is required. **April 2026** ## Scroll Mainnet & Sepolia Testnet deprecation Scroll Mainnet (chainid: 534352) and Scroll Sepolia Testnet (chainid: 534351) API support will be deprecated effective April 16, 2026. After this date, API requests to these chains will no longer be supported. **February 2026** ## MemeCore Formicarium Testnet migration MemeCore Formicarium Testnet (chainid: 43521) has migrated to Insectarium Testnet (chainid: 43522) effective February 25, 2026. API requests should now use the Insectarium Testnet (chainid: 43522) endpoint. *** ## Swell Mainnet & Testnet deprecation Swell Mainnet (chainid: 1923) and Swell Testnet (chainid: 1924) API support has been deprecated effective February 25, 2026. API requests to these chains are no longer supported. # Common Error Messages Source: https://docs.etherscan.io/common-error-messages Understand the errors the Etherscan API returns and how to resolve each one. An API call that encounters an error will return 0 as its `status code` and display the cause of the error under the `result` field. ```json theme={null} { "status": "0", "message": "NOTOK", "result": "Max rate limit reached, please use API Key for higher rate limit" } ``` ### Missing or Unsupported Chain > [!WARNING] > > "Missing or unsupported chainid parameter (required for v2 api), please see chainlist for the list of supported chainids" The chain you've specified is not supported by us yet. It could also be that you've sent multiple chains at the same time like `420, 10`. You can only send **one** at a time. ### Invalid API Key > [!WARNING] > > "Invalid API Key" This error occurs when you specify an invalid API Key. Ensure you are using your **Etherscan API Key**, keys from other chains like Polygonscan/Arbiscan are not valid for V2. Keys do take a few minutes to activate. If it takes longer than 10 minutes, [contact us](https://etherscan.io/contactus?id=11). ### Too many invalid API key attempts > [!WARNING] > > "Too many invalid api key attempts, please try again later" This error occurs when more than **5 invalid API key attempts** are made within a **30-second** window. Your source IP will be temporarily throttled as a security measure. The throttle resets automatically after **30 seconds**. To resolve, wait at least 30 seconds and retry with a **valid API key**. ### Max rate limit > [!WARNING] > > "Max rate limit reached, please use API Key for higher rate limit" This error occurs when you **exceed the rate limit** assigned to your specific API key. To resolve, adhere to the [rate limits](/rate-limits) of your available plan. If you are using a script or application, **apply throttling** like a token bucket to limit the frequency of calls. ### Missing or invalid action > [!WARNING] > > "Error! Missing Or invalid Action name" This error occurs when you **do not specify**, or specify an **invalid** `module` and `action` name. To resolve, **double check** your API query to use a valid module and action name. This error can also occur when querying any Pro endpoint on a testnet network. Pro endpoints are only available to mainnet networks. For a full distinction between mainnet/testnet networks, consult our [supported chains](/supported-chains). If you require some help getting started, try copying the sample queries provided in the API Playground and pasting them into your browser. ### Endpoint-specific errors > [!WARNING] > > "Error! Block number already pass" > > "Error! Invalid address format" > > "Contract source code not verified" These error messages returned are specific to certain endpoints and their **related parameters.** To resolve, kindly refer to the specific endpoint's documentation, and check for the **correct format** or **values** to be specified as **parameters.** ### Query Timeout > [!WARNING] > > "Query Timeout occured. Please select a smaller result dataset" > > "Unexpected err, timeout occurred or server too busy. Please try again later" This error occurs when you have sent a particularly large query that did not manage to be completed in time. To resolve, consider selecting a smaller date/block range, though you may [**ping us**](/resources/contact-us) if you think the issue may be performance related. ### Free Tier Access > [!WARNING] > > "Free API access is not supported for this chain. Please upgrade your api plan for full chain coverage." Certain chains are not included under the Free tier. To access all [**supported networks**](/supported-chains), you may upgrade to any of our [**paid plans**](https://etherscan.io/api/pricing), check out the affordable Lite tier. ### Community Free API Limit > [!WARNING] > > "Community Free API limit reached. Resets 2026-06-24 12:00:00 UTC. For higher, uninterrupted limits, please upgrade to API Pro: [https://etherscan.io/apis](https://etherscan.io/apis)" This error occurs when a chain ID's shared pool of free API calls is fully used up. This limit is cumulative across all users of that pool, not tied to an individual API key. To resolve, wait until the quota resets at the specified time, or upgrade to a [paid plan](https://etherscan.io/api/pricing) for higher, uninterrupted limits. # Common Use Cases Source: https://docs.etherscan.io/common-use-cases Whether you're building a wallet, AI agent, analytics platform, or enterprise finance tool, Etherscan API provides the onchain data needed to power your application. Explore step-by-step guides for common development workflows used by thousands of teams. | Build | What the Etherscan API helps you do | | - | - | | **Wallet and Portfolio** | Retrieve balances, transaction history, token holdings, NFT assets, and address labels. | | **Tax and Accounting** | Export complete transaction records, historical balances, and transfer activity for reconciliation. | | **Security and Compliance** | Screen addresses with labels and reputation, monitor transactions, and assess wallet risk. | | **Onchain Analytics and Research** | Analyze onchain activity, protocol usage, token holders, events, and historical trends. | | **DeFi and Onchain Apps** | Index tokens, contracts, events, and onchain activity for DeFi and Web3 applications. | | **AI and Automation** | Power AI agents, MCP servers, bots, and automation workflows with onchain data and metadata. | Explore guides for common development workflows: > [card] [Wallet and Portfolio](/resources/wallet-and-portfolio) > > Build wallet experiences with balances, transactions, NFTs, and readable names. > [card] [Tax and Accounting](/resources/tax-and-accounting) > > Generate complete, reconcilable transaction records for tax reporting, accounting, and audits. > [card] [Security and Compliance](/resources/security-and-compliance) > > Screen addresses, monitor transactions, and detect phishing, hacks, and sanctions. > [card] [Onchain Analytics and Research](/resources/analytics-and-research) > > Analyze blockchain activity with entity attribution, holders, logs, and daily stats. > [!TIP] > > Every guide uses a single API key across 50+ [supported chains](/supported-chains). Many also combine core API endpoints with [Etherscan Metadata](/metadata/introduction), the identity layer that returns the same names, labels, and reputation shown on Etherscan. New to the API? Start with [Make your first call](/make-your-first-call). # Contract Verification Source: https://docs.etherscan.io/contract-verification Publish your contract's source code on Etherscan: verify programmatically with the API or from your development toolchain. Verifying a contract publishes its source code on the block explorer, where anyone can read it and confirm it matches the bytecode deployed on chain. Once verified, the source, ABI, and a read/write interface appear on the contract's page. Verify by calling the API directly, or with the verify support built into Hardhat, Foundry, and Remix. Already verified? Read the published source and ABI back with the API. > [card] [Verify with the API](/contract-verification/verify-with-api) > > Submit source and check the result, on any chain with one key. > [card] [Get Verified Source Code](/contract-verification/get-source-code) > > Read a verified contract's source and ABI. > [card] [Verify with Hardhat](/contract-verification/verify-with-hardhat) > > Verify from a Hardhat project with the official verify plugin. > [card] [Verify with Foundry](/contract-verification/verify-with-foundry) > > Verify from Foundry, on deploy or for an existing address. > [card] [Verify with Remix](/contract-verification/verify-with-remix) > > Verify from the Remix IDE, right in your browser. > [card] [Common Verification Errors](/contract-verification/common-verification-errors) > > Fix bytecode mismatches and compiler setting failures. # Common Verification Errors Source: https://docs.etherscan.io/contract-verification/common-verification-errors Diagnose and fix common contract verification errors like bytecode and compiler mismatches. ### Contract Doesn't Match > [!WARNING] > > "Compiled contract deployment bytecode does NOT match the transaction deployment bytecode" The submitted source code does not match the contract code deployed on chain. Common causes include using a different compiler version or enabling optimisation runs. For an exact match to be found, both **source code** and **compiler settings** specified have to exactly match the deployment conditions, for the same bytecode to be reproduced. ### Solidity Compilation Error > [!WARNING] > > "Solidity Compilation Error: Identifier not found or not unique" A compilation issue occured due to syntax errors in your Solidity source code. Consider debugging your contract with any compiler such as [**Remix**](https://remix.ethereum.org/) or [**Hardhat**](https://hardhat.org/) and reference the error from Solidity's [**official documentation**](https://docs.soliditylang.org). ### Contract Not Deployed > [!WARNING] > > "Unable to locate ContractCode at 0x539a277b12a3f6723f4c1769edb11b0be7c214da" The contract has not been deployed at the specific address at the specific chain. Check the contract address you've deployed, if your contract deployment transaction has succeeded or if the [**chainId**](/supported-chains) specified is correct. We usually pick up deployments within a few blocks from the chaintip, this will be delayed if the chain is having high activity. But no more than a few mins, [**ping us**](/resources/contact-us) if you've verified the contract is deployed with the Etherscan link. ### Missing or Invalid Library Names > [!WARNING] > > "Library was required but suitable match not found" A [**library**](https://solidity-by-example.org/library/) was used in your contract deployment, but was not specified, misspelt or using the wrong library address. Double check on your library names ( **case sensitive** such as "PRBMath" ) or ensure that a matching library name and library address is provided. ### Missing Contract Name > [!WARNING] > > "Unable to locate ContractName , did you specify the correct Contract Name ?" A match was not found with the name of the contract specified when multiple files are provided. Ensure that you have provided the correct contract name to be matched against, and making sure you submit the **main contract** name not its dependencies. ### Missing/Invalid Constructor Arguments > [!WARNING] > > "Please check if the correct constructor argument was entered" if your contract utilized the `constructor` keyword, you should provide it in hex format. Otherwise, leave this field empty as it is. You may reference your original deployment's constructor arguments or determine it from the [**end of your compiled bytecode**](https://info.etherscan.com/contract-verification-constructor-arguments/). ### Mismatched bytecode metadata hash > [!WARNING] > > "Please check if the correct bytecodehash was specified via standard-json verification." The [**metadata hash**](https://docs.soliditylang.org/en/v0.8.17/metadata.html#encoding-of-the-metadata-hash-in-the-bytecode) settings of your submitted source code differs from the settings of your original contract deployment, such as being set to `ipfs` or `none`. Submit your contract verification using the solc json input format, and [**specify the settings**](https://github.com/PaulRBerg/hardhat-template/blob/f6406c4e7c9e23d5169b39fb11d528a975b678e6/hardhat.config.ts#L104) accordingly there. Other submission formats such as single file or multifile **do not support** changing this setting, and will use the compiler defaults. ### Similar Match Found > [!WARNING] > > "This contract already Similar Matches the deployed ByteCode at 0x4200000000000000000000000000000000000042" This error indicates that the contract has already been verified via [**Similar Match**](https://info.etherscan.com/types-of-contract-verification/) to another contract. Kindly [**reach out**](https://info.etherscan.com/update-on-similar-match-contract-verification/) to us at this point of time to have this updated to Full Match if required. ### Unsupported Solc Version > [!WARNING] > > "Invalid or not supported solc version, see [https://etherscan.io/solcversions](https://etherscan.io/solcversions) for list" This error is thrown when you specify to use an invalid or unsupported version of the Solidity Compiler ie. below `v0.4.11-nightly.2017.3.15+`. Do [**let us know**](/resources/contact-us) if you need to verify a contract below this supported version such as to prove you deployed the first NFT. ### Source Code Already Verified > [!WARNING] > > "Source code already verified" An [**Exact Match**](https://info.etherscan.com/types-of-contract-verification/) has been obtained, get back to having your [**coffee**](https://media.giphy.com/media/11ISwbgCxEzMyY/giphy.gif). If you think this might be a mistake, do check if you've submitted verification to the right **explorer/chain**, a contract that is verified on Etherscan is **not automatically verified** on other explorers. ### Unsupported File Import Callback > [!WARNING] > > "Source "@openzeppelin/contracts/ERC20.sol" not found: File import callback not supported" This error is thrown when contracts reference imports from external sources, such as [**OpenZeppelin**](https://docs.openzeppelin.com/) libraries or Github links. Consider [**flattening**](https://hardhat.org/hardhat-runner/docs/advanced/flattening#flattening-your-contracts) your source code into a single file, or use the Solidity Standard Json Input format that comes with tools such as [**Hardhat**](https://hardhat.org/hardhat-runner/docs/guides/verifying#verifying-your-contracts) to resolve these external imports. ### Temporary Error > [!WARNING] > > "This could be a temporary error, please retry or contact us (Error Code 10001/10002/10003)" Something went wrong on our end, which could include downtime or [**maintenance**](https://status.etherscan.io/) windows. Please retry this in a while or [**ping us**](/resources/contact-us) if this continues to persist. # Get Verified Source Code Source: https://docs.etherscan.io/contract-verification/get-source-code Retrieve a contract's published source code, ABI, and compiler settings with the Etherscan API. Once a contract is verified, its source code, ABI, and compiler settings are public. The `getsourcecode` action returns them for any address, so you can read a contract's code, pull its ABI to build a call, or check whether an address is verified at all. It is the read counterpart to [verifying a contract](/contract-verification/verify-with-api). New to the API? Start with [Make your first call](/make-your-first-call). Chain availability and endpoint access depend on your [API plan](https://etherscan.io/api/pricing). > [!TIP] > > One request works on every chain, just switch the `chainid`. For example, set `chainid=42161` to read a contract on Arbitrum. See [Supported chains](/supported-chains) for the full list. ## Get the source code **1. Make the request** Send a `GET` to the `getsourcecode` action with the contract `address`. The example reads the USDT contract on Ethereum. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=contract&action=getsourcecode&address=0xdAC17F958D2ee523a2206206994597C13D831ec7&apikey=YourApiKey' ``` **2. Read the response** The `result` is an array with a single object. For a verified contract, it carries the source and the exact settings it was compiled with. ```json theme={null} { "status": "1", "message": "OK", "result": [ { "SourceCode": "pragma solidity ^0.4.17;\r\n\r\nlibrary SafeMath { ... }\r\n\r\ncontract TetherToken is Pausable, StandardToken, BlackList { ... }", "ABI": "[{\"constant\":true,\"inputs\":[],\"name\":\"name\", ... }]", "ContractName": "TetherToken", "CompilerVersion": "v0.4.18+commit.9cf6e910", "CompilerType": "solc", "OptimizationUsed": "0", "Runs": "0", "ConstructorArguments": "000000000000000000000000000000000000000000000000000000174876e800...", "EVMVersion": "Default", "Library": "", "ContractFileName": "", "LicenseType": "", "Proxy": "0", "Implementation": "", "SwarmSource": "bzzr://645ee12d73db47fd78ba77fa1f824c3c8f9184061b3b10386beb4dc9236abb28", "SimilarMatch": "" } ] } ``` | Field | What it holds | | - | - | | `SourceCode` | The verified source. A single file, or a Standard JSON input object when the contract was verified that way. | | `ABI` | The contract ABI, as a JSON string. Parse it to encode calls and decode events. | | `ContractName` | The name of the verified contract. | | `CompilerVersion` | The full compiler version the source was built with. | | `OptimizationUsed`, `Runs` | Whether optimization was on, and the number of runs. | | `ConstructorArguments` | The ABI-encoded constructor arguments, in hex. | | `EVMVersion` | The target EVM version, or `Default`. | | `Proxy`, `Implementation` | `Proxy` is `1` for a proxy and `2` for a minimal proxy, `0` otherwise. `Implementation` is the address its calls resolve to. | ## Check whether a contract is verified For an unverified address, the call still returns `status` `1`, but the `ABI` field reads `Contract source code not verified` and `SourceCode` is empty. Check that field before trying to use the source or ABI. ```json theme={null} { "status": "1", "message": "OK", "result": [ { "SourceCode": "", "ABI": "Contract source code not verified", "ContractName": "", "CompilerVersion": "" } ] } ``` If the contract is not verified, [verify it with the API](/contract-verification/verify-with-api) or from your toolchain first. ## Get just the ABI When you only need the ABI to build a call, use [`getabi`](/api-reference/endpoint/getabi) instead. It returns the ABI JSON directly, without the surrounding source and settings. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=contract&action=getabi&address=0xdAC17F958D2ee523a2206206994597C13D831ec7&apikey=YourApiKey' ``` # Verify with the API Source: https://docs.etherscan.io/contract-verification/verify-with-api Verify a deployed smart contract programmatically using the Etherscan API, on any supported chain with one key. Verifying a contract publishes its source code on the Etherscan-run explorer for that chain, so anyone can read it and confirm it matches the bytecode deployed on chain. You can verify from the explorer's [verify page](https://etherscan.io/verifyContract) in the browser, or programmatically through the API. This guide covers the API: submit the source, get a request ID, and poll for the result. New to the API? Start with [Make your first call](/make-your-first-call). Chain availability and endpoint access depend on your [API plan](https://etherscan.io/api/pricing). > [!TIP] > > One request verifies on every chain, just switch the `chainid`. For example, set `chainid=42161` to verify a contract deployed on Arbitrum. See [Supported chains](/supported-chains) for the full list. ## What you need Verification succeeds only when the source you submit reproduces the exact bytecode on chain. Before you start, gather these, in the order the request expects them: * **Contract address (`contractaddress`):** where the contract is deployed, with the `0x` prefix. * **Source code (`sourceCode`):** the exact code that was deployed, as a single file or a Standard JSON input. * **Contract name (`contractname`):** the name of the contract to verify, with its path when needed, such as `contracts/MyToken.sol:MyToken`. * **Compiler version (`compilerversion`):** the full version string, such as `v0.8.28+commit.7893614a`. See the [supported list](https://etherscan.io/solcversions). * **Optimization settings (`optimizationUsed`, `runs`):** whether optimization was on and the number of runs. These must match the deployment. * **Constructor arguments (`constructorArguments`):** the ABI-encoded arguments, in hex, if your contract used a constructor. Leave empty otherwise. * **EVM version (`evmVersion`):** the target EVM version, or the compiler `default`. * **License type (`licenseType`):** the [license](https://etherscan.io/contract-license-types) to publish with the code, such as `3` for MIT. A mismatch in any of these is the usual reason verification fails. See [Common verification errors](/contract-verification/common-verification-errors) if it does. ## Choose a source format Set `codeformat` to match how you submit the source: * **`solidity-standard-json-input`:** the compiler's Standard JSON input. It carries the source, imports, and every compiler setting in one object, so `optimizationUsed`, `runs`, and `evmVersion` do not need to be sent separately. Use this for any contract with imports (such as OpenZeppelin) or non-default settings. Most build tools can output it. * **`solidity-single-file`:** one flattened `.sol` file with no external imports. With this format the compiler settings are not embedded, so you send `optimizationUsed` and `runs` as separate fields (per the endpoint's field notes, `optimizationUsed` is required for single-file submissions). Standard JSON input is the more reliable choice, since the settings travel with the source instead of being restated by hand. ## Verify your contract **1. Submit the source code** Send a `POST` to the `verifysourcecode` action. The `chainid` in the URL selects the network, so use the `chainid` of the chain your contract is deployed to. The example uses Standard JSON input, with the fields in the order the endpoint lists them. ```bash theme={null} curl --request POST \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=contract&action=verifysourcecode' \ --data-urlencode 'apikey=YourApiKey' \ --data-urlencode 'contractaddress=0xYourContractAddress' \ --data-urlencode 'sourceCode={"language":"Solidity","sources":{...},"settings":{...}}' \ --data-urlencode 'contractname=contracts/MyToken.sol:MyToken' \ --data-urlencode 'compilerversion=v0.8.28+commit.7893614a' \ --data-urlencode 'codeformat=solidity-standard-json-input' \ --data-urlencode 'constructorArguments=' \ --data-urlencode 'licenseType=3' ``` For `solidity-single-file`, set `codeformat=solidity-single-file`, put the flattened source in `sourceCode`, and add `optimizationUsed` and `runs` (they follow `codeformat`, before `constructorArguments`, in the field order). A successful submission returns a `result` containing a GUID. This is your request ID, not a confirmation. Keep it for the next step. ```json theme={null} { "status": "1", "message": "OK", "result": "a7lpxkm9kpcpicx7daftmjifrfhiuhf5vqqnawhkfhzfrcpnxj" } ``` > [!NOTE] > > Verifying on one chain's explorer does not verify the contract on any other. Repeat this flow with the matching `chainid` for each chain the contract is deployed to. **2. Check the verification status** Pass the GUID to the `checkverifystatus` action to check the result. Verification is queued, so the request may still be processing when you first check: call it again until the `result` resolves. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=contract&action=checkverifystatus&guid=a7lpxkm9kpcpicx7daftmjifrfhiuhf5vqqnawhkfhzfrcpnxj&apikey=YourApiKey' ``` The `result` field reports the outcome. On success it reads `Pass - Verified`. ```json theme={null} { "status": "1", "message": "OK", "result": "Pass - Verified" } ``` If verification does not succeed, `result` returns the reason. Correct the mismatched input and submit again. **3. Confirm the verified source** Once the status reads `Pass - Verified`, a green verified checkmark appears on the Contract tab of the contract's page on the explorer, showing the contract is verified. You can also read the published source back with `getsourcecode`. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=contract&action=getsourcecode&address=0xYourContractAddress&apikey=YourApiKey' ``` ## Other contract types The same submit-and-poll flow applies, with a different action for each type: | Contract type | Action | | - | - | | Vyper | [`verifysourcecode` (Vyper)](/api-reference/endpoint/verifyvyper) | | zkSync | [`verifysourcecode` (zkSync)](/api-reference/endpoint/verifyzksyncsourcecode) | | Stylus | [`verifysourcecode` (Stylus)](/api-reference/endpoint/verifystylus) | | Proxy | [`verifyproxycontract`](/api-reference/endpoint/verifyproxycontract), then [`checkproxyverification`](/api-reference/endpoint/checkproxyverification) | ## If verification fails Most failures come from a setting that does not match the deployment: a different compiler version, optimization runs, EVM version, or constructor arguments. Work through [Common verification errors](/contract-verification/common-verification-errors) for the specific message you received. Prefer to verify from your existing toolchain instead? See [Verify with Hardhat](/contract-verification/verify-with-hardhat), [Verify with Foundry](/contract-verification/verify-with-foundry), or [Verify with Remix](/contract-verification/verify-with-remix). # Verify with Foundry Source: https://docs.etherscan.io/contract-verification/verify-with-foundry Verify a smart contract on Etherscan using Foundry, at deployment or for an existing contract. > [!NOTE] > > Ensuring you're using the latest version of Foundry, via `foundryup` [**Foundry**](https://book.getfoundry.sh/) is a tool that helps take the heat off smart contract development steps, including compiling, deploying and finally submitting your contract for verification. This assumes you already have a [**Foundry project**](https://getfoundry.sh/guides/project-setup/creating-a-new-project)**,** setup, and you're about to deploy and verify next. ## Deploy and Verify ```bash theme={null} forge create --broadcast --rpc-url https://rpc.sepolia.ethpandaops.io --private-key YourPrivateKey src/ContractFile.sol:ContractName --verify --verifier etherscan --etherscan-api-key YourApiKeyToken ``` ## Verify an Existing Contract ```bash theme={null} forge verify-contract --watch --chain sepolia 0x324eca20b358b18e48f2611f7452560ce3b3c1bb src/ContractFile.sol:ContractName --verifier etherscan --etherscan-api-key YourApiKeyToken ``` ## Custom Chains Most chains with an Etherscan explorer are supported using the `--chain` flag. For (very) new chains that aren't natively supported by Foundry, you can use a custom `--verifier-url` Append the Etherscan V2 base path and the new chainId, in this example for Stable Testnet(2201). ```bash theme={null} forge verify-contract 0x324eca20b358b18e48f2611f7452560ce3b3c1bb src/ContractFile.sol:ContractName --verifier etherscan --verifier-url "https://api.etherscan.io/v2/api?chainid=2201" --etherscan-api-key YourEtherscanApiKey --watch ``` > *This open source integration was shipped by* [*@iainnash*](https://github.com/iainnash) *and the Foundry team* # Verify with Hardhat Source: https://docs.etherscan.io/contract-verification/verify-with-hardhat Verify a smart contract on Etherscan from a Hardhat project. > [!NOTE] > > This guide covers Hardhat 3. There is an official [**migration guide**](https://hardhat.org/docs/hardhat3/migration) from the Hardhat team. [**Hardhat**](https://hardhat.org/) is a smart contracts development tool, perfect if you're familiar with Javascript/Typescript. This assumes you already have a [**Hardhat 3 project**](https://hardhat.org/docs/getting-started)**,** setup, and you're about to deploy and verify next. ## Install Via npm. ```bash theme={null} npm add --save-dev @nomicfoundation/hardhat-verify ``` ## Config In `hardhat.config.ts`, import the plugin at the top and add it to the list of `plugins`. Then, specify a `verify` config with your Etherscan API key. This key works for most [**supported chains**](/supported-chains), otherwise you need to define a CustomChain below. ```ts theme={null} import { defineConfig } from "hardhat/config"; import hardhatVerify from "@nomicfoundation/hardhat-verify"; export default defineConfig({ plugins: [ hardhatVerify, // ...other plugins... ], solidity: "0.8.28", networks: { sepolia: { url: configVariable("SEPOLIA_RPC_URL"), accounts: [configVariable("SEPOLIA_PRIVATE_KEY")], }, }, verify: { etherscan: { apiKey: "YourEtherscanApiKey", }, }, }); ``` ## Deploy and Verify (using Hardhat Ignition) ```bash theme={null} npx hardhat ignition deploy ignition/modules/Counter.ts --network sepolia --verify ``` ## Verify an Existing Contract ```bash theme={null} npx hardhat verify --network sepolia 0xdCBdBAA8404554502B433106e62728B659aCfE3b ``` ## Custom Chains For new chains that have an Etherscan explorer but isn't supported with Hardhat defaults, you need to add both the `networks` and `chainDescriptor` in `hardhat.config.ts`. ```ts theme={null} export default defineConfig({ // ... networks: { monadTestnet: { type: "http", chainType: "l1", url: configVariable("MONAD_TESTNET_RPC_URL"), accounts: [configVariable("MONAD_TESTNET_PRIVATE_KEY")], } }, chainDescriptors: { 10143: { name: "monadTestnet", blockExplorers: { etherscan: { name: "Monad Testnet Explorer", url: "https://testnet.monadscan.com", apiUrl: "https://api.etherscan.io/v2/api", }, }, } }, }); ``` Use the same deploy and verify command as above, but with the updated `--network`. In this example for `monadTestnet` ```bash theme={null} npx hardhat ignition deploy ignition/modules/Counter.ts --network monadTestnet --verify ``` # Verify with Remix Source: https://docs.etherscan.io/contract-verification/verify-with-remix Verify a smart contract on Etherscan using the Remix contract verification plugin. [**Remix**](https://remix.ethereum.org/) is a no-frills, just works in your browser Solidity development tool. ## Activate Once you've written and deployed your contract, click on the **Plugin Manager** and select **Contract Verification**. ![Remix homepage](https://mintcdn.com/etherscan/T1KjV-_fSmvoQ9iv/images/remix.png?fit=max\&auto=format\&n=T1KjV-_fSmvoQ9iv\&q=85\&s=3bccb8e28bebeb7b7127ac7ba2e72576) ## Add an API Key The Etherscan verification plugin requires an API key because grumpy bots yell at us on a daily basis. Click the "Enable" link and add your key, leave the rest as default. ![Remix add key](https://mintcdn.com/etherscan/T1KjV-_fSmvoQ9iv/images/remix-add-key.png?fit=max\&auto=format\&n=T1KjV-_fSmvoQ9iv\&q=85\&s=f8b7485653e56a47230d3ebab0bf97d1) ## Verify Fill in the chain, contract address, and contract name that you deployed. Now that the Etherscan checkbox is enabled, click Verify. Without this, the contract won't show as verified on Etherscan's explorer. ![Remix verify](https://mintcdn.com/etherscan/T1KjV-_fSmvoQ9iv/images/remix-verify.avif?fit=max\&auto=format\&n=T1KjV-_fSmvoQ9iv\&q=85\&s=b4265f5963aa6077cbd203a8bd866cce) Once verified, you will see a happy green ✅. ![Remix verified](https://mintcdn.com/etherscan/T1KjV-_fSmvoQ9iv/images/remix-verified.avif?fit=max\&auto=format\&n=T1KjV-_fSmvoQ9iv\&q=85\&s=aaa54005623b0fa77bbdbb589e23ec0c) > *This open source integration was shipped by* [**@manuelwedler**](https://github.com/manuelwedler) *and the Remix team*. # Endpoint Overview Source: https://docs.etherscan.io/endpoint-overview A complete list of Etherscan API endpoints, grouped by module. Every Etherscan API endpoint, grouped by module. One key works across 50+ [supported chains](/supported-chains). > [card] [Set up your API key](/set-up-your-api-key) > > Create a free key and make your first call in minutes. > [!TIP] > > Endpoints marked PRO are available to the [Standard plan](/rate-limits) and above. Endpoints marked PRO+ require the [Pro Plus plan](https://etherscan.io/api/pricing). Community endpoint access depends on the chain's [plan availability](/supported-chains). Source code and ABI endpoints are available on all chains for every API plan, including the Free tier. ## Account | Endpoint | Description | | - | - | | [Get Native Balance for an Address](/api-reference/endpoint/balance) | Retrieves the native token balance held by a specific address. | | [Get Native Balance for Multiple Addresses](/api-reference/endpoint/balancemulti) | Retrieves the native token balance held by multiple addresses in a single call. | | [Get Historical Native Balance for an Address](/api-reference/endpoint/balancehistory)PRO | Retrieves the balance of a specified address at a given block height. | | [Get Normal Transactions By Address](/api-reference/endpoint/txlist) | Retrieves the transaction history of a specified address, with optional pagination. | | [Normal Transactions Advanced Filter](/api-reference/endpoint/advanced-filter-txlist) | Retrieves Normal Transactions with advanced from and to address filtering. | | [Get ERC20 Token Transfers by Address](/api-reference/endpoint/tokentx) | Retrieves ERC-20 token transfers, filtered by address and/or token contract. | | [ERC20 Token Transfers Advanced Filter](/api-reference/endpoint/advanced-filter-tokentx) | Retrieves ERC20 token transfers with advanced from and to address filtering. | | [Get ERC721 Token Transfers by Address](/api-reference/endpoint/tokennfttx) | Retrieves ERC-721 token transfers, filtered by address and/or token contract. | | [ERC721 Token Transfers Advanced Filter](/api-reference/endpoint/advanced-filter-tokennfttx) | Retrieves ERC721 token transfers with advanced from and to address filtering. | | [Get ERC1155 Token Transfers by Address](/api-reference/endpoint/token1155tx) | Retrieves ERC-1155 token transfers, filtered by address and/or token contract. | | [ERC1155 Token Transfers Advanced Filter](/api-reference/endpoint/advanced-filter-token1155tx) | Retrieves ERC1155 token transfers with advanced from and to address filtering. | | [Get Internal Transactions by Address](/api-reference/endpoint/txlistinternal) | Retrieves the internal transaction history of a specified address, with optional pagination. | | [Internal Transactions Advanced Filter](/api-reference/endpoint/advanced-filter-txlistinternal) | Retrieves Internal Transactions with advanced from and to address filtering. | | [Get Internal Transactions by Block Range](/api-reference/endpoint/txlistinternal-blockrange)PRO | Returns internal transactions within a specified block range, with optional pagination. | | [Get Internal Transactions by Transaction Hash](/api-reference/endpoint/txlistinternal-txhash) | Retrieves the list of internal transactions executed within a specific transaction. | | [Get Blocks Validated by Address](/api-reference/endpoint/getminedblocks) | Retrieves the list of blocks validated by a specified address. | | [Get Beacon Chain Withdrawals by Address](/api-reference/endpoint/txsbeaconwithdrawal) | Retrieves beacon chain withdrawals, optionally filtered by address. | | [Get Address Funded By](/api-reference/endpoint/fundedby)PRO | Retrieves the address and transaction that first funded a specific EOA address, useful for tracing fund origins. Not available to contract addresses. | ## Blocks | Endpoint | Description | | - | - | | [Get Block and Uncle Rewards by Block Number](/api-reference/endpoint/getblockreward) | Retrieves block rewards along with associated Uncle block rewards. | | [Get Block Transaction Counts by Block Number](/api-reference/endpoint/getblocktxnscount) | Retrieves transaction counts for a specified Ethereum block. | | [Get Estimated Block Countdown by Block Number](/api-reference/endpoint/getblockcountdown) | Retrieves the estimated time, in seconds, until a specified block is mined. | | [Get Block Number by Timestamp](/api-reference/endpoint/getblocknobytime) | Retrieves the block number mined at a specific timestamp. | | [Get Daily Average Block Size](/api-reference/endpoint/dailyavgblocksize)PRO | Retrieves the average daily block size over a specified date range. | | [Get Daily Block Count and Rewards](/api-reference/endpoint/dailyblkcount)PRO | Retrieves the daily count of mined blocks along with the corresponding block rewards. | | [Get Daily Block Rewards](/api-reference/endpoint/dailyblockrewards)PRO | Retrieves the daily distribution of block rewards to miners. | | [Get Daily Average Block Time](/api-reference/endpoint/dailyavgblocktime)PRO | Retrieves the daily average time taken to successfully mine a block. | | [Get Daily Uncle Block Count and Rewards](/api-reference/endpoint/dailyuncleblkcount)PRO | Returns the daily count of Uncle blocks mined and their associated rewards. | ## Contracts | Endpoint | Description | | - | - | | [Get Contract ABI](/api-reference/endpoint/getabi) | Retrieve the ABI for a verified smart contract. | | [Get Contract Source Code](/api-reference/endpoint/getsourcecode) | Retrieve the source code for a verified smart contract. | | [Get Contract Creator and Creation Tx Hash](/api-reference/endpoint/getcontractcreation) | Retrieve a contract's deployer address and creation transaction. | ## Contract Verification | Endpoint | Description | | - | - | | [Verify Solidity Source Code](/api-reference/endpoint/verifysourcecode) | Submit a Solidity source code for verification. | | [Verify zkSync Source Code](/api-reference/endpoint/verifyzksyncsourcecode) | Submit zkSync source code for verification. | | [Verify Vyper Source Code](/api-reference/endpoint/verifyvyper) | Submit a Vyper contract for verification. | | [Verify Stylus Source Code](/api-reference/endpoint/verifystylus) | Submit Stylus source code for verification. | | [Verify Proxy Contract](/api-reference/endpoint/verifyproxycontract) | Submit a proxy contract for verification. | | [Check Source Code Verification Status](/api-reference/endpoint/checkverifystatus) | Check the status of a source code verification request. | | [Check Proxy Contract Verification Status](/api-reference/endpoint/checkproxyverification) | Check the status of a proxy contract verification. | ## Gas Tracker | Endpoint | Description | | - | - | | [Get Estimation of Confirmation Time](/api-reference/endpoint/gasestimate) | Estimate confirmation time based on a provided gas price. | | [Get Gas Oracle](/api-reference/endpoint/gasoracle) | Get current gas price recommendations. | | [Get Daily Average Gas Limit](/api-reference/endpoint/dailyavggaslimit)PRO | Retrieve daily average gas limit statistics. | | [Get Ethereum Daily Total Gas Used](/api-reference/endpoint/dailygasused)PRO | Retrieves the total daily gas usage for transactions within the network | | [Get Daily Average Gas Price](/api-reference/endpoint/dailyavggasprice)PRO | Retrieve daily average gas price statistics. | ## Geth/Parity Proxy | Endpoint | Description | | - | - | | [eth\_blockNumber](/api-reference/endpoint/ethblocknumber) | Fetch the latest block number. | | [eth\_getBlockByNumber](/api-reference/endpoint/ethgetblockbynumber) | Get block information by number. | | [eth\_getUncleByBlockNumberAndIndex](/api-reference/endpoint/ethgetunclebyblocknumberandindex) | Get uncle block details by block number and index. | | [eth\_getBlockTransactionCountByNumber](/api-reference/endpoint/ethgetblocktransactioncountbynumber) | Get the number of transactions in a block. | | [eth\_getTransactionByHash](/api-reference/endpoint/ethgettransactionbyhash) | Get transaction details by hash. | | [eth\_getTransactionByBlockNumberAndIndex](/api-reference/endpoint/ethgettransactionbyblocknumberandindex) | Get transaction details by block number and index. | | [eth\_getTransactionCount](/api-reference/endpoint/ethgettransactioncount) | Get the number of transactions sent from an address. | | [eth\_sendRawTransaction](/api-reference/endpoint/ethsendrawtransaction) | Broadcast a signed transaction to the network. | | [eth\_getTransactionReceipt](/api-reference/endpoint/ethgettransactionreceipt) | Get the receipt of a transaction by hash. | | [eth\_call](/api-reference/endpoint/ethcall) | Execute a call without creating a transaction. | | [eth\_getCode](/api-reference/endpoint/ethgetcode) | Get the code stored at an address. | | [eth\_getStorageAt](/api-reference/endpoint/ethgetstorageat) | Get the value at a storage position. | | [eth\_gasPrice](/api-reference/endpoint/ethgasprice) | Get the current gas price. | | [eth\_estimateGas](/api-reference/endpoint/ethestimategas) | Estimate the gas required for a transaction. | ## Logs | Endpoint | Description | | - | - | | [Get Event Logs by Address](/api-reference/endpoint/getlogs) | Retrieves event logs from a specific address, with optional block range filtering. | | [Get Event Logs by Topics](/api-reference/endpoint/getlogs-topics) | Retrieves event logs within a specified block range, filtered by topics. | | [Get Event Logs by Address and Topics](/api-reference/endpoint/getlogs-address-topics) | Retrieves event logs from a specified address, filtered by topics and block range. | ## Stats | Endpoint | Description | | - | - | | [Get Total Supply of Ether](/api-reference/endpoint/ethsupply) | Retrieves the current circulating supply of Ether, excluding ETH2 staking rewards and EIP-1559 burned fees. | | [Get Total Supply of Ether 2](/api-reference/endpoint/ethsupply2) | Retrieves the current Ether supply, including circulation, ETH2 staking rewards, EIP-1559 burned fees, and total ETH withdrawn from the beacon chain. | | [Get Ether Last Price](/api-reference/endpoint/ethprice) | Retrieves the latest price of the native/gas token. | | [Get Ethereum Nodes Size](/api-reference/endpoint/chainsize) | Retrieves the total size of the Ethereum blockchain, in bytes, within a specified date range. | | [Get Total Nodes Count](/api-reference/endpoint/nodecount) | Retrieves the total count of discoverable Ethereum nodes. | | [Get Historical Total Nodes Count](/api-reference/endpoint/nodecounthistory)PRO | Retrieves the historical daily count of discoverable Ethereum nodes. | | [Get Daily Network Transaction Fee](/api-reference/endpoint/dailytxnfee)PRO | Retrieves the total transaction fees paid to miners each day. | | [Get Daily New Address Count](/api-reference/endpoint/dailynewaddress)PRO | Retrieves the daily count of newly created addresses. | | [Get Daily ENS Registration Count](/api-reference/endpoint/dailyensregister)PRO | Retrieves the daily count of ENS registrations on Ethereum. | | [Get Daily Network Utilization](/api-reference/endpoint/dailynetutilization)PRO | Retrieves the daily average percentage of gas used relative to the gas limit. | | [Get Daily Average Network Hash Rate](/api-reference/endpoint/dailyavghashrate)PRO | Retrieves the historical hash rate, reflecting the processing power of the network over time. | | [Get Daily Transaction Count](/api-reference/endpoint/dailytx)PRO | Retrieves the daily number of transactions executed in the blockchain. | | [Get Daily Average Network Difficulty](/api-reference/endpoint/dailyavgnetdifficulty)PRO | Returns the historical mining difficulty data of the network. | | [Get Ether Historical Price](/api-reference/endpoint/ethdailyprice)PRO | Returns the historical price data for 1 ETH. | ## Transactions | Endpoint | Description | | - | - | | [Check Contract Execution Status](/api-reference/endpoint/getstatus) | Retrieves the current status and execution result of a specific transaction. | | [Check Transaction Receipt Status](/api-reference/endpoint/gettxreceiptstatus) | Retrieves the execution status of a specific transaction using its transaction hash. | ## Tokens | Endpoint | Description | | - | - | | [Get ERC20-Token TotalSupply by ContractAddress](/api-reference/endpoint/tokensupply) | Returns the amount of an ERC-20 token in circulation. | | [Get Historical ERC20-Token TotalSupply by ContractAddress & BlockNo](/api-reference/endpoint/tokensupplyhistory)PRO | Returns the amount of an ERC-20 token in circulation at a certain block height. | | [Get ERC20-Token Account Balance for TokenContractAddress](/api-reference/endpoint/tokenbalance) | Retrieves the current ERC-20 token balance for a specified address. | | [Get Historical ERC20-Token Account Balance by BlockNo](/api-reference/endpoint/tokenbalancehistory)PRO | Retrieves the ERC-20 token balance for a specified address at a given block height. | | [Get Top Token Holders](/api-reference/endpoint/topholders)PRO | Returns the list of top holders for a specified ERC-20 token. | | [Get Token Holder List by Contract Address](/api-reference/endpoint/tokenholderlist)PRO | Retrieves the current list of ERC-20 token holders and their token balances. | | [Get Token Holder Count by Contract Address](/api-reference/endpoint/tokenholdercount)PRO | Retrieves a simple count of ERC-20 token holders. | | [Get Token Info by ContractAddress](/api-reference/endpoint/tokeninfo)PRO | Retrieves project details and social media links for an ERC-20/ERC-721/ERC-1155 token. | | [Get Address ERC20 Token Holding](/api-reference/endpoint/addresstokenbalance)PRO | Retrieves the list of ERC-20 tokens and balances held by a specified address. | | [Get Address ERC721 Token Holding](/api-reference/endpoint/addresstokennftbalance)PRO | Retrieves the ERC-721 tokens and their quantities owned by a specific address. | | [Get Address ERC721 Token Inventory by Contract](/api-reference/endpoint/addresstokennftinventory)PRO | Retrieves the ERC-721 token IDs owned by an address for a given NFT contract. | ## L2 Deposits/Withdrawals | Endpoint | Description | | - | - | | [Get Plasma Deposits by Address](/api-reference/endpoint/txnbridge) | Retrieves a list of Plasma deposit transactions received by a specified address. | | [Get Deposit Transactions by Address](/api-reference/endpoint/getdeposittxs) | Retrieves all deposit transactions made by a specified address. | | [Get Withdrawal Transactions by Address](/api-reference/endpoint/getwithdrawaltxs) | Retrieves all withdrawal transactions made by a specified address. | ## ENS | Endpoint | Description | | - | - | | [Resolve an ENS Name to an Address](/api-reference/endpoint/forwardresolve) | Resolves an ENS name or onchain subdomain to its address. | ## Nametags | Endpoint | Description | | - | - | | [Get Metadata for an Address](/api-reference/endpoint/getaddresstag)PRO+ | Get nametags and metadata for the specified address. | ## Usage | Endpoint | Description | | - | - | | [Get API Usage](/api-reference/endpoint/getapilimit) | Returns your current API credit usage and limit for the interval. | | [Chainlist](/api-reference/endpoint/chainlist) | Returns the list of all supported Etherscan mainnet and testnet chains. | ## Beta Endpoints | Endpoint | Description | | - | - | | [Get Prediction Market Trades by Address](/api-reference/endpoint/get-prediction-market-trades-by-address) | Retrieves prediction market trades from Polymarket by an address. | # Endpoint Showcase Source: https://docs.etherscan.io/endpoint-showcase See which Etherscan API endpoints power each page on etherscan.io, so you can rebuild them. Many of the features you see on etherscan.io are built on the same public API you have access to. These pages map each explorer page to the endpoints behind it, so you can recreate them in your own app. Every call uses a **single API key** across 50+ [supported chains](/supported-chains); set `chainid` for the chain you want. Pick the explorer page you want to recreate: > [card] [Address](/endpoint-showcase/address) > > Balances, transactions, token transfers, and name tags. > [card] [Token](/endpoint-showcase/token) > > Supply, holders, price, and transfers. > [card] [Block](/endpoint-showcase/block) > > Rewards, gas, transaction counts, and block timing. > [card] [Transaction](/endpoint-showcase/transaction) > > Details, execution status, internal transactions, and logs. > [card] [Gas Tracker](/endpoint-showcase/gas-tracker) > > Gas prices and confirmation time estimates. > [card] [Contract](/endpoint-showcase/contract) > > Source code, ABI, and event logs. > [card] [Charts and Stats](/endpoint-showcase/charts-and-stats) > > Supply, price, and daily network metrics. ## Next steps > [card] [Common Use Cases](/common-use-cases) > > Start from what you want to build. > [card] [API Reference](/api-reference/endpoint/balance) > > Every endpoint, grouped by resource. # Address Page Source: https://docs.etherscan.io/endpoint-showcase/address The endpoints behind an address page on etherscan.io. An [address page](https://etherscan.io/address/vitalik.eth) on etherscan.io is built from the Accounts, Stats, and Nametag endpoints. The list below maps each part of the page to the endpoint behind it. One API key works across 50+ [supported chains](/supported-chains); set `chainid` to choose one. ![Etherscan address page](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/address-page.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=077ab5d51798e8ef44808889d83c08fb) Hover an area to find it on the page. Select it to jump to the endpoints below.
    # Block Page Source: https://docs.etherscan.io/endpoint-showcase/block The endpoints behind a block page on etherscan.io. The [blocks page](https://etherscan.io/blocks) on etherscan.io is built from the Blocks, Stats, and Proxy endpoints. The list below maps each part of the page to the endpoint behind it. One API key works across 50+ [supported chains](/supported-chains); set `chainid` to choose one. ![Etherscan blocks page](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/block-page.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=1504f35757e522734a079fee1c7d8cbc) Hover an area to find it on the page. Select it to jump to the endpoints below.
      # Charts and Stats Source: https://docs.etherscan.io/endpoint-showcase/charts-and-stats The endpoints behind the charts and stats pages on etherscan.io. The [charts and stats pages](https://etherscan.io/charts) on etherscan.io are built from the Stats endpoints. The list below maps each section to the endpoints behind it. One API key works across 50+ [supported chains](/supported-chains); set `chainid` to choose one. ![Etherscan charts and stats](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/charts-page.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=cae0d259f4b67275024f751df8130d76) Hover an area to find it on the page. Select it to jump to the endpoints below.
        # Contract Page Source: https://docs.etherscan.io/endpoint-showcase/contract The endpoints behind a contract page on etherscan.io. A [contract page](https://etherscan.io/address/0x00000000219ab540356cbb839cbe05303d7705fa#code) on etherscan.io is built from the Contracts and Logs endpoints. The list below maps each part of the page to the endpoint behind it. One API key works across 50+ [supported chains](/supported-chains); set `chainid` to choose one. ![Etherscan contract page](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/contract-page.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=72819fe2c22e69fc9fdad7577bf56d53) Hover an area to find it on the page. Select it to jump to the endpoints below.
          # Gas Tracker Source: https://docs.etherscan.io/endpoint-showcase/gas-tracker The endpoints behind the gas tracker on etherscan.io. The [gas tracker](https://etherscan.io/gastracker) on etherscan.io is built from the Gas Tracker endpoints. The list below maps each part of the page to the endpoint behind it. One API key works across 50+ [supported chains](/supported-chains); set `chainid` to choose one. ![Etherscan gas tracker](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/gas-page.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=c4b2a21be15e13ff7da1366dd403dbcb) Hover an area to find it on the page. Select it to jump to the endpoints below.
            # Token Page Source: https://docs.etherscan.io/endpoint-showcase/token The endpoints behind a token page on etherscan.io. A [token page](https://etherscan.io/token/0xdac17f958d2ee523a2206206994597c13d831ec7) on etherscan.io is built from the Tokens, Stats, Accounts, and Contracts endpoints. The list below maps each part of the page to the endpoint behind it. One API key works across 50+ [supported chains](/supported-chains); set `chainid` to choose one. ![Etherscan token page](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/token-page.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=99621ab6f4ab4db5168fef352df5b0de) Hover an area to find it on the page. Select it to jump to the endpoints below.
              # Transaction Page Source: https://docs.etherscan.io/endpoint-showcase/transaction The endpoints behind a transaction page on etherscan.io. A [transaction page](https://etherscan.io/tx/0x558b5e8573d3455f064a3a71a0e90013239ee91d4a99f7a6bf4f284d2503bbab) on etherscan.io is built from the Proxy, Transactions, Accounts, and Logs endpoints. The list below maps each part of the page to the endpoint behind it. One API key works across 50+ [supported chains](/supported-chains); set `chainid` to choose one. ![Etherscan transaction page](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/transaction-page.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=5b806025e59c13fd15fa1633f6d0beb3) Hover an area to find it on the page. Select it to jump to the endpoints below.
                # Welcome to the Etherscan API Source: https://docs.etherscan.io/introduction The complete onchain data API for the crypto ecosystem Etherscan is the most used block explorer in crypto, and the [Etherscan API](https://etherscan.io/api) gives you the same reliable data behind it across 50+ EVM chains. It is the reference layer teams trust to verify balances, transfers, internal transactions, and contract activity, with accuracy that holds up in front of users, finance, and compliance. * [**Onchain data API**](/endpoint-overview): balances, transactions, token transfers, contract source code, logs, gas, and stats through REST endpoints. * [**Etherscan Metadata**](/metadata/introduction): the identity layer of names, labels, and reputation for addresses, the same as on etherscan.io. Use it alone or alongside the onchain data API. ## Get Started > [card] [Set Up Your API Key](/set-up-your-api-key) > > Create your Etherscan API key and make your first API call. > [card] [Build with AI](/build-with-ai/introduction) > > Connect agents to live data with MCP, the CLI, and skills. > [card] [Supported Chains](/supported-chains) > > 50+ EVM chains under one key. Set `chainid` to choose one. > [card] [Rate Limits](/rate-limits) > > The calls per second and daily limits for each plan. > [card] [Endpoint Showcase](/endpoint-showcase) > > See which endpoints power each page on etherscan.io. ## Use Cases > [card] [Wallet and Portfolio](/resources/wallet-and-portfolio) > > Token balances, transactions, and NFT holdings across every chain. Build with `tokenbalance`, `txlist`, `tokennfttx`. > [card] [Tax and Accounting](/resources/tax-and-accounting) > > Records for filings and audits: internal transactions, transfers, historical balances, and name tags. > [card] [Security and Compliance](/resources/security-and-compliance) > > Screeners, monitoring, and risk dashboards. Build with `getaddresstag`, `getsourcecode`, `fundedby`. > [card] [Onchain Analytics and Research](/resources/analytics-and-research) > > Dashboards from transfers, holders, network stats. Build with `dailytx`, `tokenholderlist`, `getlogs`. # Make Your First Call Source: https://docs.etherscan.io/make-your-first-call Make your first Etherscan API request with a worked curl example and a parameter breakdown. You need an API key first. If you do not have one, [set it up here](/set-up-your-api-key). **1. Call the API** This reads the native ETH balance of an address on Ethereum. Replace `YourApiKey` with your key, then run it in your command line: ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=balance&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&tag=latest&apikey=YourApiKey' ``` * `chainid`: selects the chain. E.g. 1 (Ethereum). * `module` and `action`: choose the endpoint. E.g. account and balance. * `address`: the account you are querying. E.g. 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045. * `tag`: the block to read the balance at. E.g. latest. * `apikey`: your API key. Replace YourApiKey with your API key. Alternatively, you can open the [API playground](/api-reference/endpoint/balance?playground=open) and paste the example values in blue to call the endpoint. > [!TIP] > > The same key and endpoint work on every chain, just switch the `chainid`. For example, set `chainid=42161` to read the same address on Arbitrum. See [Supported chains](/supported-chains) for the full list. > [!WARNING] > > Your key counts against your plan rate limits, so treat it like a credential. See [Keep your key secure](#keep-your-key-secure) below. **2. Read the response** ```json theme={null} { "status": "1", "message": "OK", "result": "172774397764084972158218" } ``` * `status`: `1` on success, `0` on error. * `message`: `OK` on success, `NOTOK` on error. * `result`: the data. Here, the balance in wei. Divide by 10^18 for ETH. On error, `result` holds the cause. See [Common error messages](/common-error-messages). ## Keep your key secure Your key counts against your rate limits, so treat it like a credential. > [!WARNING] > > Never commit keys to public repositories or ship them in client-side code. Route API calls through your own backend instead. * Store keys in environment variables or a secrets manager, not in source files. * Rotate a key if it leaks: stop using the exposed key, remove it from your [API dashboard](https://etherscan.io/apidashboard), and create a new one there. > [card] [Rate Limits](/rate-limits) > > The calls per second and daily limits for each plan. > [card] [Common Use Cases](/common-use-cases) > > Find the right endpoints for what you are building. # Introduction Source: https://docs.etherscan.io/metadata/introduction Etherscan Metadata: nametags, labels, categories, and reputation for addresses across chains. ## Overview Etherscan Metadata provides structured access to address-level context, helping developers, compliance teams, and analytics platforms understand the entities behind onchain activity. By enriching raw addresses with nametags, labels, categories, and descriptive\ attributes, Etherscan Metadata makes blockchain data easier to interpret and use in real-world applications. With multichain coverage across the EVM ecosystem, organizations can analyze and\ monitor labeled entities across multiple networks through a unified dataset. ## Key Capabilities * Multichain coverage across Ethereum, Base, BSC, Polygon and 50+ [supported](https://docs.etherscan.io/supported-chains)\ [chains](https://docs.etherscan.io/supported-chains). * Address metadata including entity nametags, labels, categories, and descriptive attributes. * Structured, machine-readable data designed for analytics, monitoring, and compliance workflows. * Built for integration into applications, internal tools, and enterprise data pipelines. ## Metadata Access Options Etherscan Metadata is available in two formats, depending on your use case. ### [Address Metadata API (Pro Plus)](https://docs.etherscan.io/api-reference/endpoint/getaddresstag) * Real-time metadata lookup for specific addresses. * Returns structured metadata such as nametags, labels, and categories. * Designed for real-time applications and UI enrichment. ### [Metadata CSV (Enterprise)](https://docs.etherscan.io/api-reference/endpoint/getlabelmasterlist-v2) * Full multichain dataset delivered via API-triggered export. * Bulk access to labeled addresses across [supported chains](https://docs.etherscan.io/supported-chains). * Available as downloadable CSV or ZIP files. * Designed for large-scale analytics and compliance workflows. ## Use Cases * **Compliance and risk monitoring**: Address screening and AML workflows. * **Blockchain analytics**: Entity tracking and ecosystem insights. * **Applications and wallets**: Display human-readable entity labels and address context. * **Trading and research**: Monitor activity from exchanges, protocols, and key entities. ## Why Etherscan Metadata * This is the same dataset that powers address tags across Etherscan-supported explorers, providing useful context to millions of users daily. * Large, continuously updated dataset of labeled addresses. * Multichain coverage across the EVM ecosystem. * Designed for integration into enterprise workflows. # Other Attributes Reference Source: https://docs.etherscan.io/metadata/other-attributes-reference Reference for the Etherscan Metadata attribute codes returned for tokens and contracts. | Header | Description | | :-: | - | | TT | Token Type. Types: `erc-20` and `nft`. | | TR | Token Reputation. Types: `Ok`, `Poor`, `Unsafe`, `Suspicious`, `Spam`, and `BrandInfringement`. | | SC | Verified Smart Contract. | | CN | Contract Name. | | ENS | Ethereum Name Service. | # Reputation Reference Source: https://docs.etherscan.io/metadata/reputation-reference Reference for Etherscan Metadata reputation scores, from UNKNOWN to UNSAFE. | Score | Description | | :-: | - | | 0 | 'UNKNOWN' (default) | | 1 | 'OK' An OK reputation is not an endorsement but likely a known/public entity. | | 2 | 'CAUTION' Moderate Caution Advised when interacting with the address. | | 3 | 'UNSAFE' Extreme caution advised when interacting with the address. | # Rate Limits Source: https://docs.etherscan.io/rate-limits Rate limits and PRO-endpoint availability for each Etherscan API plan tier. | API Tier | Rate Limit | PRO Endpoints | | - | - | - | | Free | 3 calls/second, up to 100,000 calls/day, [selected chains](/supported-chains) only | Not Available | | Lite | 5 calls/second, up to 100,000 calls/day | Not Available | | Standard | 10 calls/second, up to 200,000 calls/day | Available | | Advanced | 20 calls/second, up to 500,000 calls/day | Available | | Professional | 30 calls/second, up to 1,000,000 calls/day | Available | | Pro Plus | 30 calls/second, up to 1,500,000 calls/day | Available | | Dedicated/Custom | [**Contact Us**](https://etherscan.io/contactus?id=11) | Available | > [card] [View API plans and pricing](https://etherscan.io/api/pricing) > > Compare tiers and upgrade for higher rate limits and PRO endpoints. ## Usage and overage Every plan includes a daily call limit (see the table above) alongside its per-second rate limit. Effective **November 3, 2026**, requests are blocked once you reach your plan's daily limit, unless overage is turned on. ### Paid plans [Paid plans](https://etherscan.io/api/pricing) (Lite tier and above) can turn on overage to keep requests running past the daily limit. It is off by default. To turn it on: 1. Go to your [API dashboard](https://etherscan.io/apidashboard). 2. Under **Usage Limit Preferences**, turn on **Allow Overage Charges**. 3. Set a monthly spend cap. When overage is on: * Overage is billed monthly at $0.00003 per call ($3 per 100,000 calls), based on your current billing cycle. * Once your monthly spend cap is reached, overage requests are blocked until the next billing cycle begins or you increase the cap. Your daily limit continues to reset as usual. * Your per-second rate limit still applies. When overage is off, requests are blocked once you reach your daily limit, until it resets. To raise the daily limit instead, upgrade your [plan](https://etherscan.io/api/pricing). ### Free tier Free tier usage is capped at the daily limit, with no overage. Once you reach it, requests are blocked until the limit resets. To go past the cap, upgrade to a [paid plan](https://etherscan.io/api/pricing). # Onchain Analytics and Research Source: https://docs.etherscan.io/resources/analytics-and-research Build dashboards, research reports, and protocol monitors from entity labels, holder distributions, event logs, and network stats. Analytics turns raw onchain movement into a readable picture. This guide covers the pieces behind that: attributing activity to real entities, measuring holder distribution, indexing protocol events, and tracking network trends. New to the API? Start with [Make your first call](/make-your-first-call). Chain availability and endpoint access depend on your [API plan](https://etherscan.io/api/pricing). > [!TIP] > > Every endpoint in this guide works on 50+ supported chains, just switch the `chainid`. For example, set `chainid=42161` to run the same analysis on Arbitrum. See [Supported chains](/supported-chains) for the full list. ## Entity attribution Map anonymous addresses to named entities and categories, so a flow reads as "into an exchange" rather than "to an address". **1. Get the full label list** Pull the master list of label categories once, then use it to classify the addresses in your dataset. The list changes slowly, so cache it and refresh periodically. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=nametag&action=getlabelmasterlist&apikey=YourApiKey' ``` **2. Resolve an address to its entity** Return the name tag, labels, and category for a specific address, part of [Etherscan Metadata](/metadata/introduction). Group transfers by `labels` to report flows by category, such as volume into exchanges or bridges. This is a PRO+ endpoint, available on the Pro Plus plan. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=nametag&action=getaddresstag&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&apikey=YourApiKey' ``` ## Holder distribution Measure how concentrated a token's ownership is. **1. Get the token holder list** The addresses holding a token and their balances. Divide each balance by total supply to compute its share, then rank to see concentration. This is a PRO endpoint, available to the [Standard plan](/rate-limits) and above. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=token&action=tokenholderlist&contractaddress=0xdAC17F958D2ee523a2206206994597C13D831ec7&page=1&offset=100&apikey=YourApiKey' ``` ## Event indexing Pull a contract's event logs to power dashboards and monitors. **1. Get contract event logs** Filter logs by address, topic, and block range. Decode the `topics` and `data` fields against the contract ABI to turn raw logs into structured events. Narrow `fromBlock` and `toBlock` to a window and page through results rather than requesting an unbounded range. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=logs&action=getLogs&address=0xdAC17F958D2ee523a2206206994597C13D831ec7&fromBlock=0&toBlock=latest&page=1&offset=1000&apikey=YourApiKey' ``` ## Network trends Read chain-level metrics for research and reporting. **1. Get the daily transaction count** Daily transaction counts over a date range, for activity trends and network comparisons. This is a PRO endpoint, available to the [Standard plan](/rate-limits) and above. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=stats&action=dailytx&startdate=2026-01-01&enddate=2026-01-31&sort=asc&apikey=YourApiKey' ``` **2. Get the native token supply** The current total supply of the chain's native coin, a common denominator for supply and market metrics. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=stats&action=ethsupply&apikey=YourApiKey' ``` > [!NOTE] > > Some stats and holder endpoints require a paid plan. See [PRO endpoints](/endpoint-overview). ## Putting it together Combine these endpoints to build common analytics and research workflows: * **Flow-by-category reports:** `getlabelmasterlist` + `getaddresstag` * **Concentration analysis:** `tokenholderlist` against total supply * **Event dashboards and monitors:** `getLogs` decoded against the contract ABI * **Network trend tracking:** `dailytx` + `ethsupply` Run the same metrics on each `chainid` to compare networks side by side, or to aggregate a protocol deployed across several chains. # Best Practices Source: https://docs.etherscan.io/resources/best-practices Practical tips for faster, more efficient Etherscan API requests, from pagination to block ranges. ### Limit Return Results > [!TIP] > > Use the `page` and `offset` parameter to request only what you need The `offset` parameter determines how many records are returned from a request. For example, if your app requires only the latest 10 transactions for an address, setting `offset=10` should see significant speed improvements. ### Limit Your Block Range > [!TIP] > > Use the `startblock` and `endblock` parameter if your block range is known If your block range is known, such as transactions within the [last 24 hours](/api-reference/endpoint/getblocknobytime), your request will benefit from specifying `startblock=` and `endblock=latest`. You can also use the `latest` keyword to specify the most recent block. ### Implement Retry Logic with Backoff On chain activity (transaction TPS spikes) or temporary high request volumes on shared APIs can occasionally cause timeouts. If this persists, feel free to [reach out](/resources/contact-us) to us. ### Monitor Usage > [!TIP] > > You will receive an email reminder when you approach your API usage limit From the API dashboard, you can monitor your API usage for suspicious activity, based on the IP and endpoint requests. If needed, you can monitor your API programmatically via the [Usage](/api-reference/endpoint/getapilimit) endpoint. # Contact Us Source: https://docs.etherscan.io/resources/contact-us How to reach Etherscan support, and the official channels the team communicates from. > [!WARNING] > > Beware of **phishing attempts** and emails **impersonating the team** at Etherscan, we only communicate from the channels below. ### Support Tickets Our emails always come from the domain **@etherscan.io**. Keep in mind that as a block explorer service, we **cannot cancel, refund or reverse transactions** as we do not process them. If your issues are related to transactions, you may find helpful articles over at the [**Etherscan Information Center.**](https://info.etherscan.com/) > [!NOTE] > > Reach out to us via a [**support ticket.**](https://etherscan.io/contactus) ### Twitter For general updates, new feature releases and community support, keep in touch with us via Twitter. > [!NOTE] > > Follow us on [**Twitter.**](https://twitter.com/etherscan) ### Status Page Announcements for ongoing and scheduled maintenance works that may affect certain services used. > [!NOTE] > > Check Etherscan's [**network status.**](https://status.etherscan.io/) # Security and Compliance Source: https://docs.etherscan.io/resources/security-and-compliance Build security and compliance workflows with address labels, reputation data, funding traces, and contract information. Security and compliance workflows combine a few signals: who an address is, where its funds came from, who it transacts with, and what contracts it touches. This guide shows the endpoints behind each signal. Labels and reputation data are inputs for your own screening rules, not screening decisions on their own. New to the API? Start with [Make your first call](/make-your-first-call). Chain availability and endpoint access depend on your [API plan](https://etherscan.io/api/pricing). > [!TIP] > > Every endpoint in this guide works on 50+ supported chains, just switch the `chainid`. For example, set `chainid=42161` to screen the same address on Arbitrum. See [Supported chains](/supported-chains) for the full list. ## Address identity Enrich an address with names, labels, and reputation before applying your rules. **1. Get address metadata** Retrieve Etherscan labels, names, and reputation data for an address using [Etherscan Metadata](/metadata/introduction). ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=nametag&action=getaddresstag&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&apikey=YourApiKey' ``` Use labels such as `Exchange`, `Bridge`, `phish-hack`, and `ofac-sanctioned` as inputs for your own screening rules. > [!NOTE] > > `getaddresstag` is available as a PRO+ endpoint on the Pro Plus plan. See [PRO endpoints](/endpoint-overview). > [!TIP] > > Labels and reputation data provide context for your own screening rules. Combine them with your product's policies and risk thresholds. **2. Export label categories** For watchlist workflows, retrieve addresses by label category (e.g. `ofac-sanctioned`) instead of checking addresses individually. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=nametag&action=exportaddresstags&label=ofac-sanctioned&apikey=YourApiKey' ``` Use [`getlabelmasterlist`](/api-reference/endpoint/getlabelmasterlist-v2) to discover available label categories. > [!TIP] > > Export label categories periodically to keep local screening data up to date. ## Transaction monitoring Combine address metadata with transaction data to monitor interactions with known entities. **1. Retrieve transaction activity** Track normal transactions, internal transactions, and token transfers associated with an address. * [`txlist`](/api-reference/endpoint/txlist) for normal transactions * [`txlistinternal`](/api-reference/endpoint/txlistinternal) for contract-triggered value transfers * [`tokentx`](/api-reference/endpoint/tokentx) for ERC-20 token transfers > [!TIP] > > User activity can span multiple networks. Apply the same screening workflow across every supported chain you monitor. **2. Apply your screening logic** Match transaction counterparties against your labels and internal rules to surface activity that requires review. ## Fund tracing Understand where an address received its initial funds. **1. Find the funding source** Returns the address and transaction that first funded an EOA, an extra context signal when investigating an address. This is a PRO endpoint, available to the [Standard plan](/rate-limits) and above. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=fundedby&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&apikey=YourApiKey' ``` ## Contract context Understand a smart contract before your application interacts with it. **1. Check the contract source code** Verified source code and contract details for an address. Use verification status and source availability as context when evaluating a contract. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=contract&action=getsourcecode&address=0xdAC17F958D2ee523a2206206994597C13D831ec7&apikey=YourApiKey' ``` **2. Retrieve the contract ABI** The ABI for a verified contract, used to decode its interactions and understand the methods it exposes. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=contract&action=getabi&address=0xdAC17F958D2ee523a2206206994597C13D831ec7&apikey=YourApiKey' ``` ## Putting it together Combine these endpoints to build common security and compliance workflows: * **Address screening:** `getaddresstag` labels against your rules * **Watchlist management:** `exportaddresstags` refreshed on a schedule * **Transaction monitoring:** `txlist` + `txlistinternal` + `tokentx` + labels * **Address investigation:** `fundedby` + transaction history * **Contract review:** `getsourcecode` + `getabi` For multi-chain applications, repeat these workflows across each `chainid` where your users or contracts operate. # Tax and Accounting Source: https://docs.etherscan.io/resources/tax-and-accounting Build tax, accounting, and reporting workflows with transaction history, transfers, historical balances, and address metadata. A tax or accounting record is built from a few core data sources: the full movement of funds, token transfers, point-in-time balances, and readable address labels. This guide shows the endpoints behind each piece. New to the API? Start with [Make your first call](/make-your-first-call). Chain availability and endpoint access depend on your [API plan](https://etherscan.io/api/pricing). > [!TIP] > > Every endpoint in this guide works on 50+ supported chains, just switch the `chainid`. For example, set `chainid=42161` to read the same address on Arbitrum. See [Supported chains](/supported-chains) for the full list. ## Transaction history Reconstruct the complete movement of funds in and out of an address, in chronological order. **1. Get normal transactions** The transactions the address signed: native sends, receives, and contract calls. Sort ascending (`sort=asc`) to build the ledger from the first transaction forward. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=txlist&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&page=1&offset=25&sort=asc&apikey=YourApiKey' ``` > [!TIP] > > Sync incrementally. For ongoing tracking, store the latest processed block and request only newer activity after the initial import. **2. Get internal transactions** Value transfers triggered during contract execution, such as native coin received from a protocol withdrawal. These are separate from normal transactions, so include them for a complete record. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=txlistinternal&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&page=1&offset=25&sort=asc&apikey=YourApiKey' ``` **3. Get token transfers** ERC-20 token transfers in and out of the address, to include token activity in the record. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=tokentx&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&page=1&offset=25&sort=asc&apikey=YourApiKey' ``` ## Historical balances Snapshot holdings at a specific point in time for period-end reporting. **1. Convert a date to a block** Map a reporting date to the closest block before that timestamp. Use the returned block number in the balance calls below. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=block&action=getblocknobytime×tamp=1735689600&closest=before&apikey=YourApiKey' ``` **2. Get the native balance at that block** The native coin balance of an address at the selected block. The value is returned in wei, so divide by 10^18 for display. This is a PRO endpoint, available to the [Standard plan](/rate-limits) and above. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=balancehistory&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&blockno=21525890&apikey=YourApiKey' ``` ## Token balances Combine current and historical token holdings for portfolio reconciliation. **1. Get current ERC-20 holdings** The ERC-20 tokens currently held by an address, for reconciling against your ledger. This is a PRO endpoint, available to the [Standard plan](/rate-limits) and above. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=addresstokenbalance&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&page=1&offset=100&apikey=YourApiKey' ``` > [!TIP] > > Normalize token amounts. Token values are returned in their smallest unit. Use each token's `tokenDecimal` value to convert amounts before calculations. **2. Get historical ERC-20 balances** The balance of a specific token at a given block, for period reporting. This is a PRO endpoint, available to the [Standard plan](/rate-limits) and above. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=tokenbalancehistory&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&contractaddress=0xdAC17F958D2ee523a2206206994597C13D831ec7&blockno=21525890&apikey=YourApiKey' ``` ## Address labels Attach names and labels to addresses so reports and audit trails read clearly. **1. Look up an address name tag and labels** Returns the same name tag and labels shown on etherscan.io, part of [Etherscan Metadata](/metadata/introduction). Use it to attribute counterparties in a transaction ledger. This is a PRO+ endpoint, available on the Pro Plus plan. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=nametag&action=getaddresstag&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&apikey=YourApiKey' ``` ## Putting it together Combine these endpoints to build common tax and accounting workflows: * **Transaction ledger:** `txlist` + `txlistinternal` + `tokentx` * **Portfolio reconciliation:** `addresstokenbalance` + `balancehistory` + `tokenbalancehistory` * **Cost-basis calculations:** ordered transfers with timestamps, values, and token decimals * **Entity attribution:** `getaddresstag` For multi-chain entities, repeat the same workflow for each `chainid` and combine the results into a unified view. # Useful Links Source: https://docs.etherscan.io/resources/useful-links Quick links to the accounts, keys, and reference pages you use most on the Etherscan API. Quick links to the pages and tools you will use most while building on the Etherscan API. ## Account and keys * [Register](https://etherscan.io/register): create a free Etherscan account. * [API dashboard](https://etherscan.io/apidashboard): create and manage your API keys. * [API plans and pricing](https://etherscan.io/api/pricing): compare tiers and upgrade. ## Documentation * [Set up your API key](/set-up-your-api-key): create an account and make your first request. * [Make your first call](/make-your-first-call): make your first useful call and read the response. * [API reference](/api-reference/endpoint/balance): every endpoint, grouped by resource. * [Supported chains](/supported-chains): all chains and their `chainid` values. * [Rate limits](/rate-limits): the calls-per-second and daily limits for each plan. * [Common error messages](/common-error-messages): what each error means and how to fix it. * [Changelog](/changelog): product updates and endpoint changes. ## Support * [Contact us](/resources/contact-us): reach the team for help. * [API status](/api-status): check for outages and rule out issues in your own request. * [PRO endpoints](/endpoint-overview): what paid plans add. ## Explore * [etherscan.io](https://etherscan.io): the block explorer. * [Etherscan on X](https://x.com/etherscan): product updates and announcements. # Wallet and Portfolio Source: https://docs.etherscan.io/resources/wallet-and-portfolio Show users their full onchain picture: balances, activity, NFTs, and real names, across every chain. A wallet view is built from a few core data sources: balances, transaction history, token movements, and address metadata. This guide shows the endpoints behind each piece. New to the API? Start with [Make your first call](/make-your-first-call). Chain availability and endpoint access depend on your [API plan](https://etherscan.io/api/pricing). > [!TIP] > > Every endpoint in this guide works on 50+ supported chains, just switch the `chainid`. For example, set `chainid=42161` to read the same wallet on Arbitrum. See [Supported chains](/supported-chains) for the full list. ## Portfolio Show what a wallet holds: native coins, ERC-20 tokens, and NFT assets. **1. Get the native balance** Retrieve the wallet's native coin balance. The value is returned in wei, so divide by 10^18 for display. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=balance&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&tag=latest&apikey=YourApiKey' ``` **2. Get ERC-20 token holdings** ERC-20 token balances held by the address, for displaying the token portfolio. This is a PRO endpoint, available to the [Standard plan](/rate-limits) and above. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=addresstokenbalance&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&page=1&offset=100&apikey=YourApiKey' ``` **3. Get ERC-721 (NFT) holdings** ERC-721 NFT holdings for displaying NFT assets owned by the address. This is a PRO endpoint, available to the [Standard plan](/rate-limits) and above. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=addresstokennftbalance&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&page=1&offset=100&apikey=YourApiKey' ``` ## Activity Build the wallet's activity history: transactions it sent, value moved by contracts, and token transfers. **1. Normal transactions** The regular transactions the address signed: sends, receives, and contract calls. The backbone of any activity feed. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=txlist&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&page=1&offset=25&sort=desc&apikey=YourApiKey' ``` **2. Internal transactions** Internal transactions are value transfers triggered by contract execution. They are separate from normal transactions, so include them when tracking complete fund movements. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=txlistinternal&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&page=1&offset=25&sort=desc&apikey=YourApiKey' ``` **3. ERC-20 transfers** Every ERC-20 token that moved in or out of the address, for a token activity feed. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=tokentx&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&page=1&offset=25&sort=desc&apikey=YourApiKey' ``` **4. ERC-721 transfers** ERC-721 NFT transfers in and out of the address, showing when each NFT was acquired or sold. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=tokennfttx&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&page=1&offset=25&sort=desc&apikey=YourApiKey' ``` ## Name Tags Replace raw addresses with recognizable names and labels to make wallet activity easier to understand. **1. Look up an address name tag and labels** Returns the same name tag, labels, and reputation shown on etherscan.io, part of [Etherscan Metadata](/metadata/introduction). Use it to label the wallet and the counterparties in its activity feed. This is a PRO+ endpoint, available on the Pro Plus plan. ```bash theme={null} curl --request GET \ --url 'https://api.etherscan.io/v2/api?chainid=1&module=nametag&action=getaddresstag&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&apikey=YourApiKey' ``` ## Putting it together Combine these endpoints to create a wallet experience: * **Portfolio view:** `balance` + `addresstokenbalance` + `addresstokennftbalance` * **Activity feed:** `txlist` + `txlistinternal` + `tokentx` + `tokennfttx` * **Readable identities:** `getaddresstag` Use the same approach across each supported chain by changing the `chainid`. # Set Up Your API Key Source: https://docs.etherscan.io/set-up-your-api-key Register an Etherscan account and create a free API key that works across all supported chains. Every request to the Etherscan API needs an API key. **1. Register an Etherscan account** Sign up for a free account at [etherscan.io/register](https://etherscan.io/register). **2. Create your API key** Open your [API dashboard](https://etherscan.io/apidashboard), select **Add** to create a new API key, then copy the key and store it somewhere safe. This key can be used to access 50+ [supported chains](/supported-chains). ![Etherscan API keys](https://mintcdn.com/etherscan/PrmCI8xWhLgr8YZ-/images/apikeys.png?fit=max\&auto=format\&n=PrmCI8xWhLgr8YZ-\&q=85\&s=4b49c580309cc3fe32eb03a4c903e8b4) **3. Make your first call** Now that you have an API key, learn how to make requests across 50+ supported chains: > [card] [Make Your First Call](/make-your-first-call) > > Run your first request, read the response, and switch chains. ## Free API plan and limits A free API plan allows 3 calls per second and up to 100,000 calls per day on most chains, cumulative across all the keys you have created. [Paid plans](https://etherscan.io/api/pricing) raise the rate limits, unlock access to all chains, and the Standard plan and above add PRO endpoints. See [Rate limits](/rate-limits) for the full breakdown. # Supported Chains Source: https://docs.etherscan.io/supported-chains Every chain the Etherscan API supports, with its chain ID and plan availability. > [!WARNING] > > **Effective November 15, 2026**, API support will be deprecated for Avalanche Fuji Testnet (chainid: 43113) and Abstract Sepolia Testnet (chainid: 11124). > [!WARNING] > > HyperEVM Mainnet (Chain ID 999) community endpoints are free until **November 30, 2026**. Effective **December 1, 2026**, they require a **Lite plan or above**. Source code and ABI endpoints remain available on the Free tier. See the [changelog](/changelog#hyperevm-api-moving-to-paid-plans) for details. > [!TIP] > > Source code and ABI endpoints are available on all chains for every API plan, including the Free Tier. Showing of chains · free tier available · paid tier only Chain name Network Tier Chain ID