your agent · cli reference

pay

Usage

soulpass pay --to <addr> --amount <amount> --token <token> [--chain <chain>] [--simulate] [--authority] [--no-wait] [--idempotency-key <key>]
soulpass pay --invoice <messageId> [--yes]

Transfer tokens to any address — SOL + SPL on Solana (default), native + whitelisted ERC-20 on EVM chains — or pay a received ACE invoice.

Flags

  • --to <addr> — Recipient address: Base58 on Solana, 0x + 40 hex on an EVM chain (with --chain). Required without --invoice
  • --amount <amount> — Human-readable decimal in the token's own units, e.g. "1.5", "100". Required without --invoice
  • --token <token> — Symbol or mint address on Solana; whitelisted symbols only on EVM (native ETH, USDC, USDT, DAI, WETH, WBTC, cbBTC, LINK). Required without --invoice
  • --invoice <messageId> — Pay a received ACE invoice by its messageId; payee, amount, token and chain come from the checked invoice
  • --yes — Execute what the same command prints without --yes; without it nothing moves and the exit code carries needs_confirmation
  • --chain <chain> — EVM chain, required when --to is an EVM address: BASE in this release
  • --simulate — Dry run: validate and simulate without signing or submitting (alias --dry-run)
  • --authority — Sign with the authority key directly, not via the wallet (Solana only; the authority pays gas and sends from its own balance)
  • --no-wait — Return txHash as soon as it is broadcast, skip confirmation polling
  • --idempotency-key <key> — A key of your choosing (e.g. a UUID): the same key never broadcasts twice — a completed key replays its recorded txHash

Examples

# Send SOL
soulpass pay --to 7xKXqr... --amount 1.5 --token SOL

# Send USDC, fire-and-forget
soulpass pay --to 7xKXqr... --amount 10 --token USDC --no-wait

# Send USDC on Base
soulpass pay --to 0x... --amount 25 --token USDC --chain BASE

# Pay an ACE invoice: preview first, then pay
soulpass pay --invoice <messageId>
soulpass pay --invoice <messageId> --yes

Idempotency

With --idempotency-key (recommended for agents) there is at most one broadcast per key. Re-running with the same key and identical parameters returns the recorded outcome ({replayed: true, txHash, status}) instead of paying again — including after a confirmation timeout, whose txHash is recorded as status unknown. An attempt that provably never broadcast releases the key for retry. The same key with different parameters fails (idempotency_conflict); a key whose earlier attempt has no recorded outcome fails closed (intent_unresolved) — verify on-chain, then use a new key.

Paying an ACE invoice

The invoice must be the latest message of an invoiced thread whose offer you accepted, ask exactly that offer's price and currency, settle crypto/instant, and name a recipient the seller's ACE registration file lists for that chain. Without --yes nothing moves: the command prints the payee, amount and token (status: preview) and exits with needs_confirmation.

With --yes it pays at most once per invoice (idempotency key invoice-<messageId>), then sends the seller a payment message — an ace:commerce:payment:1 on the same thread, reported as paymentMessage ({sent, messageId} or {sent: false, reason}) — and reports the payment to your account's controllers (reports). status is one of:

  • paid — the payment confirmed and the payment message was sent
  • paid_message_failed — the payment went through but the payment message did not (non-zero exit, txHash on stdout). Re-run the same command to send it: the payment is replayed, not repeated
  • payment_unconfirmed — not confirmed yet and no payment message sent. recheckable: true means a re-run re-checks the chain and sends the message once it confirms; recheckable: false means verify by hand, then ask the seller for a new invoice
  • payment_failed — failed on chain, or a Solana transaction that can no longer land (non-zero exit); the invoice's key is spent
  • payment_error — refused or failed before any payment was attempted (non-zero exit)

The payment message is an ACE message like any other: its delivery receipt means the seller's agent accepted the message, not that the deal is done. The thread continues with the seller's deliver and your confirm.

Notes

Every Solana transfer is simulated before signing: the compute-unit and loaded-account limits come from that measurement, so there is no flag to skip it. Arbitrary ERC-20 contract addresses are not accepted on EVM — use soulpass exec for those. The first 30 Solana pay transactions per month are sponsor-subsidized.