Skip to main content
POST
https://api.sw4p.io
/
sdk
/
v1
/
transfer
curl -X POST https://api.sw4p.io/sdk/v1/transfer \
  -H "Content-Type: application/json" \
  -H "X-API-Key: sk_..." \
  -d '{
    "from": "BASE",
    "to": "SOLANA",
    "amount": "100.00",
    "recipient": "5abc...",
    "permit": {...}
  }'
{
  "intent_id": "int_abc123",
  "status": "pending",
  "tx_hash": "0x..."
}
Execute a gasless cross-chain USDC transfer.
For Solana source transfers, use /sdk/v1/solana/build-tx instead.

Request Body

from
string
required
Source chain: ETH, BASE, ARB, POLYGON
to
string
required
Destination chain: ETH, BASE, ARB, POLYGON, SOLANA
amount
string
required
Amount in USDC (e.g., "100.00")
recipient
string
required
Recipient address
permit
object
required
ERC-2612 permit signature

Response

intent_id
string
Transfer intent ID
status
string
Initial status: pending
tx_hash
string
Source transaction hash
curl -X POST https://api.sw4p.io/sdk/v1/transfer \
  -H "Content-Type: application/json" \
  -H "X-API-Key: sk_..." \
  -d '{
    "from": "BASE",
    "to": "SOLANA",
    "amount": "100.00",
    "recipient": "5abc...",
    "permit": {...}
  }'
{
  "intent_id": "int_abc123",
  "status": "pending",
  "tx_hash": "0x..."
}