sell
Sell a coin. Requires a wallet.
zora sell [typeOrId] [identifier] [options]Arguments
| Argument | Description |
|---|---|
typeOrId | Type prefix (creator-coin, trend) or coin address/name when used alone |
identifier | Coin name — only needed when a type prefix is provided |
Options
| Flag | Description | Default |
|---|---|---|
--amount <value> | Sell specific number of coins | — |
--usd <value> | Sell USD equivalent worth of coins | — |
--percent <value> | Sell percentage of coin balance | — |
--all | Sell entire coin balance | — |
--to <asset> | Receive asset: eth, usdc, zora | eth |
--token <asset> | Alias for --to | eth |
--slippage <pct> | Slippage tolerance percent | 1 |
--quote | Print quote and exit without trading | — |
--yes | Skip confirmation prompt | — |
--debug | Print full request/response JSON | — |
--json | Machine-readable JSON output | — |
Examples
Sell 50% of jacob position
# By address
npx @zoralabs/cli sell 0x9b13358e3a023507e7046c18f508a958cda75f54 --percent 50
# By name with type prefix
npx @zoralabs/cli sell creator-coin jacob --percent 50 Sell jacob (creator-coin)
Selling 10.31 jacob (50%)
Estimated receive 0.005 ETH
Receive as ETH
Confirm? (y/n)Sell entire position
npx @zoralabs/cli sell 0x9b13358e3a023507e7046c18f508a958cda75f54 --allSell and receive USDC instead of ETH
npx @zoralabs/cli sell 0x9b13358e3a023507e7046c18f508a958cda75f54 --all --to usdcSell a specific amount
npx @zoralabs/cli sell 0x9b13358e3a023507e7046c18f508a958cda75f54 --amount 100Get a sell quote
npx @zoralabs/cli sell 0x9b13358e3a023507e7046c18f508a958cda75f54 --all --quoteJSON output
npx @zoralabs/cli sell 0x... --all --yes --json{
"action": "trade",
"coin": "jacob",
"soldAmount": "20.63",
"received": "0.01",
"receivedToken": "ETH",
"txHash": "0xdef456...",
"explorerUrl": "https://basescan.org/tx/0xdef456..."
}