Creating a Proxy

Creating a proxy is simple. Provide an ID and specify where deposits should be forwarded. Unless overridden by a policy, the proxy will convert and forward all deposits to this address.

curl --request POST \
  --url https://api.swivell.xyz/v1/proxies \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <API Key>' \
  --data '{
    "id": "my-proxy-1",
    "forward_network": "solana", 
    "forward_token": "USDC",
    "forward_address": "EAGkHiMuuD7jXDchXF5MfWCcQ3xGaL9zZv9LnyZUcSa9"
  }'

API response

{
 "id": "my-proxy-1",
 "addresses": [
   {
     "network": "mainnet",
     "address": "0x5A6d87BB8BE80A0bD1c31125c76FfA247a73cbc6"
   },
   {
     "network": "solana",
     "address": "23BvUE2F8nLDP1qjfWhGM7ehgdPsVYkgKoMvH3Dko7BJ"
   },
   {
     "network": "base",
     "address": "0x5A6d87BB8BE80A0bD1c31125c76FfA247a73cbc6"
   },
   {
     "network": "arbitrum",
     "address": "0x5A6d87BB8BE80A0bD1c31125c76FfA247a73cbc6"
   }
 ],
 "forward_network": "solana",
 "forward_asset_symbol": "USDC",
 "forward_recipient": "EAGkHiMuuD7jXDchXF5MfWCcQ3xGaL9zZv9LnyZUcSa9"
}

What’s Next

Learn about policies