Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.52 KB

README.md

File metadata and controls

43 lines (33 loc) · 1.52 KB

ExWeb3

Elixir CI License Coverage Status

This library is Work in Progress. Please don't use yet

Elixir library to connect and interact with Ethereum blockchain contracts.

Installation

If available in Hex, the package can be installed by adding ex_web3 to your list of dependencies in mix.exs:

def deps do
  [
    {:ex_web3, "~> 0.1.0"}
  ]
end

Add configs:

config :ex_web3,
  url: System.get_env("web3", "http://localhost:8545"),
  contract_address:
    System.get_env("CONTRACT_ADDRESS", "0x8efBF5F7EB5b114207353f4caDc1dE7D88741724"),
  contract_owner: System.get_env("CONTRACT_OWNER", "0xa1854bDAd86f65BE7B676411E166299F779617CF"),
  contract_owner_key:
    System.get_env(
      "CONTRACT_OWNER_KEY",
      "0x34ad65c123bc49bbd8c26d6fb808b6818ccab5a0e8b47c7fcbb5c035f467dbb7"
    )

In this case, config attempt to get values from .env first.

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ex_web3.