pub struct SubmitParams {
pub tx: BytesEnvelope,
pub witnesses: Vec<TxWitness>,
}Expand description
Parameters for submitting a signed transaction to the network.
This structure wraps a signed transaction along with its cryptographic witnesses (signatures) for submission to the blockchain network via TRP.
§Fields
tx- The signed transaction as a bytes envelopewitnesses- Vector of transaction witnesses (signatures)
§Example
ⓘ
use tx3_sdk::trp::{SubmitParams, TxWitness, WitnessType};
use tx3_sdk::core::BytesEnvelope;
let submit_params = SubmitParams {
tx: BytesEnvelope {
content: "84a40081825820...".to_string(),
content_type: "application/cbor".to_string(),
},
witnesses: vec![TxWitness {
key: BytesEnvelope { /* ... */ },
signature: BytesEnvelope { /* ... */ },
witness_type: WitnessType::VKey,
}],
};Fields§
§tx: BytesEnvelopeThe signed transaction bytes.
witnesses: Vec<TxWitness>Cryptographic witnesses (signatures) for the transaction.
Trait Implementations§
Source§impl Clone for SubmitParams
impl Clone for SubmitParams
Source§fn clone(&self) -> SubmitParams
fn clone(&self) -> SubmitParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubmitParams
impl Debug for SubmitParams
Source§impl<'de> Deserialize<'de> for SubmitParams
impl<'de> Deserialize<'de> for SubmitParams
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SubmitParams
impl RefUnwindSafe for SubmitParams
impl Send for SubmitParams
impl Sync for SubmitParams
impl Unpin for SubmitParams
impl UnsafeUnpin for SubmitParams
impl UnwindSafe for SubmitParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more