Gets token metadata for the specified token contract.
UInt160
The script hash of the token contract.
Promise<Token>
type Token = { symbol: string; decimals: number; totalSupply: Integer; };
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.
最后更新于 4个月前
const token = await provider.getTokenInfo( "0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5", );
{ symbol: 'NEO', decimals: 0, totalSupply: '100000000' }