Master Wallet Network Fee
Master Wallet 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
Master Wallet Network Fee
Batch Operations
This endpoint supports batch operations, allowing you to estimate network fees for multiple contract operations in a single API call.Batch Request Format
To estimate fees for multiple operations, use thecalls array:
Batch Response Format
Returns individual fees plus totals:Response Fields
| Field | Description |
|---|---|
| fees | Array of individual fee estimates |
| totalFee | Sum of all network fees |
| estimatedArrivalTime | Total time (sum of individual times, 30s each) |
| errors | Array of any failed estimations |
Validation Rules
| Rule | Value |
|---|---|
| Max batch size | 20 operations |
| Min batch size | 1 operation |
Use Cases
- Fee estimation: Calculate total cost before executing batch operations
- Gas optimization: Compare fees across different operation orderings
- Budget planning: Estimate costs for multi-step DeFi transactions
Authorizations
Path Parameters
Example:
"YOUR_WALLET_ID"
Body
application/json
Example:
[
{
"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"
]
}
]
