parser

package
v0.0.0-...-3401b49 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser interface {
	GetCurrentBlock(id int) (int, error)
	Subscribe(address string) bool
	GetTransactions(address string, blockRange int, id int) ([]Transaction, error)
}

Parser is an interface defining the Ethereum blockchain parser methods.

func NewEthereumParser

func NewEthereumParser(URL string, storage storage.Storage) Parser

NewEthereumParser initializes a new Ethereum Parser instance.

type Transaction

type Transaction struct {
	Hash        string `json:"hash"`
	From        string `json:"from"`
	To          string `json:"to"`
	BlockNumber string `json:"blockNumber"`
}

Transaction represents a transaction in the Ethereum blockchain.

Jump to

Keyboard shortcuts

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