The ether
package provides functions for interacting with the Ethereum network.
The details of the RPC interface along with curl
examples of interacting with it are documented in the JSON RPC page on the Ethereum Wiki.
Install from GitHub using
Alternatively there is a stable version listed on CRAN.
Load the package.
You’ll need to connect to an Ethereum node exposing a RPC interface. By default the package will attempt to connect to a node on localhost
using port 8545. However, you can also make use of the public RPC nodes hosted by infura.io. Assuming that you have created an infura.io API key and stored it in the INFURA_MAINNET_KEY
environment variable.
Once you’ve configured the connection to RPC you are ready to interact with the Ethereum blockchain.