mintTokens

Function: mintTokens()

function mintTokens<ThrowOnError>(options: OmitKeys<RequestOptions<ThrowOnError>, "body" | "url"> & MintTokensData & Pick<RequestOptions<ThrowOnError>, "headers">): RequestResult<TokenTransaction, ErrorResponse, ThrowOnError>

Defined in: packages/api/src/client/sdk.gen.ts:124

Mint new tokens to a specified address.
The mint endpoint allows authorized users to mint new tokens of a fungible token on the Mina blockchain.
This transaction increases the total supply of the token by creating new tokens and assigning them to a specified address.
The sender must have the authority to mint tokens, typically the admin of the token contract.

Type Parameters

ThrowOnError extends boolean = false

Parameters

options

OmitKeys<RequestOptions<ThrowOnError>, "body" | "url"> & MintTokensData & Pick<RequestOptions<ThrowOnError>, "headers">

Returns

RequestResult<TokenTransaction, ErrorResponse, ThrowOnError>