HIFI sources liquidity from both CEXs and DEXs to ensure the best execution.
Create a swap (quote)
Requires anIdempotency-Key header. Either source.amount or destination.amount can drive the conversion, not both.
The source and destination chains are derived from source wallet and destination wallet.
Request
quote.expiresAt reflects when the quoted rate was locked inAccept a swap quote
Checks the source wallet’s on-chain balance against the quoted amount before proceeding. RequestIf the source wallet’s balance is too low to cover the quoted amount, this returns a
200 with status: "QUOTE_FAILED" and error: "INSUFFICIENT_BALANCE" rather than an error responseStatus
Additional information
Transfer approval
Transfer approval
Swaps can be routed through an approval workflow before they settle -
status shows PENDING_APPROVAL until someone approves it, or REJECTED if it’s declined. The quote is only generated once the transfer request is approved. Accept the quote afterward to kick off the transaction flow.Checkout Transfer Approval for more details.Getting Help
- 📧 Email: support@hifi.com
- 💬 Slack: Message us in our shared Slack channel
Related Resources
- Transactions Overview - Transactions resources
- Bridge - Move a stablecoin across chains
- Onchain Transfer - Move stablecoins on the same chain
- HIFI Wallet - Provision wallets and read balances