我在服务器搭建了一个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的时候没有设置好什么参数吗?
这个是parity
客户端才有的,geth启动的没有
启动参数开启debug. 查看链接详情 https://geth.ethereum.org/docs/rpc/ns-debug