Integration
Anyalt Widget Integration Guide for Token Buy Template to the HTML via iframe
You can use this iframe widget only with the TOKEN_BUY usecase
Add the widget to your application using an iframe:
Required Parameters
apiKey
: Your API key for authenticationtheme
: (Optional) White or Dark theme ('white' | 'dark')minDepositAmount
: Minimum deposit amount (number)tokenName
: Token name (e.g., "USDT")tokenSymbol
: Token symbol (e.g., "USDT")tokenAddress
: Token contract addresstokenChainId
: Chain ID (number)tokenDecimals
: Number of decimals (number)tokenChainType
: Chain type ("EVM", "SOLANA")tokenLogoUrl
: (Optional) URL to token logobackgroundColor
: (Optional) Background color of the widget container (hex color code or color name)
Example Token Configuration
Error Handling
The widget will display validation errors in a user-friendly format if any parameters fail validation. Errors will be shown for:
Missing required fields
Invalid parameter formats
Out-of-range values
Invalid addresses for the specified chain type
Example error display:
Styling
The widget can be styled using standard iframe CSS properties:
Background Color Examples
You can set the background color using:
Hex color codes:
backgroundColor=%23f5f5f5
(URL-encoded #f5f5f5)Color names:
backgroundColor=white
RGB values:
backgroundColor=rgb(245,245,245)
Example URLs:
Last updated