Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

sell

Sell a coin. Requires a wallet.

zora sell [typeOrId] [identifier] [options]

Arguments

ArgumentDescription
typeOrIdType prefix (creator-coin, trend) or coin address/name when used alone
identifierCoin name — only needed when a type prefix is provided

Options

FlagDescriptionDefault
--amount <value>Sell specific number of coins
--usd <value>Sell USD equivalent worth of coins
--percent <value>Sell percentage of coin balance
--allSell entire coin balance
--to <asset>Receive asset: eth, usdc, zoraeth
--token <asset>Alias for --toeth
--slippage <pct>Slippage tolerance percent1
--quotePrint quote and exit without trading
--yesSkip confirmation prompt
--debugPrint full request/response JSON
--jsonMachine-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 --all

Sell and receive USDC instead of ETH

npx @zoralabs/cli sell 0x9b13358e3a023507e7046c18f508a958cda75f54 --all --to usdc

Sell a specific amount

npx @zoralabs/cli sell 0x9b13358e3a023507e7046c18f508a958cda75f54 --amount 100

Get a sell quote

npx @zoralabs/cli sell 0x9b13358e3a023507e7046c18f508a958cda75f54 --all --quote

JSON 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..."
}