View Source Web3.ABI.Signer (web3 v0.1.6)
Signer is a helper class for signing transactions.
Signer inspired by Abx
Link to this section Summary
Functions
Sign Transaction.
Link to this section Types
@type legacy_post_155_txn() :: %{ chain_id: pos_integer(), nonce: non_neg_integer(), gas_price: non_neg_integer(), gas_limit: non_neg_integer(), to: binary(), value: non_neg_integer(), data: binary() }
@type legacy_pre_155_txn() :: %{ nonce: non_neg_integer(), gas_price: non_neg_integer(), gas_limit: non_neg_integer(), to: binary(), value: non_neg_integer(), data: binary() }
@type post_1559_txn() :: %{ chain_id: pos_integer(), nonce: non_neg_integer(), priority_fee: non_neg_integer(), gas_price: non_neg_integer(), gas_limit: non_neg_integer(), to: binary(), value: non_neg_integer(), data: binary() }
@type signed_raw_txn() :: <<_::16, _::_*8>>
@type txn_obj() :: post_1559_txn() | legacy_post_155_txn() | legacy_pre_155_txn()
Link to this section Functions
@spec sign_transaction(txn_obj(), binary(), Keyword.t()) :: signed_raw_txn()
Sign Transaction.