> For the complete documentation index, see [llms.txt](https://dangywing.gitbook.io/canto-name-service/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dangywing.gitbook.io/canto-name-service/technicals/integrating/get-name-from-tokenid.md).

# Get Name from TokenId

given a tokenId, how do I get the name?

Using the mapping:

```solidity
mapping(uint256 => string) public tokenToName;
```

**Example:**

To find the name for tokenId `12345`

One can call `tokenToName(12345)` and if the given tokenId has been registered, the contract will return the registered name as a string.
