Documentation ¶
Index ¶
- type EthereumApplication
- func (e *EthereumApplication) GetAddressBalance(ctx context.Context, addressee string) (string, error)
- func (e *EthereumApplication) GetLatestBlock(ctx context.Context) (*internal.Block, error)
- func (e *EthereumApplication) GetTransactionByHash(ctx context.Context, hash common.Hash) (*internal.Transaction, error)
- func (e *EthereumApplication) TransferEthereum(ctx context.Context, privateKey, addressee string, amount int64) (string, error)
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 (*EthereumApplication) GetLatestBlock ¶
func (*EthereumApplication) GetTransactionByHash ¶
func (e *EthereumApplication) GetTransactionByHash(ctx context.Context, hash common.Hash) (*internal.Transaction, error)
func (*EthereumApplication) TransferEthereum ¶
Click to show internal directories.
Click to hide internal directories.