{"slug":"api-usesaferoute-com-v1-swap-safety-check-e91517","title":"Check whether an approved Base token swap is eligible before supplying a wallet","host":"api.usesaferoute.com","method":"POST","resource":"https://api.usesaferoute.com/v1/swap-safety-check","category":"code","description":"Check whether an approved Base token swap is eligible before supplying a wallet. Returns verified token contracts, indicative output, liquidity sources, fee estimate, warnings, and the exact next action. No custody, signing, or execution.","price_listed":0.001,"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":2,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"amount":"25","from":"USDC","intentId":"intent_unique_1234567890","sourceAgentId":"buyer-agent-id","to":"WETH"},"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":{"amount":{"description":"Human-readable sell amount, capped at $500 USDC equivalent","pattern":"^\\d+(?:\\.\\d+)?$","type":"string"},"from":{"description":"Approved Base sell-token symbol","enum":["USDC","WETH","EURC","CBETH","CBBTC","VIRTUAL","AERO"],"type":"string"},"intentId":{"maxLength":128,"minLength":16,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"referralCode":{"maxLength":64,"minLength":3,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"sourceAgentId":{"maxLength":128,"minLength":1,"type":"string"},"to":{"description":"Approved Base buy-token symbol; must differ from from","enum":["USDC","WETH","EURC","CBETH","CBBTC","VIRTUAL","AERO"],"type":"string"}},"required":["from","to","amount"],"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":{"properties":{"allowance":{"properties":{"status":{"const":"wallet_required_for_check","type":"string"}},"required":["status"],"type":"object"},"amount":{"properties":{"human":{"type":"string"},"raw":{"pattern":"^\\d+$","type":"string"},"usdcEquivalentRaw":{"pattern":"^\\d+$","type":"string"}},"required":["human","raw","usdcEquivalentRaw"],"type":"object"},"attribution":{"additionalProperties":false,"properties":{"intentId":{"maxLength":128,"minLength":16,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"referralCode":{"maxLength":64,"minLength":3,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"sourceAgentId":{"maxLength":128,"minLength":1,"type":"string"}},"type":"object"},"chainId":{"const":8453,"type":"integer"},"checkId":{"format":"uuid","type":"string"},"createdAt":{"format":"date-time","type":"string"},"estimatedOutput":{"properties":{"minimumRaw":{"pattern":"^\\d+$","type":"string"},"raw":{"pattern":"^\\d+$","type":"string"}},"required":["raw"],"type":"object"},"expectedSafeRouteFee":{"properties":{"amountRaw":{"pattern":"^\\d+$","type":"string"},"bps":{"const":10,"type":"integer"},"indicative":{"const":true,"type":"boolean"},"token":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"}},"required":["bps","amountRaw","token","indicative"],"type":"object"},"expiresAt":{"format":"date-time","type":"string"},"liquidity":{"properties":{"available":{"const":true,"type":"boolean"},"sources":{"items":{"type":"string"},"type":"array"}},"required":["available","sources"],"type":"object"},"nextAction":{"properties":{"endpoint":{"format":"uri","type":"string"},"method":{"const":"POST","type":"string"},"price":{"const":"$0.01","type":"string"},"requiredAdditionalField":{"const":"wallet","type":"string"}},"required":["method","endpoint","price","requiredAdditionalField"],"type":"object"},"pair":{"properties":{"buyToken":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"from":{"enum":["USDC","WETH","EURC","CBETH","CBBTC","VIRTUAL","AERO"],"type":"string"},"sellToken":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"to":{"enum":["USDC","WETH","EURC","CBETH","CBBTC","VIRTUAL","AERO"],"type":"string"}},"required":["from","to","sellToken","buyToken"],"type":"object"},"priceImpact":{"properties":{"status":{"const":"checked_on_full_quote","type":"string"},"warning":{"type":"string"}},"required":["status","warning"],"type":"object"},"status":{"const":"eligible","type":"string"},"tokenVerification":{"properties":{"buyTokenApproved":{"const":true,"type":"boolean"},"buyTokenDecimals":{"minimum":0,"type":"integer"},"sellTokenApproved":{"const":true,"type":"boolean"},"sellTokenDecimals":{"minimum":0,"type":"integer"}},"required":["sellTokenApproved","buyTokenApproved","sellTokenDecimals","buyTokenDecimals"],"type":"object"},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["checkId","status","chainId","createdAt","expiresAt","pair","amount","estimatedOutput","tokenVerification","liquidity","priceImpact","allowance","expectedSafeRouteFee","warnings","nextAction"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Check whether an approved Base token swap is eligible before supplying a wallet. Returns verified token contracts, indicative output, liquidity sources, fee estimate, warnings, and the exact next action. No custody, signing, or execution.","last_updated":"2026-09-17T03:54:40.989Z","schemes":["exact"]}