Api reference
Passkey Hash
Generate passkey hashes for passkey-based operations.
Generate passkey hashes for passkey-based operations.
Endpoint
POST /passkeyHashDescription
Generates passkey hashes that need to be signed by passkeys. The signed hash can then be used with the execute passkey endpoint.
Request Body
Same as Execute Operation endpoint.
Response
{
"status": 0,
"results": [
{
"userOpHash": "0x...",
"encodedUserOp": "0x...",
"aggrIndexes": [0, 1],
"error": null
}
]
}Response Fields
status(integer): The status code (0 - success)results(array): Array of passkey hash resultsuserOpHash(string): The UserOperation hash to signencodedUserOp(string): The encoded UserOperationaggrIndexes(array): Aggregator indexes for signature aggregationerror(string, nullable): Error message if hash generation failed
Use Cases
- Passkey integration: Generate hashes for passkey-based transaction signing
- Biometric authentication: Enable passwordless transaction signing
- Mobile wallets: Support device-native biometric authentication
- Enhanced security: Combine passkey validation with Account Abstraction
Best Practices
- Sign with passkey: Use the userOpHash to sign with the user's passkey
- Handle aggregation: Use aggrIndexes for signature aggregation if needed
- Validate before execution: Ensure passkey signature is valid before execute passkey
- Error handling: Check for errors in the results array
Related Endpoints
- Execute Passkey - Execute operations with passkey signatures
💡 Tip: The userOpHash returned by this endpoint needs to be signed by the user's passkey. Use WebAuthn APIs to obtain the passkey signature.