# Wallet funding

`GET /v2/wallet/{chain_id}/{address}/funding`

Operation id: `get-wallet-funding`

Returns who sent funds to a wallet and whom it sent funds to, and can walk back through the funders.
Use it to answer "who funded this wallet" or "which wallets share a funding source".
With `hops=1` the answer is pages of transfers in and out, newest first.
With `hops` of 2 or more, or `root`, the answer is a graph of `nodes` and `edges` walked backwards.
A walk stops at 10 hops or 500 addresses and then sets `truncated`.
Only final blocks are included, so a transfer appears once its block is final.
`uncovered` lists block ranges not yet indexed; an empty result inside them does not mean there were no transfers.

Base URL: `https://api.chainmetric.io`. Send `Authorization: <key>` (the bare key, no `Bearer`).

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `undefined` | undefined | object | no | undefined |
| `undefined` | undefined | object | no | undefined |
| `direction` | query | string | no | Which transfers to return. A walk (`hops` above 1) only goes backwards, so `out` needs `hops=1`. Example: `in`. |
| `tokens` | query | string | no | `quote` covers the native currency and the chain's quote tokens. `all` covers every token. Example: `quote`. |
| `hops` | query | string | no | `1` for direct transfers, a number from 2 to 10, or `root` to walk back to the original funders. Example: `root`. |
| `limit` | query | integer | no | Transfers per direction per page, with `hops=1` only. Larger values are clamped to 1000. Example: `100`. |
| `undefined` | undefined | object | no | undefined |

## Responses

### 200

The wallet's funding.

### 400



### 401



### 429



### 503


