TriportRPC

eth_getStorageAt

POSThttps://triport.io/rpc/tron

Returns one 32-byte storage word from the current Tron EVM state.

Tron mainnettron:rpcfree+; tron_read_rpc: 15 / 20 / 100 / 250 RPS (free / basic / pro / business; default, unmeasured)

eth_getStorageAt reads the word at one storage position for an EVM-form contract address. The position is an EVM hex quantity and the result is exactly 32 bytes encoded as 0x plus 64 hexadecimal characters.

Use this low-level method only when the contract storage layout and position are known. For ABI-defined view functions, eth_call is usually safer. Tron exposes this state only at latest; historical quantities are not supported.

Parameters

JSON-RPC params is [address, position, block].

addressstringrequired
0x-prefixed 20-byte EVM contract address.
positionstringrequired
Storage position as an EVM hex quantity.
blockstringrequired
Must be latest.

Response

Response fields

FieldTypeDescription
jsonrpcstringJSON-RPC protocol version.
idnumberCorrelates the response with the request.
resultstringOne 32-byte storage word as 0x-prefixed data.

Errors

See Tron errors for the shared envelope.

CodeMeaningWhen it happens
-32602Invalid paramsAddress or position encoding is invalid, or block is not latest.
-32601Method not foundThe method is outside the published catalog.
401UnauthorizedThe API key is missing or invalid.
429Rate limitedThe tron_read_rpc budget is exceeded.

Examples

const params = ["0xa614f803b6fd780986a42c78ec9c7f77e6ded13c", "0x0", "latest"];
const response = await fetch("https://triport.io/rpc/tron", {
  method: "POST",
  headers: { "x-token": process.env.TRIPORT_API_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "eth_getStorageAt", params }),
});
const { result: word } = await response.json();

Notes

  • Storage layout is contract-specific; a zero word does not by itself identify the meaning of a slot.
  • Only latest is supported, so historical storage inspection is unavailable.
  • Related: eth_getCode and eth_call.