Skip to main content

getBalance

Returns the balance of the account of given address.

Parameters

DATA, 20 Bytes

address to check for balance.

QUANTITY | TAG

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

params: [
' 0x407d73d8a49eeb85d32cf465507dd71d507100c1',
'latest'
]

Returns

QUANTITY

integer of the current balance in nexi.

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_getBalance\",\n\t\"params\":[\n\t\t\"0x407d73d8a49eeb85d32cf465507dd71d507100c1\", \n\t\t\"latest\"\n\t],\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());