View Source Ethers.Transaction (Ethers v0.4.5)

Transaction struct and helper functions

Summary

Types

@type t() :: %Ethers.Transaction{
  access_list: [{binary(), [binary()]}],
  block_hash: binary() | nil,
  block_number: binary() | nil,
  chain_id: binary() | nil,
  data: binary(),
  from: Ethers.Types.t_address() | nil,
  gas: binary() | nil,
  gas_price: binary() | nil,
  hash: binary() | nil,
  max_fee_per_gas: binary() | nil,
  max_priority_fee_per_gas: binary(),
  nonce: binary() | nil,
  signature_r: binary() | nil,
  signature_s: binary() | nil,
  signature_y_parity_or_v: binary() | non_neg_integer() | nil,
  to: Ethers.Types.t_address() | nil,
  transaction_index: binary() | nil,
  type: t_transaction_type(),
  value: binary()
}
@type t_transaction_type() :: :legacy | :eip1559 | :eip2930 | :eip4844

Functions

Link to this function

calculate_y_parity_or_v(tx, recovery_id)

View Source
@spec decode_values(t()) :: map()

Decodes a transaction struct values in a new map.

Link to this function

fill_with_defaults(tx, opts)

View Source
Link to this function

new(params, type \\ :eip1559)

View Source