{"slug":"yield-trdefi-com-v1-swaps-f59e37","title":"TRDEFI prepare request","host":"yield.trdefi.com","method":"POST","resource":"https://yield.trdefi.com/v1/swaps","category":"other","description":"TRDEFI prepare request","price_listed":0.02,"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":0,"reported_payers_30d":0,"networks":["eip155:5042","eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"properties":{"amount":{"description":"Input amount in token base units, as an integer string, e.g. \"1000000\" for 1 USDC.","type":"string"},"chain":{"description":"Network the position is on, e.g. \"base\".","type":"string"},"direction":{"description":"Which way round the pair to swap.","enum":["aToB","bToA"],"type":"string"},"strategyHash":{"description":"32-byte strategy hash of the position to swap against.","type":"string"},"wallet":{"description":"Your own EVM address that will sign the swap.","type":"string"}},"required":["strategyHash","chain","amount","wallet"],"type":"object"},"method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"properties":{"body":{"properties":{"amount":{"description":"Input amount in token base units, as an integer string, e.g. \"1000000\" for 1 USDC.","type":"string"},"chain":{"description":"Network the position is on, e.g. \"base\".","type":"string"},"direction":{"description":"Which way round the pair to swap.","enum":["aToB","bToA"],"type":"string"},"strategyHash":{"description":"32-byte strategy hash of the position to swap against.","type":"string"},"wallet":{"description":"Your own EVM address that will sign the swap.","type":"string"}},"required":["strategyHash","chain","amount","wallet"],"type":"object"},"method":{"const":"POST"},"type":{"const":"http"}},"type":"object"},"output":{"description":"One unsigned transaction that performs the swap.","example":{"amountOut":"999000","chain":"base","note":"Sign with your own wallet. TRDEFI cannot sign or broadcast this.","transactions":[{"data":"0x...","to":"0x111111338c5091e8440b67b168bae16a668ac0de","value":"0"}]},"type":"object"}},"type":"object"},"history":[],"description_full":"TRDEFI prepare request","last_updated":"2026-10-02T15:44:45.05Z","schemes":["exact"]}