Skip to main content

getWork

Returns the hash of the current block, the seedHash, and the boundary condition to be met ("target").

Parameters

>_ no params required

Returns

Array

Array with the following properties:

DATA, 32 Bytes

current block header pow-hash

DATA, 32 Bytes

the seed hash used for the DAG.

DATA, 32 Bytes

the boundary condition ("target"), 2^256 / difficulty.

Requests

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://testnode.jumbochain.org");
var content = new StringContent("{\n\t\"jsonrpc\":\"2.0\",\n\t\"method\":\"jumbo_getWork\",\n\t\"params\":[],\n\t\"id\":73\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());