-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ETH: ETH's shit #278
Comments
以太坊的一些狗屎:sign 签名里的魔法前缀:
swap token test: |
swap test case:
test('eth token swap:', () async {
var privateKey = 'your-private-key';
var walletAddress = '0x9fe1901f3bb6cd21dca275f5e746409bd4ae8861';
var contractAddress = '0x7a250d5630b4cf539739df2c5dacb4c659f2488d';
///
var amount = BigInt.tryParse('0x314b3d2e4230000') ?? BigInt.from(0);
var dataStr =
'0x7ff36ab5000000000000000000000000000000000000000000000012897e29405bf7874500000000000000000000000000000000000000000000000000000000000000800000000000000000000000009fe1901f3bb6cd21dca275f5e746409bd4ae88610000000000000000000000000000000000000000000000000000000060a6486a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d0a1e359811322d97991e03f863a0c30c2cf029c0000000000000000000000004f96fe3b7a6cf9725f59d353f723c1bdb64ca6aa';
var txID = await cliKovan.swapToken2(
privateKey: privateKey,
fromAddress: walletAddress,
toAddress: contractAddress,
data: dataStr,
value: amount,
);
print('swap token: txID:$txID');
});
|
ETH 全节点数据:
使用 openethereum 同步节点: |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
related:
The text was updated successfully, but these errors were encountered: