Embedded Wallets
How to
Wallet Operation
Get Address

Get Address

API Documentation: Get Address

Overview

This API endpoint allows users to get the wallet address of their MPC wallet.

  • HTTP Method: GET
  • Endpoint: /api/<VERSION>/wallet/address

Request

Request Headers

  • Authorization (required): JWT token (walletToken) which was generated when user login to Xellar Embedded Wallet API Service.

Example Request Syntax

curl -X GET -H "Authorization: Bearer $YOUR_ACCESS_TOKEN" <BASE_URL>/api/<VERSION>/wallet/address

Response

The response will include a JSON object with the following properties:

  • status (number): The HTTP status code of the response (e.g., 200 for success).
  • message (string): A message providing additional information about the operation.
  • data (object): The wallet address of the user.

Example Response

V1

{
    "status": 200,
    "message": "Get Address executed successfully",
    "data": {
        "address": "0x1234564..."
    }
}

V2

📝

This response only works on v2

{
    "status": 200,
    "message": "Get Address executed successfully",
    "data": {
        "address": [
            {
                "network": "evm",
                "address": "0x123546..."
            },
            {
                "network": "solana",
                "address": "Af3sdf8JsjF..."
            },
            {
                "network": "bitcoin",
                "address": "bc1q3sdf8JsjF..."
            }
        ]
    }
}