NFTTransactionContext

Class: NFTTransactionContext

Properties overview

  • custom: Field[];

Methods overview

  • assertEqual()

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

Extends

  • {
    custom: Field[];
    }

Constructors

new NFTTransactionContext()

new NFTTransactionContext(value: {
  custom: Field[];
 }): NFTTransactionContext

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

Parameters

value
custom

Field[] = ...

Custom context that can be interpreted by the owner or approved contract.
Can hold Storage and root or two PublicKeys and UInt64
In case of holding Storage and root, the contracts can fetch using witnessAsync any off-chain data with unlimited size
and verify it using the root.

Returns

NFTTransactionContext

Inherited from

Struct({
  / Custom context that can be interpreted by the owner or approved contract.
    Can hold Storage and root or two PublicKeys and UInt64
    In case of holding Storage and root, the contracts can fetch using witnessAsync any off-chain data with unlimited size
    and verify it using the root.
   /
  custom: Provable.Array(Field, 3),
}).constructor

Properties

custom

custom: Field[];

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

Custom context that can be interpreted by the owner or approved contract.
Can hold Storage and root or two PublicKeys and UInt64
In case of holding Storage and root, the contracts can fetch using witnessAsync any off-chain data with unlimited size
and verify it using the root.

Inherited from

Struct({
  / Custom context that can be interpreted by the owner or approved contract.
    Can hold Storage and root or two PublicKeys and UInt64
    In case of holding Storage and root, the contracts can fetch using witnessAsync any off-chain data with unlimited size
    and verify it using the root.
   /
  custom: Provable.Array(Field, 3),
}).custom

Methods

assertEqual()

static assertEqual(a: NFTTransactionContext, b: NFTTransactionContext): void

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

Parameters

a

NFTTransactionContext

b

NFTTransactionContext

Returns

void