Documentation
¶
Index ¶
- Constants
- type Receipt
- type Receipts
- func FetchReceipts(ctx context.Context, opHash common.Hash, provider *ethrpc.Provider, ...) (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.Provider, ...) (Receipts, error)
- type Status
Constants ¶
const MaxFilterBlockRange = 10_000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Receipts ¶
func FetchReceipts ¶ added in v0.62.2
func FetchReceipts(ctx context.Context, opHash common.Hash, provider *ethrpc.Provider, fromBlock, toBlock *big.Int) (Receipts, *types.Receipt, error)
FetchReceipts 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"
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.