saturnswap-market-swap-operator
Installation
SKILL.md
SaturnSwap Market Swap Operator
Sign and submit market swap transactions. This is an OPERATOR skill — every action requires explicit user confirmation.
Prerequisites
- An unsigned transaction from
saturnswap-market-swap(transactionId + hexTransaction) - A wallet signing key (PAYMENT_SKEY_HEX or PAYMENT_SKEY_CBOR env var, or MCP wallet)
Flow
- Receive unsigned tx from the guidance skill
- Sign locally using CSL or MeshJS (never send private keys to the API)
- Confirm with user — show tx ID and ask for explicit "submit" confirmation
- Submit — call
submitOrderTransactionwith signed hex - Report result — show transaction ID or error
Scripts
Sign and Submit
node scripts/sign-and-submit.js --address <bech32> --txid <transactionId> --hex <unsignedHex>
Signs the transaction using the configured wallet key, then submits to SaturnSwap.
Safety Rules
- NEVER auto-submit — always require explicit user confirmation before submission
- NEVER log or display private keys
- Verify the transaction ID matches what the user approved in the guidance step
- If signing fails, do NOT retry automatically — report the error
- After submission, report the on-chain transaction ID for verification
Related skills