Skip to main content

submitWork

Used for submitting a proof-of-work solution.

Parameters

account,message

DATA, 8 Bytes

The nonce found (64 bits)

DATA, 32 Bytes

The header's pow-hash (256 bits)

DATA, 32 Bytes

The mix digest (256 bits)

params: [
"0x0000000000000001",
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"
]

Returns

Boolean

returns true if the provided solution is valid, otherwise false.

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 submitWork\", \n\t\"params\":[\n\t\t\"0x0000000000000001\", \n\t\t\"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef\", \n\t\t\"0xD1GE5700000000000000000000000000D1GE5700000000000000000000000000\"\n\t],\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());