FungibleToken

Mint new tokens to a specified address.

Changed on

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.

post/token/mint

Request

  • Base URL: https://minatokens.com/api/v1
  • URL: https://minatokens.com/api/v1/token/mint
  • Auth: API key in header x-api-key

Request body

txType'token:mint'

Must be "token:mint"

tokenAddressstring required

The address of the token contract.

senderstring required

The address (public key) of the sender.

senderPrivateKeystring

The private key of the sender. It is NOT recommended to use this field. Please use the sender field instead. Use this field at your own risk and only if you know what you are doing and do not have access to mina-signer or wallet to get the signature.

nonceinteger

Optional. The nonce for the transaction.

feeinteger

Optional. The fee for the transaction.

memostring

Optional. A memo for the transaction.

developerFeenumber double

Optional. The developer fee for the transaction.

tostring required

The address to which tokens are to be minted.

amountnumber double required

The amount of tokens to mint.

pricenumber double

The price of the token in the bonding curve.

Response

Successfully built mint transaction.

senderstring required

The address initiating the transaction.

nonceinteger required

The nonce for the transaction.

memostring required

A memo for the transaction.

feenumber double required

The fee for the transaction.

proverPayloadstring required

The payload for the prover.

signedDatastring required

The signed data for the transaction.

transactionstring required

The raw transaction data.

sendTransactionboolean

Optional. Whether to broadcast the transaction after proving.

symbolstring required

The symbol of the token.

Changes

    • info

      added the new optional request property ////////

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • breaking

      the ///// response's property type changed from any to object for status

    • info

      api tag FungibleToken added

    • info

      api tag Fungible Token removed