> For the complete documentation index, see [llms.txt](https://docs-core.allbridge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-core.allbridge.io/sdk/guides/general/token-info.md).

# Token info

To get token info you just have to call a [chainDetailsMap](https://bridge-core-sdk.web.app/classes/AllbridgeCoreSdk.html#chainDetailsMap) method. It returns a map with keys as a chain symbol, and values as [ChainDetailsWithTokens](https://bridge-core-sdk.web.app/interfaces/ChainDetailsWithTokens.html). It has a field named "tokens" that is a map of [TokenWithChainDetails](https://bridge-core-sdk.web.app/interfaces/TokenWithChainDetails.html). You should use this object to identify a token.

```typescript
import { AllbridgeCoreSdk, nodeRpcUrlsDefault } from "@allbridge/bridge-core-sdk";

const sdk = new AllbridgeCoreSdk(nodeRpcUrlsDefault);

const chains = await sdk.chainDetailsMap();
console.log("Chain details map =", JSON.stringify(chains, null, 2));

const tokens = await sdk.tokens();
console.log("Tokens =", JSON.stringify(tokens, null, 2));

// selecting tokens
const sourceChain = chains[ChainSymbol.SOL];
const sourceTokenInfo = sourceChain.tokens.find((tokenInfo) => tokenInfo.symbol === "USDC");

const destinationChain = chains[ChainSymbol.POL];
const destinationTokenInfo = destinationChain.tokens.find((tokenInfo) => tokenInfo.symbol === "USDC");
```
