iFrame Initialization
Last updated
Last updated
apiKey
: Your publishable API key for customer identification and session validation. Also known as the public key. Can be found in the "Developers" section of the .
walletAddress
The crypto wallet where the user's funds will be sent. You can include one or more wallet entries, separated by commas. Format to follow: CURRENCY:NETWORK:ADDRESS:AMOUNT
CURRENCY β token symbol (e.g., BTC
, SOL
, ETH
, USDT
)
NETWORK β onβchain network identifier (e.g., bitcoin
, ethereum
, solana
)
ADDRESS β the onβchain address itself (e.g., ltc1q2k0xaafhgt3s8qw03wmajjmlc8gcepdy0un0ah
)
(OPTIONAL): AMOUNT β the minimum amount (in that token) a user must send to the address. Can't be 0; decimals are supported.
If using one address, itβll look like this:
walletAddress=LTC:litecoin:ltc1q2k0xaafhgt3s8qw03wmajjmlc8gcepdy0un0ah
If you want to accept multiple currencies, for example, Bitcoin, Litecoin, and Ethereum, format the walletAddress
parameter as follows:
walletAddress=BTC:bitcoin:yourBitcoinAddress,LTC:litecoin:yourLitecoinAddress,ETH:ethereum:yourEthereumAddress
To enforce a minimum transaction amount on a specific address, add it as the final value:
walletAddress=LTC:litecoin:yourLitecoinAddress:5
Examples:
BTC:bitcoin:1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa:10
β Bitcoin address with a minimum of 10 BTC
ETH:ethereum:0x742d35Cc6634C0532925a3b844Bc454e4438f44e:5
β Ethereum address with a minimum of 5 ETH
ETH:ethereum:0x742d35Cc6634C0532925a3b844Bc454e4438f44e
β Ethereum address with no minimum amount
signature: A cryptographic signature to verify the authenticity of the request. See the section below for implementation details.
Generate a signature to prevent the URL from being modified. This is done using the query string, including '?' and the secret key shared with you.
Note: This is a test key, so your key will be different.
https://app.swapped.com/?apiKey=your-api-key-12345&walletAddress=BTC:bitcoin:1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa:10&signature=RyvwgGPnBBfP2VwKz1beHveU4%2BTjPIwRYNj0s6hKNVU%3D
The iFrame has been optimized for height: 585px; width: 445px.
Bitcoin: bitcoin
Litecoin: litecoin
Ethereum: ethereum
Solana: solana
Polygon: polygon
Binance Smart Chain: bsc
Base: base
Tron: tron
Avalanche: avalanche
Arbitrum: arb
Cronos: cronos
Fantom: fantom
Optimism: optimism
The system will return an appropriate error message if an invalid signature or API key is provided.
Common errors include:
Unknown partner - The API key is not recognized
Invalid signature - The signature does not match the expected value
Partner '[name]' is disabled - This account is currently disabled. Please have an admin or higher contact our support for more information
Ensure all required parameters are included and the signature is generated correctly to avoid these errors.
baseCurrencyCode
: The FIAT currency code for transactions (e.g., USD, EUR, GBP). See for more options.
connection
: The exchange platform or wallet to use (e.g., Binance, Coinbase, Kraken, Phantom, etc.). See for available platforms and wallets.
style
: The Styling ID and widget customization options can be configured on the βWidget Customizationsβ page within the .
baseCountry
: (ISO) The country code for the user's location. If not provided, it will be detected automatically. See for more options.
Below is a list of supported network identifiers β the values you supply in the segment of your parameter: