GetBalance


  • Returns the current balance of an account, measured in the smallest accounting unit Qa (or 10^-12 Zil). This is represented as a String.

  • Returns the current nonce of an account. This is represented as a Number.

Example Request

curl -d '{
"id": "1",
"jsonrpc": "2.0",
"method": "GetBalance",
"params": ["1eefc4f453539e5ee732b49eb4792b268c2f3908"]
}' -H "Content-Type: application/json" -X POST "https://api.zilliqa.com/"

Example Response

{
"id": "1",
"jsonrpc": "2.0",
"result": {
"balance": "18446744073637511711",
"nonce": 16
}
}

HTTP Request

Chain(s)URL(s)
Zilliqa mainnethttps://api.zilliqa.com/
Developer testnethttps://dev-api.zilliqa.com/
Local testnethttp://localhost:4201/
Isolated serverhttp://localhost:5555/

Arguments

ParameterTypeRequiredDescription
idstringRequired"1"
jsonrpcstringRequired"2.0"
methodstringRequired"GetBalance"
paramsstringRequiredAn User's account address of 20 bytes.
Example: "1eefc4f453539e5ee732b49eb4792b268c2f3908"