getTokenInfo

Gets token metadata for the specified token contract.

Parameters

1. hash (required)

UInt160

The script hash of the token contract.

Returns

Promise<Token>

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

Response

最后更新于