> For the complete documentation index, see [llms.txt](https://docs.flash.trade/flash-trade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/guides/set-up-and-fund-a-wallet.md).

# Set up & fund a wallet

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.

```bash
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):

```bash
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](/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/signing-and-submitting.md)

## Explicit path

Prefer to run each step yourself? Build them in order:

```bash
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](/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/reference/account-and-funds.md)

## Verify

```bash
curl $FLASH_API_URL/owner/<WALLET>     # basket snapshot; confirms setup landed
```

Next: [Open & close positions](/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/guides/open-and-close-positions.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/guides/set-up-and-fund-a-wallet.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
