Skip to main content
Version: 1.15.0

Class: GetTokenInfo

Defined in: cct/solana/token/operations/get-token-info.ts:42

Reads an SPL token mint's metadata and state.

Throws​

CCTParamsInvalidError If tokenAddress is not a valid Solana public key.

Throws​

CCIPSplTokenInvalidError If the token metadata is not a valid SPL token.

Throws​

CCIPTokenMintNotFoundError If the mint account does not exist.

Throws​

CCIPTokenMintInvalidError If the mint is not owned by an SPL Token program.

Throws​

CCIPTokenDataParseError If the mint data cannot be parsed.

Extends​

Constructors​

Constructor​

new GetTokenInfo(): GetTokenInfo

Returns​

GetTokenInfo

Inherited from​

SolanaQuery< GetTokenInfoParams, GetTokenInfoResult, ParsedGetTokenInfoParams >.constructor

Properties​

name​

readonly name: "getTokenInfo" = 'getTokenInfo'

Defined in: cct/solana/token/operations/get-token-info.ts:47

camelCase id; matches the token-manager facade method and error context.

Overrides​

SolanaQuery.name

Methods​

prepare()​

protected prepare(params: GetTokenInfoParams): ParsedGetTokenInfoParams

Defined in: cct/solana/token/operations/get-token-info.ts:50

Converts and validates the mint address.

Parameters​

ParameterType
paramsGetTokenInfoParams

Returns​

ParsedGetTokenInfoParams

Overrides​

SolanaQuery.prepare


query()​

query(chain: SolanaChain, params: GetTokenInfoParams): Promise<GetTokenInfoResult>

Defined in: cct/query.ts:25

Run prepare and read; no wallet.

Parameters​

ParameterType
chainSolanaChain
paramsGetTokenInfoParams

Returns​

Promise<GetTokenInfoResult>

Inherited from​

SolanaQuery.query


read()​

protected read(chain: SolanaChain, __namedParameters: ParsedGetTokenInfoParams): Promise<GetTokenInfoResult>

Defined in: cct/solana/token/operations/get-token-info.ts:58

Delegates metadata lookup and reads the mint's SPL state.

Parameters​

ParameterType
chainSolanaChain
__namedParametersParsedGetTokenInfoParams

Returns​

Promise<GetTokenInfoResult>

Overrides​

SolanaQuery.read