@bdware/bdcontract-cli
v0.3.0-alpha.13
Published
BDContract CLI for Node.js
Downloads
6
Readme
BDContract CLI
BDContract CLI for Node.js
Install
npm install -g @bdware/bdcontract-cli
Usage
为了方便测试和配置合约引擎基于HTTP SDK封了个CLI,有需要可以用 https://public.internetapi.cn/?dir=releases/bdcontract-cli/0.3.0-alpha.12
也可以用npm装
npm install -g @bdware/bdcontract-cli
bdcontract-cli -u http://39.104.201.243:21030/SCIDE -k d675782acf011dbc01a73c7967ccff9564486f7c3a9f5d5de151caffaa18936 -p 04303718771b9323c204e607639f14469f9a94e55b0964a408ad3b3864b0493b645d7070da0d550f0c54b934275a8e88dedc3024467b0566db5c1108b1baeaae27 configNode --dataChain x --nodeName x --masterAddress x
反复输入地址key麻烦可以
export BDCONTRACT_URL=http://39.104.201.243:21030/SCIDE
export BDCONTRACT_PUBKEY=xxx
export BDCONTRACT_PRIVKEY=xxx
然后这样就行
bdcontract-cli updateConfig key value
方法名参数参考sdk-javascript/src/httpClient.ts