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

# FundContextType

```ts theme={null}
type FundContextType = {
  state: FundState;
  dispatch: Dispatch<FundAction>;
  fetchBuyUrl: (params: FetchBuyUrlParams, onError?: (e: 
     | OnrampError
    | undefined) => void) => Promise<string>;
};
```

The context type for the Fund component.

## Properties

| Property                             | Type                                                                                                                                                                                                                                                                          |
| ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a id="state" /> `state`             | [`FundState`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-react/Interfaces/FundState)                                                                                                                                                                                            |
| <a id="dispatch" /> `dispatch`       | `Dispatch`\<[`FundAction`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-react/Type-Aliases/FundAction)>                                                                                                                                                                           |
| <a id="fetchbuyurl" /> `fetchBuyUrl` | (`params`: [`FetchBuyUrlParams`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-react/Interfaces/FetchBuyUrlParams), `onError?`: (`e`: \| [`OnrampError`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-react/Interfaces/OnrampError) \| `undefined`) => `void`) => `Promise`\<`string`> |
