T402 API Reference - v2.8.0
    Preparing search index...

    Bundler client for submitting UserOperations

    Index

    Constructors

    Methods

    • Estimate gas for a UserOperation

      Parameters

      • userOp: Partial<UserOperation> & { sender: `0x${string}`; callData: `0x${string}` }

        Partial UserOperation with required sender and callData

      Returns Promise<GasEstimate>

      Gas estimates for the UserOperation

    • Get UserOperation by hash

      Parameters

      • userOpHash: `0x${string}`

        The hash of the UserOperation to retrieve

      Returns Promise<{ userOperation: PackedUserOperation; entryPoint: `0x${string}` }>

      The UserOperation and EntryPoint, or null if not found

    • Wait for UserOperation receipt with polling

      Parameters

      • userOpHash: `0x${string}`

        The hash of the UserOperation to wait for

      • options: { timeout?: number; pollingInterval?: number } = {}

        Polling options

        • Optionaltimeout?: number

          Maximum time to wait in milliseconds (default: 60000)

        • OptionalpollingInterval?: number

          Interval between polls in milliseconds (default: 2000)

      Returns Promise<UserOperationReceipt>

      The UserOperation receipt