A CLI tool for interacting with sdk-core
and sdk-wns
, enabling command-line operations on Wire blockchain applications.
You should have Node JS. installed on your computer To manage Node installation and versions install NVM first.
Required NodeJS version - v20.16.0
nvm install 20.16.0
Once installed, you can set a specific Node version in your project:
nvm use 20.16.0
Check Node version: node -v
npm install
To compile the TypeScript source code, run:
npm run build
To test the CLI tool locally, link it globally.
npm link
This command creates a global symlink, allowing you to run clio-helper from anywhere in your terminal.
ℹ️ Note:
By default, the RPC endpoint is set to a local node running on port 8888.
To connect to a different RPC, update the URL inserver.ts
:const wire = new APIClient({ provider: new FetchProvider('http://127.0.0.1:8888') });Replace
'http://127.0.0.1:8888'
with the desired RPC URL as needed.
clio-helper push action sysio.token transfer '{"from":"jovi1","to":"yarkin","quantity":"0.1000 SYS","memo":"TAKE IT"}' -p jovi1@active --external
This command will open the app on port 3000, then you can connect your Metamask wallet and attempt to push transaction.
TBD
Wire Network Website | Twitter | LinkedIn © 2024 Wire Network. All rights reserved. |