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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConstructionMetadataRequest
impl Debug for ConstructionMetadataRequest
Source§impl Default for ConstructionMetadataRequest
impl Default for ConstructionMetadataRequest
Source§fn default() -> ConstructionMetadataRequest
fn default() -> ConstructionMetadataRequest
Source§impl<'de> Deserialize<'de> for ConstructionMetadataRequest
impl<'de> Deserialize<'de> for ConstructionMetadataRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ConstructionMetadataRequest
impl PartialEq for ConstructionMetadataRequest
Source§fn eq(&self, other: &ConstructionMetadataRequest) -> bool
fn eq(&self, other: &ConstructionMetadataRequest) -> bool
self and other values to be equal, and is used by ==.