Skip to content
This repository was archived by the owner on Nov 6, 2022. It is now read-only.

First public release

Choose a tag to compare

@PFC-developer PFC-developer released this 12 Aug 19:12
· 175 commits to main since this release

command line tool to do basic things on terra blockchain.

simple use case

PS > .\terra-rust.exe wallet create production
Wallet production created
PS > $env:TERRARUST_WALLET=production
production: The term 'production' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
PS > $env:TERRARUST_WALLET="production"
PS > $env:TERRARUST_CHAIN="columbus-4"
PS > $env:TERRARUST_LCD="https://lcd.terra.dev"
PS > .\terra-rust.exe keys recover main
..key words

PS>  .\terra-rust.exe keys get main
terra13p0ujws3mv3acaa8d7fsa0fdtk02e6gqn7c724
PS>  .\terra-rust.exe auth account terra13p0ujws3mv3acaa8d7fsa0fdtk02e6gqn7c724
{
  "height": "0",
  "result": {
    "type": "core/Account",
    "value": {
      "address": "",
      "coins": [],
      "public_key": null,
      "account_number": "0",
      "sequence": "0"
    }
  }
}


PS> .\terra-rust.exe --fees 83349412ukrw --gas 390000 staking  delegate main terravaloper12g4nkvsjjnl0t7fvq3hdcw7y8dc9fq69nyeu9q 1000000
621B4E83757A68B42D92E320793346B37BF26F3501568D5BFEF8208AFAD9D116
PS>  .\terra-rust.exe tx 621B4E83757A68B42D92E320793346B37BF26F3501568D5BFEF8208AFAD9D116
.. the transaction ..

PS> .\terra-rust.exe  --fees 65419500ukrw --gas 350000 distribution withdraw validator
726E9EE8B21A927F98289DECEBDD41B26C5C64B5DCD8156FFBFF72D2E7F308CF

terra-rust 0.1.7

USAGE:
    terra-rust.exe [FLAGS] [OPTIONS] <SUBCOMMAND>

FLAGS:
    -d, --debug
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -c, --chain <chain>                      tequila-0004 is testnet, columbus-4 is main-net [env: TERRARUST_CHAIN=]
                                             [default: tequila-0004]
    -f, --fees <fees>                        the fees to use. This will override gas parameters if specified. [default:
                                             ]
        --gas <gas>                          the gas amount to use 'auto' to estimate [default: auto]
        --gas-adjustment <gas-adjustment>    the adjustment to multiply the estimate to calculate the fee [env:
                                             TERRARUST_GAS_ADJUSTMENT=]  [default: 1.0]
        --gas-prices <gas-prices>            the gas price to use to calculate fee. Format is NNNtoken eg. 1000uluna.
                                             note we only support a single price for now [env: TERRARUST_GAS_PRICES=]
                                             [default: ]
    -l, --lcd-client-url <lcd>               https://lcd.terra.dev is main-net [env: TERRARUST_LCD=]  [default:
                                             https://tequila-lcd.terra.dev]
    -s, --seed <seed>                        the seed phrase to use with this private key [env: TERRARUST_SEED_PHRASE=]
                                             [default: ]
    -w, --wallet <wallet>                    the default wallet to look for keys in [env: TERRARUST_WALLET=tequilla]
                                             [default: default]

SUBCOMMANDS:
    auth              Auth operations
    bank              Bank Transactions
    block             Block commands
    contract          WASM Module / Smart Contract commands
    distribution      Staking Commands
    help              Prints this message or the help of the given subcommand(s)
    keys              Key Operations
    market            Market Operations
    oracle            Oracle Transactions
    staking           Staking Commands
    tx                Transaction Commands
    validator         validator operations
    validator-sets    Tendermint ValidatorSets commands
    wallet            wallet ops