curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/eth_getStorageAt \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getStorageAt",
"id": 1,
"params": [
"0x407d73d8a49eeb85d32cf465507dd71d507100c1",
"0x0",
"latest"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
TRON API method that returns the value from a storage position at a given address. This method provides Ethereum-compatible interface for TRON blockchain.
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/eth_getStorageAt \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getStorageAt",
"id": 1,
"params": [
"0x407d73d8a49eeb85d32cf465507dd71d507100c1",
"0x0",
"latest"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
jsonrpc
— the JSON-RPC protocol version (always “2.0”)method
— the method name (always “eth_getStorageAt”)params
— array containing method parameters
address
— the contract address to read storage fromposition
— the storage position (slot) as hex stringblockParameter
— the block number in hexadecimal format or “latest”, “earliest”, “pending”id
— request identifier (number or string)jsonrpc
— the JSON-RPC protocol version (“2.0”)id
— the request identifier that matches the requestresult
— the value at the storage position as a hex stringjsonrpc eth_getStorageAt
method is used for:
Storage value at the specified position
The response is of type object
.
Was this page helpful?