pub struct ConstructionMetadataRequest {
pub network_identifier: NetworkIdentifier,
pub options: Option<Value>,
pub public_keys: Vec<PublicKey>,
}Expand description
ConstructionMetadataRequest : 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.
Fields§
§network_identifier: NetworkIdentifier§options: Option<Value>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.
public_keys: Vec<PublicKey>Implementations§
Source§impl ConstructionMetadataRequest
impl ConstructionMetadataRequest
Sourcepub fn new(network_identifier: NetworkIdentifier) -> ConstructionMetadataRequest
pub fn new(network_identifier: NetworkIdentifier) -> ConstructionMetadataRequest
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.
Trait Implementations§
Source§impl Clone for ConstructionMetadataRequest
impl Clone for ConstructionMetadataRequest
Source§fn clone(&self) -> ConstructionMetadataRequest
fn clone(&self) -> ConstructionMetadataRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more