Skip to content

yarkinWire/clio-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clio-helper

A CLI tool for interacting with sdk-core and sdk-wns, enabling command-line operations on Wire blockchain applications.

Prerequisites

You should have Node JS. installed on your computer To manage Node installation and versions install NVM first.

Required NodeJS version - v20.16.0

  • Node

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


Development

Install Dependencies

npm install 

Build

To compile the TypeScript source code, run:

npm run build 

Link executable

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 in server.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.

Example

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.

Deployment

TBD

License

FSL-1.1-Apache-2.0

Wire Network Wire Network
Website | Twitter | LinkedIn
© 2024 Wire Network. All rights reserved.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •