{"name":"price-impact","description":"Estimates price impact and slippage for a DEX swap before you submit it on-chain. For a (from_token, to_token, chain), pulls aggregator quotes (LlamaSwap meta-aggregator, free public) at multiple USD sizes and reports per-size effective price + slippage versus the smallest size. Use it as a slippage estimator, swap-size impact check, size-keyed quote, or depth simulation to size a fill.","price":"$0.005","method":"POST","input_schema":{"properties":{"from_token":{"type":"string","description":"0x-prefixed 20-byte ERC-20 input token."},"to_token":{"type":"string","description":"0x-prefixed 20-byte ERC-20 output token."},"chain":{"type":"string","enum":["base","ethereum","polygon","arbitrum","optimism"],"description":"EVM chain. Default 'base'."},"sizes_usd":{"type":"array","items":{"type":"number"},"description":"USD sizes to quote at, sorted ascending. Up to 5. Default [100, 1000, 10000]."}},"required":["from_token","to_token"]},"input_example":{"from_token":"0x4200000000000000000000000000000000000006","to_token":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","chain":"base","sizes_usd":[100,1000,10000]},"output_example":{"from_token":"0x4200000000000000000000000000000000000006","to_token":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","chain":"base","from_usd_price":3284.13,"from_decimals":18,"quotes":[{"size_usd":100,"input_amount":"30449...","output_amount":"100123456","effective_price":0.0033,"impact_pct":0},{"size_usd":1000,"input_amount":"30449...","output_amount":"999800000","effective_price":0.00329,"impact_pct":0.0312},{"size_usd":10000,"input_amount":"30449...","output_amount":"9985000000","effective_price":0.00328,"impact_pct":0.149}],"source":"https://api.swap.defillama.com"},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}