4

web3.py 合约提交tokenID,返回的DATA数据有点看不懂了

 2 years ago
source link: https://learnblockchain.cn/question/2860
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
web3.py 合约提交tokenID,返回的DATA数据有点看不懂了

web3.py 合约提交tokenID,返回的DATA数据有点看不懂了

是这样的,我测试手动提交这个合约函数,得到链上数据是

Function: harvest(uint256 _pid) ***

MethodID: 0xddc63262
[0]: b084f41d8993f05dd16d615bf79e0bdcb78a83ede271cd42ca22a4c89dc9c379

_pid 就是我钱包里面的tokenid对应的NFT

tokenid ='79841969985641343835252849678582874708511839231465429577492709475933181559673'

79841969985641343835252849678582874708511839231465429577492709475933181559673
等同于
b084f41d8993f05dd16d615bf79e0bdcb78a83ede271cd42ca22a4c89dc9c379

测试10进制转16进制,前面几位是对得上的,但后面是对不上?难道是我的思路错了?

买了登链的课程,里面是用256编码,16进制,但是我无论怎么转换都不对。

image.png

image.png

hash链接:https://bscscan.com/tx/0xb7141994fd871be1c1fad41bd1bb46ecc1b567733de47eb36c32a82471cc6012


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK