More
referral
Increase your income with Hive. Invite your friends and earn real cryptocurrency!

Hive API v2

Strangly … you are right ! Not a 405 code anymore (i changed nothing ! it’s magic… ) but a 400 ! :sweat_smile:

CODE : 400
Fatal error : Uncaught Exception: Empty input

Do you think it’s my $data sent wich is not correct ?

{
    "miners_config": [
        {
            "miner": "claymore",
            "config": {
                "claymore_user_config": "-di 0"
            }
        }
    ]
}

It seems corrected formatted as in the exemple ?

Thanks for your help !

Your code in first message is absolutely correct - I launched it without any changes and it worked.
Something wrong on your side, maybe request body does not reach the server… Try some another POST and PATCH requests to check if they’re working.

Trying to use the “command” function in the API. I can authenticate and do other things in the API. I want to use the API to turn off the miner. Here is what I’m trying:

curl -s -w ‘\n%{http_code}’ -H ‘Content-Type: application/json’ -H ‘Authorization: Bearer API HASH DELETED’ -X POST -d ‘{“command”: “miner”, “data”: { “action”: “stop” } }’ http://api2.hiveos.farm/api/v2/farms/FARM ID DELETED/workers/WORKER ID DELETED

Here is what I get in response:

{
“message”: “”
}
405

I’m obviously doing something wrong in the JSON request, but I can’t figure it out, even after going through the API docs at https://app.swaggerhub.com/apis/HiveOS/public/2.1-beta#/

Any help is appreciated!

Hello,
You are using wrong endpoint, use this one:
/farms/{farmId}/workers/{workerId}/command

Thanks! I knew I was missing something obvious!

Is there an API to check for pool profitably?

api2.hiveos.farm/api/v2/wallets/{wallet_id}
The pool_balances are all 0 from hiveon pool. Proper for 2miners.

How do I get hiveon pool unpaid balance from the API?

3 Likes

Does anyone have an answer to this?

Getting unauthorized error when trying to access account data. This is since using the new api changes. Any word on when access will be allowed?

PHP example does not work… Does anyone have an example that does work?

Same here…

Same here, does not work.

Same here, having trouble with this for a few days… thought it was just me…

Hi…
I tried using it, I’m getting 'security code is required"
What can cause it…??

Hi there,

I have followed Hive V2 documentation and successfully tested out various features with it. Now, I want to move the code to production and host it on a website. However, upon doing so, all my requests are returned 407.

Upon closer look, I noticed that we’ve gated the API token to a specific IP address, is there a way to bypass this, as my hosting service doesn’t provide a static IP address that we can use.

hi everyone, which Rest Api call did you use to change the flightSheet, and which json body did you send to mine with the new one?
i tried to use this api:

/ farms / {farmId} / workers / {workerId} / reload

and with body jason

{“fs_id”: new_fsId
}

it doesn’t work for me, you have a working example, thanks

it doesn’t work for me, you have a working example, thanks

Hi, i would like to consult information that show in https://hiveon.net/eth?miner=0x… with the API, i am using PHP i have could seen farms, works and other stuff, but no the information that show that page, someboy have done it. Thanks

anyone getting 403 error using JWT token?
i try many times and combinations, but still getting the 403?

any clue?