Volcano API
๐Ÿš€ API Endpoints

๐Ÿ’ณ Wallet Management

Digital wallet, balance, and crypto/fiat account endpoints. 9 endpoints available.

๐ŸŽฏ Quick Stats

๐Ÿ“Š Methods

  • ๐Ÿ” GET: 7 endpoints
  • ๐Ÿ“ POST: 1 endpoints
  • โœ๏ธ PUT: 1 endpoints

๐Ÿ” Authentication

All endpoints in this section use the same authentication methods. Choose one:

๐Ÿ”‘ Bearer Token (Recommended)

For user session authentication

Add to request headers:

Authorization: Bearer YOUR_TOKEN

๐Ÿ”ง API Key

For server-side authentication

Add to request headers:

X-API-KEY: YOUR_API_KEY

โš ๏ธ Important: Do not use both authentication methods simultaneously in the same request.

๐Ÿ”— Endpoints Overview

MethodEndpointDescription
๐Ÿ” GET/wallet/chain-type/{token}Get chain type
๐Ÿ” GET/wallet/addressGet wallet address
๐Ÿ“ POST/wallet/address/generateGenerate a new wallet address
๐Ÿ” GET/wallet/account/cryptoGet wallet crypto account
๐Ÿ” GET/wallet/account/fiatGet wallet fiat account
๐Ÿ” GET/wallet/accountsGet all user accounts (crypto and fiat)
๐Ÿ” GET/wallet/exchange-ratesGet exchange rates
โœ๏ธ PUT/wallet/exchange-ratesNo description
๐Ÿ” GET/wallet/account/systemGet wallet accounts for system

๐Ÿ“– Detailed Documentation

Get chain type

GET/wallet/chain-type/{token}
Full URL
https://api.market.decenctype.com/wallet/chain-type/{token}

๐ŸŽฏ Path Parameters

  • token (string) - โœ… Required: No description

Description: Get chain type

Operation ID: getChainType

Response Status:

  • โœ… 200: The found chain type

๐Ÿ“ Example Request

curl -X GET "https://api.market.decenctype.com/wallet/chain-type/example-token" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json"

Get wallet address

GET/wallet/address
Full URL
https://api.market.decenctype.com/wallet/address

๐Ÿ“‹ Query Parameters

ParameterTypeRequiredDescription
typestringโœ…ๅœฐๅ€็ฑปๅž‹๏ผŒ็”จๆˆทๅœฐๅ€ๆˆ–ๅ•†ๆˆทๅœฐๅ€
chainTypestringโœ…้“พ็ฑปๅž‹
ignoreStatusbooleanโŒๆ˜ฏๅฆๅฟฝ็•ฅๅœฐๅ€็Šถๆ€

Description: Get wallet address

Operation ID: getAddress

Response Status:

  • โœ… 200: The found record

๐Ÿ“‹ Response Examples

response.json
1[
2 {
3 "chainAddressId": "c0a80121-7ac0-4e1c-9d67-a6b5e7b7c8d9",
4 "chainAddress": "0x1234567890abcdef1234567890abcdef12345678",
5 "chainType": "ETH",
6 "type": "user",
7 "userId": "c0a80121-7ac0-4e1c-9d67-a6b5e7b7c8d9",
8 "merchantId": "c0a80121-7ac0-4e1c-9d67-a6b5e7b7c8d9",
9 "status": "active"
10 }
11]

๐Ÿ“ Example Request

curl -X GET "https://api.market.decenctype.com/wallet/address" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json"

Generate a new wallet address

POST/wallet/address/generate
Full URL
https://api.market.decenctype.com/wallet/address/generate

๐Ÿ“ Request Body Parameters

ParameterTypeRequiredDescription
chainTypestringโœ…Chain Type
chainIdstringโœ…Chain ID
aliasstringโŒAlias of the address
merchantIdstringโŒMerchant ID

Description: Generate a new wallet address

Operation ID: generateAddress

Response Status:

  • โœ… 201: Success

Merchant ID is only required for merchant type

๐Ÿ“‹ Response Examples

response.json
1{
2 "chainAddressId": "c0a80121-7ac0-4e1c-9d67-a6b5e7b7c8d9",
3 "chainAddress": "0x1234567890abcdef1234567890abcdef12345678",
4 "chainType": "ETH",
5 "type": "user",
6 "userId": "c0a80121-7ac0-4e1c-9d67-a6b5e7b7c8d9",
7 "merchantId": "c0a80121-7ac0-4e1c-9d67-a6b5e7b7c8d9",
8 "status": "active"
9}

๐Ÿ“ Example Request

curl -X POST "https://api.market.decenctype.com/wallet/address/generate" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json" \\
  -d '{
  "chainType": "example-chainType",
  "chainId": "example-id"
}'

Get wallet crypto account

GET/wallet/account/crypto
Full URL
https://api.market.decenctype.com/wallet/account/crypto

๐Ÿ“‹ Query Parameters

ParameterTypeRequiredDescription
accountTypestringโœ…Type of account (็คบไพ‹: user)
tokenstringโœ…Cryptocurrency token type (็คบไพ‹: USDT)

Description: Get wallet crypto account

Operation ID: getCryptoAccount

Response Status:

  • โœ… 200: The found crypto account record

๐Ÿ“‹ Response Examples

