如何使用 myetherwallet 購買 GNT 代幣
這是我第一次在主網上購買乙太坊代幣。可能我做錯了什麼,所以我願意聽到有關此過程的任何評論或提示。我在主網上的乙太坊地址是https://etherscan.io/address/0x919ae3010329decba980259d1e624be6028d16c7
通過https://www.myetherwallet.com/#contracts我嘗試呼叫 TokenSeller 合約https://github.com/bokkypoobah/TokenTrader/wiki/TokenSeller-And-TokenSellerFactory,如https://cryptoderivatives.market/token所述/GNT
我只是對購買一些 Golem 網路代幣 (GNT) 感興趣,基本上花費 0.1 乙太幣來進行測試。所以我在contractAddress 0xb1eb96f752c624dc784d80961a1accfaf348c923和ABI上執行了createSaleContract()方法:
[{"constant":false,"inputs":[{"name":"tokenAddress","type":"address"},{"name":"tokens","type":"uint256"}],"name":"ownerWithdrawERC20Token","outputs":[{"name":"ok","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"tradeContract","type":"address"}],"name":"verify","outputs":[{"name":"valid","type":"bool"},{"name":"owner","type":"address"},{"name":"asset","type":"address"},{"name":"sellPrice","type":"uint256"},{"name":"units","type":"uint256"},{"name":"sellsTokens","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"asset","type":"address"},{"name":"sellPrice","type":"uint256"},{"name":"units","type":"uint256"},{"name":"sellsTokens","type":"bool"}],"name":"createSaleContract","outputs":[{"name":"seller","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"type":"function"},{"payable":false,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"ownerAddress","type":"address"},{"indexed":true,"name":"tokenSellerAddress","type":"address"},{"indexed":true,"name":"asset","type":"address"},{"indexed":false,"name":"sellPrice","type":"uint256"},{"indexed":false,"name":"units","type":"uint256"},{"indexed":false,"name":"sellsTokens","type":"bool"}],"name":"TradeListing","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"tokenAddress","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"OwnerWithdrewERC20Token","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"}],"name":"OwnershipTransferred","type":"event"}]
呼叫參數為:
asset Golem => 0xa74476443119a942de498590fe1f2454d7d4ac0d sellPrice .1 units 40 => rate .0025 sellsTokens true
產生的交易是:
發送:
amount 0 gas limit 29091
原始交易:
{"nonce":"0x00","gasPrice":"0x098bca5a00","gasLimit":"0x71a3","to":"0xb1eb96f752c624dc784d80961a1accfaf348c923","value":"0x00","data":"0xc5e412e5000000000000000000000000a74476443119a942de498590fe1f2454d7d4ac0d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000001","chainId":1}
交易送出:https ://etherscan.io/tx/0x6f739b16584e8e9d24ee34c79efbd60463da8cb6c3f05fdca74c6e400d5b0867
但是得到了這個錯誤:
Warning! Error encountered during contract execution [Bad jump destination]
有任何想法嗎?謝謝!
通過https://cryptoderivatives.market/token/GNT購買 GNT只需要買家將乙太幣發送到合約地址,GNT 將被發送回買家賬戶。
在以下螢幕中,我選擇了目前最便宜的 GNT TokenTrader 合約行,地址0x6c50aa6b45d3713b93efa009a8e2060911abffd2在地址欄位中突出顯示:
從此合約中購買所需要做的就是使用https://www.myetherwallet.com/#send-transaction 發送乙太幣和代幣選項卡,將合約地址指定為收件人地址以及要發送的乙太幣數量發送金額欄位:
以下是向該地址發送資金以接收 GNT 的範例交易 - 0xd92d8170 …。在這種情況下,198.5 GNT 被發送迴向合約發送 0.4764 ETH 的賬戶。
當您準備好嘗試交易時,只需搜尋最便宜的 GNT 代幣即可。