This command-line interface (CLI) allows you to interact with the Xian blockchain and manage wallet information.
pipx install xian-cli
- Python 3.9 or newer
- Xian Python library (
xian-py
) - Typer library (
typer
) - Questionary library (
questionary
)
pip install xian-py typer questionary
- 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
- 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.
- 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.
- 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
- 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!