🌐Network
Needs Account Authentication
This route returns all the blockchain networks of our app.The route first queries the database for all the networks present.The route then returns the networks found.
Successful
Unauthorized
Not Found
Internal Server Error
GET /api/v1/networks HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
"ok": true,
"result": {
"networks": [
{
"id": "11839fbd-0b72-4704-86cb-04db0ca40a13",
"network": "ethereum"
}
]
}
}
Needs Account Authentication
This route adds networks to a given wallet in our database.The route first queries the database for the wallet by address.The route then adds the given networks to the wallet.
11839fbd-0b72-4704-86cb-04db0ca40a13
Successful
Bad Request
Unauthorized
Not Found
Internal Server Error
POST /api/v1/networks/wallet HTTP/1.1
Host: www.dyorbackend.tk
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"networkIds": [
"11839fbd-0b72-4704-86cb-04db0ca40a13"
]
}
{
"ok": true,
"result": {}
}
Needs Account Authentication
This route returns the balance of the wallet on blockchain networks.The route first queries the database for all the networks related to the wallet.The route then returns balances of the wallet on those networks.
Successful
Unauthorized
Not Found
Internal Server Error
GET /api/v1/networks/wallet/balance HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
"ok": true,
"result": {
"networksBalance": [
{
"network": "ethereum",
"balance": 768
}
]
}
}
Last updated