ConstructionMetadataRequest class
A ConstructionMetadataRequest is 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.
Constructors
-
ConstructionMetadataRequest(NetworkIdentifier network_identifier, Map<
String, dynamic> ? options, List<PublicKey> ? public_keys) -
ConstructionMetadataRequest.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- network_identifier ↔ NetworkIdentifier
-
getter/setter pair
-
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 popuan options object to limit the metadata returned to only the subset required.
getter/setter pair
-
public_keys
↔ List<
PublicKey> ? -
getter/setter pair
- 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