View Source Web3.ABI.Signer (web3ex v0.1.0)

Signer is a helper class for signing transactions.

Signer inspired by Abx

Link to this section Summary

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>>

Link to this section Functions

Link to this function

sign_transaction(txn_obj, private_key, opts \\ [])

View Source
@spec sign_transaction(txn_obj(), binary(), Keyword.t()) :: signed_raw_txn()

Sign Transaction.