Get User Wallet Info
The "Get Wallet info" endpoint provides information about the authenticated user and their associated wallets. Use this endpoint to retrieve user details and wallet information.
Overview
Responses
Success (Code 200)
user
: User information.id
: User ID.identifier
: User's email address.
wallets
: Array of user wallets.id
: Wallet ID.address
: Wallet address.custodial
: Indicates whether the wallet is custodial (true/false).user
: User ID associated with the wallet.smartAccount
: Smart Account address for account abstraction and paymaster.
Media Type: application/json
Example Value: An object containing the all information about the user.
Unauthorized (Code 401)
Media Type: application/json
Example Value: An error response indicating unauthorized access.
Internal Server Error (Code 500)
Media Type: application/json
Example Value: An error response indicating an internal server error.
Usage
Once connected to the Xerial server use the given access token to request the User account and Wallet information.
Send a GET request to the
/api/user
endpoint to retrieve user information and associated wallets.Handle the response accordingly based on success, unauthorized access or internal server error.
Note: Ensure the user is authenticated before making the request.
Last updated