Skip to main content

Storage

Storage is the hash of the IPFS or Arweave storage where the NFT metadata is written format of the IPFS hash string: i:... format of the Arweave hash string: a:...

Hierarchy

  • { hashString: Field[] }
    • Storage

Index

Constructors

constructor

  • new Storage(value: { hashString: [Field, Field] }): Storage
  • Parameters

    • value: { hashString: [Field, Field] }

    Returns Storage

Properties

hashString

hashString: Field[] = ...

The hash string of the storage

Methods

isEmpty

  • isEmpty(): Bool
  • Returns Bool

toIpfsHash

  • toIpfsHash(): string
  • Returns string

toString

  • toString(): string
  • Returns string

staticassertEquals

staticempty

  • Returns Storage

staticfromIpfsHash

  • fromIpfsHash(hash: string): Storage
  • Parameters

    • hash: string

    Returns Storage

staticfromString

  • fromString(storage: string): Storage
  • Parameters

    • storage: string

    Returns Storage