web4.js:以太坊JavaScript API

时间:2021-04-15 01:09:30
【文件属性】:
文件名称:web4.js:以太坊JavaScript API
文件大小:1.2MB
文件格式:ZIP
更新时间:2021-04-15 01:09:30
JavaScript Web4以太坊JavaScript API 安装 $ npm install @cryptonteam/web4 用法 从合同中读取,发送交易,获取事件。 require ( 'dotenv' ) . config ( ) ; const fs = require ( 'fs' ) ; const Web4 = require ( '@cryptonteam/web4' ) ; const abi = JSON . parse ( fs . readFileSync ( "abi/ERC20.json" , "utf8" ) ) ; const web4 = new Web4 ( ) ; web4 . setHDWalletProvider ( process . env . MNEMONIC , process . env . INFURA ) ; // or you can
【文件预览】:
web4.js-master
----.gitignore(272B)
----README.md(1KB)
----.github()
--------workflows()
----test()
--------test.js(2KB)
----LICENSE(1KB)
----env-example(58B)
----package.json(1KB)
----dist()
--------web4-browser.js(4.08MB)
----src()
--------index.js(2KB)
----abi()
--------ERC20.json(11KB)
----.npmignore(93B)
----webpack.config.js(887B)
----package-lock.json(408KB)

网友评论