Wallets
Fetch Users
From your backend, you can list all your users and fetch the details of any user within your in app or ecosystem wallet. This includes their address, email, phone number, and more.
GET
request to the following endpoint:
You can then query by different user identifiers:
address
: The user's wallet address that thirdweb has generated for thememail
: The user's email addressphone
: The user's phone numberexternalWalletAddress
: The user's wallet address that used to login via SIWEid
: The user's ID (for custom auth)
You need to include the following headers:
x-secret-key
: Your secret key for authenticationx-ecosystem-id
(optional): Your ecosystem IDx-ecosystem-partner-id
(optional): Your ecosystem partner ID
Here's an example curl command to fetch user details by email:
Here's an example curl command to fetch user details by address:
Here's an example curl command to fetch the user details for an ecosystem owner:
In both examples, replace YOUR_SECRET_KEY
with your actual ThirdWeb Client Secret.
Replace YOUR_ECOSYSTEM_ID
and YOUR_PARTNER_ID
with your actual ecosystem ID and partner ID respectively. The partner ID can be one you set up for yourself as the ecosystem owner.
The API returns a JSON array with the following structure for each user:
For more information, view the full reference
If you are using the thirdweb SDK, you can use the getUser
method to retrieve user details.