JSPM

@ethsub/sub-cli

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q15327F
  • License MIT

A cli to interact with substrate

Package Exports

  • @ethsub/sub-cli
  • @ethsub/sub-cli/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ethsub/sub-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

sub-cli

A cli to interact with substrate

Usage

Usage: sub-cli [options] <call> <callArgs...>

Options:
  --url <ws>           websocket url (default: "ws://localhost:9944")
  --secret <mnemonic>  account secret (default: "//Alice")
  --sudo               Sudo call
  -h, --help           display help for command

Example

# add helayer
sub-cli --sudo bridge.addRelayer $SUB_DDRESS

# set resource 
sub-cli --sudo bridge.setResource $SUB_TOKEN_RESOURCEID $PALLET_TRANSFER_METHOD

# whitelist chain
sub-cli --sudo bridge.whitelistChain 0

# set change fee
sub-cli --sudo bridgeTransfer.changeFee 1 1 0

# tranfer balance
sub-cli balances.transfer $SUB_BRIDGE_ACCOUNT 10000