Skip to main content

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.3.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sardis_cli-0.1.3-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file sardis_cli-0.1.3.tar.gz.

File metadata

  • Download URL: sardis_cli-0.1.3.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for sardis_cli-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4ed365cc48b5f9850d3fba1e5a1b271bec2c7e11f2dd520a6fa84b1a2127a11e
MD5 655e58c23bd09d2dea22febb5624b824
BLAKE2b-256 c120affa44a2a7d31b1ce5c240ffd0ebeae0195cb2fd39159206f52bd95be1de

See more details on using hashes here.

File details

Details for the file sardis_cli-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: sardis_cli-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for sardis_cli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 16049652afb09a8fe47f6551cfda8cf7647c6b17394bda3f78e84379059b0c93
MD5 5de5aadf615d4b0a1736eba696a6a48c
BLAKE2b-256 17c050caa3e81ce5f9b22180f9dcbfffe0d02b9256a9be3ab80da11468e35477

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page