Documentation
¶
Index ¶
- Constants
- func FilterMetaTransactionAny() ethreceipts.FilterQuery
- func FilterMetaTransactionID(metaTxnID ethkit.Hash) ethreceipts.FilterQuery
- type MetaTxnResult
- type Receipt
- type Receipts
- func FetchMetaTransactionReceiptByETHGetLogs(ctx context.Context, opHash common.Hash, provider ethrpc.Interface, ...) (Receipts, *types.Receipt, error)
- func TransactionReceipts(ctx context.Context, transaction common.Hash, provider *ethrpc.Provider, ...) (Receipts, error)
- func TransactionReceiptsForReceipt(ctx context.Context, receipt *types.Receipt, provider ethrpc.Interface, ...) (Receipts, error)
- type Status
Constants ¶
const MaxFilterBlockRange = 7500
Variables ¶
This section is empty.
Functions ¶
func FilterMetaTransactionAny ¶ added in v0.63.0
func FilterMetaTransactionAny() ethreceipts.FilterQuery
Find any Sequence meta txns
func FilterMetaTransactionID ¶ added in v0.63.0
func FilterMetaTransactionID(metaTxnID ethkit.Hash) ethreceipts.FilterQuery
Types ¶
type MetaTxnResult ¶ added in v0.63.0
type MetaTxnResult struct {
MetaTxnID sequence.MetaTxnID
Status sequence.MetaTxnStatus
Reason string
}
func FetchMetaTransactionReceipt ¶ added in v0.63.0
func FetchMetaTransactionReceipt(ctx context.Context, receiptListener *ethreceipts.ReceiptsListener, metaTxnID sequence.MetaTxnID, optTimeout ...time.Duration) (*MetaTxnResult, *ethreceipts.Receipt, ethreceipts.WaitReceiptFinalityFunc, error)
type Receipts ¶
func FetchMetaTransactionReceiptByETHGetLogs ¶ added in v0.63.0
func FetchMetaTransactionReceiptByETHGetLogs(ctx context.Context, opHash common.Hash, provider ethrpc.Interface, fromBlock, toBlock *big.Int) (Receipts, *types.Receipt, error)
FetchMetaTransactionReceiptByETHGetLogs looks up the transaction that emitted Call* events for the given digest and returns all decoded Sequence receipts along with the native receipt.
The `opHash` is also known as the "MetaTxnID" but please make sure it has the "0x" prefix when passing as a common.Hash, even though sometimes we represent a MetaTxnID without the 0x prefix as a string.
NOTE: toBlock can also be nil, in which case the latest block is used.
Finally, please note that this method will not find meta-transactions if there is a native transaction which fails. In that case, the Call* events are not emitted and thus cannot be found. In such cases, you will need to look up the native transaction receipt directly. However, this is not to be confused with where a "Call" inside of the native transaction fails, but the native transaction itself succeeds which is more common and works fine.