Skip to main content
POST
/
ramp
/
swap
Swap assets
curl --request POST \
  --url https://api.etherfuse.com/ramp/swap \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "orderId": "123e4567-e89b-12d3-a456-426614174000",
  "quoteId": "844393ca-be57-4817-a58a-5b60e2792c06",
  "publicKey": "GDUKMGUGD3V6...",
  "blockchain": "stellar"
}
'
{
  "error": "Invalid request parameters"
}

Authorizations

Authorization
string
header
required

API key for authentication

Body

application/json
orderId
string<uuid>
required

Order ID for the swap (generated by the client)

quoteId
string<uuid>
required

Quote ID to use for the swap

publicKey
string
required

Public key for the swap

blockchain
enum<string>
required

Blockchain type for the swap (currently only stellar is supported)

Available options:
stellar
targetWallet
string

Target wallet address for the swap

Response

Swap created successfully (empty body)