Command Reference#
All commands follow the pattern seesaw <group> <command> [options]. By default, output is JSON wrapped in a standard envelope. Use --human for human-readable output.
JSON Envelope Format#
Every JSON response uses this envelope:
{
"success": true,
"data": { ... },
"error": null,
"meta": {
"command": "market get",
"duration_ms": 142,
"slot": 312456789,
"signature": "5Uj..."
}
}
The slot and signature fields are present only for commands that submit transactions.
config#
Protocol configuration and CLI settings.
config get#
Fetch and decode the on-chain config account.
| Option | Description |
|---|---|
| (none) | Uses resolved RPC endpoint |
seesaw config get
{
"success": true,
"data": {
"address": "CfgXx...",
"authority": "Auth1...",
"treasuryRecipients": [
"TreasuryShard1...",
"TreasuryShard2...",
"TreasuryShard3...",
"TreasuryShard4...",
"TreasuryShard5...",
"TreasuryShard6...",
"TreasuryShard7...",
"TreasuryShard8..."
],
"defaultSettlementMint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
"tickSizeBps": 100,
"marketsCreated": 1547,
"version": 1,
"lastTreasuryUpdateAt": "2026-01-01T00:00:00.000Z"
},
"error": null,
"meta": { "command": "config get", "duration_ms": 89 }
}
config init-file#
Create default config file at ~/.seesaw/config.yaml.
| Option | Description |
|---|---|
| (none) | Creates config with default values |
seesaw config init-file
{
"success": true,
"data": {
"path": "/Users/you/.seesaw/config.yaml"
},
"error": null,
"meta": { "command": "config init-file", "duration_ms": 2 }
}
config show#
Show current resolved configuration (file + env + flags merged).
| Option | Description |
|---|---|
| (none) | Displays merged config |
seesaw config show
{
"success": true,
"data": {
"rpc_url": "https://api.mainnet-beta.solana.com",
"keypair": "/Users/you/.config/solana/id.json",
"api_url": "https://api.seesaw.markets",
"output": "json",
"config_file": "/Users/you/.seesaw/config.yaml"
},
"error": null,
"meta": { "command": "config show", "duration_ms": 1 }
}
market#
Market lifecycle commands.
market get#
Fetch and decode a market account, including orderbook summary.
| Option | Description |
|---|---|
<address> | Market account address (positional argument) |
seesaw market get Mkt1abc123def456ghi789jkl012mno345pqr678stu
{
"success": true,
"data": {
"address": "Mkt1abc123def456ghi789jkl012mno345pqr678stu",
"marketId": "112640",
"state": "TRADING",
"outcome": "NONE",
"pythFeedId": "ef0d8b6f...",
"tStart": "2026-03-04T12:00:00.000Z",
"tEnd": "2026-03-04T12:15:00.000Z",
"startPrice": "14250000000",
"endPrice": "0",
"totalYesShares": "5000000",
"totalNoShares": "5000000",
"totalVolume": "12000000",
"totalTrades": 24,
"totalPositions": 8,
"creator": "Cre8or...",
"orderbook": {
"bestBid": 4800,
"bestAsk": 5200,
"spread": 400,
"bidLevels": 3,
"askLevels": 4
}
},
"error": null,
"meta": { "command": "market get", "duration_ms": 156 }
}
market discover#
List markets in discovery order (spec/DISCOVERY.md). The default list holds the
eligible markets of the config's default settlement mint, ranked by depth. With
--mint all the list covers every currency and is not ranked by liquidity.
| Option | Description |
|---|---|
--mint <address|all> | Settlement mint, or all; absent means the default mint |
--sort <sort> | depth (default), expiry or spread; depth is refused with all |
--show-ineligible | Append ineligible markets after the eligible ones, with their exclusions |
--no-collapse | List every duplicate market, not one per duplicate key |
--source <source> | rpc (default): core reader and library only; api: view=discover |
--verify | Rerun the library on the API's published inputs, compare, sample RPC |
--max-markets <n> | Refuse a market set larger than n (default 5000) |
--sample <n> | Inputs compared with RPC under --verify (default 16) |
seesaw market discover
seesaw market discover --mint all --sort spread --source api
seesaw market discover --verify
--verify runs two checks. The first is the proof: it pages the API list and every
input of its snapshot, reruns the library on those inputs, and compares the snapshot
id, the order and every row with the API's. The second reads a random sample of the
inputs from RPC (the Clock sysvar excluded). RPC serves the current state, so a
sampled account that differs when RPC reports a slot after the snapshot's is printed
as "changed since snapshot" with both slots: the chain may have moved, and this does
not prove tampering. The first difference is printed.
| Exit code | Meaning |
|---|---|
0 | The rerun matched and every sampled input equals RPC |
1 | Mismatch: the rerun differs from the API, or a sampled input differs at a slot at or before the snapshot's (or unreported) |
7 | Drift: the rerun matched, and the only sample differences were read at a later slot ("changed since snapshot") |
Other failures use the CLI's usual codes, for example 2 for invalid options and 3
for a network error.
market create#
Create a new Pyth Pull prediction market. Pyth Pull is the only market-creation oracle path.
| Option | Required | Description |
|---|---|---|
--pyth-feed-id <hex> | Yes | Pyth feed ID (32 bytes hex). This identifies the asset and is not a Solana account. |
--settlement-mint <address> | Yes | Settlement token mint address |
--freeze-exception <address> | No | Active freeze-exception PDA of the settlement mint; required only when the mint has a freeze authority |
--max-total-shares <u64> | Yes | Nonzero per-market YES/NO supply cap. This is the market's own cap; there is no global aggregate cap. |
--pyth-api-key <key> | No | Hermes credential; alternatively use PYTH_API_KEY or the local key vault. The CLI posts the Receiver update. |
--duration <seconds> | No | Market duration in seconds (default: 900) |
--max-confidence-ratio <bps> | Choice | Max confidence ratio in basis points. Required unless --disable-confidence-guard is supplied. |
--disable-confidence-guard | Choice | Explicitly disable the confidence guard (max_confidence_ratio_bps = 0). Mutually exclusive with a non-zero --max-confidence-ratio. |
--max-oracle-jump <bps> | No | Maximum oracle jump; 0 uses the protocol default. |
--core-provider <provider> | No | Landing provider: jito-direct (default), helius-jito, or quicknode-jito. |
--core-tip-approval-lamports <lamports> | No | Exact approved core-provider tip. |
--nozomi-preparation | No | Use Nozomi for capacity preparation. |
--preparation-tip-approval-lamports <lamports> | No | Exact approved Nozomi preparation tip. |
-y, --yes | No | Skip the mainnet confirmation prompt. |
seesaw market create \
--pyth-feed-id ef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d \
--settlement-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB \
--max-total-shares 1000000000 \
--duration 900 \
--max-confidence-ratio 500
Creation uses the configured API landing provider, or a local Hermes key
(--pyth-api-key / PYTH_API_KEY); it does not accept a cached update account.
The CLI verifies and closes a Receiver-owned ephemeral PriceUpdateV2. When the
API landing path is used, provider tip approvals must match the provider's
required amount.
{
"success": true,
"data": {
"market": "Mkt1abc...",
"orderbook": "OB1abc...",
"vault": "Vlt1abc...",
"marketId": "112640"
},
"error": null,
"meta": {
"command": "market create",
"duration_ms": 1250,
"signature": "5UjR4w...",
"slot": 312456789
}
}
Every market has one canonical size: 8,193 trader seats and 4,096 resting orders per side. There are no capacity options. The CLI submits the required
EnsureTraderLedgerSpace(0x2B, 68 calls) andEnsureDeepOrderbookSpace(0x2C, 103 calls) preludes in bounded chunks before the finalCreateMarket(0x03). Account rent is refunded to the creator when the market is closed.
market snapshot#
Record end price snapshot from the Pyth oracle.
| Option | Required | Description |
|---|---|---|
--market-id <id> | Yes | Explicit market identity (native: positive Unix-microsecond preparation timestamp) |
--price-update <address> | Choice | Already-posted Receiver-owned PriceUpdateV2; alternative to Hermes credentials. |
--pyth-api-key <key> | Choice | Posts the update in the same bundle; alternatively use PYTH_API_KEY or the key vault. |
--pyth-feed-id <hex> | Yes | Pyth feed ID (32 bytes hex) |
--creator <address> | Yes | Market creator address |
--settlement-mint <addr> | Yes | Settlement mint; its currency record is the last seed of the market PDA |
--duration <seconds> | No | Market duration in seconds (default: 900) |
seesaw market snapshot \
--market-id 112640 \
--price-update Gnt27xtC473ZT2Mw5u8wZ68Z3gULkSTb5DuxJy7eJotD \
--pyth-feed-id ef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d \
--creator Cre8orAddr123456789abcdefghijklmnopqrstuv \
--settlement-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
{
"success": true,
"data": {
"market": "Mkt1abc..."
},
"error": null,
"meta": {
"command": "market snapshot",
"duration_ms": 980,
"signature": "3kPq1x...",
"slot": 312456800
}
}
market resolve#
Resolve market outcome from price snapshots.
| Option | Required | Description |
|---|---|---|
--market-id <id> | Yes | Explicit market identity |
--pyth-feed-id <hex> | Yes | Pyth feed ID (32 bytes hex) |
--creator <address> | Yes | Market creator address |
--creator-token-account <address> | Yes | Creator's stablecoin token account |
--settlement-mint <address> | Yes | Settlement mint address |
--duration <seconds> | No | Market duration in seconds (default: 900) |
--build-only | No | Print the unsigned transaction without simulating or sending it |
seesaw market resolve \
--market-id 112640 \
--pyth-feed-id ef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d \
--creator Cre8orAddr123456789abcdefghijklmnopqrstuv \
--creator-token-account CreatorUsdtAta11111111111111111111111 \
--settlement-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
{
"success": true,
"data": {
"market": "Mkt1abc..."
},
"error": null,
"meta": {
"command": "market resolve",
"duration_ms": 870,
"signature": "2yNm8v...",
"slot": 312456810
}
}
market expire#
Expire a market if no resolution occurs within the expiration grace window
after market end (protocol default: 7 days; configurable via
admin operational-params). For the full expiration timeline and teardown
sequence see Settlement.
| Option | Required | Description |
|---|---|---|
--market-id <id> | Yes | Explicit market identity |
--pyth-feed-id <hex> | Yes | Pyth feed ID (32 bytes hex) |
--creator <address> | Yes | Market creator address |
--creator-token-account <address> | Yes | Creator's stablecoin token account |
--settlement-mint <address> | Yes | Settlement mint address |
--duration <seconds> | No | Market duration in seconds (default: 900) |
--build-only | No | Print the unsigned transaction without simulating or sending it |
seesaw market expire \
--market-id 112640 \
--pyth-feed-id ef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d \
--creator Cre8orAddr123456789abcdefghijklmnopqrstuv \
--creator-token-account CreatorUsdtAta11111111111111111111111 \
--settlement-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
{
"success": true,
"data": {
"market": "Mkt1abc..."
},
"error": null,
"meta": {
"command": "market expire",
"duration_ms": 910,
"signature": "4fRt2p...",
"slot": 312456820
}
}
market force-close#
Force-close a position on a resolved or expired market. This is a permissionless operation that anyone can call to settle a position and reclaim associated account rent.
Each submitted page starts with SetComputeUnitLimit(FORCE_CLOSE_COMPUTE_UNIT_LIMIT) (1,000,000 CU). The worst page costs about 829K CU, over the 200K default. See ForceClose compute budget.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account address |
--position-owner <address> | Yes | Position owner address |
--user-stablecoin-ata <address> | Yes | Position owner's USDT token account |
--settlement-mint <address> | Yes | Settlement mint address |
--build-only | No | Print the unsigned transaction without simulating or sending it |
seesaw market force-close \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--position-owner User1abc123def456ghi789jkl012mno345pqr678s \
--user-stablecoin-ata ATA1abc123def456ghi789jkl012mno345pqr678stu \
--settlement-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
{
"success": true,
"data": {
"market": "Mkt1abc...",
"position": "Pos1abc...",
"vault": "Vlt1abc..."
},
"error": null,
"meta": {
"command": "market force-close",
"duration_ms": 1100,
"signature": "7hYt3q...",
"slot": 312456830
}
}
market close#
Close a native Pyth market and return rent to the creator. All positions must
be settled first. The CLI reads the creator from the market and derives the
creator's settlement-token account. Use seesaw source close for signed-source markets.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account address |
--creator <address> | No | Expected creator address, verified against the market |
--residual-recipient <address> | No | Override the creator's derived settlement-token account |
--create-recipient-ata | No | Fund the creator's canonical payout account in the closure transaction if it is missing |
seesaw market close --market Mkt1abc123def456ghi789jkl012mno345pqr678stu
{
"success": true,
"data": {
"market": "Mkt1abc..."
},
"error": null,
"meta": {
"command": "market close",
"duration_ms": 850,
"signature": "9pWx4r...",
"slot": 312456840
}
}
market claim-creator-fees#
Claim deferred creator fees from a resolved or expired market. Use this when resolve_market / expire_market could not disburse fees inline (e.g., the creator's ATA was missing or frozen). Permissionless — anyone can call it, but the fees always go to the market creator.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account address |
--creator-ata <address> | Yes | Creator's token account for the settle mint |
--settlement-mint <address> | Yes | Settlement mint address |
seesaw market claim-creator-fees \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--creator-ata CreatorAtaAddr123456789abcdefghijklmnopqrs \
--settlement-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
{
"success": true,
"data": { "market": "Mkt1abc…", "vault": "Vlt1abc…" },
"error": null,
"meta": {
"command": "market claim-creator-fees",
"duration_ms": 830,
"signature": "9xYa4k…",
"slot": 312456900
}
}
market show#
Show a market by RPC only: state, outcome, native resolution reason and
closer-reward budget. The reason is not stored on the market account. The CLI
reads it from the market's NativeResolutionRecorded event in recent
transaction history. It accepts only a successful transaction whose recorder
batch is signed by the log-authority PDA and names this market. When the RPC no
longer serves that history, the reason is reported as unavailable.
| Option | Required | Description |
|---|---|---|
<market> | Yes | Market account address |
--history-limit <n> | No | Most recent market signatures scanned (default 100, max 1000) |
The budget is the market PDA's lamports above rent. rewardsRemaining is that
budget divided by the config rate; the target is five rewards.
seesaw market show Mkt1abc123def456ghi789jkl012mno345pqr678stu
market plan#
Print the permissionless lifecycle steps the planner finds for a market now. The
command reads accounts by RPC, uses the cluster clock, and signs nothing. Each
step has its route, reason, payee, and the caller's expected fee, rent, reward
and bounty. Subjects the planner cannot progress are listed under blocked.
| Option | Required | Description |
|---|---|---|
<market> | Yes | Market account address |
--payer <address> | No | Plan for this fee payer; no keypair is read |
--caller-token-account <address> | No | Caller settlement-token account; enables the reclaim bounty |
--top-up-closer-rewards | No | Include TopUpCloserRewards when the budget is below the target |
seesaw market plan Mkt1abc123def456ghi789jkl012mno345pqr678stu
market crank#
Run the planner steps of a market in order, one transaction each. Every
transaction is simulated before it is sent. After each round the CLI reads the
accounts again and plans again. A step that fails because another caller already
did the work counts as success (a lost race). Crank stops when the market
reaches --until, when nothing is eligible, when a step fails, or when a round
makes no progress.
SnapshotEnd needs a Pyth price update. With a Hermes key, crank posts and
consumes the first print at or after the market end. Without one, crank stops at
that step and says how to post an update.
| Option | Required | Description |
|---|---|---|
<market> | Yes | Market account address |
--until <phase> | No | Stop once the market reaches this phase (phases listed below) |
--max-rounds <n> | No | Maximum plan-and-send rounds (default 16) |
--caller-token-account <address> | No | Caller settlement-token account; enables the reclaim bounty |
--top-up-closer-rewards | No | Also send TopUpCloserRewards; the caller pays |
--pyth-api-key <key> | No | Hermes key for SnapshotEnd; or PYTH_API_KEY / PYTH_API_KEY_FILE |
-y, --yes | No | Skip the mainnet confirmation prompt |
Phases, in order: trading, awaiting-snapshot, awaiting-resolution,
awaiting-expiry, resolved, terminal, closed.
seesaw market crank Mkt1abc123def456ghi789jkl012mno345pqr678stu --until resolved
market close-preparation#
Close an abandoned native preallocation child (ClosePreallocatedChild) and
refund all its lamports to the creator. Use it when market create prepared the
book or ledger but the market was never created. Only the creator bound in the
child's marker can sign, so the configured keypair must be that creator. The
program also requires the child to be all zero outside the marker.
| Option | Required | Description |
|---|---|---|
<market> | Yes | Market PDA the child was prepared for |
--kind <kind> | Yes | orderbook or ledger |
-y, --yes | No | Skip the mainnet confirmation prompt |
seesaw market close-preparation Mkt1abc123def456ghi789jkl012mno345pqr678stu --kind ledger
market top-up-closer-rewards#
Permissionlessly top up a market PDA's rent-safe closer-reward budget to the current config rate.
Send output includes topUpLamports as a decimal string, including "0" when
the finalized transaction proves a no-op, or null when its metadata is unavailable
or inconclusive. Build and dry-run output omit this field.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account address |
-y, --yes | No | Skip mainnet confirmation prompt |
--dry-run | No | Simulate without sending |
--build-only | No | Print built tx without sending |
seesaw market top-up-closer-rewards \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu
market close-preallocated-child#
Refund the funding creator for an unused native orderbook or trader ledger, prepared for a market that was never created. The signer must be that creator.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market PDA used during preparation |
--kind <kind> | Yes | orderbook or trader-ledger |
--dry-run | No | Simulate without sending |
--build-only | No | Print the unsigned transaction without simulating or sending it |
seesaw market close-preallocated-child --market <MARKET> --kind orderbook
market recover-pyth-rent#
Recover the rent of an abandoned Pyth price update or Wormhole encoded VAA that the fee payer owns.
| Option | Required | Description |
|---|---|---|
--account <address> | Yes | Abandoned Pull account owned by the fee payer |
--dry-run | No | Simulate without sending |
--build-only | No | Print the unsigned transaction without simulating or sending it |
seesaw market recover-pyth-rent --account <ACCOUNT>
market close-preallocated-child#
Refund the funding creator for an unused native orderbook or trader ledger.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market PDA used during preparation |
--kind <kind> | Yes | orderbook or trader-ledger |
--dry-run | No | Simulate without sending |
--build-only | No | Print the built transaction without sending |
-y, --yes | No | Skip mainnet confirmation prompt |
seesaw market close-preallocated-child --market <address> --kind <kind>
market recover-pyth-rent#
Recover rent from an abandoned Pyth price update or Wormhole encoded VAA.
| Option | Required | Description |
|---|---|---|
--account <address> | Yes | Abandoned Pull account owned by the fee payer |
--dry-run | No | Simulate without sending |
--build-only | No | Print the built transaction without sending |
-y, --yes | No | Skip mainnet confirmation prompt |
seesaw market recover-pyth-rent --account <address>
market create-confidential#
Create a public-terms confidential market (CreateConfidentialMarket, 0x6B).
The configured wallet pays the rent and must be the policy creator. Pass the
canonical bytes of the 248-byte policy and of the 47-byte native definition that
the policy commits to; @seesaw/core encodes both
(encodeConfidentialMarketPolicy, encodeConfidentialNativeDefinition). The
CLI derives the market address from the policy's profile and nonce.
| Option | Required | Description |
|---|---|---|
--policy <hex> | Yes | Canonical 248-byte confidential market policy |
--definition <hex> | Yes | Canonical 47-byte native definition |
--settlement-mint <address> | Yes | Registered settlement mint of the policy |
--opening-price-update <address> | Yes | Pyth Receiver update that fixes the opening price |
--freeze-exception | No | Include the governed exception of a freeze-enabled mint |
-y, --yes | No | Skip the mainnet transaction confirmation prompt |
seesaw market create-confidential --policy <hex> --definition <hex> \
--settlement-mint <address> --opening-price-update <address>
market record-confidential-terminal#
Record a confidential market's terminal state
(RecordConfidentialTerminal, 0x6C). Any wallet can record it, once. Pass
either --timeout, or the committed definition with both price updates.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Confidential market account address |
--timeout | For a timeout | Record the timeout |
--definition <hex> | For a resolution | Canonical 47-byte native definition |
--end-price-update <address> | For a resolution | Pyth Receiver update at or after expiry |
--predecessor-update <address> | For a resolution | Update that precedes the end update |
-y, --yes | No | Skip the mainnet confirmation prompt |
seesaw market record-confidential-terminal --market <address> --timeout
order#
Order management commands. The CLI exposes single-order trading, quote free-funds custody, bulk/range cancel and reduce, and post-only maker ladders.
order place#
Place a limit order on the order book.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account address |
--outcome <outcome> | Yes | Outcome to trade: yes or no |
--intent <intent> | Yes | Trade intent: buy or sell |
--price <bps> | Yes | Price in basis points [1-9999] in the named outcome's own price space |
--quantity <amount> | Yes | Number of shares (in base units) |
--token-account <address> | Yes | User's settlement token account |
--settlement-mint <address> | Yes | Settlement mint address |
--user-yes-ata <address> | Yes | User's YES mint token account |
--user-no-ata <address> | Yes | User's NO mint token account |
--order-type <type> | No | Order type: limit, post-only, ioc (default: limit) |
--fok | No | Fill the full quantity immediately or cancel. Cannot set a resting lifetime or expiry. |
--client-order-id <hex> | No | Nonzero 16-byte client order identifier |
--seats <json> | No | JSON array of up to 8 spline seat addresses to include in matching |
--market-tick | No | Include the canonical Market Tick account for the selected spline seats |
--strategy <id> | No | Place from ledger funds under this strategy ID |
--strategy-id <id> | No | Alias for --strategy |
--strategy-group <id> | With strategy | Group of the covered order, 1 through 255 |
--strategy-owner <address> | Delegate only | Owner of the position when signing as a delegate |
--strategy-seats <json> | No | JSON array of spline seat addresses for a strategy placement; do not combine with --seats |
--self-trade-behavior <0|1|2> | No | Self-trade policy: 0=Abort, 1=CancelProvide, 2=DecrementTake |
--worst-acceptable-price-bps <bps> | No | IOC slippage bound [0-10000]; 0 disables the bound |
--min-fill-quantity <amount> | No | Minimum fill quantity in base units for IOC/partial-fill protection |
--match-limit <n> | No | Program limit: 0 through 12; counts fills, expired skips and self-trade handling. |
--max-age-seconds <seconds> | No | Optional shorter TTL; 0 selects the market close observed at placement |
--reject-post-only-would-cross <0|1> | No | Reject post-only orders that would cross the book (default: 1) |
--execution-valid-until <unix-seconds> | No | Absolute execution deadline; omitted uses the disabled sentinel |
--resting-expires-at <unix-seconds> | No | Absolute resting deadline; omitted uses the disabled sentinel |
--max-quote-input <amount> | No | Maximum quote input in settlement-token base units |
--min-quote-output <amount> | No | Minimum quote output in settlement-token base units |
--expected-fee-epoch <epoch> | No | Pin the fee policy epoch; omitted leaves it unpinned |
--protocol-treasury-index <n> | No | Protocol treasury shard index [0-7]; default pickTreasuryIndex(wallet, slot) |
--referrer <addr> | No | Pending referrer candidate resolved through on-chain/indexer precedence |
--free-funds | No | Use the free-funds placement route; the full account set remains required by this CLI. |
--builder <address> | No | Builder you approved with builder approve; taker orders only, never post-only |
--builder-token-account <address> | No | Builder's settlement-mint token account; required with --builder |
-y, --yes | No | Skip mainnet confirmation prompt |
--build-only | No | Print the unsigned transaction without simulating or sending it |
The protocol treasury token account is derived from
ConfigAccount.treasuryRecipients[--protocol-treasury-index]; trading commands
do not accept a client-supplied fee-recipient account. When
--protocol-treasury-index is omitted, the CLI picks the index the web and
Android apps pick: pickTreasuryIndex(signing wallet, confirmed slot) from
@seesaw/core, read from the configured RPC. Pass the flag to override it.
Although Commander registers the four token/mint flags as optional, the action
validates them as required. This also applies to
--free-funds: it changes the placement route, not the required account set.
The match limit is capped at the program's limit of 12.
When neither --seats nor --strategy-seats is given and the market counts
attached spline seats, the CLI includes the market creator's seat if that seat is
attached and not dormant. Matching reaches only the seats an order includes. A
strategy buy also needs a finite --max-quote-input.
The price is always quoted in the named outcome's own price space: --outcome no --intent buy --price 3000 bids 30.00% for NO shares and locks 3000 bps x quantity
of quote. The CLI never complements a NO price and never selects a book side; the
program derives the stored custody side once.
Referral attribution defaults to the resolver path: pass --referrer as a
pending candidate and the CLI resolves the locked on-chain referrer, pending
candidate, protocol fallback, and referral-binding eligibility. The CLI does
not expose manual referral-account or treasury-shard overrides.
seesaw order place \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--outcome yes \
--intent buy \
--price 5000 \
--quantity 1000000 \
--self-trade-behavior 0 \
--max-age-seconds 300 \
--protocol-treasury-index 3 \
--token-account ATA1abc123def456ghi789jkl012mno345pqr678stu \
--settlement-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB \
--user-yes-ata YesATA1abc123def456ghi789jkl012mno345pqr6 \
--user-no-ata NoATA1abc123def456ghi789jkl012mno345pqr67
{
"success": true,
"data": {
"market": "Mkt1abc...",
"orderbook": "OB1abc...",
"position": "Pos1abc..."
},
"error": null,
"meta": {
"command": "order place",
"duration_ms": 1050,
"signature": "6nKm5s...",
"slot": 312456850
}
}
order cancel#
Cancel an existing order by on-chain ID or by its 16-byte client ID. Client ID cancellation returns released balances to the trader ledger and needs only the market and client ID.
seesaw order cancel --market <market> --client-order-id <hex>
For cancellation by on-chain order ID, supply the wallet token accounts below.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account address |
--order-id <id> | Yes | Order ID to cancel |
--token-account <address> | Yes | User's settlement token account |
--settlement-mint <addr> | Yes | Settlement mint |
--user-yes-ata <address> | Yes | User's YES token account |
--user-no-ata <address> | Yes | User's NO token account |
--build-only | No | Print the unsigned transaction without simulating or sending it |
seesaw order cancel \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--order-id 42 \
--token-account ATA1abc123def456ghi789jkl012mno345pqr678stu \
--settlement-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB \
--user-yes-ata YesATA1abc123def456ghi789jkl012mno345pqr6 \
--user-no-ata NoATA1abc123def456ghi789jkl012mno345pqr67
{
"success": true,
"data": {
"market": "Mkt1abc...",
"orderbook": "OB1abc...",
"position": "Pos1abc...",
"cancelledOrderId": "42"
},
"error": null,
"meta": {
"command": "order cancel",
"duration_ms": 920,
"signature": "8wLp6t...",
"slot": 312456860
}
}
order deposit-funds#
Deposit quote free funds into the market trader ledger. These funds can be used by free-funds order-management variants.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account address |
--user-stablecoin-ata <addr> | Yes | User's settlement token account |
--settlement-mint <address> | Yes | Settlement mint |
--amount <u64> | Yes | Amount in settlement-mint base units |
--build-only | No | Print the unsigned transaction without simulating or sending it |
seesaw order deposit-funds \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--user-stablecoin-ata ATA1abc123def456ghi789jkl012mno345pqr678stu \
--settlement-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB \
--amount 1000000
order withdraw-funds#
Withdraw quote free funds from the market trader ledger.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account address |
--user-stablecoin-ata <addr> | Yes | User's settlement token account |
--settlement-mint <address> | Yes | Settlement mint |
--amount <u64> | Yes | Amount in settlement-mint base units |
seesaw order withdraw-funds \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--user-stablecoin-ata ATA1abc123def456ghi789jkl012mno345pqr678stu \
--settlement-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB \
--amount 1000000
order cancel-multi#
Cancel multiple orders by ID. Add --free-funds to use the lean with-free-funds account set.
seesaw order cancel-multi \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--order-ids 42,43,44 \
--free-funds
Without --free-funds, also pass --token-account, --settlement-mint, --user-yes-ata, and --user-no-ata.
order cancel-all#
Cancel the configured wallet’s resting orders on a market and return released quote and shares to its trader ledger. The program takes a cutoff when the session begins, so orders posted later stay open. The CLI submits bounded pages until the session completes.
seesaw order cancel-all --market <market>
Use --one-step to submit one page and --resume to continue after an interruption.
The CLI reports the session nonce, next order ID, cancelled order count and confirmed
transaction signatures. Use --max-orders to set the removal limit per transaction
from 1 to 32. The default is 8.
Use order cancel-all-by-id when you need wallet
refunds.
order cancel-all-by-id#
Cancel every active order of the configured wallet on a market with bounded explicit-ID batches, reading the order book again between batches.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account address |
--free-funds | No | Use the lean account set for bids; asks use standard accounts |
--token-account <address> | Without --free-funds | User's settlement token account |
--settlement-mint <address> | Without --free-funds | Settlement mint |
--user-yes-ata <address> | Without --free-funds | User's YES token account |
--user-no-ata <address> | Without --free-funds | User's NO token account |
-y, --yes | No | Skip mainnet confirmation prompt |
With --free-funds, pass the four wallet accounts too if the wallet has resting
asks.
seesaw order cancel-all-by-id --market <market> \
--token-account <address> --settlement-mint <address> \
--user-yes-ata <address> --user-no-ata <address>
order cancel-up-to#
Use the same bounded cancellation workflow for one outcome and intent. A buy qualifies at or above the price bound, and a sell qualifies at or below it. Prices use the named outcome’s basis points.
seesaw order cancel-up-to --market <market> --outcome yes --intent buy --tick-limit-bps 4900
Use the same outcome, intent and price with --resume.
order cancel-session#
Read the active session from the trader ledger with
seesaw order cancel-session --market <market>. End it with
order abort-cancel.
order abort-cancel#
Abort the active owner cancellation session. Earlier confirmed removals and refunds are preserved.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account address |
--nonce <id> | Yes | Active cancellation session nonce |
-y, --yes | No | Skip mainnet confirmation prompt |
seesaw order abort-cancel --market <market> --nonce <nonce>
order reduce#
Reduce an active order's remaining quantity.
seesaw order reduce \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--order-id 42 \
--reduce-qty 100000 \
--free-funds
order place-ladder#
Place multiple post-only bid and ask levels in one maker instruction. Each level is
priceBps:quantity[:clientOrderId]. A client order ID is 32 hex characters and
must be nonzero and distinct across the ladder.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account. |
--bids <levels> | Choice | Comma-separated bid levels; provide bids, asks, or both. |
--asks <levels> | Choice | Comma-separated ask levels. |
--token-account <address> | Yes | User settlement-token account. |
--settlement-mint <address> | Yes | Settlement mint. |
--user-yes-ata <address> | Yes | User YES-token account. |
--user-no-ata <address> | Yes | User NO-token account. |
--outcome <YES|NO> | No | Outcome lane for every batch entry; default YES. |
--max-age-seconds <seconds> | No | Resting lifetime for every rung. Zero uses market close. |
--execution-valid-until <unix-seconds> | No | Absolute execution deadline; omitted uses the disabled sentinel. |
--resting-expires-at <unix-seconds> | No | Absolute resting deadline; omitted uses the disabled sentinel. |
--max-quote-input <amount> | No | Maximum quote input in settlement-token base units. |
--self-trade-behavior <0|1|2> | No | Self-trade policy; default 1 (CancelProvide). |
--protocol-treasury-index <n> | No | Treasury shard index [0-7]; default as for order place. |
--free-funds | No | Use the free-funds ladder route; token/mint flags are still required. |
--strategy-id <id> | No | Place from the strategy owner's prefunded ledger. |
--strategy-group <id> | With strategy | Assign every rung to the same group, from 1 through 255. |
--strategy-owner <address> | Delegate only | Owner of the strategy and token accounts. |
-y, --yes | No | Skip mainnet confirmation. |
Strategy ladders require a finite aggregate --max-quote-input. The CLI
checks the strategy's placement permission and market and settlement-mint
scope. The configured wallet signs and pays the transaction fee. For a
delegated placement, supply the owner's settlement, YES, and NO token
accounts.
seesaw order place-ladder \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--bids 4900:100000,4800:200000 \
--asks 5100:100000,5200:200000 \
--token-account ATA1abc123def456ghi789jkl012mno345pqr678stu \
--settlement-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB \
--user-yes-ata YesATA1abc123def456ghi789jkl012mno345pqr6 \
--user-no-ata NoATA1abc123def456ghi789jkl012mno345pqr67 \
--outcome YES \
--protocol-treasury-index 3
order list-open#
List the configured wallet's indexed open orders. Combine --strategy-id
and --group-id to inspect one strategy group. Use --execution-controls
to include the signed order controls, and --cursor to fetch the next page.
seesaw order list-open --strategy-id 7 --group-id 2 --execution-controls
order list#
List orders on a market's order book. Optionally filter by owner.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account address |
--owner <address> | No | Filter by owner address |
# List aggregated orderbook
seesaw order list --market Mkt1abc123def456ghi789jkl012mno345pqr678stu
# List orders for a specific owner
seesaw order list \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--owner User1abc123def456ghi789jkl012mno345pqr678s
Aggregated orderbook output:
{
"success": true,
"data": {
"bids": [
{ "price": 4800, "quantity": "500000", "orders": 3 },
{ "price": 4700, "quantity": "250000", "orders": 1 }
],
"asks": [
{ "price": 5200, "quantity": "300000", "orders": 2 },
{ "price": 5500, "quantity": "1000000", "orders": 5 }
]
},
"error": null,
"meta": { "command": "order list", "duration_ms": 120 }
}
Filtered by owner:
{
"success": true,
"data": [
{
"orderId": "42",
"owner": "User1abc...",
"priceBps": 4800,
"quantity": "100000",
"originalQuantity": "200000",
"side": 0,
"isActive": true
}
],
"error": null,
"meta": { "command": "order list", "duration_ms": 115 }
}
order reclaim-expired#
Permissionlessly reclaim an expired resting order. The CLI derives the maker's
associated token accounts from the market. You can override a derived account
with the corresponding maker option. If --caller-stablecoin-ata is provided,
the caller can collect the configured bounty on eligible ordinary orders.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market PDA |
--maker <address> | Yes | Original order owner, not necessarily the caller |
--maker-token-account <address> | No | Override the maker's derived settlement ATA |
--maker-yes-ata <address> | No | Override the maker's derived YES share ATA |
--maker-no-ata <address> | No | Override the maker's derived NO share ATA |
--settlement-mint <address> | No | Expected settlement mint for ordinary orders |
--order-id <u64> | Yes | Order ID to reclaim |
--caller-stablecoin-ata <addr> | No | Caller token account for the optional bounty |
seesaw order reclaim-expired \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--maker Maker1abc123def456ghi789jkl012mno345pqr67 \
--order-id 42 \
--caller-stablecoin-ata CallerStableAta123456789abcdefghi
order reclaim-expired-sweep#
Read a JSON target file and submit each expired-order reclaim in a separate confirmed transaction. The sweep stops at the first send error and reports completed, failed, and first-unattempted targets for resumable operation.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market PDA shared by all targets |
--settlement-mint <address> | No | Expected settlement mint for ordinary orders |
--targets-file <path> | Yes | JSON array containing 1–64 exact target objects |
--caller-stablecoin-ata <addr> | No | Caller ATA for configured bounty collection |
-y, --yes | No | Skip the mainnet confirmation prompt |
Each target requires maker and decimal-string orderId. It may also supply
makerTokenAccount, makerYesAta, and makerNoAta overrides. Duplicate (maker, orderId)
targets and unsafe IDs are rejected. Confirmation is applied once to the full
sweep; transactions are then sent sequentially.
[
{
"maker": "<maker-address>",
"makerTokenAccount": "<maker-stablecoin-ata>",
"makerYesAta": "<maker-yes-ata>",
"makerNoAta": "<maker-no-ata>",
"orderId": "42"
}
]
order cancel-group#
Cancel a strategy order group, continuing across transactions.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID |
--market <address> | Yes | Market PDA |
--owner <address> | No | Strategy owner when signing as its delegate |
-y, --yes | No | Skip mainnet confirmation prompt |
--max-examined <n> | No | Maximum orders to examine (default 64) |
--max-removed <n> | No | Maximum orders to remove (default 8) |
--group-id <id> | Yes | Strategy order group (1 through 255) |
--resume | No | Continue the active session for this strategy and group |
--one-step | No | Submit one transaction and return its progress |
seesaw order cancel-group --id <id> --market <address> --group-id <id>
strategy#
strategy list#
List the configured wallet's registered strategies and their live limits
and capital counters. Use --limit (1–32) and --after-id to page through
the registrations. Use strategy show --owner <address> --id <id> to read
a known strategy directly from Solana.
seesaw strategy list --limit 16
strategy configure#
Create a strategy or replace its limits and delegate.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID (0 through 65534) |
-y, --yes | No | Skip mainnet confirmation prompt |
--limits-file <path> | Yes | JSON strategy limits |
seesaw strategy configure --id <id> --limits-file <path>
strategy stop#
Stop a strategy and invalidate covered orders on selected markets.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID (0 through 65534) |
-y, --yes | No | Skip mainnet confirmation prompt |
--owner <address> | No | Strategy owner when signing as its delegate |
--markets <json> | No | JSON array of up to four markets whose covered orders to invalidate |
seesaw strategy stop --id <id>
strategy resume#
Enable strategy execution.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID (0 through 65534) |
-y, --yes | No | Skip mainnet confirmation prompt |
seesaw strategy resume --id <id>
strategy reset-capital#
Set used capital and advance the capital epoch.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID (0 through 65534) |
-y, --yes | No | Skip mainnet confirmation prompt |
--used-capital <u64> | Yes | New used quote atoms |
seesaw strategy reset-capital --id <id> --used-capital <u64>
strategy close#
Close a strategy and return its rent to the owner.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID (0 through 65534) |
-y, --yes | No | Skip mainnet confirmation prompt |
seesaw strategy close --id <id>
strategy show#
Read a strategy by its canonical owner and ID.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID (0 through 65534) |
--owner <address> | Yes | Strategy owner |
seesaw strategy show --id <id> --owner <address>
strategy history#
List recorded strategy events for the configured wallet.
| Option | Required | Description |
|---|---|---|
--strategy <address> | No | Filter by strategy account address |
--limit <count> | No | Number of events to show (1 through 100) |
--cursor <cursor> | No | Continue from the previous page |
--auth-domain <domain> | No | Override the API wallet authentication domain |
seesaw strategy history
strategy cancel order#
Cancel a single order by its on-chain order ID.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID |
--market <address> | Yes | Market PDA |
--owner <address> | No | Strategy owner when signing as its delegate |
-y, --yes | No | Skip mainnet confirmation prompt |
--order-id <u64> | Yes | On-chain order ID |
seesaw strategy cancel order --id <id> --market <address> --order-id <u64>
strategy cancel client-id#
Cancel a single order by its 16-byte client ID.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID |
--market <address> | Yes | Market PDA |
--owner <address> | No | Strategy owner when signing as its delegate |
-y, --yes | No | Skip mainnet confirmation prompt |
--client-id <hex> | Yes | Client order ID |
seesaw strategy cancel client-id --id <id> --market <address> --client-id <hex>
strategy cancel group#
Cancel a strategy order group, continuing across transactions.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID |
--market <address> | Yes | Market PDA |
--owner <address> | No | Strategy owner when signing as its delegate |
-y, --yes | No | Skip mainnet confirmation prompt |
--max-examined <n> | No | Maximum orders to examine (default 64) |
--max-removed <n> | No | Maximum orders to remove (default 8) |
--group-id <id> | Yes | Strategy order group (1 through 255) |
--resume | No | Continue the active session for this strategy and group |
--one-step | No | Submit one transaction and return its progress |
seesaw strategy cancel group --id <id> --market <address> --group-id <id>
strategy cancel lane#
Begin cancellation within an outcome, side and price bound.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID |
--market <address> | Yes | Market PDA |
--owner <address> | No | Strategy owner when signing as its delegate |
-y, --yes | No | Skip mainnet confirmation prompt |
--max-examined <n> | No | Maximum orders to examine (default 64) |
--max-removed <n> | No | Maximum orders to remove (default 8) |
--outcome <yes|no> | Yes | Order outcome |
--side <buy|sell> | Yes | Order side |
--tick-limit <bps> | Yes | Aggressive price bound in the named outcome |
seesaw strategy cancel lane --id <id> --market <address> --outcome <yes|no> --side <buy|sell> --tick-limit <bps>
strategy cancel all#
Begin cancellation of all covered orders on this market.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID |
--market <address> | Yes | Market PDA |
--owner <address> | No | Strategy owner when signing as its delegate |
-y, --yes | No | Skip mainnet confirmation prompt |
--max-examined <n> | No | Maximum orders to examine (default 64) |
--max-removed <n> | No | Maximum orders to remove (default 8) |
seesaw strategy cancel all --id <id> --market <address>
strategy cancel session#
Read the current bounded cancellation session.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID |
--market <address> | Yes | Market PDA |
--owner <address> | Yes | Strategy owner |
seesaw strategy cancel session --id <id> --market <address> --owner <address>
strategy cancel continue#
Continue a bounded cancellation using its active nonce.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID |
--market <address> | Yes | Market PDA |
--owner <address> | No | Strategy owner when signing as its delegate |
-y, --yes | No | Skip mainnet confirmation prompt |
--max-examined <n> | No | Maximum orders to examine (default 64) |
--max-removed <n> | No | Maximum orders to remove (default 8) |
--nonce <id> | Yes | Active cancellation session nonce |
seesaw strategy cancel continue --id <id> --market <address> --nonce <id>
strategy cancel abort#
Abort a bounded cancellation using its active nonce.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID |
--market <address> | Yes | Market PDA |
--owner <address> | No | Strategy owner when signing as its delegate |
-y, --yes | No | Skip mainnet confirmation prompt |
--nonce <id> | Yes | Active cancellation session nonce |
seesaw strategy cancel abort --id <id> --market <address> --nonce <id>
strategy cancel-ids#
Cancel covered orders by a list of order IDs.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID |
--market <address> | Yes | Market PDA |
--owner <address> | No | Strategy owner when signing as its delegate |
-y, --yes | No | Skip mainnet confirmation prompt |
--order-ids <list> | Yes | Comma-separated on-chain order IDs |
seesaw strategy cancel-ids --id <id> --market <address> --order-ids <list>
strategy reduce#
Reduce a covered order and return released collateral to the ledger.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID |
--market <address> | Yes | Market PDA |
--owner <address> | No | Strategy owner when signing as its delegate |
-y, --yes | No | Skip mainnet confirmation prompt |
--order-id <u64> | Yes | On-chain order ID |
--quantity <u64> | Yes | Share atoms to remove |
seesaw strategy reduce --id <id> --market <address> --order-id <u64> --quantity <u64>
strategy merge#
Burn free YES and NO shares and credit quote to the ledger.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID |
--market <address> | Yes | Market PDA |
--owner <address> | No | Strategy owner when signing as its delegate |
-y, --yes | No | Skip mainnet confirmation prompt |
--quantity <u64> | Yes | Complete-set share atoms |
seesaw strategy merge --id <id> --market <address> --quantity <u64>
strategy withdraw-quote#
Withdraw free quote to the owner’s token account or an approved destination.
| Option | Required | Description |
|---|---|---|
--id <id> | Yes | Owner-assigned strategy ID |
--market <address> | Yes | Market PDA |
--owner <address> | No | Strategy owner when signing as its delegate |
-y, --yes | No | Skip mainnet confirmation prompt |
--quantity <u64> | Yes | Settlement quote atoms |
--destination <address> | No | Owner-held token account, defaults to the owner’s canonical ATA |
seesaw strategy withdraw-quote --id <id> --market <address> --quantity <u64>
watchlist#
Wallet-signed commands for your indexer watchlist (at most 50 markets). They sign the indexer's wallet-authentication message with the configured keypair and send nothing to Solana.
watchlist list#
seesaw watchlist list --limit 20
watchlist add#
seesaw watchlist add <market-address>
watchlist remove#
seesaw watchlist remove <market-address>
alerts#
Wallet-signed price alerts. An alert is advisory, not a market fact.
alerts list#
seesaw alerts list
alerts create#
Alert when the YES price of a market crosses a threshold in basis points.
seesaw alerts create --market-id <market-id> --price-bps 6000 --direction above
alerts delete#
seesaw alerts delete <alert-id>
notifications#
Wallet-signed reads and updates of your indexer notifications.
notifications inbox#
seesaw notifications inbox --limit 20
notifications read#
seesaw notifications read <notification-id>
notifications prefs#
seesaw notifications prefs
notifications set-prefs#
seesaw notifications set-prefs --json-prefs '{"pushEnabled":false}'
profile#
profile show#
Show your indexer profile, streak and stats (wallet-signed).
seesaw profile show
profile set#
seesaw profile set --display-name trader_one --anonymous no
handle#
A referral handle is display data; referral attribution binds to the wallet address on chain.
handle resolve#
seesaw handle resolve alice
handle claim#
seesaw handle claim alice
share#
share create#
seesaw share create --kind open --market <market-address>
share show#
seesaw share show <id>
compliance#
Wallet-signed reads and writes of the indexer's compliance services. Nothing is sent to Solana.
compliance attestation#
Show whether your wallet has a current jurisdiction attestation.
seesaw compliance attestation
compliance confirm#
Confirm you are not in a restricted jurisdiction. --accept is required.
seesaw compliance confirm --accept
compliance limits#
Show your cool-off and daily deposit limit.
seesaw compliance limits
compliance set-limits#
| Option | Description |
|---|---|
--cool-off-hours <hours> | Start a cool-off of 24 to 8,760 whole hours |
--daily-deposit-limit <amount> | Limit in base units; none clears the limit |
seesaw compliance set-limits --cool-off-hours 72
river#
Client for a River gateway: simple orders, market data, accounts and fees, and the conditional and algorithmic orders the gateway manages. Every river command takes the group options below, before or after the command name, and is scoped to one registered subaccount. The gateway holds no keys; see River gateway trading for the model.
| Group option | Required | Description |
|---|---|---|
--url <origin> | Yes | River gateway origin |
--key-id <id> | Yes | Registered River request key ID |
--subaccount-id <id> | Yes | Registered River subaccount ID |
river create#
Create a River parent order from a JSON file.
| Option | Required | Description |
|---|---|---|
--order-file <path> | Yes | JSON file with river_id and one River parameter block |
seesaw river create --order-file <path> \
--url <origin> --key-id <id> --subaccount-id <id>
river get#
Inspect a River parent order.
| Argument | Required | Description |
|---|---|---|
<order-id> | Yes | Order ID |
seesaw river get <order-id> \
--url <origin> --key-id <id> --subaccount-id <id>
river list#
List River parent orders in the registered subaccount.
| Option | Required | Description |
|---|---|---|
--river-id <id> | No | River market ID |
--kind <kind> | No | Parent order kind |
--status <status> | No | Parent order status |
--limit <count> | No | Page size (1 through 1000) |
--offset <count> | No | Number of preceding orders to skip |
seesaw river list \
--url <origin> --key-id <id> --subaccount-id <id>
river cancel#
Request cancellation of a River parent order.
| Argument | Required | Description |
|---|---|---|
<order-id> | Yes | Order ID |
seesaw river cancel <order-id> \
--url <origin> --key-id <id> --subaccount-id <id>
river order create#
Place a simple order from a JSON file (river_id, order_type, time_in_force, qty, ...).
| Option | Required | Description |
|---|---|---|
--order-file <path> | Yes | JSON file with one simple order; subaccount_id is refused |
--client-request-id <uuid> | No | UUID that makes a retry of this request idempotent |
seesaw river order create --order-file <path> \
--url <origin> --key-id <id> --subaccount-id <id>
river order get#
Inspect a simple River order.
| Argument | Required | Description |
|---|---|---|
<order-id> | Yes | Order ID |
seesaw river order get <order-id> \
--url <origin> --key-id <id> --subaccount-id <id>
river order list#
List simple River orders of the registered subaccount.
| Option | Required | Description |
|---|---|---|
--river-id <id> | No | River market ID |
--status <status> | No | Order status |
--limit <count> | No | Page size (1 through 10000) |
--offset <count> | No | Number of preceding orders to skip |
seesaw river order list \
--url <origin> --key-id <id> --subaccount-id <id>
river order cancel#
Request cancellation of a simple River order (accepted is not cancelled).
| Argument | Required | Description |
|---|---|---|
<order-id> | Yes | Order ID |
seesaw river order cancel <order-id> \
--url <origin> --key-id <id> --subaccount-id <id>
river order attempts#
Show the native execution attempts of a simple River order.
| Argument | Required | Description |
|---|---|---|
<order-id> | Yes | Order ID |
seesaw river order attempts <order-id> \
--url <origin> --key-id <id> --subaccount-id <id>
river order cancel-retry#
Re-arm a failed or expired cancel of a simple River order.
| Argument | Required | Description |
|---|---|---|
<order-id> | Yes | Order ID |
seesaw river order cancel-retry <order-id> \
--url <origin> --key-id <id> --subaccount-id <id>
river order resubmit#
Resubmit a placement whose signed attempt expired without landing.
| Argument | Required | Description |
|---|---|---|
<order-id> | Yes | Order ID |
seesaw river order resubmit <order-id> \
--url <origin> --key-id <id> --subaccount-id <id>
river health#
Show the gateway projection health.
seesaw river health \
--url <origin> --key-id <id> --subaccount-id <id>
river markets search#
Search the configured River markets.
| Option | Required | Description |
|---|---|---|
--query <text> | No | Text matched against name, ticker and slug |
--status <status> | No | Market status |
--limit <count> | No | Page size (1 through 1000) |
--offset <count> | No | Number of preceding markets to skip |
seesaw river markets search \
--url <origin> --key-id <id> --subaccount-id <id>
river markets lookup#
Look up River markets by ID.
| Option | Required | Description |
|---|---|---|
--river-ids <ids> | Yes | Comma-separated River market IDs |
seesaw river markets lookup --river-ids <ids> \
--url <origin> --key-id <id> --subaccount-id <id>
river orderbook#
Read a River order book (status pending or not_found when none is fresh).
| Argument | Required | Description |
|---|---|---|
<river-id> | Yes | River market ID |
| Option | Required | Description |
|---|---|---|
--levels <count> | No | Levels per side (1 through 10) |
seesaw river orderbook <river-id> \
--url <origin> --key-id <id> --subaccount-id <id>
river watch-orderbooks#
Read public River order book stream messages. The command collects the requested number of snapshots and updates within 30 seconds.
| Option | Required | Description |
|---|---|---|
--river-ids <ids> | Yes | Comma-separated River market IDs (at most 100) |
--count <messages> | No | Snapshots and updates to read, 1 through 100 (default 1) |
seesaw river watch-orderbooks --river-ids 7,9 --count 2 \
--url <origin> --key-id <id> --subaccount-id <id>
river prices#
Read River price candlesticks or history.
| Argument | Required | Description |
|---|---|---|
<river-id> | Yes | River market ID |
| Option | Required | Description |
|---|---|---|
--type <type> | No | Series type |
--interval <interval> | No | Window |
--fidelity <minutes> | No | Bucket fidelity (1 through 120) |
seesaw river prices <river-id> \
--url <origin> --key-id <id> --subaccount-id <id>
river tradeprints#
Read recent River tradeprints.
| Option | Required | Description |
|---|---|---|
--river-ids <ids> | Yes | Comma-separated River market IDs |
--limit <count> | No | Trades per market (1 through 200) |
seesaw river tradeprints --river-ids <ids> \
--url <origin> --key-id <id> --subaccount-id <id>
river fills#
Read native fills of the registered subaccount.
| Option | Required | Description |
|---|---|---|
--river-id <id> | No | River market ID |
--start-time <iso> | No | Earliest fill time (ISO timestamp) |
--end-time <iso> | No | Latest fill time (ISO timestamp) |
--limit <count> | No | Page size (1 through 1000) |
--offset <count> | No | Number of preceding fills to skip |
seesaw river fills \
--url <origin> --key-id <id> --subaccount-id <id>
river positions#
Read native positions of the registered subaccount.
| Option | Required | Description |
|---|---|---|
--river-id <id> | No | River market ID |
--include-closed | No | Include closed positions |
seesaw river positions \
--url <origin> --key-id <id> --subaccount-id <id>
river subaccounts#
List the subaccounts of the registered River key.
seesaw river subaccounts \
--url <origin> --key-id <id> --subaccount-id <id>
river balance#
Show the exchange balance of the registered subaccount.
seesaw river balance \
--url <origin> --key-id <id> --subaccount-id <id>
river portfolio#
Show the verified native portfolio of the registered subaccount.
seesaw river portfolio \
--url <origin> --key-id <id> --subaccount-id <id>
river fees schedules#
Look up River fee schedules (this gateway reports every ID missing).
| Option | Required | Description |
|---|---|---|
--river-ids <ids> | Yes | Comma-separated River market IDs |
seesaw river fees schedules --river-ids <ids> \
--url <origin> --key-id <id> --subaccount-id <id>
river fees native-schedules#
Look up native Seesaw fee schedules.
| Option | Required | Description |
|---|---|---|
--river-ids <ids> | Yes | Comma-separated River market IDs |
seesaw river fees native-schedules --river-ids <ids> \
--url <origin> --key-id <id> --subaccount-id <id>
river fees quote#
Quote the native taker fee of a fill.
| Option | Required | Description |
|---|---|---|
--river-id <id> | Yes | River market ID |
--quantity-d6 <atoms> | Yes | Share quantity in millionths |
--price-bps <bps> | Yes | Fill price in basis points (1 through 9999) |
seesaw river fees quote --river-id <id> --quantity-d6 <atoms> --price-bps <bps> \
--url <origin> --key-id <id> --subaccount-id <id>
stop-loss#
Register, list and cancel stop losses held by a stop-loss keeper. The CLI signs an IOC sell at the floor on one of the owner's durable nonce accounts and hands it to the keeper, which can only submit it unchanged when the best bid reaches the trigger. cancel closes the nonce account on chain first, so the held sell can never land. See stop losses.
stop-loss create#
Sign an IOC sell at the floor on a durable nonce and register it with the keeper.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market address |
--outcome <yes|no> | Yes | Outcome whose shares the stop sells |
--quantity <atoms> | Yes | Share quantity to sell, in share atoms |
--trigger-bps <bps> | Yes | Best bid at or below which the keeper submits the sell |
--floor-bps <bps> | Yes | Limit and worst price of the sell (at most the trigger) |
--protocol-treasury-index <index> | No | Treasury shard [0-7] of the sell; default as below |
-y, --yes | No | Skip the mainnet confirmation for creating a nonce account |
seesaw stop-loss create --market <address> --outcome <yes|no> --quantity <atoms> --trigger-bps <bps> --floor-bps <bps> [--protocol-treasury-index <index>]
When --protocol-treasury-index is omitted, the sell uses the shard the web and
Android apps pick: pickTreasuryIndex(signing wallet, confirmed slot), read
from the configured RPC. Pass the flag to override it.
stop-loss list#
List the wallet's stops at the keeper.
| Option | Required | Description |
|---|---|---|
--market <address> | No | Only stops of this market |
seesaw stop-loss list
stop-loss cancel#
Close the stop nonce account on chain, then make the keeper forget the stop.
| Argument | Required | Description |
|---|---|---|
<stop-id> | Yes | Stop ID returned by create or list |
| Option | Required | Description |
|---|---|---|
-y, --yes | No | Skip the mainnet confirmation for closing the nonce account |
seesaw stop-loss cancel <stop-id>
quotes#
Manage an owner's managed book quotes: the quote state and its limits, a quote delegate, the quote inventory, and full quote-set replacement. The maker quote routes are specified in spec/IX.md.
quotes init#
Create the maker quote state with its collateral ceiling and four lane limits (InitializeMakerQuoteState).
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market PDA |
-y, --yes | No | Skip mainnet confirmation prompt |
--limits-file <path> | Yes | JSON collateral and four lane limits |
seesaw quotes init --market <address> --limits-file <path>
quotes fund#
Add outcome shares or quote collateral to the quote inventory (FundMakerQuoteInventory).
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market PDA |
-y, --yes | No | Skip mainnet confirmation prompt |
--outcome <yes|no> | No | Reserve outcome (default yes) |
--quantity <u64> | No | Share atoms (default 0) |
--location <wallet|ledger> | No | Inventory source or destination (default wallet) |
--token-account <address> | No | Wallet outcome token account, defaults to the canonical ATA |
--bounty-lamports <u64> | No | Top up the reclaim bounty pool (default 0) |
seesaw quotes fund --market <address>
quotes withdraw#
Withdraw outcome shares or quote collateral from the quote inventory (WithdrawMakerQuoteInventory).
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market PDA |
-y, --yes | No | Skip mainnet confirmation prompt |
--outcome <yes|no> | No | Reserve outcome (default yes) |
--quantity <u64> | No | Share atoms |
--location <wallet|ledger> | No | Inventory source or destination (default wallet) |
--token-account <address> | No | Wallet outcome token account, defaults to the canonical ATA |
seesaw quotes withdraw --market <address>
quotes authority#
Install or revoke the quote delegate (SetMakerQuoteAuthority).
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market PDA |
-y, --yes | No | Skip mainnet confirmation prompt |
--delegate <address> | No | Install a quote delegate |
--expiry-slot <u64> | No | Inclusive delegate expiry slot |
--revoke | No | Revoke the current delegate |
seesaw quotes authority --market <address>
quotes replace#
Replace the complete managed quote set in one publication (ReplaceMakerQuotes).
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market PDA |
-y, --yes | No | Skip mainnet confirmation prompt |
--owner <address> | No | Quote state owner, defaults to the signing wallet |
--quotes-file <path> | Yes | JSON array of the complete desired quote set |
--observed-at <unix> | No | Source observation time, required for a nonempty quote set |
--profile <bounded|same-slot|ordinary> | No | Publication validity profile (default bounded) |
--validity-slots <u64> | No | Bounded validity span (default 20) |
--compute-units <n> | Yes | Compute unit limit for the replacement |
seesaw quotes replace --market <address> --quotes-file <path> --compute-units <n>
quotes close#
Close an empty maker quote state and return its rent (CloseMakerQuoteState).
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market PDA |
-y, --yes | No | Skip mainnet confirmation prompt |
--owner <address> | No | Quote state owner, defaults to the signing wallet |
--compute-units <n> | No | Compute unit limit for terminal cleanup (default 1400000) |
seesaw quotes close --market <address>
quotes show#
Read an owner's maker quote state for a market (no signature).
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market PDA |
--owner <address> | Yes | Maker quote state owner |
seesaw quotes show --market <address> --owner <address>
quotes limits#
Replace the collateral ceiling and lane limits (SetMakerQuoteAuthority).
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market PDA |
-y, --yes | No | Skip mainnet confirmation prompt |
--limits-file <path> | Yes | JSON collateral and four lane limits |
seesaw quotes limits --market <address> --limits-file <path>
service#
Public indexer service reads.
service status#
seesaw service status
service time#
Read the indexer clock and the local clock skew. This is not chain time.
seesaw service time
bridge#
bridge quote#
Quote a bridge deposit of USDC or ETH from Base, Arbitrum or Ethereum to
mainnet USDT at a Solana address, through Relay. By default Relay returns a
one-time deposit address to pay from any EVM wallet, and the CLI signs
nothing. --wallet-mode prints the source-chain transactions for the EVM
wallet to sign elsewhere. The quote is checked against the request before it
is printed. --recipient defaults to the configured wallet.
seesaw bridge quote --chain base --token USDC --amount 25 --from 0x<evm-address>
bridge status#
Read the status of a Relay bridge request.
seesaw bridge status <request-id>
confidential#
Work with private wallet data on this device. Secret inputs arrive on file descriptors. Confidential wallet recovery tools (unavailable reference) describes the inputs, the supported recovery scope and the external dependencies.
confidential dependencies#
Show the external dependencies of the confidential vault.
seesaw confidential dependencies
confidential vault#
An account-scoped encrypted desktop vault.
confidential vault init#
| Option | Required | Description |
|---|---|---|
--account <address> | Yes | Solana account that owns the vault |
--vault <path> | Yes | Desktop vault database |
--key-fd <fd> | Yes | Input descriptor with the 32-byte raw vault key |
--seed-fd <fd> | Yes | Input descriptor with the 64-byte Privacy Rings wallet seed |
confidential vault unlock#
Authenticate the vault for this invocation.
| Option | Required | Description |
|---|---|---|
--account <address> | Yes | Solana account that owns the vault |
--vault <path> | Yes | Desktop vault database |
--key-fd <fd> | Yes | Input descriptor with the 32-byte raw vault key |
confidential vault reconcile#
Reconcile shielded notes from a chosen RPC and indexer.
| Option | Required | Description |
|---|---|---|
--account <address> | Yes | Solana account that owns the vault |
--vault <path> | Yes | Desktop vault database |
--key-fd <fd> | Yes | Input descriptor with the 32-byte raw vault key |
--rpc <url> | Yes | Participant-selected Solana RPC |
--indexer <url> | Yes | Participant-selected Privacy Rings indexer |
confidential backup#
Authenticate or create a local backup.
confidential backup create#
| Option | Required | Description |
|---|---|---|
--account <address> | Yes | Solana account that owns the backup |
--passphrase-fd <fd> | Yes | Input descriptor with the raw backup passphrase |
--payload-fd <fd> | Yes | Input descriptor with the canonical backup payload |
--out <path> | Yes | New encrypted backup file |
confidential backup restore#
| Option | Required | Description |
|---|---|---|
--account <address> | Yes | Solana account that owns the backup |
--passphrase-fd <fd> | Yes | Input descriptor with the raw backup passphrase |
--file <path> | Yes | Encrypted backup file |
--check | One mode | Validate the backup without installing recovered records |
--stage-vault <path> | Without --check | New desktop vault for the verified seed and epochs |
--key-fd <fd> | Without --check | Input descriptor with the new 32-byte raw vault key |
confidential keys#
Manage private wallet viewing epochs.
confidential keys qualify#
| Option | Required | Description |
|---|---|---|
--account <address> | Yes | Solana signing account used for both approvals |
--first-signature-fd <fd> | Yes | Input descriptor for the first raw signature |
--second-signature-fd <fd> | Yes | Input descriptor for the second raw signature |
confidential keys rotate#
| Option | Required | Description |
|---|---|---|
--account <address> | Yes | Solana account that owns the vault |
--vault <path> | Yes | Desktop vault database |
--key-fd <fd> | Yes | Input descriptor with the 32-byte raw vault key |
--created-slot <u64> | Yes | Trusted chain slot for the new epoch |
--compromised | No | Mark the prior epoch compromised |
confidential prove#
Check proof capability, or prove with an explicit local worker.
| Option | Required | Description |
|---|---|---|
--circuit <name> | Yes | Pinned circuit key filename |
--action-window-ms <ms> | Yes | Maximum permitted proof duration |
--measured-ms <ms> | No | Worst-case measured time for this circuit on this host |
--check | No | Report proof capability without reading a witness |
--worker <path> | Without --check | Trusted local prover executable |
--keys-dir <path> | Without --check | Directory with the pinned proving keys |
--witness-fd <fd> | No | Input descriptor with the witness bytes (default 0) |
--out <path> | Without --check | New proof file |
confidential replay#
Replay market history from RPC and cross-check an optional indexer snapshot.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market identifier |
--history-file <path> | Yes | Local JSON market history snapshot |
--indexer-file <path> | No | Optional local JSON indexer snapshot for crosscheck |
confidential import#
Import a verified note opening into the local vault.
| Option | Required | Description |
|---|---|---|
--account <address> | Yes | Solana account that owns the vault |
--vault <path> | Yes | Desktop vault database |
--key-fd <fd> | Yes | Input descriptor with the 32-byte raw vault key |
--opening-file <path> | Yes | Local JSON note opening file |
--history-file <path> | Yes | Local JSON market history snapshot |
--indexer-file <path> | No | Optional local JSON indexer snapshot |
confidential reprove#
Reprove an imported note against a newer tree root.
| Option | Required | Description |
|---|---|---|
--account <address> | Yes | Solana account that owns the vault |
--vault <path> | Yes | Desktop vault database |
--key-fd <fd> | Yes | Input descriptor with the 32-byte raw vault key |
--opening-ref <id> | Yes | Imported note opening reference |
--statement-hash-masked <hex> | Yes | 32-byte masked statement hash |
--original-statement-hash-masked <hex> | No | Original 32-byte masked statement hash |
--old-root <hex> | Yes | 32-byte previous Merkle root |
--new-root <hex> | Yes | 32-byte target Merkle root |
--proof-kind <kind> | No | Proof kind (base, custody_step, custody_payout, activation) |
--out <path> | No | Optional output file for reproved bytes |
confidential materialize#
Materialize an imported claim or delivered output.
| Option | Required | Description |
|---|---|---|
--account <address> | Yes | Solana account that owns the vault |
--vault <path> | Yes | Desktop vault database |
--key-fd <fd> | Yes | Input descriptor with the 32-byte raw vault key |
--id <id> | Yes | Claim or output identifier |
--kind <claim|output> | Yes | Materialization kind |
--market <address> | Yes | Market identifier |
--opening-ref <id> | Yes | Imported note opening reference |
--amount <u64> | Yes | Claim/output amount |
--history-file <path> | No | Optional local JSON history/RPC adapter file |
confidential rfq#
Confidential RFQ session and disclosure tools.
confidential rfq status#
Show validated state for an RFQ session.
| Option | Required | Description |
|---|---|---|
--session-file <path> | No | Path to a JSON RFQ session snapshot |
--session-id <id> | No | RFQ session id |
--market <address> | No | Market identifier |
--bundle <id> | No | Confidential bundle id (default 1) |
--quote-nonce <nonce> | No | Unique quote nonce |
--state <state> | No | Expected RFQ state |
confidential rfq disclosure#
Show the honest disclosure manifest for a confidential RFQ bundle.
| Option | Required | Description |
|---|---|---|
--bundle <id> | No | Confidential bundle id (default 1) |
confidential export#
Export selected RFQ records as a signed, audience-bound CBOR document.
| Option | Required | Description |
|---|---|---|
--account <address> | No | Solana account owning the local vault |
--store <path> | No | Local confidential vault store directory |
--service <name> | No | OS keychain service name |
--vault-key-fd <fd> | No | Private input descriptor for the 32-byte vault key |
--seed-fd <fd> | No | Private input descriptor for the 64-byte derivation seed |
--records <ids> | No | Comma-separated list of record ids to export |
--audience-pk <hex> | No | 32-byte audience public key in hex |
--participant-pk <hex> | No | 32-byte participant Ed25519 public key in hex |
--signer-seed-fd <fd> | No | Private input descriptor for 32-byte Ed25519 signing seed |
--purpose <text> | No | Stated disclosure purpose |
--valid-until <u64> | No | Expiry timestamp (u64 ms) |
--out <path> | No | New output path for the CBOR export |
confidential export verify#
Verify a signed selected-record CBOR export against chain state.
| Option | Required | Description |
|---|---|---|
--file <path> | Yes | Path to the CBOR selected-record export file |
--chain-file <path> | Yes | Path to JSON chain commitment/finality snapshot |
--audience-pk <hex> | No | Optional expected 32-byte audience public key in hex |
--now-ms <u64> | No | Optional reference timestamp (u64 ms) |
confidential crank#
Permissionless confidential clearing and closure crank toolkit.
confidential crank plan#
Compute the canonical next crank actions from a market state snapshot.
| Option | Required | Description |
|---|---|---|
--state-file <path> | Yes | Path to a JSON confidential crank state snapshot |
--min-reward <lamports> | No | Minimum expected reward in lamports (default 0) |
--no-unpaid-finalization | No | Skip actions when the work budget cannot cover the configured reward |
confidential crank status#
Summarize pending crank work and budget status for a confidential market.
| Option | Required | Description |
|---|---|---|
--state-file <path> | Yes | Path to a JSON confidential crank state snapshot |
confidential archive#
Verify confidential archival bundles and closure tombstones.
confidential archive verify#
Verify a local archival bundle against its SSTB tombstone and optional CONFCLOS certificate.
| Option | Required | Description |
|---|---|---|
--file <path> | Yes | Path to a JSON archival bundle file |
--certificate-file <path> | No | Optional path to raw 192-byte CONFCLOS certificate file |
--current-slot <u64> | No | Optional current slot for grace-period cleanup check |
pyth#
pyth post-update#
Post a Pyth PriceUpdateV2 that stays on chain, with your own Hermes key
(--pyth-api-key, PYTH_API_KEY or PYTH_API_KEY_FILE; PYTH_HERMES_ENDPOINT
overrides the endpoint). No Seesaw API or relay is used. The CLI closes the
encoded VAA draft and keeps the price update account; your key pays its rent.
Use the printed account with market create --price-update or
market snapshot --price-update.
| Option | Required | Description |
|---|---|---|
--feed <id> | Yes | Pyth price feed id (32 bytes hex) |
--at <unix> | No | Post the first print at or after this time instead of the latest |
--pyth-api-key <key> | No | Hermes key; or PYTH_API_KEY / PYTH_API_KEY_FILE |
--max-confidence-ratio <bps> | No | Refuse a print whose confidence ratio is above this |
-y, --yes | No | Skip the mainnet confirmation prompt |
The latest print serves creation, which admits a start price at most 60 seconds
old. --at <t_end> serves the end snapshot: the print must be the first at or
after t_end, with its predecessor strictly before it.
seesaw pyth post-update --feed ef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d
pyth relay-update#
Read a guardian-signed Pyth price update from a Seesaw Pyth relay
(services/pyth-relay). The relay holds the Hermes key, so no key is needed.
Without --at the command reads the latest update, which market creation
posts. With --at <unix-seconds> it reads the update that settles that
boundary, which the END snapshot posts. Nothing is signed or sent; the Pull
validators and the Pyth Receiver verify the bytes when they are posted.
seesaw pyth relay-update --relay-url https://pyth-relay.example --feed 0x<feed-id> --at 1767225600
keeper#
keeper run#
Run the permissionless lifecycle keeper in the CLI process. Set
SEESAW_OPERATOR_KEEPERS_ENABLED=1 and configure the
third-party keeper profile (unavailable reference).
Explicit CLI RPC, program, and keypair flags override the corresponding service settings.
| Option | Description |
|---|---|
--markets <filter> | Comma-separated market addresses. When unset, the keeper discovers markets. |
--jobs <list> | Comma-separated jobs or all. The budget job requires explicit opt-in. |
DRY_RUN=1 seesaw keeper run --jobs terminal,orders
position#
Position management commands.
If order place reports TraderLedgerFull, a keeper can inspect the full trader ledger and use position evacuate-idle-seat for an authenticated idle slot. The route does not let the keeper choose a payout recipient: token accounts belong to the recorded slot owner. The owner can locate them with position idle-seat-destinations and move balances with position sweep-idle-seat, even after the market account is closed. A slot with live orders or locked balances is ineligible.
position evacuate-idle-seat#
Permissionlessly clear one idle slot in a full trader ledger. The keeper pays rent for fresh owner-controlled token accounts; the owner receives every balance.
seesaw position evacuate-idle-seat --market <market>
The command reads the finalized trader ledger and selects an idle seat from its
recorded owners. Supply --owner and --slot-index together to select a seat
explicitly. The command chooses a fresh destination nonce when --nonce is
omitted. The output and the IdleSeatEvacuated event record the owner, slot,
and nonce for later recovery.
position idle-seat-destinations#
Discover the three token accounts and their balances from the market, owner, and nonce recorded in IdleSeatEvacuated.
seesaw position idle-seat-destinations --market <market> --owner <owner> --nonce <u64>
If the market account has closed, add --settlement-mint <mint> from the original market record. The command checks each initialized SPL token account's mint and owner.
position sweep-idle-seat#
As the seat owner, move evacuated balances into existing owner token accounts and close the temporary accounts to recover their rent.
seesaw position sweep-idle-seat --market <market> --nonce <u64> --quote-target <owner-quote-account> --yes-target <owner-yes-account> --no-target <owner-no-account>
Only target flags for nonzero balances are required. Add --settlement-mint <mint> if the market account has closed. The command verifies source and target mint/owner bindings, then signs SPL Token transfers and closes the temporary accounts.
position get#
Fetch and decode a position account.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account address |
--user <address> | No | User address (defaults to wallet) |
seesaw position get --market Mkt1abc123def456ghi789jkl012mno345pqr678stu
{
"success": true,
"data": {
"address": "Pos1abc...",
"market": "Mkt1abc...",
"owner": "User1abc...",
"yesShares": "500000",
"noShares": "0",
"lockedYesShares": "100000",
"lockedNoShares": "0",
"collateralDeposited": "500000",
"collateralLocked": "100000",
"payout": "0",
"totalBought": "500000",
"totalSold": "0",
"totalFeesPaid": "10000",
"orderCount": 2,
"settled": false
},
"error": null,
"meta": { "command": "position get", "duration_ms": 98 }
}
position mint#
Mint YES/NO share pairs by depositing settlement tokens (USDT).
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account address |
--amount <lamports> | Yes | Amount in base units |
--stablecoin-account <address> | Yes | User's settlement token account |
--yes-account <address> | Yes | User's YES mint token account |
--no-account <address> | Yes | User's NO mint token account |
--settlement-mint <address> | Yes | Settlement mint address |
--build-only | No | Print the unsigned transaction without simulating or sending it |
seesaw position mint \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--amount 1000000 \
--stablecoin-account ATA1abc123def456ghi789jkl012mno345pqr678stu \
--yes-account YesATA1abc123def456ghi789jkl012mno345pqr6 \
--no-account NoATA1abc123def456ghi789jkl012mno345pqr67 \
--settlement-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
{
"success": true,
"data": {
"market": "Mkt1abc...",
"position": "Pos1abc...",
"amount": "1000000"
},
"error": null,
"meta": {
"command": "position mint",
"duration_ms": 1080,
"signature": "4rNx7u...",
"slot": 312456870
}
}
position merge-complete-set#
Merge an unresolved complete YES/NO set into settlement quote using the V2
MergeCompleteSet instruction (0x0B). Wallet portions are burned from the
YES/NO token accounts; remaining portions debit free trader-ledger balances.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account |
--vault <address> | Yes | Settlement vault |
--quote-account <address> | Yes | User settlement-token destination |
--ledger <address> | Yes | Trader ledger |
--position <address> | Yes | User position |
--yes-account <address> | Yes | User YES token account |
--no-token-account <address> | Yes | User NO token account |
--yes-mint <address> | Yes | YES mint |
--no-mint <address> | Yes | NO mint |
--settlement-mint <address> | Yes | Settlement mint |
--protocol-config <address> | Yes | Protocol config |
--quantity <lamports> | Yes | Complete-set quantity |
--wallet-yes <lamports> | No | Wallet YES portion (default 0) |
--wallet-no <lamports> | No | Wallet NO portion (default 0) |
seesaw position merge-complete-set \
--market <market> --vault <vault> --quote-account <quote-ata> \
--ledger <trader-ledger> --position <position> \
--yes-account <yes-ata> --no-token-account <no-ata> \
--yes-mint <yes-mint> --no-mint <no-mint> \
--settlement-mint <settlement-mint> --protocol-config <config> \
--quantity 1000 --wallet-yes 400 --wallet-no 600 --yes
position redeem#
Redeem winning shares for settlement tokens after market resolution.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account address |
--amount <lamports> | Yes | Amount to redeem in base units |
--token-type <type> | Yes | Token type: yes or no |
--stablecoin-account <address> | Yes | User's settlement token account |
--yes-account <address> | Yes | User's YES mint token account |
--no-account <address> | Yes | User's NO mint token account |
--settlement-mint <address> | Yes | Settlement mint address |
seesaw position redeem \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--amount 500000 \
--token-type yes \
--stablecoin-account ATA1abc123def456ghi789jkl012mno345pqr678stu \
--yes-account YesATA1abc123def456ghi789jkl012mno345pqr6 \
--no-account NoATA1abc123def456ghi789jkl012mno345pqr67 \
--settlement-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
{
"success": true,
"data": {
"market": "Mkt1abc...",
"position": "Pos1abc...",
"amount": "500000",
"tokenType": "yes"
},
"error": null,
"meta": {
"command": "position redeem",
"duration_ms": 1020,
"signature": "1mTy8v...",
"slot": 312456880
}
}
position withdraw#
Withdraw trader-ledger free YES/NO share credits as SPL tokens.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account address |
--amount <lamports> | Yes | Amount to withdraw in base units |
--token-type <type> | Yes | Token type: yes or no |
--mint <address> | Yes | YES or NO mint address for the given type |
--token-account <address> | Yes | User's token account for the withdrawn type |
seesaw position withdraw \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--amount 200000 \
--token-type yes \
--mint YesMint1abc123def456ghi789jkl012mno345pqr6 \
--token-account YesATA1abc123def456ghi789jkl012mno345pqr678
{
"success": true,
"data": {
"market": "Mkt1abc...",
"position": "Pos1abc...",
"amount": "200000",
"tokenType": "yes"
},
"error": null,
"meta": {
"command": "position withdraw",
"duration_ms": 990,
"signature": "5kHz9w...",
"slot": 312456890
}
}
position mark-settled#
Permissionlessly settle and pay an abandoned resolved position after the
post-grace window. The CLI reads the settlement mint from the market and
derives the recorded owner's payout account.
Pass --create-owner-ata to pay the rent for a missing canonical payout account.
Account creation and settlement land together in one transaction.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market PDA |
--owner <address> | Yes | Recorded position owner |
--owner-settlement-ata <addr> | No | Override the owner's derived payout account |
--settlement-mint <address> | No | Expected settlement mint |
--create-owner-ata | No | Pay rent for the missing canonical account |
seesaw position mark-settled \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--owner User1abc123def456ghi789jkl012mno345pqr678s
position close#
Permissionlessly close a settled position account and return rent to its recorded owner. The CLI derives and authenticates metadata for live signed-source markets.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market PDA |
--owner <address> | Yes | Position owner and rent receiver |
--market-meta <address> | No | Expected metadata PDA for a live external market |
seesaw position close \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--owner User1abc123def456ghi789jkl012mno345pqr678s
position claim-payout-escrow#
Withdraw the signer's owner payout escrow with ClaimOwnerPayoutEscrow. The
escrow and its vault are derived from the owner, token program and settlement
mint. --rent-payer must equal the escrow's recorded rent payer, which receives
both rents.
| Option | Required | Description |
|---|---|---|
--settlement-mint <address> | Yes | Settlement mint of the escrowed payout |
--rent-payer <address> | Yes | The escrow's recorded rent payer |
--token-program <address> | No | Quote token program, default SPL Token |
--destination <address> | No | Owner-held quote token account, default the owner ATA |
seesaw position claim-payout-escrow \
--settlement-mint <mint> --rent-payer <address>
admin#
Protocol admin commands. These require the protocol authority keypair.
admin init#
Initialize protocol configuration. This is a one-time operation. The current multi-fee-recipient layout requires all 8 protocol treasury token accounts up front, encoded as a JSON array in shard order.
| Option | Required | Description |
|---|---|---|
--treasury-recipients <json> | Yes | JSON array of exactly 8 SPL token-account addresses |
--settlement-mint <address> | Yes | Default settlement mint address |
--program-data <address> | Yes | BPF upgradeable loader program-data account |
--tick-size <bps> | No | Tick size in basis points (default: 100) |
-y, --yes | No | Skip mainnet confirmation prompt after reviewing inputs |
seesaw admin init \
--treasury-recipients '[
"TreasuryShard111111111111111111111111111",
"TreasuryShard222222222222222222222222222",
"TreasuryShard333333333333333333333333333",
"TreasuryShard444444444444444444444444444",
"TreasuryShard555555555555555555555555555",
"TreasuryShard666666666666666666666666666",
"TreasuryShard777777777777777777777777777",
"TreasuryShard888888888888888888888888888"
]' \
--settlement-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB \
--program-data ProgramDataAddr123456789abcdefghijklmnop
{
"success": true,
"data": {
"config": "CfgXx..."
},
"error": null,
"meta": {
"command": "admin init",
"duration_ms": 1200,
"signature": "2bGk0x...",
"slot": 312456900
}
}
admin pause#
Pause all protocol trading activity. No new orders or markets can be created while paused.
| Option | Description |
|---|---|
--build-only | Print the unsigned transaction without simulating or sending it |
seesaw admin pause
{
"success": true,
"data": {
"config": "CfgXx...",
"paused": true
},
"error": null,
"meta": {
"command": "admin pause",
"duration_ms": 890,
"signature": "3cHl1y...",
"slot": 312456910
}
}
admin propose-authority#
Propose a pending two-step ConfigAccount.authority rotation, or cancel a pending proposal with the all-zero authority payload.
| Option | Required | Description |
|---|---|---|
--new-authority <address> | Choice | Pending authority to propose |
--cancel | Choice | Cancel a pending authority rotation |
-y, --yes | No | Skip mainnet confirmation prompt after reviewing inputs |
seesaw admin propose-authority --new-authority SquadsMultisig1111111111111111111111111
admin claim-authority#
Claim a pending ConfigAccount.authority rotation after the on-chain timelock elapses. The signer must be the pending authority.
| Option | Required | Description |
|---|---|---|
-y, --yes | No | Skip mainnet confirmation prompt after reviewing inputs |
seesaw admin claim-authority
admin set-pauser#
Set the escalation-only pauser guardian key. Passing the all-zero pubkey disables pauser access fail-closed.
| Option | Required | Description |
|---|---|---|
--pauser <address> | Yes | New pauser pubkey |
-y, --yes | No | Skip mainnet confirmation prompt |
--build-only | No | Print the unsigned transaction without simulating or sending it |
seesaw admin set-pauser --pauser Pauser111111111111111111111111111111111111
admin unpause#
Resume protocol trading activity.
| Option | Description |
|---|---|
--build-only | Print the unsigned transaction without simulating or sending it |
seesaw admin unpause
{
"success": true,
"data": {
"config": "CfgXx...",
"paused": false
},
"error": null,
"meta": {
"command": "admin unpause",
"duration_ms": 870,
"signature": "4dIm2z...",
"slot": 312456920
}
}
admin enable-post-only-mode#
Enable global post-only mode. Existing makers may continue posting/cancelling, while taking is halted by the program.
| Option | Required | Description |
|---|---|---|
-y, --yes | No | Skip mainnet confirmation prompt after reviewing inputs |
seesaw admin enable-post-only-mode
admin disable-post-only-mode#
Disable global post-only mode.
| Option | Required | Description |
|---|---|---|
-y, --yes | No | Skip mainnet confirmation prompt after reviewing inputs |
seesaw admin disable-post-only-mode
admin update-fee-config#
Update the taker fee coefficient and five-way allocation with UpdateFeeConfig. The five shares are bps of the fee and must sum to 10_000.
| Option | Required | Description |
|---|---|---|
--taker-fee-coefficient <bps> | Yes | Fee curve coefficient from 0 to 10,000. Zero disables taker fees. |
--protocol-share <bps> | Yes | Protocol share in bps of fee |
--creator-share <bps> | Yes | Creator share in bps of fee |
--referral-share <bps> | Yes | Referral share in bps of fee |
--builder-share <bps> | Yes | Builder share in bps of fee (0–1000; 0 turns builder fees off) |
--maker-rebate-share <bps> | No | Maker share in bps of fee; pass explicitly (CLI omission uses zero) |
--maker-rebate-min-rest-seconds <seconds> | No | Maker eligibility age; pass explicitly (CLI omission uses zero) |
--dry-run | No | Simulate without sending |
--build-only | No | Print the built transaction without sending |
seesaw admin update-fee-config \
--taker-fee-coefficient 400 \
--protocol-share 4500 \
--creator-share 500 \
--referral-share 500 \
--builder-share 500 \
--maker-rebate-share 4000 \
--maker-rebate-min-rest-seconds 10
{
"success": true,
"data": {
"config": "CfgXx...",
"takerFeeCoefficientBps": 400,
"protocolShareBps": 4500,
"creatorShareBps": 500,
"referralShareBps": 500,
"builderShareBps": 500,
"makerRebateShareBps": 4000,
"makerRebateMinRestSeconds": 10
},
"error": null,
"meta": {
"command": "admin update-fee-config",
"duration_ms": 910,
"signature": "5eJn3a...",
"slot": 312456930
}
}
The shipped allocation is 45% protocol / 5% creator / 5% referral / 5% builder / 40% maker rebate. Eligible maker fills credit the maker's free quote balance; ineligible maker allocation and rounding dust go to protocol, as do the referral allocation without an eligible referrer and the builder allocation when the order names no approved builder. See fee constants and allocation details.
<!-- src: program/src/logic/fee.rs:187 FeeSplit5::TARGET -->The example explicitly sets shipped defaults, including the maker resting-age gate. It is not a live-config attestation. Maker allocation is credited only for eligible fills; read deployed config before changing governance settings.
<!-- src: program/src/state/config.rs:1098 ConfigAccount::new --> <!-- src: packages/cli/src/commands/admin/index.ts:651 update-fee-config -->admin update-tick-size#
Update the global order book tick size (minimum price increment). The shared global microstructure cooldown applies; this command does not select or mutate a market account.
| Option | Required | Description |
|---|---|---|
--tick-size <bps> | Yes | New tick size in basis points (1-1000) |
seesaw admin update-tick-size \
--tick-size 50
{
"success": true,
"data": {
"config": "CfgXx...",
"tickSizeBps": 50
},
"error": null,
"meta": {
"command": "admin update-tick-size",
"duration_ms": 880,
"signature": "6fKo4b...",
"slot": 312456940
}
}
admin update-treasury-recipients#
Atomically rotate all 8 protocol treasury recipient token accounts. Pass the full array: to replace one slot, keep the other 7 addresses unchanged. The on-chain instruction is authority-signed and rate-limited.
| Option | Required | Description |
|---|---|---|
--treasury-recipients <json> | Yes | JSON array of exactly 8 SPL token-account addresses |
-y, --yes | No | Skip mainnet confirmation prompt after reviewing inputs |
seesaw admin update-treasury-recipients \
--treasury-recipients '[
"TreasuryShard111111111111111111111111111",
"TreasuryShard222222222222222222222222222",
"TreasuryShard333333333333333333333333333",
"TreasuryShard444444444444444444444444444",
"TreasuryShard555555555555555555555555555",
"TreasuryShard666666666666666666666666666",
"TreasuryShard777777777777777777777777777",
"TreasuryShard888888888888888888888888888"
]'
admin update-min-resting-notional#
Update the global minimum quote notional required for a resting remainder. The shared global microstructure cooldown applies; this command does not select or mutate a market account.
| Option | Required | Description |
|---|---|---|
--min-resting-notional <u64> | Yes | New floor in settlement-token base units, max 100000000 |
-y, --yes | No | Skip mainnet confirmation prompt |
seesaw admin update-min-resting-notional \
--min-resting-notional 1000000
admin update-market-cap#
Update a market's YES/NO supply cap. This is accepted from the market creator or protocol authority on-chain.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market PDA |
--max-total-shares <u64> | Yes | Zero disables the cap |
-y, --yes | No | Skip mainnet confirmation prompt |
--build-only | No | Print the unsigned transaction without simulating or sending it |
seesaw admin update-market-cap \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--max-total-shares 1000000000
admin set-market-emergency-status#
Set a single market's emergency status without changing global protocol pause state.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market PDA |
--status <n> | Yes | 0=None, 1=PostOnly, 2=Paused, 3=ForceCancelOnly |
--reason <utf8> | No | Operator-visible reason tag |
-y, --yes | No | Skip mainnet confirmation prompt |
--build-only | No | Print the unsigned transaction without simulating or sending it |
seesaw admin set-market-emergency-status \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--status 3 \
--reason incident-2026-05-22
admin force-cancel-market-orders#
Force-cancel one resting order while the market is in ForceCancelOnly mode.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market PDA |
--maker <address> | Yes | Original order owner |
--maker-token-account <address> | Yes | Maker's settlement token account |
--maker-yes-ata <address> | Yes | Maker's YES share token account |
--maker-no-ata <address> | Yes | Maker's NO share token account |
--settlement-mint <address> | Yes | Settlement mint |
--order-id <u64> | Yes | Resting order to force-cancel |
-y, --yes | No | Skip mainnet confirmation prompt |
--build-only | No | Print the unsigned transaction without simulating or sending it |
seesaw admin force-cancel-market-orders \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--maker Maker1abc123def456ghi789jkl012mno345pqr67 \
--maker-token-account MakerStableAta123456789abcdefghijk \
--maker-yes-ata MakerYesAta123456789abcdefghijklmnop \
--maker-no-ata MakerNoAta123456789abcdefghijklmnopq \
--settlement-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB \
--order-id 42
admin operational-params#
Replace all nine operational fields written by UpdateOperationalParams. Every
value is required (omitted spline settings are never defaulted). Before
confirmation the command reads the current Config and prints a before/after
review; the JSON result includes review with before, after, changed,
observedSlot and observedConfigSha256. The review is not an on-chain
compare-and-swap; use --expect-config-sha256 to re-check a stored proposal.
Bounds mirror on-chain validation: closer reward <= 1000000 lamports, price
staleness <= 3600 seconds, expiration window <= 2592000 seconds, explicit
market duration bounds must be 0 or between 60 and 604800 seconds with
min <= max, and max order size must be in [1, 281474976710655].
| Option | Required | Description |
|---|---|---|
--closer-cap-oracle-lamports <u64> | Yes | Dutch closer cap for oracle-class closes, 1..=50,000,000 |
--closer-cap-plain-lamports <u64> | Yes | Dutch closer cap for plain closes, 1..=50,000,000 |
--closer-ramp-oracle-seconds <u32> | Yes | Oracle-class closer ramp, 1..=604,800 seconds |
--closer-ramp-plain-seconds <u32> | Yes | Plain-class closer ramp, 1..=604,800 seconds |
--max-price-staleness-seconds <u64> | Yes | Maximum oracle price age, zero selects protocol default |
--market-expiration-window-seconds <u64> | Yes | Expiration grace window, zero selects protocol default |
--min-market-duration-seconds <u64> | Yes | Minimum market duration, zero selects protocol default |
--max-market-duration-seconds <u64> | Yes | Maximum market duration, zero selects protocol default |
--max-order-size <u64> | Yes | Maximum order size; must be nonzero |
--spline-flags <u8> | Yes | Spline feature flags (protocol default 0) |
--spline-min-commitment <u64> | Yes | Minimum spline commitment (protocol default 10000000) |
--spline-mid-jump-reset-bps <u16> | Yes | Midpoint reset threshold (protocol default 0) |
--expect-config-sha256 <hex> | No | Abort if Config changed since the recorded review |
--dry-run | No | Simulate without sending |
--build-only | No | Print the built transaction without sending |
-y, --yes | No | Skip mainnet confirmation prompt |
seesaw admin operational-params \
--closer-cap-oracle-lamports 1710000 \
--closer-cap-plain-lamports 200000 \
--closer-ramp-oracle-seconds 2480 \
--closer-ramp-plain-seconds 1000 \
--max-price-staleness-seconds 60 \
--market-expiration-window-seconds 86400 \
--min-market-duration-seconds 60 \
--max-market-duration-seconds 604800 \
--max-order-size 1000000000 \
--spline-flags 1 \
--spline-min-commitment 10000000 \
--spline-mid-jump-reset-bps 250
trade#
Quote or execute an outcome trade using the order book and eligible spline seats. Route selection compares a direct trade with the available complete-set path. Execution submits the guarded legs and final balance assertion together.
trade route#
Compare routes at a confirmed snapshot. Pass --execute to sign and submit the
selected route. In quote mode, --owner can name a trader other than the configured wallet.
trade buy#
Buy YES or NO shares. --route accepts auto, direct, or complete-set.
Pass --free-funds to use the trader ledger. A scoped trade takes --strategy and
--strategy-group. A delegate also passes --strategy-owner and uses their configured signer.
trade sell#
Sell YES or NO shares using the same funding and route options as trade buy.
A complete-set sell buys the complementary outcome and merges the resulting pair.
spline#
Maker series and market-specific seat lifecycle commands. Spline shapes use two JSON arrays of
exactly 16 compiled CurveLevel objects with endQuantityLots and
priceOffsetBps integer fields.
spline series#
Use spline series to initialize and fund a maker series, update its template
or subscription, withdraw idle collateral or close the series. The subcommands
are init, update-template, update-subscription, deposit-vault,
withdraw-vault, top-up-lamports, attach-next, and close.
spline seat#
Use spline seat for the maker's account on a specific market. The subcommands
are attach, update-shape, update-mid, rotate-authority, top-up,
flag-below-floor, make-dormant, settle, recover, and close.
spline update-subscription#
Set the eligible market ranges, commitment and crank reward for a series.
Use --no-auto-attach to save the settings with permissionless attachment disabled.
spline top-up-series-lamports#
Fund a series' separate lamport budget for permissionless attachment.
spline top-up-seat#
Transfer quote collateral from the signing maker's series vault into their seat on a market.
spline flag-seat-below-floor#
Sample a seat's bid and ask depth against the governed floor.
spline make-seat-dormant#
Mark a seat dormant after the required sequence of depth misses.
spline close-seat#
Close a settled seat and return its storage rent to the series.
spline init#
Initialize a creator-owned spline for one feed and duration series. The recorder-v1 tail is attached automatically and tag 58 is emitted.
seesaw spline init --settlement-mint <mint> --feed-id <32-byte-hex> \
--duration-seconds 900 --initial-mid-price-bps 5000 \
--max-quote-age-seconds 45 --default-commitment 10000000 \
--bid-level-count 16 --ask-level-count 16 \
--bid-levels '<16-level-json-array>' --ask-levels '<16-level-json-array>'
spline update-shape#
Replace a spline shape. Pass --market when the spline is attached. The
recorder tail is attached automatically.
seesaw spline update-shape --spline <address> --market <address> \
--max-quote-age-seconds 45 \
--default-commitment 10000000 --bid-level-count 16 --ask-level-count 16 \
--bid-levels '<16-level-json-array>' --ask-levels '<16-level-json-array>'
spline update-mid#
Publish the spline sequence and midpoint with --profile same-slot by default.
Encode the sequence as (anchorSlot << 20) | counter, with a 20-bit counter.
--valid-for-slots is the span from that anchor, at most 150 slots; it defaults
to zero. Bounded quotes use --profile bounded; ordinary quotes require a zero
span. Same-slot quotes execute only in their installation slot, including when
their signed window spans additional slots. Slot validity does not guarantee
priority or ordering relative to takers.
Add --build-only to print the unsigned transaction (data.transaction, meta.buildOnly: true) without simulating or sending it.
seesaw spline update-mid --spline <address> --sequence 1048576000043 \
--expected-authority-epoch 0 --expected-market-trading-generation 0 \
--expected-program-generation 1 --source-observed-at-unix <unix-seconds> \
--profile same-slot --valid-for-slots 0 \
--new-mid-price-bps 5050 --active
The example anchors at slot 1,000,000 with counter 43. Use the current slot and the account's current epoch and generations when publishing.
spline pause#
Pause a seat with the UpdateSeatQuote pause form. The program sets
sequence = max(sequence, floor) and active = false, emits no event, and
keeps the seat's priority. The floor must anchor to a slot no later than now.
seesaw spline pause --spline <address> --expected-authority-epoch 0 \
--sequence-floor 1048576000044
spline update-params#
Replace masked quote-program params with UpdateSeatParams. It shares the
quote sequence, so --sequence must exceed the stored one, and it binds the
installed program generation. Each --param is an index 0..15 and a signed
value.
seesaw spline update-params --spline <address> --sequence 1048576000045 \
--expected-authority-epoch 0 --expected-program-generation 1 \
--param 0=120 --param 3=-45
spline install-program#
Install a quote program on an attached seat with UpdateSeatProgram. Only the
maker signs. The program validates the header, code and caps, probes the ladder,
and advances the program generation. Pass --market-meta on external markets.
seesaw spline install-program --spline <address> --market <address> \
--header 01000102101001002100000019001e00 \
--code 010f1000010e4300010d4400 \
--cap-bid-lots 1000 --cap-ask-lots 1000 --ema-tau-seconds 120
spline rotate-authority#
Rotate the publication delegate without replacing the shape or consumed capacity.
Only the creator signs. Every rotation, including an expiry-only change, advances
the authority epoch. An all-zero public key revokes the delegate; a session expiry
of 18446744073709551615 has no expiry. Existing delegate quotes are shortened
to the new session expiry or ended on revocation; creator quotes are preserved.
seesaw spline rotate-authority --spline <address> --new-authority <address> \
--session-expiry-slot <slot> --expected-authority-epoch <u32>
spline attach#
Attach a spline to a compatible market and commit collateral.
seesaw spline attach --market <address> --feed-id <32-byte-hex> \
--duration-seconds 900 --commit-amount 10000000
spline attach-from-series#
Attach the next eligible market for a maker series using --maker, --feed-id,
--duration-seconds, --settlement-mint, and --markets (a JSON array of
market addresses). If the commitment is below the settlement currency’s
discovery depth floor, the result includes discoveryWarning. Other makers'
quotes and book orders can supply the remaining depth.
spline settle#
Settle an attached spline after the market reaches a terminal state.
seesaw spline settle --market <address> --feed-id <32-byte-hex> \
--duration-seconds 900 --market-creator <address>
spline settle-and-close#
Settle a maker's seat on a resolved native Pyth market and close it in one transaction, so its
rent returns to the series. Any wallet may call it. The command is also available as
spline seat settle-and-close.
seesaw spline settle-and-close --market <address> --maker <address>
spline recover#
Recover an unresolved attached creator spline and return its remaining inventory to the creator's token accounts.
seesaw spline recover --spline <address> --market <address> \
--creator-yes-token-account <address> \
--creator-no-token-account <address>
spline deposit-vault#
Deposit settlement tokens into a spline vault. Tag 59 is emitted with the post-transfer vault balance.
seesaw spline deposit-vault --spline <address> --creator-token-account <ata> \
--amount 10000000
spline withdraw-vault#
Withdraw idle settlement tokens from a spline vault. This remains available during pause because committed collateral is held by the market vault, which is not an account to this instruction. Tag 60 is emitted.
seesaw spline withdraw-vault --spline <address> --creator-token-account <ata> \
--amount 10000000
spline close#
Close an unattached or fully settled spline and its vault. Tag 61 is emitted.
seesaw spline close --spline <address>
api#
Indexer API commands. These query the Seesaw indexer for aggregated protocol data. No keypair is required for public endpoints.
api markets#
List markets from the indexer. With --view discover, read one page of a
discovery list (spec/DISCOVERY.md) and its snapshot.
| Option | Description |
|---|---|
--mint <address|all> | Settlement mint; all only with --view discover |
--view <view> | discover: the ranked discovery lists |
--sort <sort> | Discovery: depth (default), expiry or spread |
--eligible <eligible> | Discovery: true (default) or any |
--no-collapse | Discovery: list every duplicate market |
--limit <n> | Discovery page size, 1 to 100 |
--offset <n> | Discovery page offset |
seesaw api markets
seesaw api markets --view discover --mint all --sort expiry
{
"success": true,
"data": [
{
"id": "Mkt1abc...",
"pair": "SOL/USD",
"state": "TRADING",
"yesPrice": 0.52,
"noPrice": 0.48,
"volume": 15200.5,
"timeRemaining": "8m 32s"
}
],
"error": null,
"meta": { "command": "api markets", "duration_ms": 210 }
}
api market#
Get detailed market info from the indexer.
| Option | Description |
|---|---|
<id> | Market ID (positional argument) |
seesaw api market Mkt1abc123def456ghi789jkl012mno345pqr678stu
{
"success": true,
"data": {
"id": "Mkt1abc...",
"pair": "SOL/USD",
"state": "TRADING",
"startPrice": 142.5,
"currentPrice": 143.1,
"yesPrice": 0.62,
"noPrice": 0.38,
"volume": 15200.5,
"totalTrades": 48,
"totalPositions": 12,
"timeRemaining": "8m 32s",
"createdAt": "2026-03-04T12:00:00.000Z"
},
"error": null,
"meta": { "command": "api market", "duration_ms": 180 }
}
api leaderboard#
Get the leaderboard from the indexer.
| Option | Required | Description |
|---|---|---|
--period <period> | No | Time period: daily, weekly, monthly, allTime (default: weekly) |
--metric <metric> | No | Sort metric: pnl, volume, winRate, trades (default: pnl) |
seesaw api leaderboard --period weekly --metric pnl
{
"success": true,
"data": [
{
"rank": 1,
"address": "Top1abc...",
"stats": {
"totalPnl": 4250.0,
"winRate": 0.72,
"totalTrades": 156,
"totalVolume": 52000.0
}
}
],
"error": null,
"meta": { "command": "api leaderboard", "duration_ms": 195 }
}
api publication-receipt#
Read a publication by transaction signature. The receipt includes provider dispatch and selection observations, the finalized Solana outcome, and the canonical position of indexed publications. Delivery and stand-in attribution are nullable when the evidence is ambiguous. This public read does not require a wallet.
seesaw --api-url <indexer-url> api publication-receipt <signature>
api publication-attempts#
List the latest signed attempts observed in the publisher journal for a maker stream.
Use --kind spline_seat for a seat or --kind managed_quotes for a managed quote state.
--limit accepts 1–100 and defaults to 10. The response reports the publisher's
lifecycle state and whether it chose ordinary fallback. Older journals report a null
fallback value. Read a signature with api publication-receipt for its chain outcome
and provider observations.
seesaw --api-url <indexer-url> api publication-attempts <market> <owner> --kind managed_quotes
api stats#
Get protocol-wide statistics from the indexer.
| Option | Description |
|---|---|
| (none) | Fetches global protocol stats |
seesaw api stats
{
"success": true,
"data": {
"totalMarkets": 15470,
"totalVolume": 2450000.0,
"totalTrades": 89200,
"activeMarkets": 12,
"totalUsers": 3400
},
"error": null,
"meta": { "command": "api stats", "duration_ms": 150 }
}
api stats-personal#
Get personal trading statistics. Requires authentication.
| Option | Required | Description |
|---|---|---|
--token-stdin | No | Read auth token from stdin instead of argv |
export SEESAW_API_TOKEN=eyJhbGci...
seesaw api stats-personal
{
"success": true,
"data": {
"totalPnl": 1250.0,
"winRate": 0.65,
"totalTrades": 42,
"totalVolume": 8500.0,
"marketsParticipated": 28
},
"error": null,
"meta": { "command": "api stats-personal", "duration_ms": 175 }
}
api achievements#
Get user achievements. Requires authentication. With --all, list the public achievement
catalog instead (no authentication), in the order the indexer serves it.
| Option | Required | Description |
|---|---|---|
--token-stdin | No | Read auth token from stdin instead of argv |
--all | No | List the public achievement catalog (no auth) |
export SEESAW_API_TOKEN=eyJhbGci...
seesaw api achievements
seesaw api achievements --all
{
"success": true,
"data": [
{
"id": "first_trade",
"name": "First Trade",
"description": "Place your first order",
"unlockedAt": "2026-02-15T09:30:00.000Z"
},
{
"id": "winning_streak_5",
"name": "Hot Streak",
"description": "Win 5 markets in a row",
"unlockedAt": null
}
],
"error": null,
"meta": { "command": "api achievements", "duration_ms": 160 }
}
api exchange#
Read the indexer's exchange-style API (/api/v1/exchange). Every subcommand is a public read
except account, which needs an auth token like api stats-personal.
| Subcommand | Reads |
|---|---|
symbols [--limit] [--offset] | Exchange symbols (page size 1-100) |
symbol <symbol> | One symbol or instrument |
markets [--limit] [--offset] | Market snapshots |
market <symbol> | One market snapshot |
orderbook <symbol> [--limit] | Book snapshot (depth 1-200) |
ticker <symbol> | Ticker |
trades <symbol> [--limit] | The symbol's own outcome-lane trades (1-500) |
candles <symbol> [--interval] [--limit] | YES-lane candles; interval 60, 300, 900, 3600 or 86400 s |
quality [symbol] | Data quality of every symbol, or of one |
reconcile <symbol> | Reconciliation metadata |
account [--token-stdin] [--limit] [--offset] | The authenticated wallet's account (auth) |
seesaw api exchange trades 'SEESAW:SOL-USD:20260708T1400:15M:YES' --limit 20
seesaw api exchange candles 'SEESAW:SOL-USD:20260708T1400:15M:YES' --interval 300
replay#
Record one market and replay it through the program's own matching code with the seesaw-replay
engine. record uses the RPC or indexer source of @seesaw/core; the other commands call the
binary named by SEESAW_REPLAY_BIN, else seesaw-replay on PATH (build it with
cargo build --release -p seesaw-replay). These commands send no transaction. The modeled
routes and the known limits are in Replay and backtesting.
replay record#
Write a recording (schema version 1) of one market. Without --checkpoint the recording holds a
fresh checkpoint and no history; record again later with that file as --checkpoint to collect
everything after it.
| Option | Description |
|---|---|
--out <file> | Recording file to write (required) |
--source <source> | rpc (default) or indexer |
--checkpoint <file> | Record forward from this recording or checkpoint file |
--program-commit <sha> | Program commit of the deployment (required) |
--wire-digest <digest> | wire of spec/launch/version-policy.json at that commit (required) |
seesaw replay record <market> --out start.json --program-commit <sha> --wire-digest <digest>
seesaw replay record <market> --checkpoint start.json --out market.json --program-commit <sha> --wire-digest <digest>
replay run#
Replay a recording and report the first difference between computed and recorded fills. Exit
code 1 with the report in data on a difference.
| Option | Description |
|---|---|
--until <signature> | Stop after this transaction and print its fills |
seesaw replay run market.json
replay reproduce#
Replay up to one transaction and print the book before it, the computed and the recorded fills.
| Option | Description |
|---|---|
--until <signature> | Transaction to stop after (required) |
seesaw replay reproduce market.json --until <signature>
replay simulate#
Run a strategy against a recording: an order list file (paper trading and backtests) or
builtin:one-sided-quoter.
| Option | Description |
|---|---|
--strategy <strategy> | Strategy file or builtin (required) |
--latency-ms <ms> | Delay before a strategy order applies |
--missing-liquidity <share> | Share of maker liquidity removed, 0 to 1 |
--missing-mode <mode> | fraction or orders |
--seed <seed> | Seed of the missing-liquidity choice |
--resolution-delay-sec <sec> | Resolution delay after the market end |
--settlement-delay-sec <sec> | Settlement delay after resolution |
--owner <address> | Strategy owner key |
seesaw replay simulate market.json --strategy orders.json --latency-ms 400 --seed 7
replay metrics#
Execution-quality metrics of the recorded fills: slippage, fill rate, quote survival, markout and the fee legs.
| Option | Description |
|---|---|
--trader <address> | Only this trader |
seesaw replay metrics market.json --trader <address>
publisher#
The publisher commands use the seesaw-publisher binary. Select it with
--publisher-bin or SEESAW_PUBLISHER_BIN, or install it on your PATH.
Each quote stream should run on one host. Its journal lease coordinates processes
on that host. Large integer values in publisher JSON output appear as decimal strings.
publisher run#
Read strategy snapshots from newline-delimited JSON. Use --snapshots to read a
file or omit it to read standard input. --once stops after the input ends and
the publisher completes one maintenance pass.
seesaw publisher run --publisher-config publisher.json --snapshots quotes.jsonl
publisher status#
Show each stream's lease, sequence, outstanding attempts, and recovery state.
seesaw publisher status --publisher-config publisher.json
publisher journal#
Read a stream using the key displayed by publisher status. Use
--publisher-config to read through the Rust binary or --journal-dir to inspect
the files directly. --tail limits the displayed records.
publisher recover#
Record a recovery step for a stream. The priority-restored step requires
--probe-signature from a successful priority publication.
publisher manifest#
Manage the BAM enrollment description for publisher streams.
publisher manifest export#
Generate manifests using the compact instruction manifest of the target deployment.
seesaw publisher manifest export --publisher-config publisher.json \
--compact-manifest compact-instruction-manifest.json --out-dir manifests
publisher envelope#
Inspect the signed transaction envelope.
publisher envelope check#
Check a file against the selected program and the provider's envelope rules.
Provide --seat-market and --seat-maker together for a competitive seat.
For delegate-signed transactions, use the seat owner in --seat-maker.
seesaw publisher envelope check --file tx.bin --max-compute-unit-limit 20000
fee#
Fee-model and referral commands. The old referral command group was folded into fee; use these names in scripts and runbooks.
fee preview#
Preview local fee math without RPC. The fee is the program's linear taker fee,
ceil(notional × k × (10000 − p) / 10000²), with the shipped coefficient
k = 400 unless --coefficient-bps names another. The split uses the local
SDK allocation by default; it is not an on-chain config reading. Use current
config and the SDK fee helpers for allocation-sensitive work.
| Option | Required | Description |
|---|---|---|
--price-bps <n> | Yes | Order's own outcome price in bps (NO price for NO), 1–9999 |
--notional <base> | Yes | Trade notional in settlement-token base units |
--coefficient-bps <n> | No | Taker fee coefficient k, 0–10000; default 400 |
--referral-eligible | No | Assume an eligible referral; otherwise the referral leg folds into protocol |
--builder-bps <n> | No | Effective builder bps of the fee (min(governed share, approval cap)); default 0 |
seesaw fee preview --price-bps 5000 --notional 1000000
fee init-referral-account#
Initialize the signer's ReferrerEarningsAccount PDA and bind it to a stable treasury shard index.
| Option | Required | Description |
|---|---|---|
--treasury-index <n> | Yes | Treasury shard index, 0 through 7 |
--mint <address> | Yes | Settlement mint |
seesaw fee init-referral-account \
--treasury-index 3 \
--mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
fee claim-referral#
Claim accumulated referral earnings to the signer's settlement-token account.
| Option | Required | Description |
|---|---|---|
--ata <address> | Yes | Referrer's settlement-token account |
--mint <address> | Yes | Settlement mint |
--treasury-index <n> | Yes | Shard index stored on the ReferrerEarningsAccount |
seesaw fee claim-referral \
--ata ReferrerStableAta123456789abcdefghijkl \
--mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB \
--treasury-index 3
fee set-referrer#
Set the signer's immutable first-touch referrer. The CLI rejects self-referral before building the transaction.
| Option | Required | Description |
|---|---|---|
--referrer <address> | Yes | Referrer wallet address, must not self |
seesaw fee set-referrer --referrer RefAddr123456789abcdefghijklmnopqrstuvwxyz
fee rollup-referral#
Permissionlessly move a bounded batch of deferred position liabilities into one referrer's earnings account and canonical treasury shard. Position addresses are decoded and raw-byte sorted before the instruction is built.
| Option | Required | Description |
|---|---|---|
--market <address> | Yes | Market account |
--referrer <address> | Yes | Common referrer for every position |
--treasury-index <n> | Yes | Earnings-account shard index, 0 through 7 |
--mint <address> | Yes | Market settlement mint |
--positions <json> | Yes | JSON array of 1–8 distinct position addresses |
-y, --yes | No | Skip the mainnet transaction confirmation prompt |
seesaw fee rollup-referral \
--market Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--referrer RefAddr123456789abcdefghijklmnopqrstuvwxyz \
--treasury-index 3 \
--mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB \
--positions '["Position111111111111111111111111111111"]'
builder#
Trader-signed builder approvals. A builder receives part of a taker fee only
when the trader has approved it and a taker order names it with
order place --builder. See instructions
for ApproveBuilder (0x4A) and RevokeBuilder (0x4B).
builder approve#
Create or update the approval for <builder>, signed by the keypair wallet
(ApproveBuilder). The approval is usable only from the next slot, so send
orders that name the builder in a later transaction.
| Option | Required | Description |
|---|---|---|
<builder> | Yes | Builder wallet address (owner of its settlement token account) |
--max-bps <bps> | Yes | Cap on the builder share in bps of the fee [1-10000] |
--expires <unix> | No | Unix expiry in seconds, inclusive (default 0, no expiry) |
--dry-run | No | Simulate without sending |
--build-only | No | Print the built transaction without sending |
-y, --yes | No | Skip mainnet confirmation prompt |
seesaw builder approve BuilderAddr123456789abcdefghijklmnopqrstuv \
--max-bps 500 \
--expires 1767225600
builder revoke#
Close the approval for <builder> and return its rent to the trader
(RevokeBuilder).
| Option | Required | Description |
|---|---|---|
<builder> | Yes | Approved builder wallet address |
--dry-run | No | Simulate without sending |
--build-only | No | Print the built transaction without sending |
-y, --yes | No | Skip mainnet confirmation prompt |
seesaw builder revoke BuilderAddr123456789abcdefghijklmnopqrstuv
builder status#
Read the approval a trader granted <builder>. The output has
approved: false when no approval exists; otherwise it shows maxBuilderBps,
createdSlot, expiresAt and expired (judged against the local clock; the
chain clock decides at fill time).
| Option | Required | Description |
|---|---|---|
<builder> | Yes | Builder wallet address |
--trader <address> | No | Trader that granted the approval (default: the keypair wallet) |
seesaw builder status BuilderAddr123456789abcdefghijklmnopqrstuv
treasury#
Treasury shard operations for the multi-fee-recipient layout.
treasury list#
Show the 8 protocol treasury token accounts from config plus the 8 referrer treasury PDAs and their token balances.
| Option | Description |
|---|---|
| (none) | Uses resolved RPC URL |
seesaw treasury list
treasury update-recipients#
Atomically replace config.treasuryRecipients with 8 new SPL token-account addresses. This is equivalent to admin update-treasury-recipients with a shorter flag name.
| Option | Required | Description |
|---|---|---|
--recipients <json> | Yes | JSON array of exactly 8 SPL token-account addresses |
-y, --yes | No | Skip mainnet confirmation prompt after reviewing inputs |
seesaw treasury update-recipients \
--recipients '[
"TreasuryShard111111111111111111111111111",
"TreasuryShard222222222222222222222222222",
"TreasuryShard333333333333333333333333333",
"TreasuryShard444444444444444444444444444",
"TreasuryShard555555555555555555555555555",
"TreasuryShard666666666666666666666666666",
"TreasuryShard777777777777777777777777777",
"TreasuryShard888888888888888888888888888"
]'
treasury init-referrer-shard#
Permissionlessly and idempotently provision one canonical referrer treasury token account for the config's settlement mint.
| Option | Required | Description |
|---|---|---|
--treasury-index <n> | Yes | Referrer treasury shard index, 0 through 7 |
--mint <address> | Yes | Config default settlement mint |
-y, --yes | No | Skip the mainnet transaction confirmation prompt |
seesaw treasury init-referrer-shard \
--treasury-index 3 \
--mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
treasury init-currency-shard#
Permissionlessly create the protocol treasury shard of a registered classic SPL Token settlement
currency (InitializeCurrencyProtocolTreasury, 0x52). A market in a currency other than the
config's default settlement mint sends its protocol fee leg to the shard of the order's treasury
index; an order whose shard does not exist yet is refused. The shard address is
["seesaw", "ccy_protocol_treasury", token_program, mint, [index]].
| Option | Required | Description |
|---|---|---|
--treasury-index <n> | Yes | Protocol treasury shard index, 0 through 7 |
--mint <address> | Yes | Registered classic SPL Token settlement mint |
--freeze-exception | No | Include the governed exception of a freeze-enabled mint |
-y, --yes | No | Skip the mainnet transaction confirmation prompt |
seesaw treasury init-currency-shard \
--treasury-index 3 \
--mint <settlement-mint>
treasury withdraw-currency-shard#
Move a balance out of a currency protocol treasury shard (WithdrawCurrencyProtocolTreasury,
0x53). The wallet must be config.authority. The destination is an initialized, unfrozen token
account of the same mint and must not be the shard. Withdrawal stays possible after the currency's
freeze exception is revoked.
| Option | Required | Description |
|---|---|---|
--treasury-index <n> | Yes | Protocol treasury shard index, 0 through 7 |
--mint <address> | Yes | Settlement mint of the shard |
--amount <atoms> | Yes | Amount in the mint's base units, greater than zero |
--destination <address> | Yes | Token account of the same mint that receives it |
-y, --yes | No | Skip the mainnet transaction confirmation prompt |
seesaw treasury withdraw-currency-shard \
--treasury-index 3 \
--mint <settlement-mint> \
--amount 1000000 \
--destination <token-account>
creator#
Creator-market and creator-fee commands.
creator list#
List markets created by the configured wallet, including accumulated and currently claimable creator fees.
| Option | Description |
|---|---|
| (none) | Uses resolved API URL |
seesaw creator list
creator claim#
Claim deferred creator fees for one market.
| Option | Required | Description |
|---|---|---|
<marketAddress> | Yes | Market address positional argument |
--creator-ata <address> | Yes | Creator's token account for the settlement mint |
--settlement-mint <address> | Yes | Settlement mint |
seesaw creator claim Mkt1abc123def456ghi789jkl012mno345pqr678stu \
--creator-ata CreatorAtaAddr123456789abcdefghijklmnopqrs \
--settlement-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
creator claim-all#
Claim creator fees from every claimable market returned by the indexer, split into bounded batches.
| Option | Required | Description |
|---|---|---|
--creator-ata <address> | Yes | Creator's token account for the settlement mint |
--settlement-mint <address> | Yes | Settlement mint |
--max-per-tx <n> | No | Maximum claim instructions per batch, default 5 |
seesaw creator claim-all \
--creator-ata CreatorAtaAddr123456789abcdefghijklmnopqrs \
--settlement-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
currency#
Settlement currency identity and exact-mint freeze exceptions. Registration and approval do not activate Token-2022 markets or treasury creation, which remain gated.
currency show-freeze-exception#
Read the governed freeze exception for an exact mint and token program. An absent
exception reports enabled: null.
| Option | Required | Description |
|---|---|---|
--mint <address> | Yes | Settlement mint address |
--token-program <address> | Yes | Program that owns the mint |
seesaw currency show-freeze-exception \
--mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB \
--token-program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
currency register#
Register an admissible currency identity. Pass --freeze-exception for a freeze-enabled
mint after its exception is approved.
For a classic SPL Token mint the same transaction also creates the currency's missing
protocol treasury shards (InitializeCurrencyProtocolTreasury, 0x52, shards 0 to 7), paid by
the wallet, so orders in the currency never stop on a missing shard. The transaction is atomic.
If the currency is already registered, only the missing shards are sent; if everything exists,
nothing is sent. The output lists protocolTreasuryShardsCreated and
protocolTreasuryShardsExisting. A Token-2022 currency gets no shards (0x52 refuses it).
| Option | Required | Description |
|---|---|---|
--mint <address> | Yes | Settlement mint address |
--token-program <address> | Yes | Program that owns the mint |
--freeze-exception | No | Include the governed exception for the mint |
-y, --yes | No | Skip mainnet confirmation prompt |
seesaw currency register \
--mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB \
--token-program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
currency set-freeze-exception#
Initialize, approve, or revoke an exact-mint freeze exception (config authority only).
| Option | Required | Description |
|---|---|---|
--mint <address> | Yes | Settlement mint address |
--token-program <address> | Yes | Program that owns the mint |
--operation <operation> | Yes | initialize, approve, or revoke |
-y, --yes | No | Skip mainnet confirmation prompt |
seesaw currency set-freeze-exception --operation approve \
--mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB \
--token-program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
source#
Create and manage markets that settle using signed source results. The reporter and the selected
program and deployment must match the request. The standalone source-packet requester checks
witness attestation and endorsements and returns one hex payload.
source catalog#
Look up candidate identifiers for --profile and --market in the public catalog.
Supply --event for Polymarket profiles 203 and 204. Use --environment Demo for Kalshi
Demo or --out to save the candidate definition to a new file. Witnesses independently
check the definition before endorsing an open.
source definition#
Build a canonical definition package locally with --profile, numbered
--field values, and --out. The command prints the package digest and
market kind for source begin. It creates a new file.
seesaw source definition --profile 102 \
--field 1=KXEXAMPLE-MARKET 2=KXEXAMPLE-EVENT 3=KXEXAMPLE \
--out definition.bin
Find the field numbers and admitted values in the signed-source profile specification (unavailable reference).
source status#
Read finalized source state and draft recovery timing with --market. No wallet is required.
source publish-evidence#
Publish public evidence for a finalized result. Pass --market, --operation, --payload,
and --evidence-directory. The directory contains the digest-named bundles produced by the
requester. The command uses the configured wallet to authenticate the upload.
source list-evidence#
List recent public evidence digests with seesaw source list-evidence MARKET_ADDRESS.
source accepted-evidence#
Use seesaw source accepted-evidence MARKET_ADDRESS TRANSACTION_SIGNATURE to read
the witness evidence digests recorded for that market in a finalized transaction.
The command needs only Solana RPC with transaction history and inner instruction
data. The result includes the acceptance revision and result digest. It works
without a wallet or indexer. Digests for restricted profiles can be visible on
chain while their bundles remain private.
source fetch-evidence#
Download and verify bytes with seesaw source fetch-evidence DIGEST --out FILE.
Pass --certificate to also verify the capture window against a binary witness certificate.
source begin#
Create a draft with --deployment-id, --definition (binary definition package), --kind, and
--max-total-shares. Set --reward-lamports and --reserve-lamports to commit optional progress
rewards. The response includes the market address.
Add --build-only to print the unsigned transaction (data.transaction, meta.buildOnly: true) without simulating or sending it.
source allocate#
Use --market to allocate the next chunk. Repeat after each finalized transaction until
allocationComplete is returned.
Add --build-only to print the unsigned transaction (data.transaction, meta.buildOnly: true) without simulating or sending it.
source prepare-request#
Export the public finalized chain context for source-packet. Pass --operation (open,
resolve, halt, or update-close), --market, and --deployment-id. Use --issuer when
the profile policy specifies digests. For an open, supply the same --reward-lamports and
--reserve-lamports used to create the draft.
source open#
Open an allocated draft using --market, --deployment-id, --settlement-mint, and
--payload (a hex file returned by source-packet).
Add --build-only to print the unsigned transaction (data.transaction, meta.buildOnly: true) without simulating or sending it.
source resolve#
Accept a signed resolution using --market, --deployment-id, and --payload.
Add --build-only to print the unsigned transaction (data.transaction, meta.buildOnly: true) without simulating or sending it.
seesaw source prepare-request --operation resolve --market MARKET_ADDRESS \
--deployment-id DEPLOYMENT_HEX > request.json
source-packet request.json WITNESS_ONE=0 WITNESS_TWO=1 --relay > resolve.hex
seesaw source resolve --market MARKET_ADDRESS --deployment-id DEPLOYMENT_HEX \
--payload resolve.hex
source halt#
Accept a signed halt using --market, --deployment-id, and --payload.
Add --build-only to print the unsigned transaction (data.transaction, meta.buildOnly: true) without simulating or sending it.
source update-close#
Accept a signed close-time update using --market, --deployment-id, and --payload.
Add --build-only to print the unsigned transaction (data.transaction, meta.buildOnly: true) without simulating or sending it.
source finalize#
Finalize a mature candidate using --market.
Add --build-only to print the unsigned transaction (data.transaction, meta.buildOnly: true) without simulating or sending it.
source expire#
Apply the deadline exit using --market.
Add --build-only to print the unsigned transaction (data.transaction, meta.buildOnly: true) without simulating or sending it.
source top-up-progress-reserve#
Restore the reserve for unpaid progress rewards using --market.
Add --build-only to print the unsigned transaction (data.transaction, meta.buildOnly: true) without simulating or sending it.
source reclaim-draft#
Recover abandoned draft rent using --market. Pass --creator to require a specific
finalized creator address. The program returns rent to the original creator.
Add --build-only to print the unsigned transaction (data.transaction, meta.buildOnly: true) without simulating or sending it.
source close#
Close eligible terminal accounts using --market. The CLI derives the creator’s payout
account from the finalized market and its settlement token program. Use --residual-recipient
to supply an existing creator-owned payout account. Pass --create-recipient-ata to fund
creation of the canonical account in the same transaction if it is missing. This flag
requires any supplied recipient to match the canonical address.
Add --build-only to print the unsigned transaction (data.transaction, meta.buildOnly: true) without simulating or sending it.
source registry-status#
Read the finalized witness registry for --deployment-id without a wallet.
source init-registry#
Initialize the deployment’s witness registry using --deployment-id, --cluster-commitment, and
--activation-delay-s. Set --open-registration for permissionless witness registration.
source init-control#
Initialize policy control for --deployment-id after initializing the registry.
source set-policy#
Submit a canonical binary --policy record for --deployment-id.
source set-measurement#
Approve a Nitro --measurement digest using --deployment-id and --entry. Use --withdraw
to withdraw an approved measurement.
source prepare-witness-registration#
Read the finalized registry without a wallet and print the enclave startup arguments as
data.enclaveArgs. Supply the operator's public Solana address.
seesaw source prepare-witness-registration --deployment-id DEPLOYMENT_HEX \
--operator OPERATOR_ADDRESS --slot SLOT --export-port PORT
source register-witness#
Submit --public-values and --proof from the attestation prover, with --slot and
--deployment-id. Supply the public keys using --export-dir from the host registration
receiver, or pass their hex values with --signing-key and --channel-key. In a closed
registry, the configured wallet is the deployment authority. Use --operator-keypair when
the Solana operator wallet is distinct from that authority.
source revoke-witness#
Revoke --slot at --epoch in --deployment-id. Supply --refund when the registry slot
holds a registration deposit.
embed#
Local string builders for the embeddable market widget (/embed/<market>), from
@seesaw/core buildEmbedUrl and buildEmbedSnippet. No RPC and no keypair. Every value is
validated, so the output is identical to the TypeScript, Rust and Python SDK helpers. A --ref
is only a pending referrer: the embed sets no referral cookie; the ref rides on the widget's
first-party "Trade on Seesaw" link, an indexed on-chain referrer still wins, and a
self-referral is refused when an order is bound.
embed url#
Print the embed URL for <market>, as data.url.
| Option | Required | Description |
|---|---|---|
<market> | Yes | Market address, id or slug ([A-Za-z0-9_-], 1-128) |
--origin <url> | No | Site origin, http(s)://host[:port] (default the site) |
--ref <ref> | No | Pending referrer: a base58 wallet or a referral handle |
--theme <theme> | No | light or dark |
--locale <locale> | No | Locale such as en, fil or pt-BR |
seesaw embed url So11111111111111111111111111111111111111112 --ref alice --theme dark
embed snippet#
Print a sandboxed, lazy-loading <iframe> (400 x 120) for <market>, as data.snippet. The
frame carries sandbox="allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox", referrerpolicy="strict-origin-when-cross-origin" and a
title; every attribute value is HTML-escaped.
| Option | Required | Description |
|---|---|---|
<market> | Yes | Market address, id or slug |
--origin <url> | No | Site origin, http(s)://host[:port] (default the site) |
--ref <ref> | No | Pending referrer: a base58 wallet or a referral handle |
--theme <theme> | No | light or dark |
--locale <locale> | No | Locale such as en, fil or pt-BR |
--title <title> | No | Iframe title (default Seesaw market) |
seesaw --human embed snippet So11111111111111111111111111111111111111112 --title "SOL round"
referral#
referral link#
Print a first-party referral link for <ref> (a base58 wallet or a handle), as data.link:
<origin>/referral/<ref>, or <origin>/markets/<market>?ref=<ref> with --market. The site
captures the ref on first touch. Binding a referrer on chain is fee set-referrer.
| Option | Required | Description |
|---|---|---|
<ref> | Yes | Referrer: a base58 wallet or a referral handle |
--origin <url> | No | Site origin, http(s)://host[:port] (default the site) |
--market <market> | No | Land on this market page instead of the referral page |
seesaw referral link alice --market So11111111111111111111111111111111111111112