your agent · cli reference

exec

Usage

# Solana (default)
soulpass exec --instructions '<JSON>' [--authority [--cu-price <µlamports>]] [--simulate] [--no-wait] [--batch]

# EVM
soulpass exec --chain <chain> --to <0x> (--data <0x-hex> | --fn <sig> [--fn-args <json>]) [--value <0x-wei>]
soulpass exec --chain <chain> --calls '<JSON array>' [--max-slippage <bps>] [--deadline <unix-ts>]

Execute arbitrary on-chain actions: Solana instructions via the MachineWallet program (default), or EVM calldata via --chain. For advanced operations not covered by other commands.

Flags

  • --instructions <JSON> — JSON array of Solana instructions
  • --authority — Sign with the Authority key directly instead of the wallet (Solana)
  • --simulate — Dry run: validate and simulate without signing or submitting (alias --dry-run)
  • --cu-price <µlamports> — Solana --authority only: priority price in µlamports per compute unit, overriding the estimate (default: estimated from the accounts the transaction write-locks). The fee is a total in lamports from the measured CU limit, capped at 1,400,000 lamports. ComputeBudget instructions in --instructions are refused
  • --no-wait — Return txHash immediately. Every Solana transaction is simulated first; the compute-unit and loaded-account limits come from that measurement
  • --batch — Read a JSON array of instruction sets from stdin (wallet mode, parallel, implies --no-wait)
  • --allow-unsafe — ◆ human-only (opens the controlling terminal): skip the structured spend guard for this invocation. Without it, value moves this device can read (transfers, approvals, EVM value) are held to the same caps as pay / approve
  • --chain <chain> — SOLANA (default) or an EVM chain
  • --to <0x> — EVM: target address for a single call
  • --value <0x-wei> — EVM: wei value in hex (default 0x0)
  • --data <0x-hex> — EVM: raw calldata (mutually exclusive with --fn)
  • --fn <sig> + --fn-args <json> — EVM: inline ABI encoding, e.g. "transfer(address,uint256)"
  • --calls <json> — EVM: JSON array of call objects for batch execution
  • --max-slippage <bps> / --deadline <unix-ts> — EVM MEV protection (deadline is an ABSOLUTE unix timestamp)

Instruction format (Solana)

[{
  "programId": "<base58>",
  "accounts": [
    {"pubkey": "<base58>", "isSigner": false, "isWritable": true}
  ],
  "data": "<base64 or 0x-hex>"
}]

Use "VAULT" or "AUTHORITY" as pubkey placeholders — they are resolved automatically. Base64 data is recommended; hex strings must use the 0x prefix.

Examples

soulpass exec --instructions '[...]' --simulate
soulpass exec --chain BASE --to 0xContract --fn "transfer(address,uint256)" --fn-args '["0x...","1000000"]'
soulpass exec --chain BASE --calls '[{"to":"0x...","data":"0x..."}]'