chain
Generic Smart Contract Method
Executes read-only (view) functions on verified smart contracts, enabling queries like token balances or exchange rates without gas costs. The result includes on-chain data returned by the invoked function, facilitating up-to-date insights for decentralized applications.
💡 Compute Unit Value: 40 (Fixed)
post/defi/v1/chain/genericsmartcontractmethod
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/chain/genericsmartcontractmethod
- AuthAPI key in header X-API-Key
Request body
Example request
{
"chainId": "1",
"chainSymbol": "ETH",
"contractAddress": "0xfad57d2039c21811c8f2b5d5b65308aa99d31559",
"parameters": "4515444785",
"abi": "",
"methodName": "getAmountsIn",
"blockNumber": "100000"
}Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"getAmountsIn": [
"2425265",
"4515444785"
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.