Optional
_isOptional
attributesThe attributes of the badge or badge collection
Optional
categoryThe category of the badge or badge collection (e.g. "Education", "Attendance").
The description of the badge or badge collection. Supports markdown.
Optional
externalThe external URL of the badge or badge collection.
Optional
fetchedThe time the metadata was fetched.
Optional
fetchedThe block the metadata was fetched at.
The image of the badge or badge collection.
The name of the badge or badge collection.
Optional
offThe off-chain transferability info of the badge or badge collection
Optional
socialsThe socials of the badge or badge collection
Optional
tagsThe tags of the badge or badge collection
Optional
videoThe video of the badge or badge collection. If a standard video is used, this should be a link to the video. We will use image as the poster image. If a youtube video is used, we embed it as an iframe.
Converts the object to a different NumberType equivalent.
Compares this object's fields to another object's fields for equality. Equality is determined by comparing the JSON representations of the objects.
If normalizeNumberTypes
is true, then all number types will be compared as strings (i.e. "1n" === "1" === 1). Else, they will be compared as their native types (i.e. 1n !== 1 !== "1").
Optional
normalizeNumberTypes: booleanStatic
DefaultReturns a new Metadata object with default placeholder values. By default, it returns as .convert
method.
import { Numberify } from 'bitbadgesjs-sdk'
const metadata = Metadata.DefaultPlaceholderMetadata().convert(Numberify)
Static
ErrorReturns a new Metadata object with default placeholder values. By default, it returns as .convert
method.
import { Numberify } from 'bitbadgesjs-sdk'
const metadata = Metadata.ErrorMetadata().convert(Numberify)
Whether the metadata is currently being updated.