> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yiksipay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Child address network fee

## Batch Operations

This endpoint supports batch operations, allowing you to estimate network fees for multiple contract operations from a specific child address in a single API call.

### Batch Request Format

To estimate fees for multiple operations, use the `calls` array:

```json theme={null}
{
  "calls": [
    {
      "address": "0xTokenContract...",
      "method": "approve",
      "parameters": ["0xSpender...", "1000000000000000000"],
      "abi": [...]
    },
    {
      "address": "0xProtocolContract...",
      "method": "deposit",
      "parameters": ["1000000000000000000"],
      "abi": [...]
    }
  ]
}
```

### Batch Response Format

Returns individual fees plus totals:

```json theme={null}
{
  "message": "Batch network fee retrieved (2/2 successful)",
  "statusCode": 200,
  "data": {
    "fees": [
      {
        "index": 0,
        "method": "approve",
        "fee": "0.00001247904",
        "networkFee": "0.00001247904",
        "networkFeeInUSD": "0.01",
        "nativeBalance": "0.5",
        "nativeBalanceInUSD": "450.00",
        "estimatedArrivalTime": 30,
        "transactionFee": "0"
      },
      {
        "index": 1,
        "method": "deposit",
        "fee": "0.00000504",
        "networkFee": "0.00000504",
        "networkFeeInUSD": "0.005",
        "nativeBalance": "0.5",
        "nativeBalanceInUSD": "450.00",
        "estimatedArrivalTime": 30,
        "transactionFee": "0"
      }
    ],
    "totalFee": "0.00001751904",
    "estimatedArrivalTime": 60,
    "errors": []
  }
}
```

### 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
