ConstructionMetadataRequest class

Utilized to get information required to construct a transaction. The options object used to specify which metadata to return is left purposely unstructured to allow flexibility for implementers. options is not required in the case that there is network-wide metadata of interest. Optionally, the request can also include an array of PublicKeys associated with the AccountIdentifiers returned in ConstructionPreprocessResponse.

Annotations

Constructors

ConstructionMetadataRequest(NetworkIdentifier networkIdentifier, Map<String, dynamic>? options, List<PublicKey>? publicKeys)
const
ConstructionMetadataRequest.fromJson(Map<String, dynamic> map)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
networkIdentifier NetworkIdentifier
final
options Map<String, dynamic>?
Some blockchains require different metadata for different types of transaction construction (ex: delegation versus a transfer). Instead of requiring a blockchain node to return all possible types of metadata for construction (which may require multiple node fetches), the client can populate an options object to limit the metadata returned to only the subset required.
final
publicKeys List<PublicKey>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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