Register and show off your project at Ethereum QuickPitch and win $10,000. Apply now

Contents

eth_getStorageAt RPC method

The API credit value for this method is 2 . To learn more about API credits and each method's value, visit the API Credits page.

Parameters:

  1. Address - The address to check for storage.
  2. Quantity - Integer of the position in storage.
  3. Quantity | Tag - Integer block number, or the string 'latest, 'earliest' or 'pending. For more information, see the default block parameter description in Ethereum's documentation.

Returns:

  1. Result - the value at this storage position.

Code Examples:

require 'ethereum.rb'
client = Ethereum::HttpClient.new('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/')
storage = client.eth_get_storage_at('0x6C8f2A135f6ed072DE4503Bd7C4999a1a17F824B', 0, 2)
puts storage["result"]
Ready to get started? Create a free account