# Token info

To get token info you just have to call a chainDetailsMap method. It returns a map with keys as a chain symbol, and values as ChainDetailsWithTokens. It has a field named "tokens" that is a map of TokenWithChainDetails. You should use this object to identify a token.

Copy

```
import { PixelBridgeCoreSdk, nodeRpcUrlsDefault } from "@PixelBridge/bridge-core-sdk";

const sdk = new PixelBridgeCoreSdk(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) => t
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pixelbridge.gitbook.io/pixelbridge-core/pixelbridge-core-sdk/guides/general/token-info.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
