@zerodevapp/aa-utilities
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.4 • Public • Published

ZeroDev - AA Helper Library

Installation

npm

npm install --dev @zerodevapp/aa-utilities

yarn

yarn add @zerodevapp/aa-utilities

Usage

getUserOperationHash

import { getUserOperationHash } from "@zerodevapp/aa-utilities"
const userOperation = {
    sender: '',
    nonce: '',
    initCode: '',
    callData: '',
    callGasLimit: '',
    verificationGasLimit: '',
    maxFeePerGas: '',
    maxPriorityFeePerGas: '',
    paymasterAndData: '',
    signature: '',
    preVerificationGas: ''
}

const entryPointAddress = '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789' // 0.6 Entrypoint address

const chainId = 80001n // Polygon Mumbai Chain ID

const userOperationHash = getUserOperationHash(userOperation, entryPointAddress, chainId)

Readme

Keywords

none

Package Sidebar

Install

npm i @zerodevapp/aa-utilities

Weekly Downloads

0

Version

1.0.0-alpha.4

License

ISC

Unpacked Size

22 kB

Total Files

38

Last publish

Collaborators

  • blakecduncan
  • sahilvasava
  • leekt216
  • zobeirhamid
  • derekchiang