corepay
Version:
A unified, secure and painless self-hosted cryptocurrency payments processor.
74 lines (57 loc) • 1.64 kB
Markdown
>
<br />
-
- app ***[string]*** -> app name
- core ***[string]*** -> asset core name
-
```json
{
"address": "[string]? -> address to get balance for (to prevent including balances of all addresses)",
"meta": "[object] -> additional params needed to query balance, if any"
}
```
-
```json
{
"balance": "[numstring] -> the queried balance",
"meta": "[object]? -> additional info about returned balance"
}
```
<br />
-
Only include balances from transactions with specified confirmation count.
-
Ethereum token smart contract address. If specified, implies that balance query is of specified token, otherwise Ether balance is queried.
<br />
-
The network type for which balance was queried against.
<br />
-
`POST` http://127.0.0.1:8700/mycryptomall/query-balance/ethereum
```json
{
"address": "0xfcf729b07c12a536f87ee801d3cd8a4c3d4632ea"
}
```
-
- Success `200`
```json
{
"request": "/mycryptomall/query-balance/ethereum",
"error": null,
"result": {
"balance": "3.456003",
"meta": {
"network": "testnet"
}
}
}
```