proxy

package
v0.0.0-...-4e50971 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Run a JSON RPC endpoint. Forward sendTransaction calls to the TxProc gRPC connection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(
	parentCtx context.Context,
	config *Configuration,
) error

Types

type Configuration

type Configuration struct {
	ProxyUrl  string `json:"proxy"`
	ListenUrl string `json:"listen"`
	// contains filtered or unexported fields
}

func (*Configuration) Check

func (c *Configuration) Check() error

type RpcRequest

type RpcRequest struct {
	JsonRpcVersion string   `json:"jsonrpc"`
	Id             int      `json:"id"`
	Method         string   `json:"method"`
	Parameters     []string `json:"params"`
}

type RpcResponse

type RpcResponse struct {
	JsonRpcVersion string `json:"jsonrpc"`
	Id             int    `json:"id"`
	Result         string `json:"result"`
}

Jump to

Keyboard shortcuts

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