Skip to content

Revolutionnnn/xian-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xian Wallet CLI

This command-line interface (CLI) allows you to interact with the Xian blockchain and manage wallet information.

Run xian-cli:

pipx install xian-cli

Requirements

  • Python 3.9 or newer
  • Xian Python library (xian-py)
  • Typer library (typer)
  • Questionary library (questionary)

Installation

Install the required libraries:

pip install xian-py typer questionary

Available Commands:

Wallet Commands:

  • create: Creates a new wallet and saves its information in a CSV file.
wallet create
  • import: Imports a private key and saves it as a wallet.
wallet create <private key>
  • balance: Retrieves the balance of a wallet or a specific address.
wallet balance
wallet balance --address <address>
  • delete: Deletes a single wallet or all wallets.
wallet delete
wallet delete --all

Send Commands:

  • simple: Send xians.
send simple <amount> <address>
  • token: Send tokens on xian blockchain.
send token <amount> <contract> <address> <stamp: optional>
  • advance: Made a advance trasaction.
send token <contract> <function> <stamp: optional>
Then the kwargs will be required from the transaction.

Contract Commands:

  • approve: Aprove the contract.
contract aprove <contract>
  • get_approve: Get aprove the contract.
contract get-aprove <contract>
  • submit: Submit smart contract.
contract submit <contract_name>
Then it will be necessary to place the file path where the smart contract is located.

Tasks to be Completed

  • Create wallet
  • Import wallet with private key
  • Create CSV with wallets
  • Verify balance of wallets in the CSV
  • Verify balance with an address
  • Delete wallets from the CSV
  • Delete all information from the CSV
  • Perform transaction from Xian CLI
  • Create advanced transaction to send any token
  • Interact with contracts
  • Load smart contract using CLI
  • Create template to create tokens and NFTs using CLI (pending)
  • Create simple games with CLI (pending)
  • Create connection with node to verify information (pending)

Many more ideas to be implemented

Additional Notes

  • The CLI interacts with the Xian testnet by default.
  • Wallet information is stored in a CSV file (ensure proper security for sensitive data).

Feel free to contribute to this project!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages