Protected
Readonly
metaplexCreates a new mint account.
const transactionBuilder = await metaplex.tokens().builders().createMint();
Optional
options: TransactionBuilderOptionsCreates a new token account.
const transactionBuilder = await metaplex.tokens().builders().createToken({ mint });
Optional
options: TransactionBuilderOptionsCreates both mint and token accounts in the same transaction.
const transactionBuilder = await metaplex.tokens().builders().createTokenWithMint();
Optional
options: TransactionBuilderOptionsMint tokens to an account.
const transactionBuilder = await metaplex
.tokens()
.builders()
.mint({
mintAddress,
toOwner,
amount: token(100),
});
Optional
options: TransactionBuilderOptionsSend tokens from one account to another.
const transactionBuilder = await metaplex
.tokens()
.builders()
.send({
mintAddress,
toOwner,
amount: token(100),
});
Optional
options: TransactionBuilderOptionsFreezes a token account.
const transactionBuilder = metaplex.tokens().builders().freeze({ mintAddress, freezeAuthority });
Optional
options: TransactionBuilderOptionsThaws a token account.
const transactionBuilder = metaplex.tokens().builders().thaw({ mintAddress, freezeAuthority });
Optional
options: TransactionBuilderOptionsApproves a delegate authority for a token account.
const transactionBuilder = metaplex
.tokens()
.builders()
.approveDelegateAuthority({
delegateAuthority,
mintAddress,
});
Optional
options: TransactionBuilderOptionsRevokes the current delegate authority for a token account.
await metaplex
.tokens()
.builders()
.revokeDelegateAuthority({ mintAddress });
Optional
options: TransactionBuilderOptionsGenerated using TypeDoc
This client allows you to access the underlying Transaction Builders for the write operations of the Token module.
See
TokenClient