amadeus-cli-1.3.1 is not a library.
Amadeus CLI
Command-line interface for interacting with the Amadeus blockchain.
Installation
Install from crates.io:
Or build from source:
Usage
The CLI provides commands for wallet management, transaction building, and contract deployment.
Generate a Wallet
Get Public Key
Send a Transaction
# Call a contract function
# Transfer tokens
Deploy a Contract
Argument Format
Arguments are passed as a JSON array where each element can be:
- String → UTF-8 bytes (e.g.,
"hello") - Number → String bytes (e.g.,
100becomes"100") {"b58": "..."}→ Base58-decoded bytes (for addresses){"hex": "..."}→ Hex-decoded bytes (with or without 0x){"utf8": "..."}→ Explicit UTF-8 bytes
Environment Variables
AMADEUS_URL- Default node URL (e.g.,https://testnet-rpc.ama.one)
Built-in Contracts
- Coin -
transfer,create_and_mint,mint,pause - Contract -
deploy - Epoch -
submit_sol,set_emission_address,slash_trainer
License
Apache-2.0