your agent · cli reference

sign

Usage

soulpass sign message --message <text>
soulpass sign message --hex <0x-hex>
soulpass sign typed-data --data '<EIP-712 JSON>' [--allow-unsafe]
soulpass sign x402 --required <PAYMENT-REQUIRED> [--network <caip2>]

Cryptographic signing using the hardware-backed key. All signing happens in hardware — keys never leave the chip.

Subcommands

  • message — Sign a personal message, domain-separated to prevent replay as a wallet transaction. Provide either --message (UTF-8 text) or --hex (binary) — mutually exclusive.
  • typed-data — Sign EIP-712 typed structured data with the SE-derived EVM key (secp256k1). --data must be JSON with types, primaryType, domain, message. When a spend policy is set it refuses to run unless you pass --allow-unsafe (a signed payload can authorize value movement the spend guard cannot parse). --allow-unsafe is ◆ human-only — it opens the controlling terminal — and is what signs a value-authorization primaryType (Permit, Permit2, EIP-3009, SafeTx, order types) or a chainId this wallet does not operate on.
  • x402 — Pay an x402 (v2) offer from this wallet. Pass the server's PAYMENT-REQUIRED value (or the PaymentRequired JSON, e.g. a paid MCP tool's result) verbatim; it picks the first offer this wallet can pay — USDC by EIP-3009 on a supported EVM chain, or an SPL transfer on Solana — and prints paymentSignature (the PAYMENT-SIGNATURE header value) and payment (the PaymentPayload object, MCP's _meta["x402/payment"]).

x402 flags

  • --required <value> — The server's PaymentRequired: base64 header value or JSON (required)
  • --network <caip2> — Only consider offers on this network

Examples

# Sign a message
soulpass sign message --message "hello world"
soulpass sign message --hex 0x48656c6c6f

# EIP-712 typed data
soulpass sign typed-data --data '{"types":{...},"primaryType":"...","domain":{...},"message":{...}}'

# x402 payment: hand over the 402 offer, send back paymentSignature
soulpass sign x402 --required "$PAYMENT_REQUIRED"
soulpass sign x402 --required "$PAYMENT_REQUIRED" --network eip155:8453

Notes

Never log or store the output beyond immediate use. The signature proves control of the SE key.