Enclave
  • Introducing Enclave Money
    • Enclave Smart Accounts
      • Security & Recovery
      • MEV Protection
    • Enclave Money Protocol
      • Asset Support
      • Network Support
      • Wallet Support
    • Embedded Swaps
  • Integrate with Enclave Money
    • SDK
      • Integrate with Privy
      • Integrate with Turnkey
    • API Reference
      • Health
      • User
      • Smart Balance
      • Smart Account
      • Passkey Account
      • Delegated Action
  • Applications
  • Business Model
  • Audits
  • Disclaimer
  • Risk Disclosure
Powered by GitBook
On this page
  1. Integrate with Enclave Money
  2. API Reference

Delegated Action

PreviousPasskey AccountNextApplications

Last updated 4 months ago

Build and submit a transaction using delegated signing

post
Body
networkstringRequired
walletAddressstringRequired
usernamestringRequired
paymasterDataobjectOptional
Responses
200
Transaction submitted successfully
application/json
post
POST /smart-account/delegate-action HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 260

{
  "transactionDetails": [
    {
      "encodedData": "0xa9059cbb000000000000000000000000...",
      "targetContractAddress": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
      "value": "0"
    }
  ],
  "network": "8453",
  "walletAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
  "username": "user123"
}
200

Transaction submitted successfully

{
  "userOpHash": "0x1234...",
  "txnHash": "0x5678...",
  "success": true
}