Wallet API
Wallet Service API
AUTHORIZATION - Bearer Token
This folder is using Bearer Token
-------------------------------------------------------------------------------------------------
Domain Code
Wallet Type
Type | Domain Code | desc |
---|---|---|
WALLET_TYPE_HD_WALLET | 1002001 | HD Wallet(Internal) |
WALLET_TYPE_EXTERNAL_WALLET | 1002002 | External wallet |
NFTs Supported
Type | Domain Code | desc |
---|---|---|
OWNER_OF_IN_STOCK | 1005001 | NFT in stock |
OWNER_OF_FOR_SALE | 1005002 | NFT for sale |
OWNER_OF_SOLD_OUT | 1005003 | NFT sold out |
OWNER_OF_BURN | 1005004 | NFT burned |
OWNER_OF_EXTERNAL_TRANSFER_OUT | 1005005 | NFT external withdrawl |
NFTs Type
Type | Domain Code | desc |
---|---|---|
NFT_TYPE_GAME | 1015001 | NFT of game |
NFT_TYPE_BASIC | 1015002 | NFT of gallery |
NFT_TYPE_SPECIAL | 1015003 | NFT of membership |
GET
---------------------------------------------------------------------------------------------------
Search - Wallet List
GET
https://apis.cubeapi.io/v1/wallets
List of wallets mapped to ssess
Query Parameters
Name | Type | Description |
---|---|---|
pageNo | Int | default: 1 |
pageSize | Int | default: 20 |
Search - Wallet detail by Wallet Id (wid)
GET
https://apis.cubeapi.io/v1/wallets/{wid}
Path Parameters
Name | Type | Description |
---|---|---|
wid* | Int | wallet id |
Search - Wallet Total Balance by Wallet Id (the market price)
GET
https://apis.cubeapi.io/v1/wallets/{wid}/balance
Inquire the conversion amount of all assets held in the wallet (USD, KRW)
Path Parameters
Name | Type | Description |
---|---|---|
wid* | Int | wallet id |
Search - assets for Dashboard
GET
https://apis.cubeapi.io/v1/wallets/{wid}/assets-all
Inquire information such as quantity and conversion amount of all assets held in the wallet
Search Guide - one of the list
1./v1/wallets/:wid/assets-all?fncyYn=Y&cubeYn=N&gcoinYn=N&defaultYn=Y 2./v1/wallets/:wid/assets-all?fncyYn=N&cubeYn=Y&gcoinYn=N&defaultYn=Y 3./v1/wallets/:wid/assets-all?fncyYn=Y&cubeYn=N&gcoinYn=Y&defaultYn=Y 4./v1/wallets/:wid/assets-all?fncyYn=N&cubeYn=Y&gcoinYn=Y&defaultYn=Y 5./v1/wallets/:wid/assets-all?fncyYn=N&cubeYn=N&gcoinYn=N&defaultYn=Y 6./v1/wallets/:wid/assets-all?fncyYn=N&cubeYn=N&gcoinYn=N&defaultYn=N
Path Parameters
Name | Type | Description |
---|---|---|
wid* | Int | wallet id |
Query Parameters
Name | Type | Description |
---|---|---|
fncyYn | String | Y | N |
cubeYn | String | Y | N |
gcoinYn | String | Y | N |
defaultYn | String | Y | N |
pageNo | Int | default: 1 |
pageSize | Int | default: 20 |
Search - User wallet asset
GET
https://apis.cubeapi.io/v1/wallets/{wid}/assets/{assetId}
Path Parameters
Name | Type | Description |
---|---|---|
wid* | Int | wallet id |
assetId* | Int | asset id you want to search |
Search - List of NFT
GET
https://apis.cubeapi.io/v1/wallets/{wid}/nfts
Search Guide
1.Full NFT search by NFTs type
-nftType: [game | basic | special]
-ownerOf: ""
2."in stokc" NFT Search by NFTs type
-nftType: [game | basic | special]
-ownerOf: "instock"
3."for sale" NFT Search by NFTs type
-nftType: [game | basic | special]
-ownerOf: "forsale"
4."holderAuth" NFT Saerch
-nftType: [game | basic | special]
-ownerOf: ""
-holderAuthYn: "Y"
Path Parameters
Name | Type | Description |
---|---|---|
wid* | Int | wallet id |
Query Parameters
Name | Type | Description |
---|---|---|
ntfType | String | game | basic | spectial (empty for full search) |
ownerOf | String | instock | forsale | soldout (empty for full search) |
holderAuthYn | String | Y | N (empty for full search) |
pageNo | Int | default: 1 |
pageSize | Int | default: 20 |
Search - NFT detail
GET
https://apis.cubeapi.io/v1/wallets/{wid}/nfts/{nftId}
Path Parameters
Name | Type | Description |
---|---|---|
wid* | Int | wallet id |
nftid* | String | NFT id managed by the wallet server |
Search - List of questions for restoration
GET
https://apis.cubeapi.io/v1/questions
Path Parameters
Name | Type | Description |
---|---|---|
fid* | Int | metaverse flatform id |
Query Parameters
Name | Type | Description |
---|---|---|
pageNo | Int | default: 1 |
pageSize | Int | default: 20 |
POST
---------------------------------------------------------------------------------------------------
Create - FNCY HD Wallet(Internal)
POST
https://apis.cubeapi.io/v1/wallets
Request Body
Name | Type | Description |
---|---|---|
chainId* | Int | Chain id managed by wallet server |
WalletNm* | String | Alias of wallet |
rsaEncryptUserQuestion* | String | Encrypted value with rsa public key after sha256 hash of user question |
rsaEncryptUserAnswer* | String | Encrypted value with rsa public key after sha256 hash of user answer |
rsaEncryptUserPin* | String | Encrypted value with rsa public key after sha256 hash of password |
Create - External Wallet
POST
https://apis.cubeapi.io/v1/wallets/external
Request Body
Name | Type | Description |
---|---|---|
chainId* | Int | Chain id managed by wallet server |
WalletNm* | String | Alias of wallet |
rsaEncryptUserQuestion* | String | Encrypted value with rsa public key after sha256 hash of user question |
rsaEncryptUserAnswer* | String | Encrypted value with rsa public key after sha256 hash of user answer |
rsaEncryptUserPin* | String | Encrypted value with rsa public key after sha256 hash of password |
rsaEncryptExternalPrivateKey* | String | Encrypted value of private key with rsa public key |
Check - Wallet password
POST
https://apis.cubeapi.io/v1/wallets/pin-check
Encryption process
String text = "12345";
byte[] hashKey = text.getBytes();
hashKey = Hash.sha256(hashKey)
hashKey = Hash.sha256(hashKey)
hashKey -> rsa publick key
Request Body
Name | Type | Description |
---|---|---|
rsaEncryptedHashedPin* | String | Encypted value of password with sha256 hash twice and Encypted with member`s public key |
Check - Question Answer
POST
https://apis.cubeapi.io/v1/wallets/answer-check
Encryption process
String text = "12345";
byte[] hashKey = text.getBytes();
hashKey = Hash.sha256(hashKey)
hashKey = Hash.sha256(hashKey)
hashKey -> rsa public key
Request Body
Name | Type | Description |
---|---|---|
rsaEncryptedHashedAnswer* | String | Encypted value of answer(lowercase) with sha256 hash twice and Encypted with member`s public key |
rsaEncryptedHashedAnswerAlter* | String | Encypted value of answer(as it is) with sha256 hash twice and Encypted with member`s public key |
Check - Duplicate External Wallet(validity check)
POST
https://apis.cubeapi.io/v1/wallets/external-check
Request Body
Name | Type | Description |
---|---|---|
rsaEncryptExternalPrivateKey* | String | Encryped value of private key with rsa public key |
Search - Wallet connect signature
POST
https://apis.cubeapi.io/v1/wallets/{wid}/signature
Path Parameters
Name | Type | Description |
---|---|---|
wid* | Int | wallet number you want to search |
Headers
Name | Type | Description |
---|---|---|
dataToSign* | String | Value you want to sign |
rsaEncryptedHashedPin* | String | Encypted value of password with sha256 hash and Encypted with member`s public key |
Search - Wallet private key
POST
https://apis.cubeapi.io/v1/wallets/{wid}/private-key
Request Body
Name | Type | Description |
---|---|---|
oneTimeRsaPubKey* | String | rsa public key generated by the client |
rsaEncryptedHashedPin* | String | Encypted value of password with sha256 hash and Encypted with rsa |
◾ PATCH
---------------------------------------------------------------------------------------------------
Restore - User selected questions for restoration
PATCH
https://apis.cubeapi.io/v1/wallets/restore/answer
Request Body
Name | Type | Description |
---|---|---|
rsaEncryptUserAnswer* | String | Encrypt the value obtained by hashing the user's question answer (lowercase processing) with sha256 2 with the member's rsa public key |
rsaEncryptChangeUserPin* | String | Encrypt the new password sha256 hash with the member's rsa public key |
rsaEncryptUserAnswerAlter* | String | Encrypting the user's question answer (as input) with sha256 hashed value 2 with the member's rsa public key |
Change - Wallet password
PATCH
https://devx-apis.cubeapi.io/v1/wallets/pin
Request Body
Name | Type | Description |
---|---|---|
rsaEncryptUserPin* | String | Encrypted value with rsa public key after sha256 hash of original password |
rsaEncryptChangeUserPin* | String | Encrypted value with rsa public key after sha256 hash of password to be changed |
Last updated