model

package
v0.0.0-...-c096a92 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 0 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 {
	Hash            string  `json:"hash"`
	Number          string  `json:"number"`
	Time            string  `json:"time"`
	ParentHash      string  `json:"parentHash"`
	Difficulty      string  `json:"difficulty"`
	GasUsed         string  `json:"gasUsed"`
	GasLimit        string  `json:"gasLimit"`
	Nonce           string  `json:"nonce"`
	Miner           string  `json:"miner"`
	Size            float64 `json:"size"`
	StateRootHash   string  `json:"stateRootHash"`
	UncleHash       string  `json:"uncleHash"`
	TxRootHash      string  `json:"txRootHash"`
	ReceiptRootHash string  `json:"receiptRootHash"`
	ExtraData       string  `json:"extraData"`
}

type Event

type Event struct {
	Origin    string   `json:"origin"`
	Index     string   `json:"index"`
	Topics    []string `json:"topics"`
	Data      string   `json:"data"`
	TxHash    string   `json:"txHash"`
	BlockHash string   `json:"blockHash"`
}

type Transaction

type Transaction struct {
	Hash      string `json:"hash"`
	From      string `json:"from"`
	To        string `json:"to"`
	Contract  string `json:"contract"`
	Value     string `json:"value"`
	Data      string `json:"data"`
	Gas       string `json:"gas"`
	GasPrice  string `json:"gasPrice"`
	Cost      string `json:"cost"`
	Nonce     string `json:"nonce"`
	State     string `json:"state"`
	BlockHash string `json:"blockHash"`
}

Jump to

Keyboard shortcuts

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