1

请教一下web3.py 返回交易数据问题

 2 years ago
source link: https://learnblockchain.cn/question/2868
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 返回交易数据问题

请教一下web3.py 返回交易数据问题

刚开始学习web3.py ,用的是bsc链的,摸索了一圈,返回交易数据参数,

get_transaction_receipt time.sleep(2) ,经常报错, raise_transaction_not_found ,哈希没找到,但是手动查一下又有信息。

另外一个wait_for_transaction_receipt,想问下大佬,一般用wait_for_transaction_receipt还是用get_transaction_receipt 好。

image.png

image.png

还有一个问题,上面的数字 760.215 是我交易的额度,
从logs->data 里面可以找到:0x000000000000000000000000000000000000000000000029361a3ab553958000

找了一通不知道怎么转化为760.215,如果是29361a3ab553958000 ,尝试16进制转10进制好像不对,请问下.python有没有直接的转换函数,或者web3自带的。翻了一下手册没有看到


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK