Metadata class

Metadata represents a struct that describes a basic token.

Inheritance

Constructors

Metadata({required String? description, required List<DenomUnit> denomUnits, required String base, required String? display, required String? name, required String? symbol, String? uri, String? uriHash})
const
Metadata.deserialize(List<int> bytes)
factory

Properties

base String
base represents the base denom (should be the DenomUnit with exponent = 0).
final
denomUnits List<DenomUnit>
denom_units represents the list of DenomUnit's for a given coin
final
description String?
final
display String?
display indicates the suggested denom that should be displayed in clients.
final
fieldIds List<int>
List of field IDs corresponding to the values.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
name String?
name defines the name of the token (eg: Cosmos Atom)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbol String?
symbol is the token symbol usually shown on exchanges (eg: ATOM). This can be the same as the display.
final
toHex String
Gets the hexadecimal representation of the protocol buffer data.
no setterinherited
typeUrl String
no setteroverride
uri String?
URI to a document (on or off-chain) that contains additional information. Optional.
final
uriHash String?
URIHash is a sha256 hash of a document pointed by URI. It's used to verify that the document didn't change. Optional.
final
values List
List of dynamic values to be encoded.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toAny() Any
inherited
toBuffer() List<int>
Converts the protocol buffer data to a byte buffer.
inherited
toJson() Map<String, dynamic>
Converts the data to a JSON representation.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited