Pay for and call a service
pay_and_callCall an Obol metered service by paying per request with USDC, enforcing spending limits and returning a signed receipt.
Instructions
Pay for and call an Obol metered service via Circle Gateway. Enforces your per-call maxPrice and (with OBOL_API_KEY) your account's daily/weekly/monthly spending limits. Near-limit pays ask you to confirm. Idempotent on retry. Returns the result plus a signed, verifiable payment receipt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | ||
| params | No | query params to pass to the API | |
| callUrl | Yes | the service's callUrl from find_service | |
| maxPrice | No | max USDC to pay for this call (default 1.0) | |
| idempotencyKey | No | reuse across retries; auto-generated if omitted |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| tx | No | ||
| data | No | ||
| paid | No | ||
| error | No | ||
| receipt | No | ||
| warning | No | ||
| declined | No | ||
| idempotencyKey | No | ||
| limitRemaining | No | ||
| responseSafety | No | ||
| receiptSignature | No |