These Calibur7702Account methods add, inspect and revoke keys on a delegated Calibur account, and sign UserOperations with a registered passkey. To create the account from an existing EOA, delegate it and send UserOperations, start with Calibur Account.
The EOA's own key (the root key, keyHash = bytes32(0)) is always admin and cannot be revoked. Keys registered with createRegisterKeyMetaTransactions are always non-admin.
Methods at a Glance
| Method | Signature | Returns |
|---|
| createSecp256k1Key (static) | Calibur7702Account.createSecp256k1Key(address) | CaliburKey |
| createWebAuthnP256Key (static) | Calibur7702Account.createWebAuthnP256Key(x, y) | CaliburKey |
| createP256Key (static) | Calibur7702Account.createP256Key(x, y) | CaliburKey |
| getKeyHash (static) | Calibur7702Account.getKeyHash(key) | string |
| createRegisterKeyMetaTransactions (static) | Calibur7702Account.createRegisterKeyMetaTransactions(key, settings?) | [SimpleMetaTransaction, SimpleMetaTransaction] |
| createRevokeKeyMetaTransaction (static) | Calibur7702Account.createRevokeKeyMetaTransaction(keyHash) | SimpleMetaTransaction |
| createRevokeAllKeysMetaTransactions | createRevokeAllKeysMetaTransactions(providerRpc) | Promise<SimpleMetaTransaction[]> |
| createUpdateKeySettingsMetaTransaction (static) | Calibur7702Account.createUpdateKeySettingsMetaTransaction(keyHash, settings) | SimpleMetaTransaction |
| packKeySettings (static) | Calibur7702Account.packKeySettings(settings) | bigint |
| unpackKeySettings (static) | Calibur7702Account.unpackKeySettings(packed) | CaliburKeySettingsResult |
| isKeyRegistered | isKeyRegistered(providerRpc, keyHash) | Promise<boolean> |
| getKeySettings | getKeySettings(providerRpc, keyHash) | Promise<CaliburKeySettingsResult> |
| getKey | getKey(providerRpc, keyHash) | Promise<CaliburKey> |
| getKeys | getKeys(providerRpc, overrides?) | Promise<CaliburKey[]> |
| formatWebAuthnSignature | formatWebAuthnSignature(keyHash, webAuthnAuth, overrides?) | string |
| createDummyWebAuthnSignature (static) | Calibur7702Account.createDummyWebAuthnSignature(keyHash) | string |
For step-by-step flows, see the Passkey Authentication and Key Management guides.
Key Management Methods
createSecp256k1Key
Static method. Creates a secp256k1 key descriptor from an Ethereum address.
- example.ts
- Param Types
- Return Type
example.ts
import { Calibur7702Account } from "abstractionkit";
const secondaryAddress = "0x742D35CC6634C0532925a3B844Bc9E7595F2bD18";
const key = Calibur7702Account.createSecp256k1Key(secondaryAddress);
console.log(key);
| key | type | description |
|---|
address | string | The Ethereum address (EOA public address) |
| key | type | description |
|---|
key | object | A CaliburKey with type Secp256k1 |
key.CaliburKey | object | A key registered on a Calibur account. |
key.CaliburKey.keyType | CaliburKeyType | The type of cryptographic key (P256, WebAuthnP256, or Secp256k1) |
key.CaliburKey.publicKey | string | ABI-encoded public key bytes (hex string) |
CaliburKey
| key | type | description |
|---|
CaliburKey | object | A key registered on a Calibur account. |
CaliburKey.keyType | CaliburKeyType | The type of cryptographic key (P256, WebAuthnP256, or Secp256k1) |
CaliburKey.publicKey | string | ABI-encoded public key bytes (hex string) |
Source code
createSecp256k1Key
createWebAuthnP256Key
Static method. Creates a WebAuthn P-256 key descriptor from public key coordinates. Use this when registering a passkey on the account.
- example.ts
- Param Types
- Return Type
example.ts
import { Calibur7702Account } from "abstractionkit";
const x = 0x1234...n;
const y = 0x5678...n;
const webAuthnKey = Calibur7702Account.createWebAuthnP256Key(x, y);
const keyHash = Calibur7702Account.getKeyHash(webAuthnKey);
console.log("Key hash:", keyHash);
| key | type | description |
|---|
x | bigint | The x coordinate of the P-256 public key |
y | bigint | The y coordinate of the P-256 public key |
| key | type | description |
|---|
key | object | A CaliburKey with type WebAuthnP256 |
key.CaliburKey | object | A key registered on a Calibur account. |
key.CaliburKey.keyType | CaliburKeyType | The type of cryptographic key (P256, WebAuthnP256, or Secp256k1) |
key.CaliburKey.publicKey | string | ABI-encoded public key bytes (hex string) |
CaliburKey
| key | type | description |
|---|
CaliburKey | object | A key registered on a Calibur account. |
CaliburKey.keyType | CaliburKeyType | The type of cryptographic key (P256, WebAuthnP256, or Secp256k1) |
CaliburKey.publicKey | string | ABI-encoded public key bytes (hex string) |
Source code
createWebAuthnP256Key
createP256Key
Static method. Creates a raw P-256 (secp256r1) key descriptor from public key coordinates. Use this for non-WebAuthn P-256 keys.
- example.ts
- Param Types
- Return Type
example.ts
import { Calibur7702Account } from "abstractionkit";
const x = 0x1234...n;
const y = 0x5678...n;
const p256Key = Calibur7702Account.createP256Key(x, y);
const keyHash = Calibur7702Account.getKeyHash(p256Key);
console.log("Key hash:", keyHash);
| key | type | description |
|---|
x | bigint | The x coordinate of the P-256 public key |
y | bigint | The y coordinate of the P-256 public key |
| key | type | description |
|---|
key | object | A CaliburKey with type P256 |
key.CaliburKey | object | A key registered on a Calibur account. |
key.CaliburKey.keyType | CaliburKeyType | The type of cryptographic key (P256, WebAuthnP256, or Secp256k1) |
key.CaliburKey.publicKey | string | ABI-encoded public key bytes (hex string) |
CaliburKey
| key | type | description |
|---|
CaliburKey | object | A key registered on a Calibur account. |
CaliburKey.keyType | CaliburKeyType | The type of cryptographic key (P256, WebAuthnP256, or Secp256k1) |
CaliburKey.publicKey | string | ABI-encoded public key bytes (hex string) |
Source code
createP256Key
getKeyHash
Static method. Computes the key hash for a Calibur key. Uses double hashing: keccak256(abi.encode(uint8 keyType, bytes32 keccak256(publicKey))).
- example.ts
- Param Types
- Return Type
example.ts
import { Calibur7702Account } from "abstractionkit";
const key = Calibur7702Account.createSecp256k1Key("0x742D35CC6634C0532925a3B844Bc9E7595F2bD18");
const keyHash = Calibur7702Account.getKeyHash(key);
console.log("Key hash:", keyHash);
| key | type | description |
|---|
key | object | The key to compute the hash for |
key.CaliburKey | object | A key registered on a Calibur account. |
key.CaliburKey.keyType | CaliburKeyType | The type of cryptographic key (P256, WebAuthnP256, or Secp256k1) |
key.CaliburKey.publicKey | string | ABI-encoded public key bytes (hex string) |
CaliburKey
| key | type | description |
|---|
CaliburKey | object | A key registered on a Calibur account. |
CaliburKey.keyType | CaliburKeyType | The type of cryptographic key (P256, WebAuthnP256, or Secp256k1) |
CaliburKey.publicKey | string | ABI-encoded public key bytes (hex string) |
| key | type | description |
|---|
keyHash | string | The key hash as a bytes32 hex string |
Source code
getKeyHash
Static method. Creates meta-transactions to register a new key on the Calibur account. Returns two transactions ([register, update]) that must both be included in the same UserOperation. For safety, the key is always registered as non-admin, and the method throws if settings.isAdmin is true.
- example.ts
- Param Types
- Return Type
example.ts
import { Calibur7702Account } from "abstractionkit";
const newKey = Calibur7702Account.createSecp256k1Key("0x742D35CC6634C0532925a3B844Bc9E7595F2bD18");
const registerTxs = Calibur7702Account.createRegisterKeyMetaTransactions(
newKey,
{
expiration: Math.floor(Date.now() / 1000) + 30 * 24 * 60 * 60,
}
);
const userOperation = await smartAccount.createUserOperation(
registerTxs,
nodeRpc,
bundlerRpc,
);
| key | type | description |
|---|
key | object | The key to register |
key.CaliburKey | object | A key registered on a Calibur account. |
key.CaliburKey.keyType | CaliburKeyType | The type of cryptographic key (P256, WebAuthnP256, or Secp256k1) |
key.CaliburKey.publicKey | string | ABI-encoded public key bytes (hex string) |
settings? | object | Optional key settings. The key is registered as non-admin. Throws if isAdmin is true. |
settings?.CaliburKeySettings | object | Settings for a key registered on a Calibur account. All fields are optional. |
settings?.CaliburKeySettings.hook? | string | Hook contract address called during validation (zero address = no hook) |
settings?.CaliburKeySettings.expiration? | number | Unix timestamp in seconds (not milliseconds) after which the key expires (0 = never). Must fit in uint40. |
settings?.CaliburKeySettings.isAdmin? | boolean | Whether the key has admin privileges |
CaliburKeySettings
| key | type | description |
|---|
CaliburKeySettings | object | Settings for a key registered on a Calibur account. All fields are optional. |
CaliburKeySettings.hook? | string | Hook contract address called during validation (zero address = no hook) |
CaliburKeySettings.expiration? | number | Unix timestamp in seconds (not milliseconds) after which the key expires (0 = never). Must fit in uint40. |
CaliburKeySettings.isAdmin? | boolean | Whether the key has admin privileges |
| key | type | description |
|---|
transactions | [SimpleMetaTransaction, SimpleMetaTransaction] | A tuple of exactly two SimpleMetaTransactions: [registerTx, updateTx]. Both must be included in the same UserOperation. |
Source code
createRegisterKeyMetaTransactions
Static method. Creates a meta-transaction to revoke a key from the Calibur account. Only admin keys can execute revoke operations.
- example.ts
- Param Types
- Return Type
example.ts
import { Calibur7702Account } from "abstractionkit";
const keyHash = "0x...key-hash-to-revoke";
const revokeTx = Calibur7702Account.createRevokeKeyMetaTransaction(keyHash);
const userOperation = await smartAccount.createUserOperation(
[revokeTx],
nodeRpc,
bundlerRpc,
);
| key | type | description |
|---|
keyHash | string | The key hash of the key to revoke |
| key | type | description |
|---|
transaction | object | A SimpleMetaTransaction that calls revoke(bytes32) |
transaction.SimpleMetaTransaction | object | SimpleMetaTransaction is the type of transaction used with Calibur7702Account. |
transaction.SimpleMetaTransaction.to | string | Target contract address for the transaction |
transaction.SimpleMetaTransaction.value | bigint | Value transferred in the transaction (usually 0n for contract interactions) |
transaction.SimpleMetaTransaction.data | string | The call data for the transaction |
Source code
createRevokeKeyMetaTransaction
Static method. Creates a meta-transaction to update settings for a registered key. Only admin keys can execute update operations. Throws if isAdmin is set to true in the settings.
- example.ts
- Param Types
- Return Type
example.ts
import { Calibur7702Account } from "abstractionkit";
const keyHash = "0x...registered-key-hash";
const updateTx = Calibur7702Account.createUpdateKeySettingsMetaTransaction(
keyHash,
{
expiration: Math.floor(Date.now() / 1000) + 365 * 24 * 60 * 60,
}
);
const userOperation = await smartAccount.createUserOperation(
[updateTx],
nodeRpc,
bundlerRpc,
);
| key | type | description |
|---|
keyHash | string | The key hash of the key to update |
settings | object | New settings for the key. isAdmin must not be true (throws if true). |
settings.CaliburKeySettings | object | Settings for a key registered on a Calibur account. All fields are optional. |
settings.CaliburKeySettings.hook? | string | Hook contract address called during validation (zero address = no hook) |
settings.CaliburKeySettings.expiration? | number | Unix timestamp in seconds (not milliseconds) after which the key expires (0 = never). Must fit in uint40. |
settings.CaliburKeySettings.isAdmin? | boolean | Whether the key has admin privileges |
CaliburKeySettings
| key | type | description |
|---|
CaliburKeySettings | object | Settings for a key registered on a Calibur account. All fields are optional. |
CaliburKeySettings.hook? | string | Hook contract address called during validation (zero address = no hook) |
CaliburKeySettings.expiration? | number | Unix timestamp in seconds (not milliseconds) after which the key expires (0 = never). Must fit in uint40. |
CaliburKeySettings.isAdmin? | boolean | Whether the key has admin privileges |
| key | type | description |
|---|
transaction | object | A SimpleMetaTransaction that calls update(bytes32, uint256) |
transaction.SimpleMetaTransaction | object | SimpleMetaTransaction is the type of transaction used with Calibur7702Account. |
transaction.SimpleMetaTransaction.to | string | Target contract address for the transaction |
transaction.SimpleMetaTransaction.value | bigint | Value transferred in the transaction (usually 0n for contract interactions) |
transaction.SimpleMetaTransaction.data | string | The call data for the transaction |
Source code
createUpdateKeySettingsMetaTransaction
packKeySettings
Static method. Packs key settings into a single uint256 value. Layout: (isAdmin << 200) | (expiration << 160) | hook.
expiration is a unix timestamp in seconds. Since v0.4.1, packKeySettings throws a RangeError if expiration does not fit the contract's uint40 field (for example, a millisecond timestamp from Date.now()) or if hook is outside the 160-bit address range. hook is parsed with BigInt, so a non-numeric string throws a SyntaxError instead.
- example.ts
- Param Types
- Return Type
example.ts
import { Calibur7702Account } from "abstractionkit";
const packed = Calibur7702Account.packKeySettings({
hook: "0x0000000000000000000000000000000000000000",
expiration: Math.floor(Date.now() / 1000) + 86400,
isAdmin: false,
});
console.log("Packed settings:", packed);
| key | type | description |
|---|
settings | object | The key settings to pack |
settings.CaliburKeySettings | object | Settings for a key registered on a Calibur account. All fields are optional. |
settings.CaliburKeySettings.hook? | string | Hook contract address called during validation (zero address = no hook) |
settings.CaliburKeySettings.expiration? | number | Unix timestamp in seconds (not milliseconds) after which the key expires (0 = never). Must fit in uint40. |
settings.CaliburKeySettings.isAdmin? | boolean | Whether the key has admin privileges |
CaliburKeySettings
| key | type | description |
|---|
CaliburKeySettings | object | Settings for a key registered on a Calibur account. All fields are optional. |
CaliburKeySettings.hook? | string | Hook contract address called during validation (zero address = no hook) |
CaliburKeySettings.expiration? | number | Unix timestamp in seconds (not milliseconds) after which the key expires (0 = never). Must fit in uint40. |
CaliburKeySettings.isAdmin? | boolean | Whether the key has admin privileges |
| key | type | description |
|---|
packed | bigint | The packed settings as a single uint256 value. Layout: (isAdmin << 200) | (expiration << 160) | hook |
Source code
packKeySettings
unpackKeySettings
Static method. Unpacks a uint256 settings value into a CaliburKeySettingsResult object with all fields populated.
- example.ts
- Param Types
- Return Type
example.ts
import { Calibur7702Account } from "abstractionkit";
const packed = 0x...n;
const settings = Calibur7702Account.unpackKeySettings(packed);
console.log("Admin:", settings.isAdmin);
console.log("Expiration:", settings.expiration);
console.log("Hook:", settings.hook);
| key | type | description |
|---|
packed | bigint | The packed settings uint256 value to unpack |
| key | type | description |
|---|
settings | object | Parsed key settings with all fields populated |
settings.CaliburKeySettingsResult | object | Concrete key settings returned from on-chain reads. All fields are required since the contract always returns concrete values. |
settings.CaliburKeySettingsResult.hook | string | Hook contract address called during validation (zero address = no hook) |
settings.CaliburKeySettingsResult.expiration | number | Unix timestamp in seconds (not milliseconds) after which the key expires (0 = never). Must fit in uint40. |
settings.CaliburKeySettingsResult.isAdmin | boolean | Whether the key has admin privileges |
CaliburKeySettingsResult
| key | type | description |
|---|
CaliburKeySettingsResult | object | Concrete key settings returned from on-chain reads. All fields are required since the contract always returns concrete values. |
CaliburKeySettingsResult.hook | string | Hook contract address called during validation (zero address = no hook) |
CaliburKeySettingsResult.expiration | number | Unix timestamp in seconds (not milliseconds) after which the key expires (0 = never). Must fit in uint40. |
CaliburKeySettingsResult.isAdmin | boolean | Whether the key has admin privileges |
Source code
unpackKeySettings
Key Read Methods
isKeyRegistered
Checks if a key is registered on this account by querying the on-chain isRegistered(bytes32) function.
- example.ts
- Param Types
- Return Type
example.ts
const keyHash = Calibur7702Account.getKeyHash(key);
const isRegistered = await smartAccount.isKeyRegistered(
"https://ethereum-sepolia-rpc.publicnode.com",
keyHash,
);
console.log("Key registered:", isRegistered);
| key | type | description |
|---|
providerRpc | string | Transport | JsonRpcNode | JSON-RPC endpoint for blockchain queries |
keyHash | string | The key hash to check |
| key | type | description |
|---|
isRegistered | boolean | True if the key is registered on this account |
Source code
isKeyRegistered
getKeySettings
Gets the settings for a registered key. Returns a CaliburKeySettingsResult with hook address, expiration timestamp, and admin flag.
- example.ts
- Param Types
- Return Type
example.ts
const keyHash = Calibur7702Account.getKeyHash(key);
const settings = await smartAccount.getKeySettings(
"https://ethereum-sepolia-rpc.publicnode.com",
keyHash,
);
console.log("Admin:", settings.isAdmin);
console.log("Expiration:", settings.expiration === 0 ? "never" : new Date(settings.expiration * 1000).toISOString());
console.log("Hook:", settings.hook);
| key | type | description |
|---|
providerRpc | string | Transport | JsonRpcNode | JSON-RPC endpoint for blockchain queries |
keyHash | string | The key hash to query settings for |
| key | type | description |
|---|
settings | object | Parsed key settings with all fields populated |
settings.CaliburKeySettingsResult | object | Concrete key settings returned from on-chain reads. All fields are required since the contract always returns concrete values. |
settings.CaliburKeySettingsResult.hook | string | Hook contract address called during validation (zero address = no hook) |
settings.CaliburKeySettingsResult.expiration | number | Unix timestamp in seconds (not milliseconds) after which the key expires (0 = never). Must fit in uint40. |
settings.CaliburKeySettingsResult.isAdmin | boolean | Whether the key has admin privileges |
CaliburKeySettingsResult
| key | type | description |
|---|
CaliburKeySettingsResult | object | Concrete key settings returned from on-chain reads. All fields are required since the contract always returns concrete values. |
CaliburKeySettingsResult.hook | string | Hook contract address called during validation (zero address = no hook) |
CaliburKeySettingsResult.expiration | number | Unix timestamp in seconds (not milliseconds) after which the key expires (0 = never). Must fit in uint40. |
CaliburKeySettingsResult.isAdmin | boolean | Whether the key has admin privileges |
Source code
getKeySettings
getKey
Gets the full key data for a registered key, including the key type and ABI-encoded public key bytes.
- example.ts
- Param Types
- Return Type
example.ts
const keyHash = "0x...registered-key-hash";
const key = await smartAccount.getKey(
"https://ethereum-sepolia-rpc.publicnode.com",
keyHash,
);
console.log("Key type:", key.keyType);
console.log("Public key:", key.publicKey);
| key | type | description |
|---|
providerRpc | string | Transport | JsonRpcNode | JSON-RPC endpoint for blockchain queries |
keyHash | string | The key hash to query |
| key | type | description |
|---|
key | object | The CaliburKey associated with the given key hash |
key.CaliburKey | object | A key registered on a Calibur account. |
key.CaliburKey.keyType | CaliburKeyType | The type of cryptographic key (P256, WebAuthnP256, or Secp256k1) |
key.CaliburKey.publicKey | string | ABI-encoded public key bytes (hex string) |
CaliburKey
| key | type | description |
|---|
CaliburKey | object | A key registered on a Calibur account. |
CaliburKey.keyType | CaliburKeyType | The type of cryptographic key (P256, WebAuthnP256, or Secp256k1) |
CaliburKey.publicKey | string | ABI-encoded public key bytes (hex string) |
Source code
getKey
getKeys
Returns all keys registered on this account. Iterates keyCount() and keyAt(i) to enumerate all keys.
- example.ts
- Param Types
- Return Type
example.ts
const keys = await smartAccount.getKeys(
"https://ethereum-sepolia-rpc.publicnode.com",
);
for (const key of keys) {
const keyHash = Calibur7702Account.getKeyHash(key);
const settings = await smartAccount.getKeySettings(nodeRpc, keyHash);
console.log("Key:", keyHash.slice(0, 18) + "...");
console.log(" Type:", key.keyType);
console.log(" Admin:", settings.isAdmin);
}
| key | type | description |
|---|
providerRpc | string | Transport | JsonRpcNode | JSON-RPC endpoint for blockchain queries |
overrides? | { blockNumber?: bigint } | Optional block number to query at. If omitted, the current block number is fetched once and used for all reads. |
| key | type | description |
|---|
keys | CaliburKey[] | Array of all registered CaliburKeys on this account |
Source code
getKeys
Passkey Signing Methods
Formats a WebAuthn (passkey) assertion into Calibur's signature format. Use this after getting an assertion from the browser's navigator.credentials.get() API. The challenge for the assertion should be the UserOperation hash.
- example.ts
- Param Types
- Return Type
example.ts
import { Calibur7702Account, WebAuthnSignatureData } from "abstractionkit";
const webAuthnSignatureData: WebAuthnSignatureData = {
authenticatorData: "0x...",
clientDataJSON: '{"type":"webauthn.get","challenge":"...","origin":"https://example.com"}',
challengeIndex: 23n,
typeIndex: 1n,
r: 0x...n,
s: 0x...n,
};
const keyHash = Calibur7702Account.getKeyHash(webAuthnKey);
userOperation.signature = smartAccount.formatWebAuthnSignature(
keyHash,
webAuthnSignatureData,
);
| key | type | description |
|---|
keyHash | string | The key hash of the registered passkey (from getKeyHash) |
webAuthnAuth | object | WebAuthn assertion data from the browser |
webAuthnAuth.WebAuthnSignatureData | object | WebAuthn assertion data matching the on-chain WebAuthn.WebAuthnAuth struct. Used when signing UserOperations with a passkey. |
webAuthnAuth.WebAuthnSignatureData.authenticatorData | string | Authenticator data bytes (hex string) |
webAuthnAuth.WebAuthnSignatureData.clientDataJSON | string | Client data JSON string (UTF-8) |
webAuthnAuth.WebAuthnSignatureData.challengeIndex | bigint | Index of the challenge in clientDataJSON |
webAuthnAuth.WebAuthnSignatureData.typeIndex | bigint | Index of the type field in clientDataJSON |
webAuthnAuth.WebAuthnSignatureData.r | bigint | ECDSA signature r component |
webAuthnAuth.WebAuthnSignatureData.s | bigint | ECDSA signature s component |
overrides? | object | Optional signature overrides (e.g., hookData) |
overrides?.hookData? | string | Hook data to append to the signature (default: "0x" = empty) |
overrides?.keyHash? | string | Key hash of a registered secondary key. If omitted, the root key hash is used. |
WebAuthnSignatureData
| key | type | description |
|---|
WebAuthnSignatureData | object | WebAuthn assertion data matching the on-chain WebAuthn.WebAuthnAuth struct. Used when signing UserOperations with a passkey. |
WebAuthnSignatureData.authenticatorData | string | Authenticator data bytes (hex string) |
WebAuthnSignatureData.clientDataJSON | string | Client data JSON string (UTF-8) |
WebAuthnSignatureData.challengeIndex | bigint | Index of the challenge in clientDataJSON |
WebAuthnSignatureData.typeIndex | bigint | Index of the type field in clientDataJSON |
WebAuthnSignatureData.r | bigint | ECDSA signature r component |
WebAuthnSignatureData.s | bigint | ECDSA signature s component |
| key | type | description |
|---|
signature | string | Hex-encoded wrapped signature in Calibur format |
Source code
formatWebAuthnSignature
createDummyWebAuthnSignature
Static method. Creates a dummy WebAuthn signature for gas estimation when signing with a passkey. The key hash must correspond to an actually registered key on the account, otherwise the contract's validateUserOp will revert.
- example.ts
- Param Types
- Return Type
example.ts
import { Calibur7702Account } from "abstractionkit";
const keyHash = Calibur7702Account.getKeyHash(webAuthnKey);
const dummySignature = Calibur7702Account.createDummyWebAuthnSignature(keyHash);
const userOperation = await smartAccount.createUserOperation(
transactions,
nodeRpc,
bundlerRpc,
{ dummySignature },
);
| key | type | description |
|---|
keyHash | string | The key hash of a registered passkey (from getKeyHash). Must correspond to an actually registered key. |
| key | type | description |
|---|
signature | string | A dummy signature suitable for passing as dummySignature override during gas estimation |
Source code
createDummyWebAuthnSignature