get_post_response: Submit POST to Ethereum RPC.

Description Usage Arguments Details Value

View source: R/www.R

Description

We could pass a list as the body argument to POST() and specify encode = "json", but building the JSON package manually gives us greater control and the ability to compare to results from curl on the command line.

Usage

1
get_post_response(method, params = list())

Arguments

method

RPC method.

params

List of parameters.

Details

When using curl on command line, you might need to give -H "Content-Type: application/json".

Value

HTTP response.


DataWookie/ether documentation built on Sept. 22, 2018, 9:36 p.m.