{"slug":"x402-gateway-production-1f21-up-railway-app-agent-pretrade-6e9c69","title":"Pre-trade context bundle for autonomous crypto agents","host":"x402-gateway-production-1f21.up.railway.app","method":"POST","resource":"https://x402-gateway-production-1f21.up.railway.app/agent/pretrade","category":"code","description":"Pre-trade context bundle for autonomous crypto agents: wallet balances, ERC-20 allowance to a spender, current gas/base fee, realtime price, 24h statistics and best bid/ask spread. Use immediately before swaps, recurring payments or automated execution. This endpoint provides data only and never sub","price_listed":0.01,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"address":"0x0000000000000000000000000000000000000000","network":"base","product_id":"BTC-USD","spender":"0x0000000000000000000000000000000000000000","token_contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"address":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"balance_tokens":{"items":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"maxItems":20,"type":"array"},"network":{"default":"base","enum":["base","ethereum"],"type":"string"},"product_id":{"pattern":"^[A-Za-z0-9]{2,15}-[A-Za-z0-9]{2,15}$","type":"string"},"spender":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"token_contract":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"}},"required":["address","spender","token_contract","product_id"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Pre-trade context bundle for autonomous crypto agents: wallet balances, ERC-20 allowance to a spender, current gas/base fee, realtime price, 24h statistics and best bid/ask spread. Use immediately before swaps, recurring payments or automated execution. This endpoint provides data only and never submits a trade.","last_updated":"2026-10-03T21:37:40.603Z","schemes":["exact"]}