1.0.0-alpha.4 • Published 2 years ago
@zerodevapp/aa-utilities v1.0.0-alpha.4
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)
1.0.0-alpha.4
2 years ago
1.0.0-alpha.3
2 years ago
1.0.0-alpha.2
2 years ago
1.0.0-alpha.1
2 years ago
1.0.0-alpha.0
2 years ago