{"openapi":"3.0.3","info":{"title":"Hashsmith Pool API","description":"Public REST API for the Hashsmith mining pool.","version":"1.0.0"},"servers":[{"url":"https://hashsmith.duckdns.org","description":"Pool server"}],"paths":{"/api/wallet":{"get":{"tags":["Wallet"],"summary":"Wallet balance summary","operationId":"getWallet","parameters":[{"name":"address","in":"query","required":true,"description":"Wallet address (payout address)","schema":{"type":"string"}}],"responses":{"200":{"description":"Wallet status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletStatus"}}}}}}},"/api/walletEx":{"get":{"tags":["Wallet"],"summary":"Extended wallet status including connected miners","operationId":"getWalletEx","parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Extended wallet status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletExtended"}}}}}}},"/api/status":{"get":{"tags":["Pool"],"summary":"Pool hashrate and profitability per algorithm","operationId":"getStatus","responses":{"200":{"description":"Keyed by algo name","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/AlgoStatus"}}}}}}}},"/api/currencies":{"get":{"tags":["Pool"],"summary":"Per-coin mining statistics","operationId":"getCurrencies","responses":{"200":{"description":"Keyed by coin symbol","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CurrencyStatus"}}}}}}}}},"components":{"schemas":{"WalletStatus":{"type":"object","properties":{"unsold":{"type":"number","format":"double","example":0.00050362},"balance":{"type":"number","format":"double","example":0},"unpaid":{"type":"number","format":"double","example":0.00050362},"paid24h":{"type":"number","format":"double","example":0},"total":{"type":"number","format":"double","example":0.00050362}}},"MinerEntry":{"type":"object","properties":{"version":{"type":"string","example":"ccminer/1.8.2"},"password":{"type":"string","example":"d=96"},"ID":{"type":"string","example":""},"algo":{"type":"string","example":"x11"},"difficulty":{"type":"number","example":96},"subscribe":{"type":"integer","example":1},"accepted":{"type":"number","example":82463372.083},"rejected":{"type":"number","example":0}}},"AlgoStatus":{"type":"object","properties":{"name":{"type":"string","example":"x11"},"port":{"type":"integer","example":3533},"coins":{"type":"integer","example":10},"fees":{"type":"number","example":1},"hashrate":{"type":"integer","example":269473938},"workers":{"type":"integer","example":5},"estimate_current":{"type":"string","example":"0.00053653"},"estimate_last24h":{"type":"string","example":"0.00036408"},"actual_last24h":{"type":"string","example":"0.00035620"},"hashrate_last24h":{"type":"integer","example":269473000},"rental_current":{"type":"string","example":"3.61922463"}}},"CurrencyStatus":{"type":"object","properties":{"algo":{"type":"string","example":"bitcore"},"port":{"type":"integer","example":3556},"name":{"type":"string","example":"BitCore"},"height":{"type":"integer","example":18944},"workers":{"type":"integer","example":181},"shares":{"type":"integer","example":392},"hashrate":{"type":"integer","example":7267227499},"24h_blocks":{"type":"integer","example":329},"24h_btc":{"type":"number","example":0.54471295},"lastblock":{"type":"integer","example":18945},"timesincelast":{"type":"integer","example":67}}},"WalletExtended":{"type":"object","properties":{"unsold":{"type":"number","format":"double"},"balance":{"type":"number","format":"double"},"unpaid":{"type":"number","format":"double"},"paid24h":{"type":"number","format":"double"},"total":{"type":"number","format":"double"},"miners":{"type":"array","items":{"$ref":"#/components/schemas/MinerEntry"}}}}}},"tags":[{"name":"Wallet","description":"Per-address balance and miner data"},{"name":"Pool","description":"Pool-wide statistics"}]}