[−][src]Struct stdtx::builder::Builder
StdTx
transaction builder, which handles construction, signing, and
Amino serialization.
Implementations
impl Builder
[src]
pub fn new(
schema: Schema,
chain_id: impl Into<String>,
account_number: u64
) -> Self
[src]
schema: Schema,
chain_id: impl Into<String>,
account_number: u64
) -> Self
Create a new transaction builder
pub fn schema(&self) -> &Schema
[src]
Borrow this transaction builder's Schema
pub fn chain_id(&self) -> &str
[src]
Borrow this transaction builder's chain ID
pub fn account_number(&self) -> u64
[src]
Get this transaction builder's account number
pub fn sign_tx(
&self,
signer: &Signer,
sequence: u64,
fee: StdFee,
memo: &str,
messages: &[Msg]
) -> Result<StdTx, Error>
[src]
&self,
signer: &Signer,
sequence: u64,
fee: StdFee,
memo: &str,
messages: &[Msg]
) -> Result<StdTx, Error>
Build and sign a transaction containing the given messages
pub fn sign_amino_tx(
&self,
signer: &Signer,
sequence: u64,
fee: StdFee,
memo: &str,
messages: &[Msg]
) -> Result<Vec<u8>, Error>
[src]
&self,
signer: &Signer,
sequence: u64,
fee: StdFee,
memo: &str,
messages: &[Msg]
) -> Result<Vec<u8>, Error>
Build, sign, and encode a transaction in Amino format
pub fn create_sign_json(
&self,
sequence: u64,
fee: &StdFee,
memo: &str,
messages: &[Msg]
) -> Value
[src]
&self,
sequence: u64,
fee: &StdFee,
memo: &str,
messages: &[Msg]
) -> Value
Create the JSON message to sign for this transaction
pub fn create_sign_msg(
&self,
sequence: u64,
fee: &StdFee,
memo: &str,
messages: &[Msg]
) -> String
[src]
&self,
sequence: u64,
fee: &StdFee,
memo: &str,
messages: &[Msg]
) -> String
Create the serialized JSON string to sign for this transaction
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,