Peaq合约部署

一、了解PEAQ

介绍peaq网络的博客:首條 DePIN 聚合公鏈 Peaq Network !AI+RWA 打造最大機器物聯網 - 每日幣研

peaq,krest,agung之间的关系为主网,金丝雀网络和测试网。目前只上线了krest和agung网络,peaq网络预计24Q1末上线。

金丝雀网络,即canary network,有限代币供应的主网,类似于“实验网”,类比kusama网络。

二、相关文档搜集

peaq项目网址:

  1. https://www.peaq.network/
  2. https://docs.peaq.network/

krest浏览器网址:

  1. Polkadot/Substrate Portal
  2. Subscan | Aggregate Substrate ecological network high-precision Web3 explorer

agung浏览器网址:

  1. Polkadot/Substrate Portal
  2. Subscan | Aggregate Substrate ecological network high-precision Web3 explorer
  3. Polkadot/Substrate Portal
  4. PEAQ ETH Chain POA Explorer

三、PEAQ发币可行性

官方博客-在peaq网络上部署智能合约

四、获得$KREST和$AGUNG方式

目前只能在MEXC和XT.com上获得krest代币。

官方教程-领agung代币

五、部署合约

AGUNG部署合约

官方博客-在agung网络上部署智能合约

KREST部署合约

类似AGUNG网络部署合约

  1. 在交易所购买krest代币后提现到波卡钱包。
  2. 在krest浏览器中将波卡钱包中的krest代币转账到小狐狸钱包中,需要将小狐狸钱包地址转成波卡钱包地址。
  3. 用小狐狸钱包账户在remix上选择krest网络并部署合约,部署后在krest的subscan浏览器合约栏中可以看见部署的合约。

六、参考资料

钱包网络参数设置

metamask中krest和agung网络参数设置:

  1. Quickstart | peaq
  2. chainlist上开启测试网选项后可搜到

代币跨钱包

krest和agung代币跨钱包教程:

  1. https://github.com/kj89/testnet_manuals/blob/main/peaq/token_transfer.md
  2. Metamask | peaq

注意metamask中添加的网络和进行转账的网络要一致

地址转换工具

substrate和eth地址转换工具:

  1. Substrate EVM Address Converter
  2. Substrate JS Utilities
  3. SNOW Address Converter