Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidUserOpHash ¶ added in v0.6.33
Types ¶
type HashLookupResult ¶
type HashLookupResult struct { UserOperation *userop.UserOperation `json:"userOperation"` EntryPoint string `json:"entryPoint"` BlockNumber *big.Int `json:"blockNumber"` BlockHash common.Hash `json:"blockHash"` TransactionHash common.Hash `json:"transactionHash"` }
func GetUserOperationByHash ¶
func GetUserOperationByHash( eth *ethclient.Client, userOpHash string, entryPoint common.Address, chainID *big.Int, blkRange uint64, ) (*HashLookupResult, error)
GetUserOperationByHash filters the EntryPoint contract for UserOperationEvents and returns the corresponding UserOp from a given userOpHash.
type UserOperationReceipt ¶
type UserOperationReceipt struct { UserOpHash common.Hash `json:"userOpHash"` Sender common.Address `json:"sender"` Paymaster common.Address `json:"paymaster"` Nonce string `json:"nonce"` Success bool `json:"success"` ActualGasCost string `json:"actualGasCost"` ActualGasUsed string `json:"actualGasUsed"` From common.Address `json:"from"` Receipt *parsedTransaction `json:"receipt"` Logs []*types.Log `json:"logs"` }
func GetUserOperationReceipt ¶
func GetUserOperationReceipt( eth *ethclient.Client, userOpHash string, entryPoint common.Address, blkRange uint64, ) (*UserOperationReceipt, error)
GetUserOperationReceipt filters the EntryPoint contract for UserOperationEvents and returns a receipt for both the UserOperation and accompanying transaction.
Click to show internal directories.
Click to hide internal directories.