treasury
Create, inspect, propose, pause, and cancel AURA treasuries.
Pre-alpha — not production ready
@aura-protocol/cli targets Solana devnet only. APIs and commands may change without notice. Do not use for real funds until a stable release and audit are published.
aura treasury create
Create a new agent treasury. Prompts for any missing required values.
aura treasury create \
--agent-id agent-1 \
--daily-limit 10000 \
--per-tx-limit 1000$ aura treasury create
⠋ Creating treasury on devnet...
✓ Treasury created: 3xKp…mF9z| Flag | Description |
|---|---|
--agent-id <id> | Unique agent identifier |
--daily-limit <usd> | Daily spending limit in USD |
--per-tx-limit <usd> | Per-transaction limit in USD |
--daytime-hourly-limit <usd> | Daytime hourly limit in USD |
--nighttime-hourly-limit <usd> | Nighttime hourly limit in USD |
--velocity-limit <usd> | Velocity limit in USD |
--max-slippage-bps <bps> | Max slippage in basis points |
--max-quote-age <secs> | Max quote age in seconds |
--ttl <secs> | Pending transaction TTL in seconds |
--ai-authority <pubkey> | AI authority pubkey (defaults to wallet) |
aura treasury show
Show full treasury state including policy, pending proposal, and dWallets.
aura treasury show --agent-id agent-1
aura treasury show --treasury <pda>
aura treasury show --agent-id agent-1 --watch # refresh every 5s
aura treasury show --agent-id agent-1 --interval 10 # refresh every 10s
aura treasury show --agent-id agent-1 --json$ aura treasury show
AURA :: Treasury: agent-1
┌─────────────┬──────────────────────────────────────────────┐
│ Field │ Value │
├─────────────┼──────────────────────────────────────────────┤
│ PDA │ 9mTq…Wr4K │
│ Agent ID │ agent-1 │
│ Owner │ 7mNv…QrSt │
│ AI Authority│ 7mNv…QrSt │
│ Status │ Active │
│ Total tx │ 4 │
│ Created │ Jan 15, 2025, 10:32:01 AM │
│ Updated │ Jan 15, 2025, 02:14:47 PM │
└─────────────┴──────────────────────────────────────────────┘
┌──────────────────┬────────────┐
│ Policy │ Value │
├──────────────────┼────────────┤
│ Daily limit │ $10,000.00 │
│ Per-tx limit │ $1,000.00 │
│ Daytime hourly │ — │
│ Nighttime hourly │ — │
│ Velocity limit │ — │
│ Shared pool │ — │
│ Max slippage │ — │
│ Max quote age │ — │
│ Max risk score │ — │
└──────────────────┴────────────┘| Flag | Description |
|---|---|
--agent-id <id> | Look up by agent ID |
--treasury <pda> | Look up by treasury PDA |
--watch | Refresh every 5 seconds (clears screen on each refresh) |
--interval <secs> | Custom refresh interval in seconds (default: 5) |
aura treasury list
List all treasuries owned by the configured wallet.
aura treasury list
aura treasury list --json$ aura treasury list
AURA :: Treasuries (2)
┌──────────┬───────────┬────────┬──────────┐
│ Agent ID │ PDA │ Status │ Total Tx │
├──────────┼───────────┼────────┼──────────┤
│ agent-1 │ 9mTq…Wr4K │ Active │ 4 │
│ agent-2 │ 4pRx…Hn8L │ Paused │ 1 │
└──────────┴───────────┴────────┴──────────┘aura treasury propose
Propose a public transaction. Prompts for any missing required values.
aura treasury propose \
--agent-id agent-1 \
--amount 250 \
--chain ethereum \
--recipient 0xdeadbeef...$ aura treasury propose
⠋ Submitting proposal...
✓ Proposal submitted: 5vBn…Kx2P| Flag | Description |
|---|---|
--agent-id <id> | Treasury agent ID |
--treasury <pda> | Treasury PDA |
--amount <usd> | Amount in USD |
--chain <name|number> | Target chain (e.g. ethereum, solana, 2) |
--recipient <address> | Recipient address or contract |
--tx-type <type> | Transaction type |
--protocol-id <id> | Protocol ID for DeFi whitelisting |
--expected-output <usd> | Expected output for slippage check |
--actual-output <usd> | Actual output for slippage check |
--quote-age <secs> | Quote age in seconds |
--counterparty-risk <score> | Counterparty risk score 0–100 |
aura treasury cancel
Cancel the current pending transaction.
aura treasury cancel --agent-id agent-1
aura treasury cancel --agent-id agent-1 --yes # skip confirmation$ aura treasury cancel
? Cancel the current pending transaction? (y/N) y
⠋ Cancelling pending transaction...
✓ Pending transaction cancelled: 2wQj…Tz7Raura treasury pause
Pause or unpause treasury execution.
aura treasury pause --agent-id agent-1 # pause
aura treasury pause --agent-id agent-1 --unpause # unpause
aura treasury pause --agent-id agent-1 --yes # skip confirmation$ aura treasury pause
? Pause this treasury? (y/N) y
⠋ Pausing treasury...
✓ Treasury paused: 4hLm…Vp3N