View Source BitcoinCoreClient.Rpc (BitcoinCoreClient v0.1.0)

Wraps Bitcon Core RPC functions calls in easy to use functions abstracting the HTTP communication details

Link to this section Summary

Link to this section Functions

Link to this function

call(settings, method, parameters)

View Source
@spec call(
  %BitcoinCoreClient.Rpc.Settings{
    http_module: term(),
    ip: term(),
    password: term(),
    port: term(),
    username: term()
  },
  binary(),
  list()
) :: binary() | number()

Takes

  • connection settings
  • a function name
  • the function's arguments in a list format

And makes a Bitcoin Core RPC call, returning the result

API documentation: https://developer.bitcoin.org/reference/rpc/