POST /v1/sessions. See also: Create Session.
Prefilled Amount (amountUnits)
Pass destination.amountUnits to lock the deposit to an exact amount. The user skips amount selection and proceeds directly to the payment flow.
| Field | Type | Description |
|---|---|---|
amountUnits | string, optional | Fixed amount in token units (e.g. "25.00" for $25 USDC). When omitted, the user chooses the amount. |
Contract Calls (calldata)
Pass destination.calldata to execute an arbitrary contract call with deposited funds. When using calldata, destination.address is the contract being called.
How it works
- Daimo delivers the destination token to the contract
- A token approval of the deposit amount is made to the contract
- The contract is called with the provided
calldata - If the call succeeds, the session completes normally
- If the call reverts, funds are sent to
refundAddressinstead, and the session status becomesbounced
Contract requirements
Your contract must handle variable input amounts. Specifically, it should:- Check the allowance of the destination token from
msg.sender - Use
transferFromto pull the full allowance
amountUnits is set. While over- or under-payments are rare with a fixed amount, they cannot be guaranteed to never happen.
Example: generating calldata with viem
Error handling
If your contract call reverts:- The session status becomes
bounced - Funds are sent to the
refundAddressyou specified
refundAddress when using calldata to ensure funds are recoverable.
Payment Options
Optionally passdisplay.paymentOptions to control which payment methods appear and in what order.
When omitted, all available methods are shown.
| Option | Description |
|---|---|
"AllWallets" | All supported wallet deeplinks (MetaMask, Trust, Phantom, etc.) |
"AllExchanges" | All exchange options (Coinbase, Binance, CashApp, Lemon) |
"AllAddresses" | Deposit address options for all EVM chains |
"Coinbase" | Coinbase onramp |
"Binance" | Binance Connect |
"CashApp" | Cash App via Flashnet Lightning |
"Lemon" | Lemon cash-out |
"MetaMask" | MetaMask wallet |
"Trust" | Trust Wallet |
"Phantom" | Phantom wallet |
"Rainbow" | Rainbow wallet |
"BaseApp" | Base (Coinbase Wallet) |
"Bitget" | Bitget wallet |
"OKX" | OKX wallet |
"Zerion" | Zerion wallet |
"ConnectedWallet" | Use already-connected browser wallet (no prompt, errors if none) |
"AutoconnectInjectedWallets" | Auto-connect injected browser wallet. |
"Tron" | Tron USDT deposit |
["Lemon"] goes straight to Lemon).
Nested arrays control wallet ordering within a group: