TriportRPC

eth_call

Tron / https://triport.io/rpc/tron

Minimum tier: Free

Tron method guide

Last updated:

eth_call executes EVM bytecode without creating or broadcasting a transaction. It returns the raw ABI-encoded output as 0x-prefixed EVM data. Decode that data with the ABI of the function being called.

This is the JSON-RPC route for current contract reads such as token view functions. The second parameter must be latest; historical block quantities are not supported. The native wallet alternative is triggerconstantcontract, whose request uses hex-41 addresses and an explicit function selector.

Parameters

eth_call parameters
NameTypeRequiredDescription
transactionobjectYes
blockLatestBlockTagYes

Returns

eth_call return value
FieldType
returnDataData

Examples

curl https://triport.io/rpc/tron \
  -X POST -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <api-key>' \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_call","params":["<transaction>","<block>"]}'
const res = await fetch("https://triport.io/rpc/tron", {
  method: "POST",
  headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
  body: JSON.stringify({
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_call",
  "params": [
    "<transaction>",
    "<block>"
  ]
}),
});
const data = await res.json();
import requests
resp = requests.post(
    "https://triport.io/rpc/tron",
    headers={"Authorization": "Bearer <api-key>"},
    json={"jsonrpc":"2.0","id":1,"method":"eth_call","params":["<transaction>","<block>"]},
)
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Chain: Tron.
  3. Clusters: mainnet.
  4. Credit cost: 1 per call.

FAQ

What does eth_call do?
Executes a read-only call against the current Tron EVM state.
How many credits does eth_call cost?
eth_call costs 1 credit(s) per call on Triport by default.
Is eth_call available over WebSocket?
eth_call is an HTTP JSON-RPC method.