View Source BitcoinCoreClient.Rpc.Body (BitcoinCoreClient v0.1.2)

HTTP Helper, converting RPC commands into json that has to be sent over HTTP

Link to this section Summary

Functions

Converts RPC commands into HTTP POST bodies

Link to this section Functions

@spec create(binary(), list()) :: binary()

Converts RPC commands into HTTP POST bodies

examples

Examples

iex> BitcoinCoreClient.Rpc.Body.create("getblockhash", [0])
~S({"id":"curltest","jsonrpc":"1.0","method":"getblockhash","params":[0]})