jsonrpc

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Miner            string
	ExtraData        string
	Difficulty       string
	GasLimit         string
	GasUsed          string
	Hash             string
	LogsBloom        string
	MixHash          string
	Nonce            string
	Number           string
	ParentHash       string
	ReceiptsRoot     string
	Sha3Uncles       string
	Size             string
	StateRoot        string
	Timestamp        string
	TotalDifficulty  string
	Transactions     []string
	TransactionsRoot string
	Uncles           []string
}

func (*Block) Delete

func (block *Block) Delete() (err error)

Delete

func (*Block) Insert

func (block *Block) Insert(crudServer server.CrudServer) (err error)

Create

func (*Block) QueryByNumber

func (block *Block) QueryByNumber(crudServer server.CrudServer) (err error)

Query

func (*Block) Update

func (block *Block) Update() (err error)

Update

type BlockWithDetails

type BlockWithDetails struct {
	Miner            string
	ExtraData        string
	Difficulty       string
	GasLimit         string
	GasUsed          string
	Hash             string
	LogsBloom        string
	MixHash          string
	Nonce            string
	Number           string
	ParentHash       string
	ReceiptsRoot     string
	Sha3Uncles       string
	Size             string
	StateRoot        string
	Timestamp        string
	TotalDifficulty  string
	Transactions     []Transaction
	TransactionsRoot string
	Uncles           []string
}

type Eth

type Eth struct {
	Difficulty int64  `json:"difficulty"`
	Head       string `json:"head"`
	Version    int    `json:"version"`
	Genesis    string `json:"genesis"`
	Network    int    `json:"network"`
}

type Network

type Network struct {
	LocalAddress  string
	RemoteAddress string
}

type NodeInfo

type NodeInfo struct {
	Enode      string
	Id         string
	Ip         string
	ListenAddr string
	Name       string
	Ports      Ports
	Protocols  Protocols
}

type Peer

type Peer struct {
	Caps      []string
	Id        string
	Name      string
	Network   Network
	Protocols Protocols
}

type Ports

type Ports struct {
	Discovery int
	Listener  int
}

type Protocols

type Protocols struct {
	Eth Eth
}

type Recepit

type Recepit struct {
	TransactionHash   string
	TransactionIndex  string
	BlockNumber       string
	BlockHash         string
	CumulativeGasUsed string
	GasUsed           string
	ContractAddress   string
	Logs              []interface{}
	LogsBloom         string
	Status            string
}

type Transaction

type Transaction struct {
	BlockHash        string
	BlockNumber      string
	Hash             string
	TransactionIndex string
	From             string
	To               string
	Gas              string
	GasPrice         string
	Input            string
	Nonce            string
	Value            string
	V                string
	R                string
	S                string
	Timestamp        string
}

Jump to

Keyboard shortcuts

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