15 请教获取合约事件数据问题

我想获得这个合约的PairCreated事件数据: https://bscscan.com/address/0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73#events

image.png

用postman请求但是返回的数据为空,不知道哪里有问题 url: https://bsc-dataseed1.binance.org 参数: {"jsonrpc":"2.0","method":"eth_getLogs","params":{ "fromBlock": "0x856c37", "toBlock": "0x856c51", "address": "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73", "topics": ["0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9"] }}

请先 登录 后评论

最佳答案 2021-07-02 09:31

{
"jsonrpc":"2.0",

"method":"eth_getLogs",

"params":[{

"fromBlock": "0x856c37",

"toBlock": "0x856c51",

"address": "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73",

"topics": ["0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9"]

}],

"id": ""

}
请先 登录 后评论

其它 0 个回答

  • 1 关注
  • 0 收藏,3551 浏览
  • wangwei123 提出于 2021-06-30 17:56