pub struct Token<T> { /* private fields */ }

Implementations

Get token address.

Create native mint

Create multisig

Get the address for the associated token account.

Create and initialize the associated account.

Create and initialize a new token account.

Create and initialize a new token account.

Retrieve a raw account

Retrive mint information.

Retrieve account information.

Retrieve the associated account or create one if not found.

Assign a new authority to the account.

Mint new tokens

Transfer tokens to another account

Transfer tokens to an associated account, creating it if it does not exist

Transfer tokens to another account, given an expected fee

Burn tokens from account

Approve a delegate to spend tokens

Revoke a delegate

Close an empty account and reclaim its lamports

Close an account, reclaiming its lamports and tokens

Freeze a token account

Thaw / unfreeze a token account

Wrap lamports into native account

Wrap lamports into a native account that can always have its ownership changed

Sync native account lamports

Set transfer fee

Set default account state on mint

Harvest withheld tokens to mint

Withdraw withheld tokens from mint

Withdraw withheld tokens from accounts

Reallocate a token account to be large enough for a set of ExtensionTypes

Require memos on transfers into this account

Stop requiring memos on transfers into this account

Prevent unsafe usage of token account through CPI

Stop preventing unsafe usage of token account through CPI

Update interest rate

Update confidential transfer mint

Configures confidential transfers for a token account

Approves a token account for confidential transfers

Prepare a token account with the confidential transfer extension for closing

Fetch and decrypt the available balance of a confidential token account using the uniquely derived decryption key from a signer

Fetch and decrypt the available balance of a confidential token account using a custom decryption key

Fetch and decrypt the pending balance of a confidential token account using the uniquely derived decryption key from a signer

Fetch and decrypt the pending balance of a confidential token account using a custom decryption key

Fetch the ElGamal public key associated with a confidential token account

Fetch the ElGamal pubkey key of the auditor associated with a confidential token mint

Fetch the ElGamal pubkey key of the withdraw withheld authority associated with a confidential token mint

Deposit SPL Tokens into the pending balance of a confidential token account

Withdraw SPL Tokens from the available balance of a confidential token account using the uniquely derived decryption key from a signer

Withdraw SPL Tokens from the available balance of a confidential token account using custom keys

Transfer tokens confidentially using the uniquely derived decryption keys from a signer

Transfer tokens confidentially using custom decryption keys

Transfer tokens confidentially with fee using the uniquely derived decryption keys from a signer

Transfer tokens confidential with fee using custom decryption keys

Applies the confidential transfer pending balance to the available balance using the uniquely derived decryption key

Applies the confidential transfer pending balance to the available balance using a custom decryption key

Enable confidential transfer Deposit and Transfer instructions for a token account

Disable confidential transfer Deposit and Transfer instructions for a token account

Enable a confidential extension token account to receive non-confidential payments

Disable non-confidential payments for a confidential extension token account

Withdraw withheld confidential tokens from mint using the uniquely derived decryption key

Withdraw withheld confidential tokens from mint using a custom decryption key

Withdraw withheld confidential tokens from accounts using the uniquely derived decryption key

Withdraw withheld confidential tokens from accounts using a custom decryption key

Harvest withheld confidential tokens to mint

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more