Skip to main content
POST
Quote On-Chain Stablecoin Swap (Ethereum)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
from_asset
enum<string>
required
Available options:
USDT,
USDC
to_asset
enum<string>
required
Available options:
USDT,
USDC
amount
string
required

Amount to debit from from_asset

network
enum<string>
required
Available options:
tron,
ethereum,
solana
from_wallet_id
string<uuid>

Optional. Defaults to default-or-only wallet for network

Response

On-chain quote preview

swap_mode
string
Example:

"onchain_quote"

network
string
from_asset
string
to_asset
string
from_amount
string
dex_expected_out
string

Raw DEX output before platform fee

platform_fee_amount
string
platform_fee_bps
integer
estimated_receive
string

DEX output minus platform fee

available_from_balance
string
native_balance
string

TRX or ETH for gas

wallet_id
string<uuid>
rate_note
string