精易论坛
标题:
tokenOfOwnerByIndex()函数调用问题
[打印本页]
作者:
付笑
时间:
2022-8-2 02:49
标题:
tokenOfOwnerByIndex()函数调用问题
调用json:
{
"jsonrpc":"2.0",
"method":"eth_call",
"params":[{
"to": "0xE125C05E771b887C702b0d4f5C5e8F933bf4AC71",
"data": "0x2f745c59000000000000000000000000C0Bea838a7D59d4739C85C1E36943f5f6Ac7bBEB0000000000000000000000000000000000000000000000000000000000000001"
}, "latest"],
"id":1
}
返回结果:
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"execution reverted"}}
请问返回结果为什么会出错了呢,是函数编码不对呢,还是参数不对呢?
函数tokenOfOwnerByIndex(address _owner, uint256 _index) 的编码0x2f745c59是正确的么?
作者:
Siempre
时间:
2022-8-2 02:49
bin2hex (到字节集 (“tokenOfOwnerByIndex(address _owner, uint256 _index)”))
欢迎光临 精易论坛 (https://125.confly.eu.org/)
Powered by Discuz! X3.4