Skip to main content
POST
Quote an exchange withdrawal
Prices a withdrawal from the connected exchange into the chosen destination chain. The returned id is the handle Execute an exchange withdrawal runs against.

Authorizations

x-calm-publishable-key
string
header
required

Publishable key identifying the calling app.

Path Parameters

exchange
enum<string>
required
Available options:
coinbase

Body

application/json
amount
string
required
Pattern: ^\d+(\.\d+)?$
asset
string
required
Minimum string length: 1
destination_chain
enum<number>
required
Available options:
1,
8453,
999,
1337,
4326,
143,
137,
42161
destination_token
enum<string>
required
Available options:
USDC,
USDm,
AUSD,
USDC.e
origin_chain
enum<number>
required
Available options:
1,
8453,
999,
1337,
4326,
143,
137,
42161
wallet
string
required
Pattern: ^0x[a-fA-F0-9]{40}$

Response

The withdrawal quote.

amount
string
required
amount_no_fee
number | null
required
amount_with_fee
number | null
required
asset
string
required
estimated_fee
number | null
required
estimated_total
number | null
required
expires_at
string<date-time>
required
id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
network
string
required