v1
latestOpenAPI 3.0.32026-07-26184851.6 MBSmart Contract
Child Address Read
This API provides endpoints for interacting with smart contracts on the blockchain. It allows for reading contract data,
Request Body
The request body should be in raw format and include the following parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| address | string | Yes | The address of the contract. |
| method | string | Yes | The method to be called on the contract. |
| parameters | array | Yes | An array of parameters to pass to the method. |
| abi | array | Yes | An array containing the ABI of the contract or method. |
post/v1/wallets/{walletId}/addresses/{addressId}/contracts/read
Request body
Example request
{
"calls": [
{
"abi": [
{
"constant": true,
"inputs": [
{
"name": "account",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"address": "0x337610d27c682E347C9cD60BD4b3b107C9d34dDd",
"method": "balanceOf",
"parameters": [
"0x947514e4B803e312C312da0F1B41fEDdbe15ae7a"
]
},
{
"abi": [
{
"constant": true,
"inputs": [
{
"name": "owner",
"type": "address"
},
{
"name": "spender",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"address": "0x337610d27c682E347C9cD60BD4b3b107C9d34dDd",
"method": "allowance",
"parameters": [
"0x947514e4B803e312C312da0F1B41fEDdbe15ae7a",
"0xSpenderAddress"
]
}
]
}Response
Ethereum / Tron / Ethereum (Batch) / Tron (Batch)
Example response
{
"data": "10052335235393043",
"message": "Contract read successfully",
"statusCode": 200
}