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

# useCurrency

> Hook to fetch currency details from the marketplace Retrieves detailed information about a specific currency by its contract address. The currency data is cached from previous currency list calls when possible

## Parameters

| Name                     | Type                   | Description                                                            |
| ------------------------ | ---------------------- | ---------------------------------------------------------------------- |
| `params.config`          | `SdkConfig`            | Configuration parameters                                               |
| `params.chainId`         | `number`               | The chain ID (must be a number, e.g., 1 for Ethereum, 137 for Polygon) |
| `params.currencyAddress` | `string`               | The currency contract address                                          |
| `params.query`           | `StandardQueryOptions` | Optional React Query configuration (from TanStack Query)               |

## Returns

Query result containing currency details

## Example

Basic usage:

```typescript theme={null}
const { data, isLoading } = useCurrency({
  chainId: 137,
  currencyAddress: '0x...'
});
```

With custom query options:

```typescript theme={null}
const { data, isLoading } = useCurrency({
  chainId: 1,
  currencyAddress: '0x...',
  query: {
    enabled: true
  }
});
```
