Documentation
Observer API
Observer API
Observer API
Checked against PoolNode routes, controllers, DTOs and authentication middleware in Rust revision 655097d2a5 (2026-11-02). Upstream response fields not defined locally are not guaranteed by historical examples; only confirmed request contracts are listed here.
POST /api/subaccount/observer requires user JWT. JSON: required sid (u64) and action (u8). The current pool frontend uses 0=create, 1=delete, 2=read. data is the upstream result, used by the frontend as the observer token on success.
{"sid":149,"action":2}
GET /api/subaccount/info?coin=BTC requires RLOBTOKEN: Bearer OBSERVER_TOKEN; user JWT alone is not a substitute. Optional coin defaults to BTC. Read observer subaccount information first, then query statistics with the corresponding ID.
The queries below accept the observer header. Observer mode is for subaccount queries, not writes. An allowed path does not mean Rust locally validates ownership of every supplied sid; final data authorization remains upstream.
GET /api/subaccount/infoGET /api/subaccount/hashrateGET /api/subaccount/profitGET /api/subaccount/hashratedetailGET /api/subaccount/workersGET /api/subaccount/rewardsGET /api/subaccount/payoutsGET /api/subaccount/worker/detailGET /api/coin/hashrate
