Bcash is an API wrapper for the bcash Bitcoin Cash implementation.
If available in Hex, the package can be installed
by adding bcash to your list of dependencies in mix.exs:
def deps do
[
{:bcash, "~> 0.1.0"}
]
endInstall and start a bcash server here https://github.com/bcoin-org/bcash
Setup your configuration like this
config :bcash, [
host: "localost",
api_key: 12345678,
port: 18334,
fee: 1000
]
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/bcash.
You can call into Bcash like this
Bcash.create_wallet(wallet_id, passphrase)
List of all functions are here https://hexdocs.pm/bcash/Bcash.html#summary