GetStorageAt

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: [ '0x2b5634c42055806a59e9107ed44d43c426e58258', 'latest' ]

Returns

  • QUANTITY - integer of the current balance in wei.
POSThttps://tomo.nownodes.io/getStorageAt
Body
jsonrpc*string
method*string
params*array of string
id*integer (int32)
Response

Successful Operation

Request
const response = await fetch('https://tomo.nownodes.io/getStorageAt', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "jsonrpc": "2.0",
      "method": "eth_getStorageAt",
      "params": [
        "0x295a70b2de5e3953354a6a8344e616ed314d7251",
        "0x0",
        "latest"
      ],
      "id": 1
    }),
});
const data = await response.json();