cURL
curl --request GET \ --url https://api.example.com/api/onchain/config \ --header 'Content-Type: application/json' \ --data ' { "enabled": true, "chain_ids": [ {} ], "max_tx_value_usd": 123, "daily_spend_cap_usd": 123, "cooldown_seconds": 123, "max_slippage_bps": 123, "max_leverage": 123, "expiry_seconds": 123, "require_policy_hash": true, "verifying_contract": "<string>", "whitelist": {} } '
{ "enabled": true, "chain_ids": [1, 8453], "limits": { "max_tx_value_usd": 1000.0, "daily_spend_cap_usd": 5000.0, "cooldown_seconds": 60, "max_slippage_bps": 100, "max_leverage": 10 }, "permits": { "expiry_seconds": 300, "require_policy_hash": true, "verifying_contract": "0x3333333333333333333333333333333333333333" }, "whitelist": { "0x1111111111111111111111111111111111111111": ["0x12345678", "swap(uint256,uint256)"] } }
Authorization
Authorization: Bearer <session_token>
[1, 137, 8453]
Show properties
{ "0x1111111111111111111111111111111111111111": ["0x12345678", "swap(uint256,uint256)"] }
true
{ "errors": [ "max_tx_value_usd must be a non-negative finite number", "expiry_seconds must be between 60 and 3600" ] }
curl https://localhost:3978/api/onchain/config \ -H "Authorization: Bearer fn_sess_abc123..."
200
400
401
500