# Cyphernode
## API v1 (RESTful)
### Collections
#### watchedAddresses
| Request | Descripton |
|---------|------------|
| `POST /v1/watchedAddresses` | Create new address watch |
| `GET /v1/watchedAddresses` | Get list of watched addresses |
| `GET /v1/watchedAddresses/
` | Get details of watched address |
| `DELETE /v1/watchedAddresses/` | Remove watched address |
##### POST /v1/watchedAddresses
Request body
```
{
"address": ,
"callback":
}
```
Response body - 200 - OK
```
{
"id": ,
"address": ,
"callback": ",
"estimatesmartfee2blocks": ,
"estimatesmartfee6blocks": ,
"estimatesmartfee36blocks": ,
"estimatesmartfee144blocks":
}
```
Response body - 503 - Resource temporarily unavailable
```
{
"reason":
}
```
Response body - 403 - Forbidden
```
{
}
```
##### GET /v1/watchedAddresses
Response body - 200 - OK
```
[
{
"id": ,
"address": ,
"imported": ,
"callback": ,
"watching_since":
},
...
]
```
Response body - 503 - Resource temporarily unavailable
```
{
"reason":
}
```
Response body - 403 - Forbidden
```
{
}
```
##### GET /v1/watchedAddresses/\
Response body - 200 - OK
```
{
"id": ,
"address": ,
"imported": ,
"callback": ,
"watching_since":
}
```
Response body - 503 - Resource temporarily unavailable
```
{
"reason":
}
```
Response body - 403 - Forbidden
```
{
}
```
Response body - 404 - Not found
```
{
}
```
##### DELETE /v1/watchedAddresses/\
Response body - 200 - OK
```
{
"address": "",
"imported": ,
"callback": ,
"watching_since":
}
```
Response body - 503 - Resource temporarily unavailable
```
{
"reason":
}
```
Response body - 403 - Forbidden
```
{
}
```
Response body - 404 - Not found
```
{
}
```
##### Asynchronous callbacks
Request body
```
{
"id": ,
"address": ,
"hash": ,
"vout_n": ,
"sent_amount": ,
"confirmations": ,
"received": ,
"size": ,
"vsize": ,
"fees": ,
"is_replaceable": ,
"blockhash": ,
"blocktime": ,
"blockheight":
}
```
Response body - 200 - OK
```
{
}
```
Response body - 503 - Resource temporarily unavailable
```
{
"reason":
}
```