基于区块链的毕业设计web3-eth-contract – web3 eth合同
本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计web3-eth-contract – web3 eth合同 是一篇很好的国外资料
web3-eth-contract
This is a sub-package of web3.js.
This is the contract package used in the web3-eth
package.
Please read the documentation for more.
Installation
Node.js
npm install web3-eth-contract
In the Browser
Build running the following in the web3.js repository:
npm run-script build-all
Then include dist/web3-eth-contract.js
in your html file. This will expose the Web3EthContract
object on the window object.
Usage
// in node.js var Web3EthContract = require('web3-eth-contract'); // set provider for all later instances to use Web3EthContract.setProvider('ws://localhost:8546'); var contract = new Web3EthContract(jsonInterface, address); contract.methods.somFunc().send({from: ....}) .on('receipt', function(){ ... });
Types
All the TypeScript typings are placed in the types
folder.
web3 eth合同
这是web3.js的一个子包。
这是web3 eth包中使用的合同包。
请阅读文档了解更多信息。
在web3.js存储库中运行以下内容:
安装
节点.js
npm install web3-eth-contract
在浏览器中
然后包含dist/web3 eth-合同.js在html文件中。这将在窗口对象上公开Web3EthContract对象。
npm run-script build-all
所有TypeScript类型都放在types文件夹中。
用法
// in node.js var Web3EthContract = require('web3-eth-contract'); // set provider for all later instances to use Web3EthContract.setProvider('ws://localhost:8546'); var contract = new Web3EthContract(jsonInterface, address); contract.methods.somFunc().send({from: ....}) .on('receipt', function(){ ... });
类型
All the TypeScript typings are placed in the types
folder.
部分转自网络,侵权联系删除区块链源码网
区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站
部分资料来自网络,侵权联系删除!
最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计web3-eth-contract – web3 eth合同
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计web3-eth-contract – web3 eth合同