trace_call does not exist

Tee Tee 提出于 2022-04-05 17:22 4547 浏览

我在服务器搭建了一个bsc全节点,然后然后想使用rpc的trace_call方法

curl http://127.0.0.1:8545 
-X POST 
-H "Content-Type: application/json" 
--data '{"method":"trace_call","params":[{"from":null,"to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"},["trace"], "latest"],"id":1,"jsonrpc":"2.0"}'

提示如下错误:

{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32601,
    "message": "the method trace_call does not exist/is not available"
  }
}

是启动geth的时候没有设置好什么参数吗?

最佳答案

2022-04-05 20:26

这个是parity 客户端才有的,geth启动的没有

启动参数开启debug. 查看链接详情 https://geth.ethereum.org/docs/rpc/ns-debug

zen
zen

采纳率 39% · 回答于 2022-04-05 18:39

其它 0 个回答

写回答

你需要登录后才可以回答问题,登录