services

package
v0.0.0-...-1cc9596 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateWalletWithKeystore

func CreateWalletWithKeystore(password string)

func GenerateWallet

func GenerateWallet()

Types

type AddressClient

type AddressClient struct {
	Client *ethclient.Client
}

func (AddressClient) GetAddressBalance

func (adClient AddressClient) GetAddressBalance(address common.Address) (*big.Int, error)

func (AddressClient) GetAddressNonce

func (adClient AddressClient) GetAddressNonce(address common.Address) (*uint64, error)

type AddressServicesIn

type AddressServicesIn interface {
	GetAddressBalance(address common.Address) (*big.Int, error)
	GetAddressNonce(address common.Address) (*uint64, error)
}

type BlockClient

type BlockClient struct {
	Client *ethclient.Client
}

func (BlockClient) GetBlockByNumber

func (bckClient BlockClient) GetBlockByNumber(number *big.Int) (*types.Block, error)

type BlockServicesIn

type BlockServicesIn interface {
	GetBlockByNumber(number *big.Int) (*types.Block, error)
}

type TransactionClient

type TransactionClient struct {
	Client *ethclient.Client
}

func (TransactionClient) GetTransactionByHash

func (trClient TransactionClient) GetTransactionByHash(txHash common.Hash) (*types.Transaction, bool, error)

type TransactionServicesIn

type TransactionServicesIn interface {
	GetTransactionByHash(txHash common.Hash) (*types.Transaction, bool, error)
}

Jump to

Keyboard shortcuts

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