Skip to main content
POST
https://api.sw4p.io
/
sdk
/
v1
/
estimate
curl -X POST https://api.sw4p.io/sdk/v1/estimate \
  -H "Content-Type: application/json" \
  -H "X-API-Key: sk_..." \
  -d '{
    "from": "BASE",
    "to": "SOLANA",
    "amount": "100.00"
  }'
{
  "amount": "100.00",
  "fee": {
    "total": "2.50",
    "platform": "1.00",
    "gas": "1.50"
  },
  "net_receive": "97.50"
}
Get a fee estimate before executing a transfer.

Request Body

from
string
required
Source chain
to
string
required
Destination chain
amount
string
required
Amount in USDC

Response

amount
string
Original amount
fee
object
Fee breakdown (total, platform, gas)
net_receive
string
Amount recipient receives
curl -X POST https://api.sw4p.io/sdk/v1/estimate \
  -H "Content-Type: application/json" \
  -H "X-API-Key: sk_..." \
  -d '{
    "from": "BASE",
    "to": "SOLANA",
    "amount": "100.00"
  }'
{
  "amount": "100.00",
  "fee": {
    "total": "2.50",
    "platform": "1.00",
    "gas": "1.50"
  },
  "net_receive": "97.50"
}