The idea
The market is open, the question is spicy, and your trader’s money is sitting on Arbitrum. Funding an account should take less effort than placing the trade. They choose an amount, pay with whatever they hold, and your app credits their balance in USDC.How it plays out
1
The trader chooses an amount
“Deposit 100 USDC.” Your server creates a funding intent for exactly that, tagged with the
trader’s account.
2
They pay from wherever their money is
USDT0 on Arbitrum, ETH on Base, USDC on Stellar: the checkout prices their token against your
100 USDC and shows one address to pay.
3
Their balance goes up
On
funding.credited, add the amount to the trader’s balance in your own database. Show the
deposit as pending from funding.payment_confirmed if you like, but only make it spendable
on funding.credited.The code
Make it your own
- Quick amounts. Buttons for 20, 50 and 100 USDC get a trader back to the market fastest.
- Pending, then spendable.
funding.payment_confirmedmeans the payment is verified;funding.creditedmeans it is settled and yours. Showing the step in between tells a trader their money is on its way. - Keep reserves on Base. Receive
asset_usdc_baseat your own address there instead. See A treasury on any chain.
Good to know
- Each deposit is an exact amount the trader picks first. If they send more, the extra goes back to them; if they send less, the intent waits for the rest. See Funding intents.
- Every deposit gets its own address, made for that intent alone. There is no permanent deposit address per trader.
- Your traders’ balances live in your app. Useroutr settles to your account and keeps no balance for you or for them.
- Cashing winnings out across chains is on the roadmap: see Payouts.