Skip to content

Initiate Swap

POST
/swap/initiate

Initiate a swap from one currency to another.

Authorizations

Request Body required

object
sourceCurrency
required

Currency to swap from

string
USDC
destinationCurrency
required

Currency to swap to

string
ETH
amount
required

Amount to swap in source currency

string
1000.50
walletId
required

Wallet ID performing the swap

string format: uuid

Responses

200

Swap initiated successfully

object
queryId

Unique identifier of the swap transaction

string format: uuid
123e4567-e89b-12d3-a456-426614174000

400

Bad Request

object
code
integer
400
message
string
Bad Request
details
string
Source currency and destination currency are required.