Skip to main content

Using API for register

Postman collection with all endpoints - Using_API_for_register.postman_collection.zip

Register

post
Endpoint POST /api/public/auth/register

Parameters

Request body

  • email

    *

    string

  • password

    *

    string

  • roles

    *

    corporate

  • agent

    *

    string

Responses

  • 200:OK
    {
    "data": {
    "wallets": [
    {
    "id": "string",
    "address": "string",
    "privateKey": "string",
    "mnemonic": "string",
    "actualBalance": "number",
    "systemBalance": "number",
    "passphrase": "string",
    "nodeType": "string"
    }
    ],
    "apiKey": {
    "publicKey": "string",
    "privateKey": "string"
    },
    "userId": "string",
    "merchantId": "string"
    }
    }
  • 200:Example
    {
    "status": "success",
    "data": {
    "wallets": [
    {
    "id": "6672b1c947c449431581c3d4",
    "address": "1HZUwntGZNo48QGURfJ572hcDdkPNbYgFn",
    "privateKey": "eff9c4ccb386f71860c9c0116566c1ce5683dddec757b53b492885dead2cd952",
    "mnemonic": "",
    "actualBalance": "0",
    "systemBalance": "0",
    "passphrase": "949b88f0-5b95-4eb7-8c00-894aad530502",
    "nodeType": "btc"
    },
    {
    "id": "6672b1c947c449431581c37d",
    "address": "0x0DC5eEe689Cc5149c2176B1513Bc1d64FD2f8889",
    "privateKey": "0x35eb8fa4e77123065a897e6ce70e36737369e809b92ecd4a5e26a705a167c0a2",
    "mnemonic": "vessel opinion rain demise slender fiction ancient illness behind roast win rotate",
    "actualBalance": "0",
    "systemBalance": "0",
    "passphrase": "ab156cde-5a2a-4640-817f-001ff0e1ad25",
    "nodeType": "eth"
    },
    ],
    }
    }

Copy link