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

# GetTokenBySymbol

```ts theme={null}
function getTokenBySymbol(symbol, environment): TokenMetadata;
```

Get token metadata by symbol

## Parameters

| Parameter     | Type                          | Description                                                      |
| ------------- | ----------------------------- | ---------------------------------------------------------------- |
| `symbol`      | `string`                      | The token symbol (e.g., 'USDC')                                  |
| `environment` | `"sandbox"` \| `"production"` | The environment ('sandbox' for devnet, 'production' for mainnet) |

## Returns

[`TokenMetadata`](/grid/v1/sdk-reference/react/reference/latest/interfaces/TokenMetadata)

Token metadata if found, undefined otherwise

## Example

```typescript theme={null}
const metadata = getTokenBySymbol('USDC', 'production');
console.log(metadata?.mintAddress);
```
