Skip to content

Tron eth_call returns "CPU timeout" for contract view functions #6846

@bbaktaeho

Description

@bbaktaeho

Summary

eth_call on certain Tron contracts consistently returns -32000 / "CPU timeout for '<OPCODE>' operation executing". Reproduces against the public Tron JSON-RPC (https://api.trongrid.io/jsonrpc), so it is a network-level limit — not a node-specific issue.

Reproduction

  • Contract: TEWiwo3sttmmbJrHtq25rVNtZuREo7asgb (0x31d664ca251e3ebc30f2d90d1d9b1aae33f87e62)
  • Endpoint: https://api.trongrid.io/jsonrpc
ADDR="0x31d664ca251e3ebc30f2d90d1d9b1aae33f87e62"
URL="https://api.trongrid.io/jsonrpc"

# balanceOf(address,uint256)
curl -s -X POST -H "Content-Type: application/json" -d \
"{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_call\",\"params\":[{\"to\":\"$ADDR\",\"data\":\"0x00fdd58e000000000000000000000000f79db8d4e9baf5266b2578790363f027ae550b7a0000000000000000000000000000000000000000000000000000000000000001\"},\"latest\"]}" $URL

Response: {"error":{"code":-32000,"message":"CPU timeout for 'DUP1' operation executing"}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions