account extends SmartAccount | undefined = SmartAccount | undefined
estimateUserOperationGas: <calls extends readonly unknown[],accountOverride extends SmartAccount | undefined = undefined,>(parameters: EstimateUserOperationGasParameters<account, accountOverride, calls>) => Promise<EstimateUserOperationGasReturnType<account, accountOverride>>
Returns an estimate of gas values necessary to execute the User Operation.
getChainId: () => Promise<GetChainIdReturnType>
Returns the chain ID associated with the bundler.
- Docs: https://viem.sh/docs/actions/public/getChainId
- JSON-RPC Methods:
eth_chainId
Returns the EntryPoints that the bundler supports.
getUserOperation: (parameters: GetUserOperationParameters) => Promise<GetUserOperationReturnType>
Returns the information about a User Operation given a hash.
getUserOperationReceipt: (parameters: GetUserOperationReceiptParameters) => Promise<GetUserOperationReceiptReturnType>
Returns the User Operation Receipt given a User Operation hash.
prepareUserOperation: <calls extends readonly unknown[],request extends PrepareUserOperationRequest<account, accountOverride, calls>,accountOverride extends SmartAccount | undefined = undefined,>(parameters: PrepareUserOperationParameters<account, accountOverride, calls, request>) => Promise<PrepareUserOperationReturnType<account, accountOverride, calls, request>>
Prepares a User Operation and fills in missing properties.
sendUserOperation: <calls extends readonly unknown[],accountOverride extends SmartAccount | undefined = undefined,>(parameters: SendUserOperationParameters<account, accountOverride, calls>) => Promise<SendUserOperationReturnType>
Broadcasts a User Operation to the Bundler.
waitForUserOperationReceipt: (parameters: WaitForUserOperationReceiptParameters) => Promise<WaitForUserOperationReceiptReturnType>
Waits for the User Operation to be included on a Block (one confirmation), and then returns the User Operation receipt.