Foreman can send daily, weekly or monthly pool reports with your pool-side hash rate, earnings and payouts. To do that, Foreman needs read-only API credentials from your pool. This article covers BraiinsPool, F2Pool and SBICrypto. For AntPool, BTC.com, Foundry USA, Luxor, Poolin and ViaBTC, see How To: Audit Pool Payouts.
Before You Start
- You need permission to edit company settings in Foreman.
- Give Foreman read-only credentials. It never needs permission to trade, withdraw or change pool settings.
- Add a separate key for each pool account or sub-account you want reported on.
BraiinsPool
Braiins Pool uses an access token tied to an access profile.
- Log in to Braiins Pool and go to Settings > Access Profiles.
- Open an existing profile or create a new one (for example, Foreman).
- Select Allow access to web APIs.
- Click Generate New token, copy the token, and click Save. Generating a new token later cancels the old one, so update Foreman if you do.
- In Foreman, open Settings > Mining Pools (open the user menu at the top right, select Settings, then the Mining Pools tile).
- Under Mining Pool API Keys, click Add Key and select BraiinsPool.
- For Username, enter your Braiins Pool username. Foreman requires this field, but the token is what gives it access.
- For Key, enter the access token.
- Leave Secret blank.
- Click Save at the bottom of the page.
Then set up the report: go to Reports, click Add Report, choose Pool Report as the Report Type, and select your BraiinsPool key under Pool. See Quick Guide: Reports.
F2Pool
F2Pool uses an API token. If you don't see an option to create one in your account, contact F2Pool support and ask them to turn on API access.
- Log in to F2Pool and open your account settings.
- Turn on the API service and copy your API token.
- Note the mining account (sub-account) name you want reported on. This is the first part of your miners' worker names.
- In Foreman, open Settings > Mining Pools (open the user menu at the top right, select Settings, then the Mining Pools tile).
- Under Mining Pool API Keys, click Add Key and select F2Pool.
- For Username, enter the mining account name.
- For Key, enter the API token.
- Leave Secret blank.
- Click Save at the bottom of the page.
Then set up the report: go to Reports, click Add Report, choose Pool Report as the Report Type, and select your F2Pool key under Pool. See Quick Guide: Reports.
SBICrypto
SBI Crypto uses an API key and secret, created on the pool website. When you create the key you choose which sub-accounts it can see and what it's allowed to do.
- Log in to the SBI Crypto pool website and create a new API key.
- Select the sub-accounts you want Foreman to report on.
- Give the key the READ and FINANCIALS permissions. FINANCIALS is needed for earnings and payouts. Don't give it UPDATE.
- Set an expiration date if you want one. When the key expires, reports stop until you add a new key in Foreman.
- Copy the API key and API secret.
- To include hash rate in your reports, also create an observer (watcher) key on the pool website and copy it.
- In Foreman, open Settings > Mining Pools (open the user menu at the top right, select Settings, then the Mining Pools tile).
- Under Mining Pool API Keys, click Add Key and select SBICrypto.
- For Username, enter the observer key. Without it, earnings still appear but hash rate shows as 0.
- For Key, enter the API key.
- For Secret, enter the API secret.
- Click Save at the bottom of the page.
Then set up the report: go to Reports, click Add Report, choose Pool Report as the Report Type, and select your SBICrypto key under Pool. See Quick Guide: Reports.
Common Problems
| Symptom | Likely cause | Fix |
|---|---|---|
| The pool report is empty | The key is wrong, expired or missing a permission | Create a new read-only key with the permissions above and update it in Settings > Mining Pools |
| Only one sub-account shows up | Each sub-account needs its own key in Foreman | Add a key for each sub-account |
| BraiinsPool reports stopped | A new token was generated in Braiins Pool | Copy the new token into Foreman |