snip.api.token

Functions

get_metadata(token)

Get the metadata of a token.

Classes

TokenMetadata

Metadata of a token.

Module Functions

snip.api.token.get_metadata(token: Token) TokenMetadata

Get the metadata of a token.

This performs a request to the deployment defined in the token to retrieve the metadata of the token.

Parameters:

token (Token) – The token to retrieve the metadata from.

Returns:

The metadata of the token.

Return type:

TokenMetadata

Raises:

AuthenticationException – If the token is invalid.