Skip to main content
Exchange one crypto currency for another on the same network. Both quote legs use currency + network; order type is inferred automatically.
from.network and to.network must match. Cross-chain swaps are not supported.

Prerequisites

  • KYB-approved partner account with sk_* and enc_* keys
  • Destination wallet address on the target network
  • HMAC signing on all write requests
End-user KYC is not required for swap. It is required for onramp and offramp.

End-to-end flow

1

Create a quote

Reserve a rate between two currencies on the same network.
2

Create the order

Pass quote_id and recipient.address (where swapped tokens are delivered).
3

Collect source crypto

Customer sends the source currency to the payin deposit address.
4

Wait for payment confirmation

Liquidramp auto-detects the deposit. Optionally submit tx_hash via fulfill if confirmation is delayed.
5

Receive payout

Destination currency arrives at recipient.address; track via order or webhooks.

1. Create a quote

2. Create the order

Swap orders require recipient.address but not bank details. merchant_reference is optional. There is no wallet-management API — you own key management on your side. Validate that the address matches to.network; sending to the wrong chain is irreversible. The response payin object is the source-currency deposit:

3. Confirm pay-in (optional)

Liquidramp auto-detects the source-currency deposit. Call fulfill only if confirmation is delayed:

4. Check payout

Request ?include=payout for destination delivery details (asset, address, network, amount, tx_hash, paid_at).