v1
latestOpenAPI 3.0.32026-07-26184851.6 MBSmart Contract
Child Address Network Fee
This API provides endpoints for interacting with smart contracts on the blockchain. It allows estimating network fees.
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/wallets/{walletId}/addresses/{addressId}/contracts/network-fee
Request body
Example request
{
"calls": [
{
"abi": [
{
"constant": false,
"inputs": [
{
"name": "_to",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"address": "0x337610d27c682E347C9cD60BD4b3b107C9d34dDd",
"method": "transfer",
"parameters": [
"0x2455eC6700092991Ce0782365A89d5Cd89c8Fa22",
"10000"
]
},
{
"abi": [
{
"constant": false,
"inputs": [
{
"name": "_to",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"address": "0x337610d27c682E347C9cD60BD4b3b107C9d34dDd",
"method": "transfer",
"parameters": [
"0x2455eC6700092991Ce0782365A89d5Cd89c8Fa22",
"10000"
]
}
]
}Response
Ethereum / Tron / Ethereum (Batch) / Tron (Batch)
Example response
{
"data": {
"balance": "1.012299726305777896",
"errors": [],
"estimatedArrivalTime": 60,
"fee": "0.00422709309982132",
"fees": [
{
"balance": "0.073661808182044578",
"estimatedArrivalTime": 30,
"fee": "0.00000835248",
"index": 0,
"method": "transfer",
"nativeBalance": "0.073661808182044578",
"nativeBalanceInUSD": "66.51882264263171527134",
"networkFee": "0.00000835248",
"networkFeeInUSD": "0.0075425400144",
"transactionFee": "0"
},
{
"balance": "0.073661808182044578",
"estimatedArrivalTime": 30,
"fee": "0.00000835248",
"index": 1,
"method": "transfer",
"nativeBalance": "0.073661808182044578",
"nativeBalanceInUSD": "66.51882264263171527134",
"networkFee": "0.00000835248",
"networkFeeInUSD": "0.0075425400144",
"transactionFee": "0"
}
],
"totalFee": "0.00001670496"
},
"message": "Network fee retrieved successfully",
"statusCode": 200
}