Get already created wallet

Get already created wallet

POST /generate_wallet/get_wallet

This endpoint allows the retrieval of an existing wallet using the email ID of the user and the network on which the account exists. When a wallet is created using the create API, it is associated with an email address that can be used to retrieve the wallet details, including the wallet address and private key. This endpoint requires the email of the user and network on which the account needs to be created for wallet creation and x-api-key and Lync's API key for request validation.

Headers

NameValue

Content-Type

application/json

x-api-key

<Your_X_API_Key>

Body

NameTypeDescription

email

string

User email id (Ex. - shanu@lync.world)

apiKey

string

Your api key generated from official website of Lync

network

number

1 or 2 (1 for Mainnet & 2 for Testnet)

Response

{
  "success": true,
  "status": 200,
  "message": "User profile fetched successfully.",
  "data": {
    "id": "<ObjectId>",
    "email": "<user email id>",
    "accountAddress": "<account address of users newly created wallet>",
    "publicKey": "<public key of users newly created wallet>",
    "privateKey": "<private key of users newly created wallet>"
  }
}

Last updated