eth-statediff-fill-service

command module
v0.0.0-...-24f9576 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

README

eth-statediff-fill-service

Service to fill statediff gaps for watched addresses

Setup

Build the binary:

make build
Local Setup
  • Create config.toml in environments from example.toml.

  • Set the necessary params in config.toml file

    • The database fields are for connecting to a Postgres database.
    • The server fields set the paths for exposing the eth-statediff-fill-service endpoints.
    • The ethereum can be used to configure the remote eth node for making write_stateDiff calls.

Usage

serve

To run the service:

eth-statediff-fill-service serve --config=<config path>

Example:

./eth-statediff-fill-service serve --config environments/config.toml

Available RPC method: vdb_watchAddress()

e.g. curl -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"vdb_watchAddress","params":["add",[{"Address":"0x825a6eec09e44Cb0fa19b84353ad0f7858d7F61a","CreatedAt":22}]],"id":1}' "$HOST":"$PORT"

Tests

To run tests follow readme.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
rpc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL