惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Know Your Adversary
Know Your Adversary
Latest news
Latest news
H
Help Net Security
C
CERT Recently Published Vulnerability Notes
阮一峰的网络日志
阮一峰的网络日志
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Cyber Attacks, Cyber Crime and Cyber Security
Security Latest
Security Latest
B
Blog RSS Feed
V
Vulnerabilities – Threatpost
T
Threatpost
量子位
P
Proofpoint News Feed
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Cisco Talos Blog
Cisco Talos Blog
F
Fortinet All Blogs
Cyberwarzone
Cyberwarzone
Recorded Future
Recorded Future
博客园 - 聂微东
博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
Forbes - Security
Forbes - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
小众软件
小众软件
N
Netflix TechBlog - Medium
aimingoo的专栏
aimingoo的专栏
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
Last Week in AI
Last Week in AI
N
News and Events Feed by Topic
Google DeepMind News
Google DeepMind News
宝玉的分享
宝玉的分享
Hugging Face - Blog
Hugging Face - Blog
PCI Perspectives
PCI Perspectives
T
Tenable Blog
C
Cybersecurity and Infrastructure Security Agency CISA
L
LangChain Blog
SecWiki News
SecWiki News
H
Hacker News: Front Page
WordPress大学
WordPress大学
www.infosecurity-magazine.com
www.infosecurity-magazine.com
S
Schneier on Security
H
Heimdal Security Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
博客园 - 【当耐特】
A
About on SuperTechFans
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Tailwind CSS Blog

高金的博客

人机协作逆向:用 AI + Frida 打通微信 4.1.8 macOS 数据库密钥提取 情绪价值与求真:如何平衡与应对? friend_tech 第一笔交易只能买 1 个key? friend_tech 套利到底有多卷 无公网ip,无服务器实现内网穿透 植物挖矿 浏览器环境检测 加密、编码相关知识汇总 使用tensorflow识别验证码 POW与反爬虫 appium 安卓无法点击搜索框解决办法 知乎直播弹幕抓取与解析 知乎直播套利分析 1000刀+的羊毛在等你 如何创建一个完全匿名的EOS、ETH账号 如何通过技术手段证明"我"没有去过武汉 XUNTA 季度报告 玩游戏不如CX,JUSTGAME邀请分析(内附元数据) 程序员找对象聚合平台-xunta.today EOS 1.8 bidname的漏洞分析
如何在conflux上部署合约
Gao JIn · 2019-12-03 · via 高金的博客

编译合约

https://remix.ethereum.org/ 上面编写好合约

编译好了就可以拿到ABI 以及 Bytecode了.(后面用)

创建conflux 地址

有好几种方式,因为conflux地址是与eth兼容的,所以你可以直接使用你的eth地址

当然也可以使用官方的js,或者在线钱包

  1. 在线钱包

打开https://wallet.confluxscan.io/wallet就可以创建了

本地js创建(推荐,因为后面部署合约也需要用到

先下载github repo并初始化

1
2
3
git clone https://github.com/jin10086/confluxBuildContract.git
cd confluxBuildContract
npm install //初始化环境

创建钱包

直接执行 node createAccount.js 就创建好了

1
2
3
(base) ➜  confluxBuildContract git:(master) ✗ node createAccount.js
pub_key: 0xa17b63007bd491822306b3b8c793311e7a21e8de
priv_key: 0x0ac9e33baa5cc302785a7fa1ef8912ff34b492ad0d52c7d518fe80975191bbaa

领取测试代币

因为新地址是没有代币的,所以需要先领取

直接浏览器打开 https://wallet.confluxscan.io/faucet/dev/ask?address=你的pub_key

就可以领取了

部署合约

  1. deployContract.js里面的pub_key priv_key改成刚才生成的公钥以及私钥
  2. deployContract.js里面的abi bytecode改成在remix生成的
  3. 执行 node deployContract.js 就可以部署合约了

部署返回结果如下

1
2
(base) ➜  confluxBuildContract git:(master) ✗ node deployContract.js       
contract deployed. address: 0x26f9269a3d09c5d7ca7066445fc30ca91b9aa3bc

可以在http://www.confluxscan.io/ 上查看刚刚部署成功的合约


本文作者:高金
本文地址https://igaojin.me/2019/12/03/如何在conflux上部署合约/
版权声明:转载请注明出处!