> ## Documentation Index
> Fetch the complete documentation index at: https://docs.groundtech.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Deposits

> Fund a portfolio wallet and track deposit lifecycle.

After creating a wallet, fund it by sending a supported stablecoin to the wallet's deposit addresses.

## Fund the wallet

1. Fetch `GET /v3/wallets/{id}` and select the returned `depositAddresses` entry for your funding network. If it is missing, follow [Wait for the deposit address](https://docs.groundtech.co/v3/docs/portfolio-wallets/create-wallet.md#wait-for-the-deposit-address). See [Supported Chains](https://docs.groundtech.co/v3/docs/portfolio-wallets/supported-chains.md) for accepted stablecoins and network keys.
2. Send the supported stablecoin to that address on the selected network. In the portal, open **Deposit funds** and select the blockchain.
3. Track the deposit through the deposit APIs or webhooks until it reaches `completed` and the wallet balance updates.

### Minimum amounts

There is no minimum deposit amount. Small deposits may remain as withdrawable
cash until they can meet the automatic rebalance minimums.
Yield sources and routes can impose additional minimums.

### Sandbox

Use the supported test token for the network-specific address, including `depositAddresses.ethereum_sepolia`, `depositAddresses.solana_devnet`, `depositAddresses.stellar_testnet`, or `depositAddresses.tron_shasta`. See [Sandbox funding](https://docs.groundtech.co/v3/docs/portfolio-wallets/supported-chains.md#sandbox) for faucets and test assets.

## Deposit lifecycle

| Status | Terminal | Meaning |
| - | - | - |
| `processing` | No | Ground detected the transfer and is checking or crediting it |
| `completed` | Yes | Transfer reached chain finality and was credited to the wallet |
| `failed` | Yes | Deposit processing failed |

When a wallet has no active Ground-managed workflow, a supported-token transfer
can appear in deposit and activity APIs with `status: "processing"` while Ground
checks it and waits for chain finality. During an active rebalance, withdrawal,
or protocol workflow, a deposit may appear only after Ground confirms that the
transfer is an external deposit and credits it.

A processing deposit has `completedAt: null` and is not included in
`balance.totalUsd`, `balance.withdrawableUsd`, or positions. After the transfer
reaches finality and Ground records it in the wallet's accounting, its status
becomes `completed` and `completedAt` is populated. Its deposit `id` stays the same.

Wallets with automatic rebalancing deploy cash toward percentage targets.
Otherwise deposits stay in cash until the partner calls `/allocate`.

## List deposits

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl "$BASE_URL/v3/wallets/$WALLET_ID/deposits?limit=25" \
  -H "Authorization: Bearer $GROUND_API_KEY"
```

```javascript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
const resp = await fetch(`${BASE_URL}/v3/wallets/${walletId}/deposits?limit=25`, {
  headers: { Authorization: `Bearer ${GROUND_API_KEY}` },
});
const { data, nextCursor } = await resp.json();
```

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "data": [
    {
      "id": "797a5ca3-2a1c-443b-b190-ca951964aa35",
      "walletId": "9d1a1c83-3a1c-4c14-9c5a-0c9a57a4a7db",
      "amount": "10.000000",
      "token": "usdc",
      "chain": "ethereum_sepolia",
      "fromAddress": "0x76f8fc6667e239f83a547d4e16225d6a34f6fa22",
      "txHash": "0xe2e8a534960a7cf19932b35759788a0de4fa131d46d3e36a96a4802b6b93e5e1",
      "status": "completed",
      "createdAt": "2026-07-09T21:34:17.973Z",
      "completedAt": "2026-07-09T21:34:17.973Z",
      "assetId": "d9c7382b-56c6-4bf1-8fe4-5eca997a5622"
    }
  ],
  "nextCursor": null
}
```

Supports cursor-based pagination. See [API Conventions](https://docs.groundtech.co/v3/docs/portfolio-wallets/api-conventions.md#pagination).

## Fetch a deposit by ID

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl "$BASE_URL/v3/wallets/$WALLET_ID/deposits/$DEPOSIT_ID" \
  -H "Authorization: Bearer $GROUND_API_KEY"
```

## Look up by transaction hash

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl "$BASE_URL/v3/wallets/$WALLET_ID/deposits/lookup?txHash=$TX_HASH" \
  -H "Authorization: Bearer $GROUND_API_KEY"
```

Optionally scope to a specific chain:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl "$BASE_URL/v3/wallets/$WALLET_ID/deposits/lookup?txHash=$TX_HASH&chain=arbitrum" \
  -H "Authorization: Bearer $GROUND_API_KEY"
```

## Deposit webhooks

Subscribe to `portfolio_wallet.deposit.status_changed` for real-time deposit tracking. See [Webhooks](https://docs.groundtech.co/v3/docs/portfolio-wallets/webhooks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.