Skip to main content
POST
Create an exchange funding URL

Headers

x-api-key
string
required

API key for authentication

Example:

"your-api-key"

x-user-country
string

Trusted edge-resolved ISO country. When present it overrides body.baseCountry and x-client-ip, and enables country-specific payment-method validation.

Pattern: ^[A-Z]{2}$
Example:

"PH"

x-client-ip
string

The end user's IP address as observed by the edge, for edges that can name the IP but cannot resolve a country themselves (no local GeoIP database). Used only when x-user-country is absent, and ignored unless it is a publicly-routable address. Prefer x-user-country when your edge already has a country — for example Cloudflare's cf-ipcountry — since it needs no lookup here.

Example:

"203.0.113.7"

Body

application/json
smartAccount
string
required

Ethereum address (0x followed by 40 hex characters)

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"

baseCountry
string

ISO-3166-1 alpha-2 country code

Pattern: ^[A-Z]{2}$
Example:

"US"

baseCurrencyCode
string

ISO fiat currency code

Pattern: ^[A-Z]{3,4}$
Example:

"USD"

locale
string
connection
string
acceptedExchangeFeeBps
integer
Required range: 0 <= x <= 10000
connections
string[]
Required array length: 1 - 26 elements
Required string length: 1 - 64
Example:
merchantName
string

Optional. Overrides the merchant name Swapped Connect shows on its confirm screen — both the "To:" row and its tooltip ("Funds will be delivered to your wallet."). Omit it to inherit the Rhinestone default. Send it raw; the service URL-encodes it.

Maximum string length: 64
Example:

"Superform"

merchantLogoUrl
string<uri>

Optional. Publicly accessible HTTPS URL of the merchant's logo, shown beside merchantName on the Swapped Connect confirm screen. PNG or SVG recommended. Send it raw; the service URL-encodes it.

Maximum string length: 2048
Example:

"https://cdn.example.com/logo.svg"

Response

Signed Connect URL

ok
enum<boolean>
required
Available options:
true
url
string
required
currencyCode
string
required
sandbox
boolean
required
externalCustomerId
string
required
expiresAt
string
required
exchangeFeeBps
integer
Required range: x >= 0