Skip to main content
Home
This release is 4 versions behind 2.42.1 — the latest version of @wevm/viem. Jump to latest

@wevm/viem@2.40.4
Built and signed on GitHub Actions

TypeScript Interface for Ethereum

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
41%
Published
2 weeks ago (2.40.4)
type alias BundlerActions

Type Parameters

account extends SmartAccount | undefined = SmartAccount | undefined

Properties

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.

Returns the information about a User Operation given a 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.

Waits for the User Operation to be included on a Block (one confirmation), and then returns the User Operation receipt.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@wevm/viem

Import symbol

import { type BundlerActions } from "@wevm/viem/accounts-abstraction";
or

Import directly with a jsr specifier

import { type BundlerActions } from "jsr:@wevm/viem/accounts-abstraction";

Add Package

pnpm i jsr:@wevm/viem
or (using pnpm 10.8 or older)
pnpm dlx jsr add @wevm/viem

Import symbol

import { type BundlerActions } from "@wevm/viem/accounts-abstraction";

Add Package

yarn add jsr:@wevm/viem
or (using Yarn 4.8 or older)
yarn dlx jsr add @wevm/viem

Import symbol

import { type BundlerActions } from "@wevm/viem/accounts-abstraction";

Add Package

vlt install jsr:@wevm/viem

Import symbol

import { type BundlerActions } from "@wevm/viem/accounts-abstraction";

Add Package

npx jsr add @wevm/viem

Import symbol

import { type BundlerActions } from "@wevm/viem/accounts-abstraction";

Add Package

bunx jsr add @wevm/viem

Import symbol

import { type BundlerActions } from "@wevm/viem/accounts-abstraction";