@owlprotocol/contracts-account-abstraction
Version:
ERC4337 Account Abstraction support for deploying relevant smart contracts and interacting with UserOps.
12 lines (11 loc) • 413 B
TypeScript
/**
* Generates an ERC4337 nonce from a "key" & "nonce".
* - If key & nonce undefined => generated random key with nonce 0
* ERC4337 supports "2D" nonces that can live concurrently within various "keys"
* Read more https://eips.ethereum.org/EIPS/eip-4337#semi-abstracted-nonce-support
* @param param0
*/
export declare function getERC4337Nonce(parameters?: {
key: bigint;
nonce: bigint;
}): bigint;