Create a new wallet

Create a new wallet

POST https://server-fuel-sdk.lync.world/wallet/create-wallet

This endpoint generates a new wallet for the user. Upon creation, a new wallet address and private key are generated. 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 and it will return a newly created wallet's details, including the wallet address and private key. It's recommended to securely store the private key since it is required to access and manage the wallet.

Headers

Name
Value

Content-Type

application/json

x_api_key

<Your_X_API_Key>

Body

Name
Type
Description

email

string

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

apiKey

string

Your api key generated from LYNC Dashboard

network

string

1 or 2 ( 1 for mainnet and 2 for testnet)

{
    "email": "<email address>", // mobile: <mobile>
    "apiKey": "<api key>",
    "network": 2
}

Response

{
    "message": "Wallet created successfully",
    "status": 201,
    "success": true,
    "data": {
        "id": "6703d1687903fc2b1991d545",
        "publicKey": "Public Key",
        "privateKey": "Private Key"
    }
}

Last updated