View Source DiodeClient.Transaction (Diode Client v1.0.0)

Link to this section Summary

Link to this section Types

Specs

t() :: %DiodeClient.Transaction{
  chain_id: term(),
  data: term(),
  gasLimit: term(),
  gasPrice: term(),
  init: term(),
  nonce: term(),
  signature: term(),
  to: term(),
  value: term()
}

Link to this section Functions

Link to this function

contract_creation?(transaction)

View Source

Specs

contract_creation?(t()) :: boolean()

Specs

from(t()) :: <<_::160>>

Specs

from_rlp(binary()) :: t()

Specs

hash(t()) :: binary()
Link to this function

new_contract_address(tx)

View Source

Specs

new_contract_address(t()) :: binary()

Specs

origin(t()) :: DiodeClient.Wallet.t()

Specs

print(t()) :: :ok

Specs

recover(t()) :: binary()

Specs

sign(t(), <<_::256>>) :: t()

Specs

to_message(t()) :: binary()

Specs

to_rlp(t()) :: [...]

Specs

type(t()) :: :call | :create

Specs

valid?(t()) :: boolean()

Specs

validate(t()) :: true | {non_neg_integer(), any()}