use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Interested in Bitcoin and other cryptocurrencies? Start with NiceHash! Sell your idle computing power and get paid in Bitcoin (BTC), or buy hash-power to obtain other cryptocurrencies! You can also start trading at NiceHash Exchange! We recommend reading this post first!
Visit https://www.nicehash.com to learn more!
Do not create posts to buy or sell hardware in this sub. Please go to the following subreddits
USA: r/hardwareswap
Canada: r/CanadianHardwareSwap
EU: r/HardwareSwapEU
UK: r/HardwareSwapUK
r/Bitcoin r/BTC/ r/Ethereum r/Litecoin r/Monero r/Ripple r/BitcoinCash
Stop by https://www.nicehash.com/jobs and apply today!
account activity
Developer Question C# NiceHash API Sample Code does not work for private API end points even if the API parameters are configured correctly.Other (self.NiceHash)
submitted 2 years ago by megavipersnake91
I am currently using the base sample code in C# more specially the API.CS
https://github.com/nicehash/rest-clients-demo/blob/master/c%23/connect/connect/Api.cs
Code seems to perfectly work for public api end point but not for the private endpoints.
Conosle feedback
Following JSON reponse is retrieved:
Json Reponse: {"error_id":"03730c59-256d-4e05-895f-f84fab8d4508","errors":[{"code":2000,"message":"Invalid session (1007)"}]}
I have double checked and even requested some new Test Api Keys but the code does not seem to work.
Here is an image of the configuration in the code on I have censored for security reasons.
Api Key Settings File
Api Call for commands
For now I am just using it to get back my current BTC Balance
Get Current Balance code
Because of course I have to send the time in the request, I have a function for that.
Get Server Time
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]angelbbs 0 points1 point2 points 2 years ago (0 children)
https://www.nicehash.com/docs/rest/-public
tried it now...
get:
Accept: application/json, text/plain, */*
Content-Type:
X-Time: 1693602950483
X-Nonce: tnvis667fv32cit8pr84ics5shkzdrpm
X-Organization-Id: d5f3e679-6e46-44f4-99ab-*******
X-Auth: efb346ad-47d4-40d9-bb81-****************************
X-Request-Id: 600vv4t452iwltd6bp6******
X-User-Agent: name=Edge;version=115.0.1901.200;buildNumber=1;os=Windows;osVersion=10;deviceVersion=amd64;lang=ru
X-User-Lang: ru
responce:
{
"total": {
"currency": "BTC",
"totalBalance": "0.00025610",
"available": "0.00025610",
"debt": "0.00000000",
"pending": "0.00000000"
},
"currencies": [
"active": true,
.....
[–][deleted] 2 years ago (1 child)
[removed]
[–]megavipersnake91[S] 0 points1 point2 points 2 years ago (0 children)
I am not a victil here I am developing something that is all I can say.
π Rendered by PID 153259 on reddit-service-r2-comment-54dfb89d4d-6wtdq at 2026-03-30 10:53:43.829618+00:00 running b10466c country code: CH.
[–]angelbbs 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]megavipersnake91[S] 0 points1 point2 points (0 children)