response

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: CC0-1.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessListEntry

type AccessListEntry struct {
	Address     primitives.Data20   `json:"address"`
	StorageKeys []primitives.Data32 `json:"storageKeys"`
}

https://openethereum.github.io/JSONRPC

type Block

type Block struct {
	Number           primitives.HexUint  `json:"number"`
	Hash             primitives.Data32   `json:"hash"`
	ParentHash       primitives.Data32   `json:"parentHash"`
	Nonce            primitives.Data8    `json:"nonce"`
	Sha3Uncles       primitives.Data32   `json:"sha3Uncles"`
	LogsBloom        primitives.Data256  `json:"logsBloom"`
	TransactionsRoot primitives.Data32   `json:"transactionsRoot"`
	StateRoot        primitives.Data32   `json:"stateRoot"`
	ReceiptsRoot     primitives.Data32   `json:"receiptsRoot"`
	Miner            primitives.Data20   `json:"miner"`
	MixHash          primitives.Data32   `json:"mixHash"`
	Difficulty       primitives.HexUint  `json:"difficulty"`
	TotalDifficulty  primitives.HexUint  `json:"totalDifficulty"`
	ExtraData        primitives.VarData  `json:"extraData"`
	Size             primitives.HexUint  `json:"size"`
	GasLimit         primitives.Quantity `json:"gasLimit"`
	GasUsed          primitives.Quantity `json:"gasUsed"`
	Timestamp        primitives.HexUint  `json:"timestamp"`
	Transactions     []any               `json:"transactions"`
	Uncles           []primitives.Data32 `json:"uncles"`
}

https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getblockbyhash https://docs.infura.io/infura/networks/ethereum/json-rpc-methods/eth_getblockbyhash

type CallFrame

type CallFrame struct {
	Type    string      `json:"type"`
	From    string      `json:"from"`
	To      string      `json:"to,omitempty"`
	Value   string      `json:"value,omitempty"`
	Gas     string      `json:"gas"`
	GasUsed string      `json:"gasUsed"`
	Input   string      `json:"input"`
	Output  string      `json:"output,omitempty"`
	Error   string      `json:"error,omitempty"`
	Calls   []CallFrame `json:"calls,omitempty"`
}

https://github.com/ethereum/go-ethereum/blob/ad15050c7fbedd0f05a49e81400de18c2cc2c284/eth/tracers/native/call.go

type Log

type Log struct {
	Removed          bool                `json:"removed"`
	LogIndex         primitives.HexUint  `json:"logIndex"`
	TransactionIndex primitives.HexUint  `json:"transactionIndex"`
	TransactionHash  primitives.Data32   `json:"transactionHash"`
	BlockHash        primitives.Data32   `json:"blockHash"`
	BlockNumber      primitives.HexUint  `json:"blockNumber"`
	Address          primitives.Data20   `json:"address"`
	Data             primitives.VarData  `json:"data"`
	Topics           []primitives.Data32 `json:"topics"`
}

https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getfilterchanges https://docs.infura.io/infura/networks/ethereum/json-rpc-methods/eth_getlogs

type Transaction

type Transaction struct {
	AccessList           *[]*AccessListEntry  `json:"accessList,omitempty"`
	BlockHash            primitives.Data32    `json:"blockHash"`
	BlockNumber          primitives.HexUint   `json:"blockNumber"`
	ChainID              *primitives.HexUint  `json:"chainID,omitempty"`
	From                 primitives.Data20    `json:"from"`
	Gas                  primitives.HexUint   `json:"gas"`
	GasPrice             primitives.Quantity  `json:"gasPrice"`
	Hash                 primitives.Data32    `json:"hash"`
	Input                primitives.VarData   `json:"input"`
	MaxPriorityFeePerGas *primitives.Quantity `json:"maxPriorityFeePerGas,omitempty"`
	MaxFeePerGas         *primitives.Quantity `json:"maxFeePerGas,omitempty"`
	Nonce                primitives.Quantity  `json:"nonce"`
	V                    primitives.HexUint   `json:"v"`
	R                    primitives.Quantity  `json:"r"`
	S                    primitives.Quantity  `json:"s"`
	To                   *primitives.Data20   `json:"to"`
	Type                 primitives.HexUint   `json:"type"`
	TransactionIndex     primitives.HexUint   `json:"transactionIndex"`
	Value                primitives.Quantity  `json:"value"`
}

https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_gettransactionbyhash https://docs.infura.io/infura/networks/ethereum/json-rpc-methods/eth_gettransactionbyhash

type TransactionReceipt

type TransactionReceipt struct {
	BlockHash           primitives.Data32   `json:"blockHash"`
	BlockNumber         primitives.HexUint  `json:"blockNumber"`
	ContractAddress     *primitives.Data20  `json:"contractAddress"`
	CumulativeGasUsed   primitives.Quantity `json:"cumulativeGasUsed"`
	From                primitives.Data20   `json:"from"`
	GasUsed             primitives.HexUint  `json:"gasUsed"`
	EffectiveGasPrice   primitives.Quantity `json:"effectiveGasPrice"`
	Logs                []*Log              `json:"logs"`
	LogsBloom           primitives.Data256  `json:"logsBloom"`
	NearReceiptHash     primitives.Data32   `json:"nearReceiptHash"`
	NearTransactionHash primitives.Data32   `json:"nearTransactionHash"`
	Status              primitives.HexUint  `json:"status"`
	To                  *primitives.Data20  `json:"to"`
	Type                primitives.HexUint  `json:"type"`
	TransactionHash     primitives.Data32   `json:"transactionHash"`
	TransactionIndex    primitives.HexUint  `json:"transactionIndex"`
}

https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_gettransactionreceipt https://docs.infura.io/infura/networks/ethereum/json-rpc-methods/eth_gettransactionreceipt

Jump to

Keyboard shortcuts

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