You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -54,16 +54,16 @@ Below we assume the RPC socket is accessible at `localhost:3000`. On startup the
54
54
| `GET` | [`/chain/signed_snapshot`](#get-chainsigned_snapshot) | Show chain snapshot |
55
55
| `GET` | [`/chain/hashrate/chart/block/:from/:to/:window`](#get-chainhashratechartblockfromtowindow) | Show hashrate chart by block range |
56
56
| `GET` | [`/chain/hashrate/chart/time/:from/:to/:interval`](#get-chainhashratecharttimefromtointerval) | Show hashrate chart by time range |
57
-
| `GET` | [`/chart/candles/:asset/:interval?from=...&to=...&n=...`](#get-chartcandlesassetinterval) | Show OHLCV candle data for a timeframe (5m, 1h, 1d) |
58
-
| `GET` | [`/chart/trades/:asset?from=...&to=...&n=...`](#get-charttradesasset) | Show trade data |
| `GET` | [`/token/complete`](#get-tokencomplete) | Search tokens by name and/or hash prefix |
58
+
| `GET` | [`/asset/complete?namePrefix=...&hashPrefix=...`](#get-assetcomplete) | Search assets by name and/or hash prefix |
59
+
| `GET` | [`/asset/lookup/:asset`](#get-assetlookupasset) | Asset lookup (by ID or hash) |
61
60
| `GET` | [`/market/:market`](#get-marketmarket) | Show market orders and liquidity pool |
61
+
| `GET` | [`/market/:market/order/:historyId`](#get-marketmarketorderhistoryid) | Order history |
62
62
| `GET` | [`/account/:account/mempool`](#get-accountaccountmempool) | Show mempool transactions for account |
63
63
| `GET` | [`/account/:account/open_orders`](#get-accountaccountopen_orders) | Show all open orders for account |
64
64
| `GET` | [`/account/:account/open_orders/:asset`](#get-accountaccountopen_ordersasset) | Show open orders for account and specific asset |
65
65
| `GET` | [`/account/:account/balance/:token`](#get-accountaccountbalancetoken) | Show balance of specific account for a token |
66
-
| `GET` | [`/account/:account/balance_wart`](#get-accountaccountbalance_wart) | Show WART balance of specific account |
66
+
| `GET` | [`/account/:account/wart_balance`](#get-accountaccountwart_balance) | Show WART balance of specific account |
67
67
| `GET` | [`/account/:account/history/:beforeTxIndex`](#get-accountaccounthistorybeforetxindex) | Show transaction history of specific account |
68
68
| `GET` | [`/account/richlist/:token`](#get-accountrichlisttoken) | Show richlist for a specific token |
69
69
| `GET` | [`/peers/ip_count`](#get-peersip_count) | Show peer IP counts |
@@ -77,9 +77,11 @@ Below we assume the RPC socket is accessible at `localhost:3000`. On startup the
77
77
| `GET` | [`/peers/throttled`](#get-peersthrottled) | Show throttled peers |
78
78
| `GET` | [`/peers/transmission_hours`](#get-peerstransmission_hours) | Show transmission data by hours |
79
79
| `GET` | [`/peers/transmission_minutes`](#get-peerstransmission_minutes) | Show transmission data by minutes |
80
+
| `GET` | [`/chart/candles/:asset/:interval?from=...&to=...&n=...`](#get-chartcandlesassetinterval) | Show OHLCV candle data for a timeframe (5m, 1h, 1d) |
81
+
| `GET` | [`/chart/trades/:asset?from=...&to=...&n=...`](#get-charttradesasset) | Show trade data |
80
82
| `GET` | [`/tools/encode16bit/from_e8/:feeE8`](#get-toolsencode16bitfrom_e8feee8) | Round raw 64 integer to closest 16 bit representation |
81
83
| `GET` | [`/tools/encode16bit/from_string/:string`](#get-toolsencode16bitfrom_stringstring) | Round coin amount string to closest 16 bit representation |
Append mined block. Miners must POST mined block they received from `GET /chain/mine/:address`.
455
-
TODO: Detailed description
612
+
Append mined block. Miners must POST mined block they received from `GET /chain/mine/:address` with mined nonce (in header) and extranonce (first 10 bytes in block).
613
+
Output on success: `{"code": 0, data: null}`, example on error: `{"code": <error code>, error: "<error message>"}`.
@@ -484,7 +700,7 @@ Show open orders for a specific account and asset.
484
700
485
701
**TODO: Add JSON output example**
486
702
487
-
### `GET /account/:account/balance/:token`
703
+
### `GET /account/:account/balance/:tokenspec`
488
704
489
705
Show balance of an account for a specific asset. The `:account` parameter is the account address, and `:token` is the token spec (e.g., `asset:0e4825efffa294610d2ac376713e3bcc9b53d378e823834b64e5df01f75d3b0c`).
490
706
@@ -541,11 +757,36 @@ Show open orders for a specific account and asset.
541
757
}
542
758
```
543
759
544
-
### `GET /account/:account/balance_wart`
760
+
### `GET /account/:account/wart_balance`
545
761
546
-
Show WART balance of a specific account.
762
+
Show WART balance (locked, mempool and total) of a specific account. Amount in`mempool` cannot exceed `total - locked`.
547
763
548
-
**TODO: Add JSON output example**
764
+
Example output of `account/2de77d5e23dc63e4c4149d394c979361e9e8e966336c8cd4/wart_balance`:
0 commit comments