Enclave
  • Introducing Enclave Money
    • Enclave Money Protocol
      • Asset Support
      • Network Support
      • Wallet Support
    • Enclave Smart Accounts
      • Security & Recovery
      • MEV Protection
  • 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

User

PreviousHealthNextSmart Balance

Last updated 3 months ago

Get user details

get

Get user details by username

Query parameters
usernamestringRequired

The username of the user

Example: john_doe
Responses
200
User details retrieved successfully
application/json
400
Username not provided
application/json
404
User not found
application/json
get
GET /user?username=text HTTP/1.1
Host: 
Accept: */*
{
  "username": "john_doe",
  "wallet": {
    "scw_address": "0x1234567890abcdef1234567890abcdef12345678"
  },
  "transactions": [
    {
      "hash": "0xabc...",
      "timestamp": "2024-03-20T10:00:00Z",
      "value": "0.1"
    }
  ]
}

Search for a user

get

Search for a user by username or wallet address

Query parameters
querystringRequired

The username or wallet address to search for

Example: john_doe
Responses
200
Search results retrieved successfully
application/json
get
GET /api/user/search?query=text HTTP/1.1
Host: 
Accept: */*
200

Search results retrieved successfully

{
  "result": [
    {
      "wallet_address": "0x1234567890abcdef1234567890abcdef12345678",
      "username": "john_doe"
    }
  ],
  "message": "Fetch successful"
}

Check username

get

Check if a username exists

Query parameters
usernamestringRequired

The username to check

Responses
200
Username check completed successfully
application/json
500
Internal server error
get
GET /api/user/check-username?username=text HTTP/1.1
Host: 
Accept: */*
{
  "value": true,
  "message": "text"
}
  • GETGet user details
  • GETSearch for a user
  • GETCheck username