Forge v0.3.0 Forge.Wallet View Source

Wallet client

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %{private_key: String.t(), public_key: String.t(), address: String.t()}

Link to this section Functions

Link to this function chain_info() View Source
chain_info() :: map()
Link to this function info(address) View Source
info(String.t()) :: Forge.AccountState.t()

Create a new eth-like wallet

Link to this function transfer(map, to, total) View Source
transfer(t(), String.t(), non_neg_integer()) :: :ok | {:error, any()}