天天看点

【区块链-以太坊】3 在myetherwallet中实现代币交易

文章目录

      • 1 打开ethereum网页钱包
      • 2 进行相关配置
      • 3 添加代币
      • 4 实现代币转账

1 打开ethereum网页钱包

https://www.myetherwallet.com/

2 进行相关配置

1)点击

Send Ether & Tokens

2)选择MetaMask

3)选择测试网络:Network Rinkeby (etherscan.io)

4)点击

Connect to MetaMask

【区块链-以太坊】3 在myetherwallet中实现代币交易

3 添加代币

1)连接网络后,点击添加代币(

Add Custom Token

【区块链-以太坊】3 在myetherwallet中实现代币交易

2)输入合约地址、代币名称、精确位数

(与上一篇博客 中的操作一致)

【区块链-以太坊】3 在myetherwallet中实现代币交易

3)保存成功后显示:

【区块链-以太坊】3 在myetherwallet中实现代币交易

【注】

Q1:代币添加失败显示

Not a valid ERC-20 token

A1:可能原因:

a)代币信息填写不正确

b)右上角的网络选择不正确,这里将

Network Rinkeby (etherscan.io)

作为测试网络

4 实现代币转账

1)输入转入账户的公钥地址、转账数目及Gas,并点击

Generate Transaction

生成交易

【区块链-以太坊】3 在myetherwallet中实现代币交易

2)生成交易后点击

Send Transaction

发送交易

【区块链-以太坊】3 在myetherwallet中实现代币交易

3)显示如下,形成交易

【区块链-以太坊】3 在myetherwallet中实现代币交易

4)在MetaMask中确认交易

【区块链-以太坊】3 在myetherwallet中实现代币交易

5)交易被广播到网络中:

【区块链-以太坊】3 在myetherwallet中实现代币交易

6)交易成功后MetaMask中显示:

【区块链-以太坊】3 在myetherwallet中实现代币交易

7)转出账户中代币余额减少,转入账户余额增加

【区块链-以太坊】3 在myetherwallet中实现代币交易
【区块链-以太坊】3 在myetherwallet中实现代币交易

8)查看交易详细信息如下

【区块链-以太坊】3 在myetherwallet中实现代币交易

【注】

Q1:交易失败,得到以下错误:

Intrinsic gas too low

A1:gas值太小,默认为21000,可设定比21000更大的值