Wallets

This section give's control for system wallets.
For a wallet to be stored in the DB,it must be provided with a valid address,currency and a label.
Admin logged in - gets data from an external wallet service (the wallet service is connected to a wallet provider) - admin has abillity to create new wallets,and transfer between it's own wallets.
User logged in - can save to his account any wallet he own's (in case the wallet can be verified,and in case the system is supporting this wallet's currency type).

get-all-wallets-list

Returns a list of saved wallets in the system.

SecurityAuthorization
Request
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Responses
200

Success

401

Unauthorized

get/wallets
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

post-new-wallet

Create a new Wallet in the system

SecurityAuthorization
Request
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Request Body schema: application/json
required

raw(json)

address
string
name
string
description
string
protocol
string
currency
string
Responses
200

Success

401

Unauthorized

422

Unprocessable Content

500

Internal Server Error

post/wallets
Request samples
application/json
{
  • "address": "0x1bdb47ce8be9334df9ec0fe096aec74802646e70",
  • "name": "USDC Wallet",
  • "description": "Description of the Wallet",
  • "protocol": "ERC20",
  • "currency": "ETH"
}
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

get-wallets-statistic-list

Return statistics about wallet holdings in supported wallet providers.

SecurityAuthorization
Request
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Responses
200

Success

401

Unauthorized

403

Forbidden

500

Internal Server Error

get/wallets/stats
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

get-wallet-address-for-currency

Returns address for requested currency in path parameter

SecurityAuthorization
Request
path Parameters
currency
required
string

currency path parameter

Example: <currency>
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Responses
200

Success

401

Unauthorized

500

Internal Server Error

get/wallets/{currency}/address
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

get-wallets-list-for-exact-currency

Returns all wallets matching the requested currency

SecurityAuthorization
Request
path Parameters
currency
required
string

currency path parameter

Example: <currency>
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Responses
200

Success

401

Unauthorized

403

Forbidden

500

Internal Server Error

get/wallets/currency/{currency}
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": [
    ]
}

get-wallet's-transfer-list-for-currency

Returns all completed wallet's trnsfers with specific currency

SecurityAuthorization
Request
path Parameters
coin
required
string

coin path parameter

Example: <coin>
wallet_id
required
string

wallet_id path parameter

Example: <wallet_id>
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Responses
200

Success

401

Unauthorized

422

Unprocessable Content

500

Internal Server Error

get/wallets/{coin}/wallet/{wallet_id}/transfers
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

transfer-create-for-specific-wallet-and-currency

Create tranfser for specific wallet and currency

SecurityAuthorization
Request
path Parameters
coin
required
string

coin path parameter

Example: <coin>
wallet_id
required
string

wallet_id path parameter

Example: <wallet_id>
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Request Body schema: application/json
required

raw(json)

walletPassphrase
string
amount
string
address
string
Responses
200

Success

401

Unauthorized

403

Forbidden

422

Unprocessable Content

500

Internal Server Error

post/wallets/{coin}/wallet/{wallet_id}/transfers
Request samples
application/json
{
  • "walletPassphrase": "One Two Three Four Five",
  • "amount": "0.00005",
  • "address": "2NAACTp48adM5vR4sCaXTkBdHjhErrqbfZT"
}
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

post-new-wallet-to-system

Add new wallet to the system

SecurityAuthorization
Request
path Parameters
currency
required
string

curreny path parameter

Example: <currency>
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Request Body schema: application/json
required

raw(json)

walletPassphrase
string
label
string
enterprise
string
type
string
Responses
200

Success

401

Unauthorized

422

Unprocessable Content

500

Internal Server Error

post/wallets/{currency}
Request samples
application/json
{
  • "walletPassphrase": "One Two Three Four Five",
  • "label": "Transfer to Wallet",
  • "enterprise": "63beb21b97ce44000649279dc854c2fd",
  • "type": "hot"
}
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

get-exact-wallet-info

Get info about wallet from the DB by wallet_id.

SecurityAuthorization
Request
path Parameters
currency
required
string

currency path parameter

Example: <wallet_id>
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Responses
200

Success

401

Unauthorized

403

Forbidden

422

Unprocessable Content

500

Internal Server Error

get/wallets/{currency}
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

update-exact-wallet

Update wallet row by wallet_id

SecurityAuthorization
Request
path Parameters
currency
required
string

currency path parameter

Example: <wallet_id>
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Request Body schema: application/json
required

raw(json)

address
string
name
string
description
string
protocol
string
currency
string
Responses
200

Success

401

Unauthorized

422

Unprocessable Content

500

Internal Server Error

put/wallets/{currency}
Request samples
application/json
{
  • "address": "0x1bdb47ce8be9194df9ec0fe096aec74802646e70",
  • "name": "MY ETH WALLET",
  • "description": "my description",
  • "protocol": "ERC20",
  • "currency": "ETH"
}
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

delete-exact-wallet

Delete wallet row by wallet_id

SecurityAuthorization
Request
path Parameters
currency
required
string

currency path parameter

Example: <wallet_id>
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Responses
204

No Content (Success)

401

Unauthorized

403

Forbidden

500

Internal Server Error

delete/wallets/{currency}
Response samples
application/json
{ }