> 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

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.

```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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
