Sardis command-line interface for agent payments
Project description
Sardis CLI
Command-line interface for interacting with the Sardis payment platform.
Installation
pip install sardis-cli
Quick Start
# Configure API credentials
sardis login
# Check status
sardis status
# List agents
sardis agents list
# Execute a payment
sardis payments execute --from wallet_001 --to 0x1234... --amount 100 --token USDC
Commands
Authentication
# Login with API key
sardis login
# Check authentication status
sardis auth status
# Logout
sardis logout
Agents
# List all agents
sardis agents list
# Get agent details
sardis agents get <agent_id>
# Create new agent
sardis agents create --name "My Agent"
Wallets
# List wallets
sardis wallets list
# Get wallet balance
sardis wallets balance <wallet_id>
# Create wallet
sardis wallets create --agent <agent_id>
Payments
# Execute payment
sardis payments execute \
--from <wallet_id> \
--to <destination> \
--amount 100.00 \
--token USDC \
--chain base_sepolia
# Get payment status
sardis payments status <tx_id>
Holds
# Create hold
sardis holds create \
--wallet <wallet_id> \
--amount 50.00 \
--token USDC
# Capture hold
sardis holds capture <hold_id> --amount 45.00
# Void hold
sardis holds void <hold_id>
# List holds
sardis holds list --wallet <wallet_id>
Chains
# List supported chains
sardis chains list
# Get gas estimate
sardis chains gas --chain base_sepolia --amount 100 --token USDC
# Route analysis
sardis chains route --from ethereum --to polygon --amount 1000
Configuration
The CLI stores configuration in ~/.sardis/config.json:
{
"api_base_url": "https://api.sardis.network",
"api_key": "sk_...",
"default_chain": "base_sepolia"
}
Environment Variables
SARDIS_API_KEY=sk_...
SARDIS_API_BASE_URL=https://api.sardis.network
SARDIS_DEFAULT_CHAIN=base_sepolia
Development
# Install in development mode
pip install -e ".[dev]"
# Run tests
pytest
# Run CLI
python -m sardis_cli --help
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sardis_cli-0.1.0.tar.gz
(9.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sardis_cli-0.1.0.tar.gz.
File metadata
- Download URL: sardis_cli-0.1.0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09367e171871ed3ee9751819499cb7f4540afad6de6a0ed69756bb2b7636ddad
|
|
| MD5 |
7892e8d017e889f5d47e4da42c862bdb
|
|
| BLAKE2b-256 |
63d2cfbee72cb5462dc06a79606bd373aca19640b3b646d0493d99db727696fb
|
File details
Details for the file sardis_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sardis_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56fdf13ebbb2079d5b46694b00e28ad6a7743b61080220effa94a958e0ab4385
|
|
| MD5 |
1ef90519a948f5fa08aaf5b64ceb8dcc
|
|
| BLAKE2b-256 |
4ceaf3379c681424c3cc403cdbb5ba81ea99518993a46bfecaf00e94c285db72
|