Initializes a new instance of the Anchor class.
The URL to a JSON payload of metadata.
The hash of the contents of the metadata URL.
Private
#dataPrivate
#originalPrivate
#urlGets the hash of the contents of the metadata URL.
The hash of the contents.
Sets the hash of the contents of the metadata URL.
The hash of the contents.
Static
fromDeserializes the Anchor from a CBOR byte array.
The new Anchor instance.
The CBOR encoded Anchor object.
Static
fromCreates a Anchor object from the given Core Anchor object.
Generated using TypeDoc
An anchor is a pair of:
The on-chain rules will not check either the URL or the hash. Client applications should, however, perform the usual sanity checks when fetching content from the provided URL.