Skip to main content

NftMintTransactionParams

txTypeNftTransactionType (string)required

Must be "nft:mint"

Possible values: [nft:mint]

collectionAddressstringrequired

The address of the NFT collection.

nftAddressstring

Optional. The address of the NFT.

senderstringrequired

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.

nonceint64

Optional. The nonce for the transaction.

memostring

Optional. A memo for the transaction.

developerFeedouble

Optional. The developer fee for the transaction.

nftMintParams objectrequired
namestringrequired

The name of the NFT

addressstring

The address of the NFT contract

addressPrivateKeystring

The private key of the NFT contract

tokenIdint64

The token ID of the NFT

data objectrequired

The data associated with the NFT, including owner, approved, version, id, permissions and flags

ownerstringrequired

The public key of the owner of the NFT

approvedstring

The public key of the approved address of the NFT

versionint32

The version number of the NFT state

idstring

The unique identifier of the NFT within the collection. A bigint encoded as a string.

canChangeOwnerByProofboolean

Determines whether the NFT's ownership can be changed via a zero-knowledge proof (readonly)

canTransferboolean

Specifies if the NFT's ownership can be transferred (readonly)

canApproveboolean

Specifies if the NFT's approved address can be changed (readonly)

canChangeMetadataboolean

Indicates whether the NFT's metadata can be updated (readonly)

canChangeStorageboolean

Determines whether the storage associated with the NFT can be altered (readonly)

canChangeNameboolean

Specifies if the name of the NFT can be changed (readonly)

canChangeMetadataVerificationKeyHashboolean

Indicates whether the verification key hash for the metadata can be changed (readonly)

canPauseboolean

Specifies if the NFT contract can be paused, preventing certain operations (readonly)

isPausedboolean

Indicates whether the NFT contract is currently paused

requireOwnerAuthorizationToUpgradeboolean

Determines whether the owner's authorization is required to upgrade the NFT's verification key (readonly)

feeint64

The fee associated with minting the NFT

metadata objectrequired

The metadata associated with the NFT, Field as a string or NftMetadata object

oneOf
string
storagestring

The off-chain storage information (e.g., IPFS hash)

metadataVerificationKeyHashstring

The hash of the verification key used for metadata proofs, Field as a string

expiryint32

The expiry time slot for minting the NFT

NftMintTransactionParams
{
"txType": "nft:mint",
"collectionAddress": "string",
"nftAddress": "string",
"sender": "string",
"senderPrivateKey": "string",
"nonce": 0,
"memo": "string",
"developerFee": 0,
"nftMintParams": {
"name": "string",
"address": "string",
"addressPrivateKey": "string",
"tokenId": 0,
"data": {
"owner": "string",
"approved": "string",
"version": 0,
"id": "string",
"canChangeOwnerByProof": true,
"canTransfer": true,
"canApprove": true,
"canChangeMetadata": true,
"canChangeStorage": true,
"canChangeName": true,
"canChangeMetadataVerificationKeyHash": true,
"canPause": true,
"isPaused": true,
"requireOwnerAuthorizationToUpgrade": true
},
"fee": 0,
"metadata": "string",
"storage": "string",
"metadataVerificationKeyHash": "string",
"expiry": 0
}
}