Deposit
API Scopes
Need Permission to view deposit history
Deposit
Attrubute Name | Type | Description | Example |
---|---|---|---|
id | number | id of deposit | |
customer_id | string | id of customer | |
asset_symbol | string | symbol of asset | |
amount | string | amount | |
state | string | deposit status, one of "COMPLETED"/"PENDING"/"WITHHOLD"/"CANCELLED" | |
memo | string | momo | |
txid | string | txid of deposit | |
confirmed_at | string | confirmed time | |
inserted_at | string | deposit time | |
confirms | number | number of confirm | |
target_account | string | deposit target account, one of "FUND"/"SPOT"/"CONTRACT"/"OTC"/"EARN"/"NFT" |
Deposit of user
Required read permission of wallet
GET /viewer/deposits
Parameters
Name | Type | Require | Description | Example |
---|---|---|---|---|
page_token | string | false | request page after this page token | |
limit | string | false | defalut 50 | |
kind | string | false | air_drop, big_holder_dividend, default, eosc_to_eos, internal, equally_airdrop, referral_mining, one_holder_dividend, single_customer, snapshotted_airdrop, trade_mining | |
asset_symbol | string | false | asset symbol | BTC |
Response example
{
"code": 0,
"page_token": "eyJvZmZzZXQiOjEwMCwia2luZCI6IlRSQU5TRkVSIn0=",
"data": [{
"id": 6,
"amount": "14.0",
"confirms": 100,
"txid": "513b80e5619155b24fbf0412d59f6256f86b0d69",
"is_internal": false,
"inserted_at": "2018-02-14T11:23:54.000Z",
"updated_at": "2018-09-21T08:28:57.000Z",
"kind": "default",
"memo": "",
"state": "WITHHOLD",
"asset_symbol": "BTS",
"target_account": "FUND"
}, {
"id": 5,
"amount": "25.0",
"confirms": 100,
"txid": "72e03037d144dae3d32b68b5045462b1049a0755",
"is_internal": false,
"inserted_at": "2018-02-16T11:39:58.000Z",
"updated_at": "2018-11-09T10:20:09.000Z",
"kind": "default",
"memo": "",
"state": "WITHHOLD",
"asset_symbol": "BTS",
"target_account": "SPOT"
}]
}
Get deposite address of one asset of user
Required read permission of wallet
GET /viewer/assets/:asset_symbol/address
Response example
{
"code":0,
"message":"",
"data":[{
"id":1,
"chain":"BTC",
"value":"1EVzaFkkNNXq6RJh2oywwJMn8JPiq8ikDi",
"memo":""
}]
}