transactions

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionStatus

type ExecutionStatus struct {
	IsError        bool   `etherscan:"isError,num"`
	ErrDescription string `etherscan:"errDescription"`
}

ExecutionStatus describes the current state of a transaction.

type TransactionsClient

type TransactionsClient struct {
	API *httpapi.APIClient
}

TransactionsClient is the client for transaction actions.

func (*TransactionsClient) GetExecutionStatus

func (c *TransactionsClient) GetExecutionStatus(
	ctx context.Context, txHash common.Hash,
) (*ExecutionStatus, error)

GetExecutionStatus returns he status code of a contract execution.

func (*TransactionsClient) GetTxReceiptStatus

func (c *TransactionsClient) GetTxReceiptStatus(
	ctx context.Context, txHash common.Hash,
) (bool, error)

GetTxReceiptStatus returns the status code of a transaction execution.

Jump to

Keyboard shortcuts

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