sap_x402_calculate_cost
Calculate cost for X402 registry calls using base price, volume curve, and cumulative calls. Runs locally without chain state.
Instructions
Pure local cost calculation using SDK X402Registry.calculateCost; does not read chain state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | No | Number of calls to calculate | |
| basePrice | No | Base price per call in token base units | |
| volumeCurve | No | Array of { afterCalls, pricePerCall } pricing breakpoints | |
| totalCallsBefore | No | Cumulative settled calls before this calculation (default: 0) |