Skip to content

przmyst/contract-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terra Contract CLI

Interact with the Terra Classic blockchain using this command-line interface (CLI) script. Perform actions such as storing a contract, instantiating it, executing functions, querying state, and migrating contracts.

Table of Contents

Installation

  1. Clone this repository:
    git clone https://github.com/przmyst/contract-cli
  2. Navigate to the directory and install the dependencies:
    npm install

Usage

You can interact with the Terra blockchain by using the following command format:

node index <command> [arguments...]

Ensure you have the necessary environment variables set up, such as MNEMONIC, CHAIN_ID, etc.

Commands

  • store: Store a WASM contract on the Terra blockchain.

    node index store [path-to-wasm-file]
  • instantiate: Instantiate a stored contract.

    node index instantiate [code-id] [luna-deposit] [label]
  • execute: Execute the increment function of a given contract.

    node index execute [contract-address]
  • query: Query the state of a given contract.

    node index query [contract-address]
  • migrate: Migrate a contract to new code.

    node index migrate [contract-address] [code-id]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published