
区块链
NFTercel
这个作者很懒,什么都没留下…
展开
-
(一)区块链开发之搭建以太坊私有链
1、安装ethereum/Go client(以太坊客户端)https://github.com/ethereum/go-ethereum/wiki/Installation-Instructions-for-Machttps://github.com/ethereum/homebrew-ethereum一、命令行客户端1、克隆仓库brew tap ethereum/ethere...原创 2018-10-02 23:54:03 · 2516 阅读 · 0 评论 -
(五)区块链开发之智能合约
1、创建项目npm install trufflemkdir truffletestcd truffletest2、初始化项目truffle init3、编写智能合约vim contracts/test.sol 1 pragma solidity ^0.4.25 2 contract Simple{ 3 function add(uint a,uint b...原创 2018-10-11 14:54:13 · 388 阅读 · 0 评论 -
星云合约间的调用
验证合约间调用:C->B->A一、创建合约A1、使用星云,web wallethttps://github.com/nebulasio/web-wallet下载到本地,打开index.html,选择contract中的Deploy2、将测试网任意钱包的keystore保存到文件naswallet3、部署合约A.code中填入:"use strict";...原创 2018-10-12 12:34:10 · 238 阅读 · 0 评论 -
(二)区块链开发之以太坊CLI控制台命令
1、账户管理创建新账户(密码:Testteam1&)➜ geth geth --datadir "./db" account newINFO [10-09|17:20:34.942] Maximum peer count ETH=25 LES=0 total=25Your new account is locked with a p...原创 2018-10-09 17:40:15 · 963 阅读 · 0 评论 -
(三)区块链开发之以太坊TestRPC测试链搭建
1、安装brew install nodenpm install -g ethereumjs-testrpc2、使用testrpc <options>options:-a或-accounts。指定启动时生成多个多个账户➜ ~ testrpc -a 1EthereumJS TestRPC v6.0.3 (ganache-core: 2.0.2)Avai...原创 2018-10-10 19:11:42 · 2810 阅读 · 0 评论 -
(四)区块链开发之以太坊变成接口
1、web3.js APIhttps://github.com/ethereum/web3.js/tree/1.0https://web3js.readthedocs.io/en/1.0/#Python Web3.py:https://github.com/pipermerriam/web3.py Haskell hs-web3- Haskell hs-web3:https://gi...原创 2018-10-10 20:09:22 · 553 阅读 · 0 评论 -
星云链之NRC20代币合约解读
1、合约地址:Contract n1jPoCuquckUonUEzpL3zt8VggGDk4nZT2k2、合约代码:// ==== wittcism.com Token Smart Contract for Nebulas ====// Name: TEST COIN// Symbol: TEST// Decimal: 8// TotalSupply: 2,000,000,000...原创 2018-12-06 22:05:32 · 825 阅读 · 0 评论