> ## 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.

# GetAllTokens

```ts theme={null}
function getAllTokens(environment): TokenMetadata[];
```

Get all registered tokens for an environment

## Parameters

| Parameter | Type | Description |
| - | - | - |
| `environment` | `"sandbox"` \| `"production"` | The environment ('sandbox' for devnet, 'production' for mainnet) |

## Returns

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

Array of all token metadata entries

## Example

```typescript theme={null}
const tokens = getAllTokens('production');
console.log(tokens.map(t => t.symbol));
```


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