Enclave API Documentation
  • Welcome
  • Getting Started
    • Integrations
  • SDK
  • Integrating with Privy
  • Models
    • Passkey Models
    • Transaction Models
    • User Model
    • Smart Balance
  • API Reference
    • Health Check
    • User Details
    • Smart Balance
    • Smart Account Creation
    • Smart Account Transactions
    • Passkey Account Creation
    • Passkey Account Authentication
    • Passkey Account Transactions
    • Session Key
  • COMING SOON
    • SDKs
    • Network Support
    • Protocol Integration
    • Mobile Integration
    • Custom Integration
Powered by GitBook
On this page
  1. API Reference

Passkey Account Transactions

Smart accounts with passkey as primary signer

PreviousPasskey Account AuthenticationNextSession Key

Last updated 5 months ago

  • POSTGenerate transaction options for WebAuthn
  • POSTVerify WebAuthn transaction

Generate transaction options for WebAuthn

post
Body
anyOptional
Responses
200
Transaction options generated successfully
400
Missing required fields or invalid network
500
Internal server error
post
POST /v3/webauthn/transaction/generate-options HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 158

{
  "username": "user@example.com",
  "transactionDetails": [
    {
      "encodedData": "0x...",
      "targetContractAddress": "0x...",
      "value": "1000000000000000000"
    }
  ],
  "network": "42161"
}

No content

Verify WebAuthn transaction

post
Query parameters
usernamestringRequired

The username of the user verifying the transaction

Body
objectOptional
Responses
200
Transaction verified successfully
400
User not found or incomplete user data
500
Internal server error
post
POST /v3/webauthn/transaction/verify?username=text HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 2

{}

No content