如何使用Mist浏览器在Enslisting列出/出价ENS域名

96
pxwluffy
2017.11.19 14:39* 字数 1281

先决条件

安装Mist浏览器,如果你没有,可以点击这里安装。

要列出一个域名,域名的所有者应该与Mist中的钱包地址相同。如果你尝试了一个错误的地址,你会得到[Bad instruction]的错误。

确保拍卖已经完成。

请注意,所有者地址要与Mist中的钱包地址相匹配。

添加已验证列表的步骤:

打开Mist浏览器,点击“Contracts”

点击“+ Watch Contract”按钮

输入信息如下所示:

合约名称:EnsListing

合约地址:0xDdB8C99DDde24195C6155463a1bc7ca95E42c883

JSON接口:

ABI / JSON值:

[{"constant":true,"inputs":[{"name":"name","type":"string"}],"name":"namehash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"name","type":"string"},{"name":"email","type":"string"},{"name":"bidAmount","type":"uint256"}],"name":"bid","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"name","type":"string"},{"name":"email","type":"string"},{"name":"listPrice","type":"uint256"}],"name":"addListing","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[],"name":"payTip","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"name","type":"string"},{"name":"bidId","type":"uint64"}],"name":"acceptBid","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[],"name":"abandon","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"name","type":"string"},{"name":"bidId","type":"uint64"}],"name":"declineBid","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"name":"ensRegistrarAddr","type":"address"},{"name":"registry","type":"address"},{"name":"listingDB","type":"address"}],"payable":false,"type":"function"},{"inputs":[{"name":"registrar","type":"address"},{"name":"_registry","type":"address"},{"name":"_listingDB","type":"address"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"namehash","type":"bytes32"},{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"email","type":"string"},{"indexed":false,"name":"listPrice","type":"uint256"},{"indexed":false,"name":"listingId","type":"uint64"}],"name":"ListingAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"namehash","type":"bytes32"},{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"email","type":"string"},{"indexed":false,"name":"bidAmount","type":"uint256"},{"indexed":false,"name":"bidId","type":"uint64"}],"name":"BidPosted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"namehash","type":"bytes32"},{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"bidId","type":"uint64"}],"name":"BidAccepted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"namehash","type":"bytes32"},{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"bidId","type":"uint64"}],"name":"BidDeclined","type":"event"}]

单击确定,您会看到EnsListing现在被添加为您的合约在“Contracts”页面:

现在,点击ENSListing打开智能合约。你会在这里看到两个部分,“Read”和“Write”。在写入部分,你会看到一个下拉选择一个功,这是智能合约支持的行动清单。

选择“Add Listing”功能

当你点击“Add Listing”时,会弹出一个窗口,询问你输入的内容:

name:输入要列出想要出售的域名名称,记住不带.eth扩展名,并以所有小写形式输入。我试图列出的域名是“bitcause.eth”。如果您尝试使用Caps(BitCause),则交易将失败,并显示[ Bad instruction]错误。

email:这是可选的,您可以将其留空,或从Google创建单一用途的电子邮件帐户,并在此处发送。不要使用你的主要电子邮件。

list price:这里使用wei单位。基本上,键入以太数量,然后输入18个零。比如说,你想列出10 ethers,输入10,然后000000000000000000(从这里复制/粘贴,以避免错别字)。

Execute From:这应该是与域名所有者匹配的钱包地址,通常,Mist选择默认它。

Send Ether:记住停止,你不需要发送任何以太币。比如说,你想列出10 ethers,不要在这里输入。您在这里输入的任何金额将被视为小费,并将汇至enslisting.com。建议金额为0.005 eth(大约2美金),这将是5后面有15个零。为了避免麻烦,从这里复制5000000000000000。当然,你也可以随意输入0。

现在点击“Execute”

系统会提示您再次确认,输入您的钱包密码以继续,在这里您将看到您将要支付的小费金额。

等待几分钟,在 enslisting.com就能看到你的域名自动出现为验证列表。

你几乎可以遵循相同的招标说明,接受/拒绝投标。

招标没有任何限制,您可以从任何有足够gas支付以太坊交易的帐户出价。接受/拒绝出价只能由域名所有者完成。

您可以对未列出的域名进行出价,它们将显示为“solicitations”。

Bid screen:

Accept Bid screen:您将从enslisting.com网站获得投标ID和列表ID。

Decline Bid screen:如果您对投标不感兴趣,请拒绝。

ENSFANS
Web note ad 1