Class TokenClient

This is a client for the Token module.

It enables us to interact with the SPL Token program in order to create, send, freeze, thaw, and mint tokens.

You may access this client via the tokens() method of your Metaplex instance.

const tokenClient = metaplex.tokens();

Example

You can create a new mint account with an associated token account like so. The owner of this token account will, by default, be the current identity of the metaplex instance.

const { token } = await metaplex.tokens().createTokenWithMint();

Hierarchy

  • TokenClient

Constructors

Properties

metaplex: Metaplex

Methods

Generated using TypeDoc