pub struct UnsignedTx { /* private fields */ }Expand description
Unsigned transaction wrapper.
Implementations§
Source§impl UnsignedTx
impl UnsignedTx
Sourcepub const fn message(&self) -> &VersionedMessage
pub const fn message(&self) -> &VersionedMessage
Returns the message payload.
Sourcepub fn sign<T>(self, signers: &T) -> Result<VersionedTransaction, BuilderError>
pub fn sign<T>(self, signers: &T) -> Result<VersionedTransaction, BuilderError>
Signs the message with provided signers.
§Errors
Returns BuilderError::SignTransaction when signer validation or signing fails.
Trait Implementations§
Source§impl Clone for UnsignedTx
impl Clone for UnsignedTx
Source§fn clone(&self) -> UnsignedTx
fn clone(&self) -> UnsignedTx
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 moreAuto Trait Implementations§
impl Freeze for UnsignedTx
impl RefUnwindSafe for UnsignedTx
impl Send for UnsignedTx
impl Sync for UnsignedTx
impl Unpin for UnsignedTx
impl UnsafeUnpin for UnsignedTx
impl UnwindSafe for UnsignedTx
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