> For the complete documentation index, see [llms.txt](https://tutorial.neoline.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tutorial.neoline.io/reference/neo3-provider-api/gettokeninfo.md).

# getTokenInfo

Gets token metadata for the specified token contract.

## Parameters

#### 1. hash *(required)*

`UInt160`

The script hash of the token contract.

## Returns

`Promise<Token>`

```ts
type Token = {
  symbol: string;
  decimals: number;
  totalSupply: Integer;
};
```

## Errors

| Code    | Name        | Description                        |
| ------- | ----------- | ---------------------------------- |
| `10002` | `INVALID`   | The token hash is invalid.         |
| `10003` | `NOTFOUND`  | The token contract does not exist. |
| `10004` | `FAILED`    | Contract execution failed.         |
| `10008` | `RPC_ERROR` | The RPC server returned an error.  |

## Example

### Request

```js
const token = await provider.getTokenInfo(
  "0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5",
);
```

### Response

```js
{
  symbol: 'NEO',
  decimals: 0,
  totalSupply: '100000000'
}
```
