Get Contract Abi is an example object payload from Routescan (Snowtrace), with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
{
"summary": "Get ABI for a verified smart contract on Avalanche C-Chain",
"request": {
"method": "GET",
"url": "https://api.routescan.io/v2/network/mainnet/evm/43114/etherscan/api?module=contract&action=getabi&address=0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6&apikey=placeholder"
},
"response": {
"status": "1",
"message": "OK",
"result": "[{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]"
},
"notes": "Result is a JSON string that must be parsed. Only available for verified contracts."
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.