DAB API
Please login at portal.dab.one, under profile to get your access key and token Registration is required to use API. Each API call is limited to 1000 r/s. When call exceeds limit, you will get 429 error.
V1.0
23
API Server

login

4

Login with key & secret

METHOD
POST
URL

https://api.dab.one/api/users/login

REFERENCE

Login Method.

PARAMETERS
api-key string api key
api-secret string api secret
/
api
/
users
/
login
URL
POST api.dab.one/api/users/login
Request
{ "api-key": "bd33e759d3e387", "api-secret": "508a1248565d235c012725970758b977131afa5a5005d2ba5c55b2b2596f29a9" }
Response
Status: 201
BODY
{ "token_type": "Token", "email": "", "username": "", "token": "", "token_expire": 900, "refresh_token": "", "first_name": "", "last_name": "", "company": "" }

Request Password Reset Code

METHOD
POST
URL

https://api.dab.one/api/users/forgot

REFERENCE

Request Password Reset Code

PARAMETERS
email string email
/
api
/
users
/
forgot
URL
POST api.dab.one/api/users/forgot
Request
{ "email" : "" }
Response
Status: 201
BODY
{ "message": "Password reset code has been sent" }

Password Reset

METHOD
POST
URL

https://api.dab.one/api/users/forgot

REFERENCE

Password Reset

PARAMETERS
email string email
/
api
/
users
/
forgot
URL
POST api.dab.one/api/users/forgot
Request
{ "email" : "", "password": "", "reset_code" : "" }
Response
Status: 201
BODY
{ "message": "Password has been updated." }

Refresh Token

METHOD
GET
URL

https://api.dab.one/api/users/refresh/{refresh_token}

REFERENCE

Refresh Token

PARAMETERS
/
api
/
users
/
refresh
/
{refresh_token}
URL
GET api.dab.one/api/users/refresh/{refresh_token}
Request
Response
Status: 200
BODY
{ "email": "", "username": "", "token": "", "token_expire": 0, "refresh_token": "", "firstName": "", "lastName": "" }

user

4

User Info

METHOD
GET
URL

https://api.dab.one/api/user

REFERENCE

Get current user information

PARAMETERS
/
api
/
user
URL
GET api.dab.one/api/user
Request
{ "authorization": "Token xxxxx" }
Response
Status: 200
BODY
{ "email": "", "username": "", "firstName": "", "lastName": "", "company": "" }

Update User

METHOD
PUT
URL

https://api.dab.one/api/user

REFERENCE

Update User Infomation

PARAMETERS
email string Email
username string username
password string Password
password_confirmation string Password Confirmation
firstName string First Name
lastName string Last Name
company string Company
/
api
/
user
URL
PUT api.dab.one/api/user
Request
{ "email": "", "username": "", "password": "", "password_confirmation": "", "firstName" : "", "lastName" : "", "company" : "" }
Response
Status: 200
BODY
{ "email": "", "username": "" }

Re-Generate Key and Secret

METHOD
POST
URL

https://api.dab.one/api/user/api-token

REFERENCE

Re-generate API Key and Secret

PARAMETERS
/
api
/
user
/
api-token
URL
POST api.dab.one/api/user/api-token
Request
Response
Status: 201
BODY
{ "secret": "", "key": "" }

Logout

METHOD
GET
URL

https://api.dab.one/api/user/logout

REFERENCE

Logout

PARAMETERS
/
api
/
user
/
logout
URL
GET api.dab.one/api/user/logout
Request
Response
Status: 200
BODY
{ "message": "Successful" }

blocks

1

List of blocks

METHOD
GET
URL

https://api.dab.one/api/blocks

REFERENCE

Blocks List

