What It Does
The AnySpend Deposit page provides a streamlined interface for users to deposit tokens to a specific recipient wallet address. It supports cross-chain deposits, allowing users to pay with tokens from any supported chain while the recipient receives funds on their desired destination chain and token. This feature is designed for integration with dApps, bots, and services that need to receive token deposits from users.How It Works
- Deep Link Generation
Your application generates a deposit URL with the recipient address, destination chain, and token. - User Connects Wallet
The user connects their wallet (MetaMask, Coinbase, Rainbow, Rabby, Trust Wallet, etc.). - Token Selection
The user selects which token they want to pay with from their available balances. - Cross-Chain Execution
AnySpend handles the cross-chain routing and conversion to deliver the specified token to the recipient. - Confirmation & Redirect
After completion, users can be redirected back to your application.
URL Parameters
The deposit page accepts the following URL parameters:| Parameter | Required | Description |
|---|---|---|
recipientAddress | Yes | The wallet address to receive the deposit (valid EVM address) |
toChainId | Yes* | The destination chain ID (e.g., 8453 for Base) |
toCurrency | Yes* | The token contract address on the destination chain |
amount | No | Fixed amount in wei/smallest unit. When provided, user cannot change the amount |
redirect_url | No | HTTPS URL to redirect after completion |
redirect_label | No | Custom label for the redirect button |
partner | No | Partner ID for custom configuration |
Example URLs
Basic deposit to Base USDC:Supported Wallets
The deposit page supports the following wallets out of the box:- MetaMask
- Coinbase Wallet
- Rainbow
- Rabby
- Trust Wallet
Special Chain Support
Hyperliquid
The deposit page includes special support for Hyperliquid chain:- USDC uses a special 34-character address format (
0x00000000000000000000000000000000) - When
toChainIdis set to Hyperliquid,toCurrencydefaults to USDC if not specified - Zero addresses are automatically corrected to the Hyperliquid USDC format
Partner Integration
Partners can be configured with custom settings:Security
The deposit page includes built-in security measures:- Redirect URL Validation: Only HTTPS URLs are allowed for redirects to prevent open redirect attacks
- Amount Validation: Amounts must be valid positive integers (wei values)
- Address Validation: Recipient and token addresses are validated before processing
Common Use Cases
- Telegram Bots: Let users fund their bot wallets through a simple link
- Gaming: Enable players to deposit tokens to game accounts
- Marketplaces: Allow buyers to fund escrow addresses
- Subscription Services: Collect recurring payments to a service wallet
- Tipping: Enable tipping creators with a shareable deposit link
HypeDuel