response.json
1{
2 "accountBalance": 1,
3 "accountBalanceFrozen": 1,
4 "accountToken": {},
5 "accountId": "example-id",
6 "userId": "example-id",
7 "merchantId": "example-id",
8 "accountType": {},
9 "accountStatus": {}
10}

๐Ÿ“ Example Request

curl -X GET "https://api.market.decenctype.com/wallet/account/crypto" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json"

Get wallet fiat account

GET/wallet/account/fiat
Full URL
https://api.market.decenctype.com/wallet/account/fiat

๐Ÿ“‹ Query Parameters

ParameterTypeRequiredDescription
accountTypestringโœ…Type of account (็คบไพ‹: user)
currencystringโœ…Fiat currency type (็คบไพ‹: USD)

Description: Get wallet fiat account

Operation ID: getFiatAccount

Response Status:

  • โœ… 200: The found fiat account record

๐Ÿ“‹ Response Examples

response.json
1{
2 "accountBalance": 1,
3 "accountBalanceFrozen": 1,
4 "accountCurrency": {},
5 "accountId": "example-id",
6 "userId": "example-id",
7 "merchantId": "example-id",
8 "accountType": {},
9 "accountStatus": {}
10}

๐Ÿ“ Example Request

curl -X GET "https://api.market.decenctype.com/wallet/account/fiat" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json"

Get all user accounts (crypto and fiat)

GET/wallet/accounts
Full URL
https://api.market.decenctype.com/wallet/accounts

๐Ÿ“‹ Query Parameters

ParameterTypeRequiredDescription
ignoreStatusbooleanโŒWhether to ignore account status

Description: Get all user accounts (crypto and fiat)

Operation ID: getAllUserAccounts

Response Status:

  • โœ… 200: All user accounts retrieved successfully

๐Ÿ“‹ Response Examples

response.json
1{
2 "fiatAccounts": [
3 {
4 "accountBalance": 1,
5 "accountBalanceFrozen": 1,
6 "accountCurrency": {},
7 "accountId": "example-id",
8 "userId": "example-id",
9 "merchantId": "example-id",
10 "accountType": {},
11 "accountStatus": {}
12 }
13 ],
14 "cryptoAccounts": [
15 {
16 "accountBalance": 1,
17 "accountBalanceFrozen": 1,
18 "accountToken": {},
19 "accountId": "example-id",
20 "userId": "example-id",
21 "merchantId": "example-id",
22 "accountType": {},
23 "accountStatus": {}
24 }
25 ]
26}

๐Ÿ“ Example Request

curl -X GET "https://api.market.decenctype.com/wallet/accounts" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json"

Get exchange rates

GET/wallet/exchange-rates
Full URL
https://api.market.decenctype.com/wallet/exchange-rates

๐Ÿ“‹ Query Parameters

ParameterTypeRequiredDescription
fromstringโœ…ๅŸบ็ก€่ดงๅธ็ฑปๅž‹ (็คบไพ‹: USDT,USDC,BTC,ETH)
tostringโœ…็›ฎๆ ‡่ดงๅธ็ฑปๅž‹๏ผŒๅคšไธชไปฅ้€—ๅทๅˆ†้š” (็คบไพ‹: USD,EUR)

Description: Get exchange rates

Operation ID: getExchangeRates

Response Status:

  • โœ… 200: The found exchange rates

๐Ÿ“‹ Response Examples

response.json
1[
2 {
3 "rateId": 1,
4 "fromCurrency": "example-fromCurrency",
5 "toCurrency": "example-toCurrency",
6 "exchangeRate": 1
7 }
8]

๐Ÿ“ Example Request

curl -X GET "https://api.market.decenctype.com/wallet/exchange-rates" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json"

PUT /wallet/exchange-rates

PUT/wallet/exchange-rates
Full URL
https://api.market.decenctype.com/wallet/exchange-rates

๐Ÿ” Authentication: Required (see authentication section above)

Operation ID: updateExchangeRates

Response Status:

  • โœ… 200: Success

๐Ÿ“ Example Request

curl -X PUT "https://api.market.decenctype.com/wallet/exchange-rates" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json"

Get wallet accounts for system

GET/wallet/account/system
Full URL
https://api.market.decenctype.com/wallet/account/system

๐Ÿ” Authentication: Required (see authentication section above)

Description: Get wallet accounts for system

Operation ID: getSystemAccount

Response Status:

  • โœ… 200: The found system account record

This endpoint is used to get the system account information, and can only be invoked by admin.

๐Ÿ“‹ Response Examples

response.json
1{
2 "cryptoAccounts": [
3 {
4 "accountBalance": 1,
5 "accountBalanceFrozen": 1,
6 "accountToken": {},
7 "accountId": "example-id",
8 "userId": "example-id",
9 "merchantId": "example-id",
10 "accountType": {},
11 "accountStatus": {}
12 }
13 ],
14 "fiatAccounts": [
15 {
16 "accountBalance": 1,
17 "accountBalanceFrozen": 1,
18 "accountCurrency": {},
19 "accountId": "example-id",
20 "userId": "example-id",
21 "merchantId": "example-id",
22 "accountType": {},
23 "accountStatus": {}
24 }
25 ]
26}

๐Ÿ“ Example Request

curl -X GET "https://api.market.decenctype.com/wallet/account/system" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json"