View Source Aptos.Tx (Aptos v0.2.4)
Link to this section Summary
Functions
Submit a transaction to the blockchain.
Link to this section Functions
@spec submit( {Aptos.Tx.Payload.t(), BCS.DataType.Choice.t()}, Aptos.Tx.Sender.t(), keyword() ) :: Aptos.Client.Result.t() | {:error, :testflight_failed, String.t()}
Submit a transaction to the blockchain.
You need to provide a {payload, payload_layout}
tuple to make use of this function.
An example to generate the {payload, payload_layout}
tuple can be found in Aptos.Contract.Coin.transfer/3
.
Available options are:
{:ttl, pos_integer()}
{:gas_price, pos_integer()}
{:max_gas, pos_integer()}
{:skip_testflight, boolean}