Skip to main content
POST
Prepare a swap

Authorizations

Authorization
string
header
required

Integration API key. Send as Bearer copby_live_pk_….

Body

application/json
userAddress
string
required
Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0x2222222222222222222222222222222222222222"

fromAmount
string
required

Atomic units (USDT/USDC 6 decimals, COPm/USDm 18)

Example:

"1000000"

fromToken
enum<string>
Available options:
USDT,
USDC,
USDm,
COPm
toToken
enum<string>
Available options:
COPm,
USDT
slippage
number
Example:

0.3

Response

Prepared swap

The response is of type object.