egateway

package
v0.0.0-...-c200d6a Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 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 EthereumGateway

type EthereumGateway struct {
	// contains filtered or unexported fields
}

EthereumGateway provides methods to interact with Ethereum.

func (*EthereumGateway) GetByTransactionHash

func (eg *EthereumGateway) GetByTransactionHash(txHashString string) (*model.Transaction, error)

GetByTransactionHash retrieves a transaction by its hash and returns a model.Transaction.

type IEthereumGateway

type IEthereumGateway interface {
	GetByTransactionHash(txHashString string) (*model.Transaction, error)
}

IEthereumGateway defines the interface for interacting with Ethereum transactions.

func NewEthereumGateway

func NewEthereumGateway(ethNodeURL string) IEthereumGateway

NewEthereumGateway creates a new instance of EthereumGateway with the specified Ethereum node URL.

Jump to

Keyboard shortcuts

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