MintRequest

Class: MintRequest

Properties overview

  • address: PublicKey = PublicKey;
  • context: NFTTransactionContext = NFTTransactionContext;
  • owner: PublicKey = PublicKey;

Defined in: packages/nft/src/interfaces/types.ts:579

Represents a request to mint a new NFT, used by the admin contract to determine if minting is allowed.

Extends

Constructors

new MintRequest()

new MintRequest(value: {
  address: PublicKey;
  context: NFTTransactionContext;
  owner: PublicKey;
 }): MintRequest

Defined in: node_modules/o1js/dist/node/lib/provable/types/struct.d.ts:103

Parameters

value
address

PublicKey = PublicKey

The address of the NFT contract where the NFT will be minted.

context

NFTTransactionContext = NFTTransactionContext

A custom value that can be interpreted by the admin contract.

owner

PublicKey = PublicKey

The owner of the new NFT (can be different from the sender).

Returns

MintRequest

Inherited from

Struct({
  / The address of the NFT contract where the NFT will be minted. /
  address: PublicKey,
  / The owner of the new NFT (can be different from the sender). /
  owner: PublicKey, // can be different from the sender
  / A custom value that can be interpreted by the admin contract. /
  context: NFTTransactionContext, // should be interpreted by the admin contract
}).constructor

Properties

address

address: PublicKey = PublicKey;

Defined in: packages/nft/src/interfaces/types.ts:581

The address of the NFT contract where the NFT will be minted.

Inherited from

Struct({
  / The address of the NFT contract where the NFT will be minted. /
  address: PublicKey,
  / The owner of the new NFT (can be different from the sender). /
  owner: PublicKey, // can be different from the sender
  / A custom value that can be interpreted by the admin contract. /
  context: NFTTransactionContext, // should be interpreted by the admin contract
}).address

context

context: NFTTransactionContext = NFTTransactionContext;

Defined in: packages/nft/src/interfaces/types.ts:585

A custom value that can be interpreted by the admin contract.

Inherited from

Struct({
  / The address of the NFT contract where the NFT will be minted. /
  address: PublicKey,
  / The owner of the new NFT (can be different from the sender). /
  owner: PublicKey, // can be different from the sender
  / A custom value that can be interpreted by the admin contract. /
  context: NFTTransactionContext, // should be interpreted by the admin contract
}).context

owner

owner: PublicKey = PublicKey;

Defined in: packages/nft/src/interfaces/types.ts:583

The owner of the new NFT (can be different from the sender).

Inherited from

Struct({
  / The address of the NFT contract where the NFT will be minted. /
  address: PublicKey,
  / The owner of the new NFT (can be different from the sender). /
  owner: PublicKey, // can be different from the sender
  / A custom value that can be interpreted by the admin contract. /
  context: NFTTransactionContext, // should be interpreted by the admin contract
}).owner