Last updated 7 days ago
Get user details by username
User details retrieved successfully
const response = await fetch('/user?username=text', { method: 'GET', headers: {}, }); const data = await response.json();
{ "username": "text", "wallet": {}, "transactions": [ {} ] }
Search for a user by username or wallet address
Search results retrieved successfully
const response = await fetch('/api/user/search?query=text', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "wallet_address": "text" } ]
Check if a username exists
Username check completed successfully
const response = await fetch('/api/user/check-username?username=text', { method: 'GET', headers: {}, }); const data = await response.json();
{ "value": true, "message": "text" }