-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dry_run的时候,显示token的变化量和余额 #55
Comments
一个转账的交易: curl --location --request POST 'https://barnard-seed.starcoin.org' 这是dry_run的rensponse:
|
主要是通过 access_path 来判断,比如:
这个就是用户 stc 余额的变化。相当于通过 dry run 的 output 和用户当前的状态进行比较,发现 diff。感觉这个可以提供成 js sdk 的方法,别的地方应该也可以用到。 |
感觉 Event 也可以利用一下,但没想好怎么用。 |
"access_path": "0xd42cce7f1afe838b9f40a6583da07693/1/0x00000000000000000000000000000001::Account::Balance<0x00000000000000000000000000000001::STC::STC>", 这个access_path的路径有规律吗? /1/0x00000000000000000000000000000001::Account::Balance 是这样的规律吗? |
address/1代表resource/StructTag value 是 resource bcs 二进制 |
Supported in V4.6.0 |
提醒用户,防止恶意的合约造成用户损失。
The text was updated successfully, but these errors were encountered: