Get/Create sub-user's deposit address

Create a deposit address for a sub-user and retrieve it in the marketplace.

๐Ÿšง

The Market API will be discontinued, in Q3 2024 we will be sunsetting this product

Create sub-user's deposit address

Request Endpoint: reference

POST /users/{userId}/deposit-addresses
ParameterParam TypeDescriptionData TypeMandatory
{userId}PathThe sub-user's IDStringโœ…
chainBodyThe blockchain of the deposit addressStringโœ…

Example Request:

POST https://api.venly.market/users/8cf5f1a8-b3bb-4a81-9f1c-c1746d8eb59f/deposit-addresses
{
  "chain": "ETHEREUM"
}

Response Body:

{
  "success": true,
  "result": {
    "userId": "8cf5f1a8-b3bb-4a81-9f1c-c1746d8eb59f",
    "chain": "ETHEREUM",
    "address": "0x7baf9af7ba501e2d11be5d02912aa16029db419e"
  }
}

Get sub-user's deposit address

Request Endpoint: reference

GET /users/{userId}/deposit-addresses
ParameterParam TypeDescriptionData TypeMandatory
{userId}PathThe sub-user's IDStringโœ…

Example Request:

GET https://api.venly.market/users/8cf5f1a8-b3bb-4a81-9f1c-c1746d8eb59f/deposit-addresses

Response Body:

{
  "success": true,
  "result": [
    {
      "userId": "dd4956c5-c292-4996-b7dc-2f4d1e58d6b0",
      "chain": "ETHEREUM",
      "address": "0x0f5cfb63b708dfd90651358cf5f06a208b9ca4ce"
    },
    {
      "userId": "dd4956c5-c292-4996-b7dc-2f4d1e58d6b0",
      "chain": "HEDERA",
      "address": "0.0.2472133",
      "memo": "2682363637"
    }
  ]
}