[][src]Struct stdtx::builder::Builder

pub struct Builder { /* fields omitted */ }

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]

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]

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]

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.