Set up & fund a wallet
Get a wallet from zero to trade-ready.
A wallet needs collateral and a delegated basket before it can trade. The one-shot deposit handles most of it.
Fastest path
deposit funds the deposit ledger and bundles any missing setup (basket, deposit ledger, delegation, trade vault) in one transaction.
curl -X POST $FLASH_API_URL/transaction-builder/deposit -d '{
"owner": "<WALLET>", "tokenSymbol": "USDC", "amount": "100.0"
}'Then delegate to enable trading (one-time per wallet):
curl -X POST $FLASH_API_URL/transaction-builder/delegate-basket -d '{
"owner": "<WALLET>", "payer": "<WALLET>"
}'Sign both with the owner and submit to your Solana RPC. → Signing & submitting
Explicit path
Prefer to run each step yourself? Build them in order:
curl -X POST $FLASH_API_URL/transaction-builder/init-deposit-ledger -d '{ "owner": "<WALLET>" }'
curl -X POST $FLASH_API_URL/transaction-builder/init-basket -d '{ "owner": "<WALLET>" }'
curl -X POST $FLASH_API_URL/transaction-builder/deposit-direct -d '{
"owner": "<WALLET>", "tokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "amount": "100.0"
}'
curl -X POST $FLASH_API_URL/transaction-builder/delegate-basket -d '{ "owner": "<WALLET>" }'deposit-direct derives the source ATA and token program from the mint; native SOL is wrapped automatically.
→ Full fields: API reference › Account & funds
Verify
Next: Open & close positions.
Last updated
Was this helpful?

