Stellar.TxBuild.Spec behaviour (Elixir Stellar SDK v0.5.0) View Source

Defines contracts to build a Stellar transaction.

Link to this section Summary

Link to this section Types

Specs

account() :: Stellar.TxBuild.Account.t()

Specs

base_fee() :: Stellar.TxBuild.BaseFee.t()

Specs

Specs

Specs

operations() :: [operation()]

Specs

opts() :: Keyword.t()

Specs

sequence_number() :: Stellar.TxBuild.SequenceNumber.t()

Specs

Specs

time_bounds() :: Stellar.TxBuild.TimeBounds.t()

Specs

tx() :: struct()

Specs

tx_envelope() :: String.t()

Link to this section Callbacks

Link to this callback

add_memo(tx, memo)

View Source (optional)

Specs

add_memo(tx(), memo()) :: tx()
Link to this callback

add_operation(tx, operation)

View Source

Specs

add_operation(tx(), operation()) :: tx()
Link to this callback

add_operations(tx, operations)

View Source

Specs

add_operations(tx(), operations()) :: tx()

Specs

build(tx()) :: tx()

Specs

envelope(tx()) :: tx_envelope()

Specs

new(account(), opts()) :: tx()
Link to this callback

set_base_fee(tx, base_fee)

View Source (optional)

Specs

set_base_fee(tx(), base_fee()) :: tx()
Link to this callback

set_sequence_number(tx, sequence_number)

View Source (optional)

Specs

set_sequence_number(tx(), sequence_number()) :: tx()
Link to this callback

set_time_bounds(tx, time_bounds)

View Source (optional)

Specs

set_time_bounds(tx(), time_bounds()) :: tx()

Specs

sign(tx(), signatures()) :: tx()
Link to this callback

sign_envelope(tx_envelope, signatures)

View Source

Specs

sign_envelope(tx_envelope(), signatures()) :: tx_envelope()