ethproxy

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: BSD-3-Clause Imports: 0 Imported by: 0

README

Ethereum Backend Proxy

To run the example client, proxy, and backend:

  • make binary
  • ./dist/backend
  • PROXY_BACKEND_ENDPOINT=ws://localhost:7000 ./dist/proxy
  • ./dist/client

Env Flags Needed for the proxy

  • PROXY_API_PORT Endpoint for executing proxy methods
  • PROXY_BACKEND_ENDPOINT Backend endpoint to proxy requests to
  • PROXY_WS_PORT Websocket port to connect to

Proxy Methods

Methods can be found in /pkg/api/api.go

To interact with the proxy and execute internal commands to, for example, record or alter the block number of the chain, a json RPC call may be sent to the proxy API as such:

POST /
{"method": "blockNumberRecord"}
POST /
{"method": "blockNumberFreeze"}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommitTime string
View Source
var (
	Version = func() string {
		if commit != "" {
			return version + "-" + commit
		}
		return version + "-dev"
	}()
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
pkg
api
rpc

Jump to

Keyboard shortcuts

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