Options
All
  • Public
  • Public/Protected
  • All
Menu

Holds the data for the Metadata Account and provides de/serialization functionality for that data

Hierarchy

  • Metadata

Implements

Index

Properties

collection: Collection
collectionDetails: { __kind: "V1" } & { size: bignum }
data: Data
editionNonce: number
isMutable: boolean
key: Key
mint: PublicKey
primarySaleHappened: boolean
tokenStandard: TokenStandard
updateAuthority: PublicKey
uses: Uses

Methods

  • pretty(): { collection: Collection; collectionDetails: { __kind: "V1" } & { size: bignum }; data: Data; editionNonce: number; isMutable: boolean; key: string; mint: string; primarySaleHappened: boolean; tokenStandard: TokenStandard; updateAuthority: string; uses: Uses }
  • serialize(): [Buffer, number]
  • deserialize(buf: Buffer, offset?: number): [Metadata, number]
  • fromAccountAddress(connection: Connection, address: PublicKey): Promise<Metadata>
  • fromAccountInfo(accountInfo: AccountInfo<Buffer>, offset?: number): [Metadata, number]
  • getMinimumBalanceForRentExemption(args: MetadataArgs, connection: Connection, commitment?: Commitment): Promise<number>

Generated using TypeDoc