Skip to main content

call

Executes a new message call immediately without creating a transaction on the block chain.

Parameters

Object

The transaction object

from: DATA, 20 Bytes

(optional) The address the transaction is send from.

to: DATA, 20 Bytes

The address the transaction is directed to.

gas: QUANTITY

(optional) Integer of the gas provided for the transaction execution. jumbo_call consumes zero gas, but this parameter may be needed by some executions.

QUANTITY | TAG

integer block number, or the string "latest", "earliest" or "pending", see the default block parameter

Returns

DATA

the return value of executed contract.

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_call\",\n\t\"params\":[{\n\t\t\"from\": \"\",\n\t\t\"to\": \"\",\n\t\t\"gas\": \"\",\n\t\t\"gasPrice\": \"\",\n\t\t\"value\": \"\",\n\t\t\"data\": \"\"\n\t}, \"latest\"],\n\t\"id\":1\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());