PARAMETERS
blockchain string eth, btc
limit integer limit
skip integer skip
orderBy string _id
direction string asc, desc
/
api
/
blocks
URL
GET api.dab.one/api/blocks
Request
Response
Status: 200
BODY
{ "items": [ { "blockNumber": ", "timestamp": "", "txCount": "" } ] }

transactions

2

Search

METHOD
POST
URL

https://api.dab.one/api/transactions

REFERENCE

Transactions Search

PARAMETERS
limit integer limit
skip integer skip
orderBy string orderBy [blockNumber, time, value
direction string direction [asc, desc]
count integer count only
/
api
/
transactions
URL
POST api.dab.one/api/transactions
Request
Response
Status: 201
BODY
{ // ETH response "items": [ { "blockNumber": xxxx, "from": "xxxxx", "timestamp": xxxxx, "to": "xxxxx", "value": xxxx, "time": xxxxx, "_id": "xxxxx" } ], // BTC response "items": [ { "blockNumber": xxx, "blockhash": "xxxxx", "blocktime": xxx, "locktime": 0, "time": xxx, "timestamp": xxx, "txid": "xxxxx", "vin": [], "vout": [], "_id": "xxxxxx" } ], // ETH and BTC response "pagination": { "limit": 10, "skip": 0, "total": 1, "accuracy": "eq" } }

Get Transaction Info

METHOD
GET
URL

https://api.dab.one/api/transactions/{blockchain}/tx/{hash}

REFERENCE

Get Transaction Info

PARAMETERS
/
api
/
transactions
/
{blockchain}
/
tx
/
{hash}
URL
GET api.dab.one/api/transactions/{blockchain}/tx/{hash}
Request
Response
Status: 200
BODY
{ "items": [ { "_id": "xxxxx", "hash": "xxxxx", "blockHash": "xxxxx", "blockNumber": xxxxx, "createdAt": xxxxx, "from": "xxxxx", "gas": xxxxx, "gasPrice": "xxxx", "input": "xxx", "nonce": x, "r": "xxxxx", "s": "xxxxx", "time": xxxxx, "timestamp": xxxxx, "to": "xxxx", "transactionIndex": xxx, "txid": "xxxxx", "v": "xxxx", "value": xx } ] }

chain-overview

2

Chain Overview Top Received

METHOD
POST
URL

https://api.dab.one/api/research/chain?limit=i

REFERENCE

Chain Overview Top Received

PARAMETERS
/
api
/
research
/
chain?limit=i
URL
POST api.dab.one/api/research/chain?limit=i
Request
Response
Status: 201
BODY
{ "conditionsUsed": { "chain": "lend", "minValue": 1, "time": { "gte": 1574711806, "lte": 1575226348 }, "direction": "received", "sort": { "value": "desc" }, "tools": { "sum": true }, "limit": "10" }, "items": [ { "poi": "0x3f5ce5fbfe3e9af3971dd833d26ba9b5c936f0be", "poiSize": 106, "data": 10359528 }, { "poi": "0x8193c2b585f3de9f0b54179351d3e31ad18377e8", "poiSize": 42, "data": 4003212 }, { "poi": "0x858073b3b136e42585958b94a9606a1522f3cbea", "poiSize": 15, "data": 1093542 }, { "poi": "0x923ffaf4c58342cf0b3b508d3ae766b51f28a357", "poiSize": 13, "data": 681113 }, { "poi": "0x0b012feaf9ad02d4f077138ed5036537f19deb18", "poiSize": 9, "data": 570778 }, { "poi": "0xc4441893f33c073e0397867d8f431c0d3d77c114", "poiSize": 12, "data": 539910 }, { "poi": "0x0d0707963952f2fba59dd06f2b425ace40b492fe", "poiSize": 8, "data": 528259 }, { "poi": "0x7c94dd2f5a7d61a9b32dce482c6d855f79da40ce", "poiSize": 13, "data": 478134 }, { "poi": "0xfd95fb2ae399bb3ec9f19a1cb25de1220a760a6c", "poiSize": 12, "data": 470259 }, { "poi": "0xf73c3c65bde10bf26c2e1763104e609a41702efe", "poiSize": 11, "data": 282625 } ] }

Chain Matrix

METHOD
POST
URL

https://api.dab.one/api/research/chain?limit=n

REFERENCE

Chain Matrix

PARAMETERS
/
api
/
research
/
chain?limit=n
URL
POST api.dab.one/api/research/chain?limit=n
Request
Response
Status: 201
BODY
{ "conditionsUsed": { "chain": "eth", "minValue": 1, "time": { "gte": 1574711806, "lte": 1575226348 }, "direction": "received", "sort": { "value": "desc" }, "tools": { "matrix_stats": true }, "limit": "1" }, "items": [ { "poi": "0x3f5CE5FBFe3E9af3971dD833D26bA9b5C936f0bE", "poiSize": 9011, "data": [ { "name": "value", "count": 9011, "mean": 42.72466984796358, "variance": 87664.09055559298, "skewness": 26.197807398590946, "kurtosis": 944.8030447913707, "covariance": { "value": 87664.09055559298, "time": 139253.1984164448 }, "correlation": { "value": 1, "time": 0.003254342185406582 } }, { "name": "time", "count": 9011, "mean": 1574957203.8181112, "variance": 20886332835.44088, "skewness": 0.10779150349466217, "kurtosis": 1.9123066465435532, "covariance": { "value": 139253.1984164448, "time": 20886332835.44088 }, "correlation": { "value": 0.003254342185406582, "time": 1 } } ] } ] }

events

5

Get events

METHOD
GET
URL

https://api.dab.one/api/user/events

REFERENCE

Update Webhook

PARAMETERS
/
api
/
user
/
events
URL
GET api.dab.one/api/user/events
Request
Response
Status: 200
BODY
{ "items": [ { "id": "5d598df9f9c022713c028859", "name": "abc", "address": "Ae2d6qj91YL3LVUMkza7WQsaTYjzjHm4z1", "blockchain": "eth", "on": "receive", "action": "webhook", "status": true } ], "pagination": { "limit": 10, "total": 1, "skip": 0 } }

Get event

METHOD
GET
URL

https://api.dab.one/api/user/event/{id}

REFERENCE

Update Webhook

PARAMETERS
/
api
/
user
/
event
/
{id}
URL
GET api.dab.one/api/user/event/{id}
Request
Response
Status: 200
BODY
{ "id": "5d598df9f9c022713c028859", "name": "abc", "address": "Ae2d6qj91YL3LVUMkza7WQsaTYjzjHm4z1", "blockchain": "eth", "on": "receive", "action": "webhook", "status": true }

Create Event

METHOD
POST
URL

https://api.dab.one/api/user/events

REFERENCE

Create Event

PARAMETERS
name string name
address string address to watch
transaction string transaction to watch
blockchain string name of blockchain
action enumerated

action to take

webhook string
on enumerated

on for address

send string
received string
all string
largestTx string
/
api
/
user
/
events
URL
POST api.dab.one/api/user/events
Request
{ "id": "5d598df9f9c022713c028859", "name": "abc", "address": "Ae2d6qj91YL3LVUMkza7WQsaTYjzjHm4z1", "transaction": null, "blockchain": "eth", "on": "receive", "action": "email", "status": true }
Response
Status: 201
BODY
{ "id": "5d598df9f9c022713c028859", "name": "abc", "address": "Ae2d6qj91YL3LVUMkza7WQsaTYjzjHm4z1", "transaction": null, "blockchain": "eth", "on": "receive", "action": "email", "status": true }

Update Event

METHOD
PATCH
URL

https://api.dab.one/api/user/event/{id}

REFERENCE

Update Event

PARAMETERS
name string name
address string address to watch
transaction string transaction to watch
blockchain string name of blockchain
action enumerated

action to take

email string
webhook string
on enumerated

on for address

send string
received string
on enumerated

on for transaction

confirmed string
rejected string
error string
/
api
/
user
/
event
/
{id}
URL
PATCH api.dab.one/api/user/event/{id}
Request
{ "name": "abc", "address": "Ae2d6qj91YL3LVUMkza7WQsaTYjzjHm4z1", "blockchain": "eth", "on": "receive", "action": "email" }
Response
Status:
BODY
{ "id": "5d598df9f9c022713c028859", "name": "abc", "address": "Ae2d6qj91YL3LVUMkza7WQsaTYjzjHm4z1", "transaction": null, "blockchain": "eth", "on": "receive", "action": "email", "status": true }

Delete Event

METHOD
DELETE
URL

https://api.dab.one/api/user/event/{id}

REFERENCE

Delete Event

PARAMETERS
/
api
/
user
/
event
/
{id}
URL
DELETE api.dab.one/api/user/event/{id}
Request
Response
Status: 204
BODY
{ "message": "successful" }

webhook

5

Get Webhooks

METHOD
GET
URL

https://api.dab.one/api/user/webhooks

REFERENCE

Update Webhook

PARAMETERS
/
api
/
user
/
webhooks
URL
GET api.dab.one/api/user/webhooks
Request
Response
Status: 200
BODY
[{ "id": "5d58eb37f9c02222aa669663", "name": "abc", "url": "http://www.example.com/api/?", "bearer": "TOKEN", "status": true }]

Get Webhook

METHOD
GET
URL

https://api.dab.one/api/user/webhook/{id}

REFERENCE

Update Webhook

PARAMETERS
/
api
/
user
/
webhook
/
{id}
URL
GET api.dab.one/api/user/webhook/{id}
Request
Response
Status: 200
BODY
{ "id": "5d58eb37f9c02222aa669663", "name": "abc", "url": "http://www.example.com/api/?", "bearer": "TOKEN", "status": true }

Create Webhook

METHOD
POST
URL

https://api.dab.one/api/user/webhook

REFERENCE

Create Webhook

PARAMETERS
url string endpoint
name string name
bearer string token if required
status string true/false active
/
api
/
user
/
webhook
URL
POST api.dab.one/api/user/webhook
Request
{ "url": "http://www.example.com/api/?", "name": "example", "bearer": "TOKEN", "status": true }
Response
Status: 201
BODY
{ "id": "5d58eb37f9c02222aa669663", "name": "abc", "url": "http://www.example.com/api/?", "bearer": "TOKEN", "status": true }

Update Webhook

METHOD
PATCH
URL

https://api.dab.one/api/user/webhook/{id}

REFERENCE

Update Webhook

PARAMETERS
url string endpoint
name string name
bearer string token if required
status string true/false active
/
api
/
user
/
webhook
/
{id}
URL
PATCH api.dab.one/api/user/webhook/{id}
Request
{ "url": "http://www.example.com/api/?", "name": "example", "bearer": "TOKEN", "status": true }
Response
Status:
BODY
{ "id": "5d58eb37f9c02222aa669663", "name": "abc", "url": "http://www.example.com/api/?", "bearer": "TOKEN", "status": true }

Delete Webhook

METHOD
DELETE
URL

https://api.dab.one/api/user/webhook/{id}

REFERENCE

Delete Webhook

PARAMETERS
/
api
/
user
/
webhook
/
{id}
URL
DELETE api.dab.one/api/user/webhook/{id}
Request
Response
Status: 204
BODY
{ "message": "successful" }