WALLETS

Digital Asset wallets created with the market center

REGISTER WALLET

“registerwallet” This API registers a wallet from internal blockchain or from third party integration (such as Bitgo Prime Trust, and etc.). If wallet does not exist for this user, system will create a new wallet. If corresponding wallet already exists, system will return existing wallet address back.

SAMPLE REGISTER WALLET MESSAGE

  • “security”, required “userid”, optional, for superuser, should specify

  • “userid” to indicate which account this registration is for in the system.

  • {“security”:”TETH”,”type”:”registerwallet”}

SAMPLE REGISTER WALLET RESPONSE

{“result”:”cannot create wallet”,”security”:”TETH”,”type”:”registerwallet”}
{“result”:”OK”,”security”:”TETH”,”type”:”registerwallet”,”wallet”:”5d1
55a674ed9068e0376a5580fdadb54”}

QUERY WALLET

“querywallet” This command queries any existing wallets for the account. For superuser, it should set “account” field.

If you specify “security” field, only corresponding symbol’s wallet will be returned. If no “security” field is specified, system will return all the wallets under the account.

SAMPLE QUERY WALLET MESSAGE

{“result”:”OK”,”data”:[{“userid”:”TEST123”,”security”:”TETH”,”type”:
“walletreg”,”wallet”:”5d155a674ed9068e0376a5580fdadb54”},{“userid”:”TEST123”,”
security”:”TBTC”,”type”:”walletreg”,”wallet”:”5d13cef2c4d18c95039e83b2a1e49b03”}
],”type”:”querywallet”}
{“result”,”no wallet”, “security”:”TEST” ,”type”:”querywallet”}

Last updated