ethRPCDataTypes

package
v0.0.0-...-5495d05 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const RPCDefaultErrorId = "error"

Variables

This section is empty.

Functions

This section is empty.

Types

type EthRPCCommon

type EthRPCCommon struct {
	ID      any    `json:"id"`
	JSONRPC string `json:"jsonrpc"`
}

type EthRPCError

type EthRPCError struct {
	EthRPCCommon
	Error *RPCProviderError `json:"error"`
}

func NewRPCError

func NewRPCError(id any, err *RPCProviderError) *EthRPCError

type EthRPCRequest

type EthRPCRequest struct {
	EthRPCCommon
	Method string `json:"method"`
	Params any    `json:"params"`
}

type EthRPCResult

type EthRPCResult struct {
	EthRPCCommon
	Result any `json:"result"`
}

Jump to

Keyboard shortcuts

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