application

package
v0.0.0-...-938c068 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthereumApplication

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

func NewEthereumBlockchain

func NewEthereumBlockchain(host string) (*EthereumApplication, error)

func (*EthereumApplication) GetAddressBalance

func (e *EthereumApplication) GetAddressBalance(ctx context.Context, addressee string) (string, error)

func (*EthereumApplication) GetLatestBlock

func (e *EthereumApplication) GetLatestBlock(ctx context.Context) (*internal.Block, error)

func (*EthereumApplication) GetTransactionByHash

func (e *EthereumApplication) GetTransactionByHash(ctx context.Context, hash common.Hash) (*internal.Transaction, error)

func (*EthereumApplication) TransferEthereum

func (e *EthereumApplication) TransferEthereum(ctx context.Context, privateKey, addressee string, amount int64) (string, error)

Jump to

Keyboard shortcuts

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