Interface: ObjectDigestLike
The digest of an Object.
Methods
isAlive()
isAlive(): boolean;
Returns whether the digest represents an object that is neither deleted nor wrapped.
Returns
boolean
isDeleted()
isDeleted(): boolean;
Returns whether the digest represents a deleted object.
Returns
boolean
isWrapped()
isWrapped(): boolean;
Returns whether the digest represents an object wrapped in another object.
Returns
boolean
nextLexicographical()
nextLexicographical(): ObjectDigestLike;
Returns the next digest in byte-increasing order.
Returns
ObjectDigestLike
nextLexicographicalOpt()
nextLexicographicalOpt(): ObjectDigestLike | undefined;
Returns the next digest in byte-increasing order, or None if the result would
overflow.
Returns
ObjectDigestLike | undefined
toBase58()
toBase58(): string;
Returns
string
toBcs()
toBcs(): ArrayBuffer;
Convert this type to BCS encoded bytes.
Returns
ArrayBuffer
toBytes()
toBytes(): ArrayBuffer;
Returns
ArrayBuffer
toDisplayString()
toDisplayString(): string;
Render this type as human-readable text.
Some types also print this through the binding's native string conversion; this method is the spelling every object type has.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
Returns
string
toJson()
toJson(): string;
Convert this type to a JSON encoded string.
Returns
string