configure_key
Configure one API key of your account by id: monthly_request_cap (a monthly unit budget; omitted = unchanged, 0 = remove the cap), enabled (the list of services it may use: rpc, data, gas, tx_status, ens, prices, contracts, utils) and caps ({service_key: units} per service). Use it to budget or restrict one key; key ids come from list_api_keys. Not for account-wide service settings (use configure_services) and not for revoking (use revoke_api_key). Returns JSON: id, name, monthly_request_cap, note when the budget changed; id, name, window, key_id, services when services changed. Needs your API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The API key's id (from list_api_keys) | |
| caps | No | Per-service unit caps for this key, e.g. {'gas': 10000} | |
| window | No | Usage window in the answer: '24h', '7d', '30d' (default) | |
| enabled | No | Service keys this key may use, e.g. ['rpc', 'gas', 'data'] | |
| monthly_request_cap | No | Monthly unit budget for this key; a runaway agent stops here, never at your card |