types

package
v0.0.0-...-041d6b2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RPCTypeEthereum = uint8(iota)

	RPCTypeFilecoin
	RPCTypeSolana
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Code    int64  `json:"code"`
	Message string `json:"message"`
}

type RPCRequestBody

type RPCRequestBody struct {
	Jsonrpc string        `json:"jsonrpc"`
	Method  string        `json:"method"`
	Params  []interface{} `json:"params"`
	ID      int           `json:"id"`
}

func NewRPCRequestBody

func NewRPCRequestBody(method string) *RPCRequestBody

type RPCResponseBody

type RPCResponseBody struct {
	Jsonrpc string `json:"jsonrpc"`
	Result  []byte `json:"result"`
	Error   Error  `json:"error"`
	ID      int64  `json:"id"`
}

Jump to

Keyboard shortcuts

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