Bitcoin Forum
June 16, 2025, 05:23:15 AM *
News: Pizza day contest voting
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Does anyone know where to find the API documentation for Antminer S19 etc?  (Read 195 times)
Many Coins (OP)
Member
**
Offline Offline

Activity: 378
Merit: 19

Stratum v2 Rust (SRI) Developer


View Profile WWW
March 14, 2025, 07:13:40 PM
 #1

Guys, hello!

We have a zoo of miners in our project, but we've only managed to find API documentation for WhatsMiner models.

We also have various Antminer models: L9, S19, T21, etc.

And, surprisingly, I haven't been able to find documentation for controlling them via API.


Our goal is to establish centralized management and monitoring.

Whoever gives good advice is a star! Smiley

tightcable
Newbie
*
Offline Offline

Activity: 8
Merit: 4


View Profile
March 14, 2025, 08:04:25 PM
 #2

What firmware do you have installed on them?
Many Coins (OP)
Member
**
Offline Offline

Activity: 378
Merit: 19

Stratum v2 Rust (SRI) Developer


View Profile WWW
March 15, 2025, 07:30:20 AM
 #3

What firmware do you have installed on them?

Native firmware, I think.

We dont change firmware.

Is it possible to do with native firmware? It's critical for my case?

That is our Antminer models:

Antminer E9       
Antminer K7       
Antminer KA3       
Antminer KS5       
Antminer KS5 Pro       
Antminer L7       
Antminer L9       
Antminer S19       
Antminer S19 Pro       
Antminer S19 XP       
Antminer S19j       
Antminer S19j Pro       
Antminer S19k Pro       
Antminer S21       
Antminer S21 Pro       
Antminer T19       
Antminer T21       
Antminer Z15 Pro

(list is'nt complete)

Many Coins (OP)
Member
**
Offline Offline

Activity: 378
Merit: 19

Stratum v2 Rust (SRI) Developer


View Profile WWW
March 17, 2025, 07:46:56 AM
 #4

Is it true that there's absolutely no documentation available anywhere for the Antminer S19 API?

Hey guys! I've encountered an incredibly strange situation:

it seems that there's no public documentation for the API of Antminer S19 with stock firmware - I'm shocked and refuse to believe it.

Tell me, is this true or not?

tightcable
Newbie
*
Offline Offline

Activity: 8
Merit: 4


View Profile
March 17, 2025, 03:33:45 PM
 #5

Cgminer RPC API is a good place to start (https://github.com/bitmaintech/Antminer_firmware/blob/master/sources/meta-antminer/recipes-bitmianer/cgminer/cgminer-1.0/cgminer-3.12.0_bak/API-README). Luxos has some pretty good docs on the Cgminer API as well (https://docs.luxor.tech/firmware/api/intro).

Custom firmware would help, but it may be tough to find one for some of your less popular Antminer models.

If you have someone with engineering experience it may be possible to reverse engineer the APIs used for the firmware's local UI dashboards.
NotFuzzyWarm
Legendary
*
Offline Offline

Activity: 4032
Merit: 3139


Evil beware: We have waffles!


View Profile
March 17, 2025, 11:43:05 PM
Last edit: March 17, 2025, 11:54:38 PM by NotFuzzyWarm
Merited by mikeywith (4), BitMaxz (1)
 #6

I take it you have never looked at the official cgminer docs in Kano's git? FYI - Kano is the cgminer dev who wrote the API for it and is the sole remaining active original developer for cgminer (-ck abandoned it well over 5 years ago). You will also find all other up-to-date code and docs there.

Don't know if Bitmain has added any new model-specific API calls for the S19's on up to be used with their (hacked) version of cgminer but Kano's API readme is a good place to start and does work with the S19 & S21 chips when using the official cgminer available in Kano's git.

- For bitcoin to succeed the community must police itself -    My info useful? Donations welcome!  3NtFuzyWREGoDHWeMczeJzxFZpiLAFJXYr
 -Sole remaining active Primary developer of cgminer, Kano's repo is here  Discord support invite at https://kano.is/
-Support Sidehacks miner development. Donations to:   1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
mikeywith
Legendary
*
Offline Offline

Activity: 2632
Merit: 6970


Privacy is not a crime.


View Profile
March 18, 2025, 01:30:08 AM
Merited by NotFuzzyWarm (2)
 #7

You could use one of the various APIs posted by the above users, or find some maintained projects like https://github.com/anselal/antminer-monitor/tree/master/config, nothing much has changed since in regards to Antminer API, it's Cgminer that people keep forking, you can either use WebSocket or SSH to control and retrieve various data from your miners, the newer models probably have updated some the things and thus it would require some work to figure out the new features if any.

With that being said, there is really no economic incentive in doing so, for monitoring your miners, there exists free software like BTC tools  https://github.com/Sanberstav/BTCTools

For complete management (100% fully automated), there will be a lot of work involved, I would suggest using things like https://www.awesomeminer.com/signup, the base cost is $2/miner a month, and it gets cheaper the more gears you add, if you have 100 gear you will pay $1.4 / month, to develop something remotely close to awesome miner you will spend many years and tens if not hundreds of thousands of dollars, trust me, been there done that, I have a great experience in programming, spent a few months during my free time playing with different gears, but then eventually when I used AM, I was like WTF was I even doing.  Cheesy

░░░░▄▄████████████▄
▄████████████████▀
▄████████████████▀▄█▄
▄██████▀▀░░▄███▀▄████▄
▄██████▀░░░▄███▀▀██████▄
██████▀░░▄████▄░░░▀██████
██████░░▀▀▀▀▄▄▄▄░░██████
██████▄░░░▀████▀░░▄██████
▀██████▄▄███▀░░░▄██████▀
▀████▀▄████░░▄▄███████▀
▀█▀▄████████████████▀
▄████████████████▀
▀████████████▀▀░░░░
 
 CCECASH 
 
    ANN THREAD    
 
      TUTORIAL      
NotFuzzyWarm
Legendary
*
Offline Offline

Activity: 4032
Merit: 3139


Evil beware: We have waffles!


View Profile
March 19, 2025, 09:08:13 PM
Last edit: March 19, 2025, 09:21:31 PM by NotFuzzyWarm
 #8

Since you also are running altcoin miners using AM would make even more sense as it has coin profits automation to switch them between different coins depending on profitability or other rules you make.

Awesome Miner is of course here in the Forum

- For bitcoin to succeed the community must police itself -    My info useful? Donations welcome!  3NtFuzyWREGoDHWeMczeJzxFZpiLAFJXYr
 -Sole remaining active Primary developer of cgminer, Kano's repo is here  Discord support invite at https://kano.is/
-Support Sidehacks miner development. Donations to:   1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!