types

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 4 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:"blockHash"`
	Number            uint64   `json:"blockNumber"`
	Time              uint64   `json:"time"`
	Nonce             uint64   `json:"nonce"`
	TransactionsIds   []string `json:"transactionIds"`
	TransactionsCount int      `json:"transactionsCount"`
}

type Call

type Call struct {
	From    string `json:"from"`
	Gas     string `json:"gas"`
	GasUsed string `json:"gasUsed"`
	Input   string `json:"input"`
	Output  string `json:"output"`
	To      string `json:"to"`
	Type    string `json:"type"`
}

type PendingTransactionInPool

type PendingTransactionInPool struct {
	Hash     string   `json:"hash"`
	Value    string   `json:"value"`
	Gas      uint64   `json:"gas"`
	GasPrice uint64   `json:"gasPrice"`
	V        *big.Int `json:"v"`
	R        *big.Int `json:"r"`
	S        *big.Int `json:"s"`
	Nonce    uint64   `json:"nonce"`
	From     string   `json:"from"`
	To       string   `json:"to"`
	Input    string   `json:"input"`
}

func (*PendingTransactionInPool) AsJSON

func (pt *PendingTransactionInPool) AsJSON() []byte

type TraceCallLogs

type TraceCallLogs struct {
	Pc      int      `json:"pc"`
	Op      string   `json:"op"`
	Gas     int      `json:"gas"`
	GasCost int      `json:"gasCost"`
	Depth   int      `json:"depth"`
	Error   any      `json:"error"`
	Stack   []any    `json:"stack"`
	Memory  any      `json:"memory"`
	Storage struct{} `json:"storage"`
}

type TraceCallResponse

type TraceCallResponse struct {
	Gas         int             `json:"gas"`
	Failed      bool            `json:"failed"`
	ReturnValue string          `json:"returnValue"`
	StructLogs  []TraceCallLogs `json:"structLogs"`
}

func (*TraceCallResponse) AsJSON

func (t *TraceCallResponse) AsJSON() []byte

type TraceCallTransactionResponse

type TraceCallTransactionResponse struct {
	Calls   []Call `json:"calls"`
	From    string `json:"from"`
	Gas     string `json:"gas"`
	GasUsed string `json:"gasUsed"`
	Input   string `json:"input"`
	To      string `json:"to"`
	Type    string `json:"type"`
	Value   string `json:"value"`
	TxHash  string `json:"txHash"`
}

func (*TraceCallTransactionResponse) AsJSON

func (t *TraceCallTransactionResponse) AsJSON() []byte

type Transaction

type Transaction struct {
	BlockHash string    `json:"blockHash"`
	Hash      string    `json:"hash"`
	Value     string    `json:"value"`
	Gas       uint64    `json:"gas"`
	GasPrice  uint64    `json:"gasPrice"`
	V         *big.Int  `json:"v"`
	R         *big.Int  `json:"r"`
	S         *big.Int  `json:"s"`
	Nonce     uint64    `json:"nonce"`
	From      string    `json:"from"`
	To        string    `json:"to"`
	Input     string    `json:"input"`
	Timestamp time.Time `json:"timeStamp"`
}

Transaction represent Eth TX structure for JSON response

func (*Transaction) AsJSON

func (t *Transaction) AsJSON() []byte

type TransactionInPool

type TransactionInPool struct {
	Hash             string      `json:"hash"`
	Type             uint8       `json:"type"`
	Value            string      `json:"value"`
	Gas              uint64      `json:"gas"`
	GasPrice         uint64      `json:"gasPrice"`
	V                *big.Int    `json:"v"`
	R                *big.Int    `json:"r"`
	S                *big.Int    `json:"s"`
	Nonce            uint64      `json:"nonce"`
	From             string      `json:"from"`
	To               string      `json:"to"`
	TransactionIndex uint        `json:"transactionIndex"`
	BlockHash        common.Hash `json:"blockHash,omitempty"`
	BlockNumber      *big.Int    `json:"blockNumber,omitempty"`
	Timestamp        time.Time   `json:"timeStamp"`
	Input            string      `json:"input"`
}

Jump to

Keyboard shortcuts

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