{"id":49892385,"url":"https://github.com/0xsyncroot/opensea-cli","last_synced_at":"2026-05-15T21:42:35.187Z","repository":{"id":357159563,"uuid":"1235677472","full_name":"0xsyncroot/opensea-cli","owner":"0xsyncroot","description":"Fast Ethereum NFT public-mint CLI via Flashbots + multi-builder bundles, with on-chain auto-detect of price/start time/supply and adaptive priority fee bidding.","archived":false,"fork":false,"pushed_at":"2026-05-11T15:24:44.000Z","size":115,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-11T16:39:49.164Z","etag":null,"topics":["cli","erc721","ethereum","flashbots","mev","mint","nft","opensea","titan-builder","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/0xsyncroot/opensea-cli","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xsyncroot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-11T14:49:31.000Z","updated_at":"2026-05-11T15:26:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/0xsyncroot/opensea-cli","commit_stats":null,"previous_names":["0xsyncroot/opensea-cli"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/0xsyncroot/opensea-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xsyncroot%2Fopensea-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xsyncroot%2Fopensea-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xsyncroot%2Fopensea-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xsyncroot%2Fopensea-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xsyncroot","download_url":"https://codeload.github.com/0xsyncroot/opensea-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xsyncroot%2Fopensea-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33080785,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","erc721","ethereum","flashbots","mev","mint","nft","opensea","titan-builder","typescript"],"created_at":"2026-05-15T21:42:34.444Z","updated_at":"2026-05-15T21:42:35.182Z","avatar_url":"https://github.com/0xsyncroot.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opensea-cli\n\nEthereum NFT public-mint CLI. Sends signed transactions as private bundles to **Flashbots, Titan, Beaverbuild, rsync, Payload, Blocknative** in parallel, with adaptive priority-fee bidding and on-chain auto-detect of mint price, supply, and start time.\n\n```bash\nopensea-cli mint --contract 0xYourContract --to 0xColdWallet\n```\n\n---\n\n## Install\n\nYou only need **Node.js 20 or newer** ([download here](https://nodejs.org/)). Then one command:\n\n```bash\nnpm install -g https://github.com/0xsyncroot/opensea-cli/tarball/main\n```\n\nCheck it works:\n\n```bash\nopensea-cli --version    # → opensea-cli v0.2.0\nopensea-cli help\n```\n\n### Upgrade to the latest version\n\nnpm caches the tarball by URL, so re-running the install command above can serve the old version. Force a fresh fetch:\n\n```bash\nnpm uninstall -g opensea-cli \u0026\u0026 npm cache clean --force \u0026\u0026 npm install -g https://github.com/0xsyncroot/opensea-cli/tarball/main\n```\n\nTo uninstall: `npm uninstall -g opensea-cli`.\n\n---\n\n## Quick start (3 commands)\n\n```bash\n# 1. Sanity-check the contract — no key needed, no risk\nopensea-cli check --contract 0xYourContract\n\n# 2. Dry-run with your wallet — signs locally, simulates via Flashbots, DOES NOT submit\nopensea-cli test  --contract 0xYourContract\n\n# 3. Live mint, then auto-transfer to a cold wallet\nopensea-cli mint  --contract 0xYourContract --to 0xColdWallet\n```\n\n`test` and `mint` will ask for your private key (hidden, not stored). Paste it, hit Enter.\n\nIf the contract advertises a future start time on-chain (`publicSaleStartTime`), `mint` waits until then and re-verifies the contract 30 s before fire. Press Ctrl+C any time to abort.\n\n---\n\n## Features\n\n- Multi-builder bundle broadcast — 6 relays × N blocks per mint window\n- Adaptive priority fee from `eth_feeHistory` (`auto:p75+0.5` by default)\n- On-chain auto-detect: `price`, `publicSaleStartTime`, `totalSupply`, sale flag, `paused`, `maxPerWallet`\n- Scheduled mode with T-30 s re-probe + 10 s countdown + Ctrl+C cancel\n- 4-tier balance check (refuses to sign if balance \u003c mint price)\n- Auto-transfer minted ERC-721s to a destination wallet\n- Pre-flight simulation via `eth_callBundle` before every submission\n- Hidden private-key prompt; `-k` override available\n\n---\n\n## Commands\n\n| Command | Needs key | Submits anything | Use for |\n|---|---|---|---|\n| `check`  | no  | no                                                | confirming address, supply, gas market |\n| `test`   | yes | no (signed only, simulated via `eth_callBundle`)  | last sanity check before live mint |\n| `mint`   | yes | yes (bundle broadcast to all relays)              | the real run |\n\n---\n\n## Options\n\nRun `opensea-cli help` for full help. Most users only need `--contract`.\n\n### Required\n\n| Flag                  | Purpose                          |\n|-----------------------|----------------------------------|\n| `--contract 0x...`    | The NFT contract address         |\n\n### Often passed (everything else has a sensible default)\n\n| Flag                          | Default                         | Notes |\n|-------------------------------|---------------------------------|-------|\n| `--rpc \u003curl\u003e`                 | publicnode (rate-limited)       | Use Alchemy/Infura/QuickNode for real mints |\n| `--price \u003ceth\u003e`               | auto-detected from contract     | Override if the on-chain probe is wrong |\n| `--qty \u003cn\u003e`                   | `1`                             | Warns if greater than `maxPerWallet` on contract |\n| `--fn \u003csignature\u003e`            | `mint(uint256)`                 | Other examples: `publicMint(uint256)`, `mint(address,uint256)` |\n| `--args \u003cjson\u003e`               | `[\"qty\"]`                       | Tokens: `\"self\"` → minter address, `\"qty\"` → quantity |\n| `--start-ts \u003cunix\u003e`           | auto-detected from contract     | Wait until this Unix timestamp before fire |\n| `--start-block \u003cn\u003e`           | not set                         | Wait until block N before fire |\n| `--priority \u003cgwei \\| auto\u003e`   | `auto:75+0.5`                   | Adaptive tip = pXX of last 5 blocks + premium |\n| `--blocks \u003cn\u003e`                | `3`                             | Future blocks to target per relay (= 18 submissions total) |\n| `--gas-limit \u003cn\u003e`             | `300000`                        | Refunded by Flashbots if unused |\n| `--max-fee \u003cgwei\u003e`            | `100`                           | `maxFeePerGas` ceiling |\n| `--to \u003c0x...\u003e`                | not set                         | Auto-transfer minted ERC-721s after mint succeeds |\n| `--preflight-lead \u003csec\u003e`      | `30`                            | Seconds before fire to run the final re-check |\n| `-k, --private-key \u003chex\u003e`     | (prompt)                        | Funds key; CLI override of the hidden prompt |\n| `-y, --yes`                   | `false`                         | Skip confirmation prompts |\n| `--env \u003cpath\u003e`                | `./.env`                        | Load env vars from a custom file |\n\n### Lower-level network options\n\n| Flag             | Default                            |\n|------------------|------------------------------------|\n| `--chain \u003cid\u003e`   | `1` (mainnet)                      |\n| `--relays \u003ccsv\u003e` | 6 major builders comma-separated   |\n| `--auth-key \u003chex\u003e` | fresh random per run             |\n\n---\n\n## `.env`\n\nEverything that can be passed as a flag can also be set as an environment variable. The CLI loads `./.env` automatically.\n\n```env\nRPC_URL=https://eth-mainnet.g.alchemy.com/v2/YOUR_KEY\nCHAIN_ID=1\nRELAYS=https://relay.flashbots.net,https://rpc.titanbuilder.xyz,https://rpc.beaverbuild.org,https://rsync-builder.xyz,https://rpc.payload.de,https://api.blocknative.com/v1/auction\n\nCONTRACT_ADDRESS=0xYourContract\nMINT_FUNCTION_SIGNATURE=mint(uint256)\nMINT_ARGS=[\"qty\"]\nMINT_QUANTITY=1\n\n# Optional — leave blank to auto-detect from contract\n# MINT_PRICE_ETH=0.05\n# MINT_START_TS=1746950400\n\nADAPTIVE_PRIORITY=75+0.5\nMAX_PRIORITY_FEE_GWEI=50\nMAX_FEE_GWEI=100\nBLOCKS_TO_TARGET=3\nPREFLIGHT_LEAD_SEC=30\n```\n\n**Never put your private key in `.env`.** The CLI does not read it from there — the hidden prompt or `-k` are the only supported channels.\n\n---\n\n## How it works\n\n### Multi-builder broadcast\n\nThe same signed transaction is sent as a bundle to every relay for the next *N* blocks. Whichever builder wins the slot, the tx is in the block.\n\n```text\n                          ┌── Flashbots ───┐\n                          ├── Titan ───────┤\nsigned tx  ──▶  bundle ──▶│── Beaverbuild ─│──▶ winning block\n                          ├── rsync ───────┤\n                          ├── Payload ─────┤\n                          └── Blocknative ─┘\n```\n\n### Priority fee modes (`--priority`)\n\n| Value             | Bid                          |\n|-------------------|------------------------------|\n| `2`               | flat 2 gwei                  |\n| `auto` (default)  | `p75 + 0.5 gwei`             |\n| `auto:99+2`       | `p99 + 2 gwei` (FOMO drops)  |\n\nPercentiles come from `eth_feeHistory` over the last 5 blocks.\n\n### Scheduled mode\n\nTriggered by `--start-ts`, `--start-block`, or auto-detected `publicSaleStartTime` on the contract:\n\n1. cancelable wait until `T − preflight-lead` (default 30 s)\n2. re-probe contract (`totalSupply`, sale flag, `paused`), re-fetch gas market\n3. 10 s countdown — Ctrl+C still aborts with zero bundles broadcast\n4. fire bundles to all relays for the next *N* blocks\n\n### Auto-detected view functions\n\n| Field      | Tried                                                                                |\n|------------|--------------------------------------------------------------------------------------|\n| price      | `price`, `mintPrice`, `publicSalePrice`, `cost`, `PUBLIC_PRICE`, `MINT_PRICE`        |\n| start time | `publicSaleStartTime`, `mintStartTime`, `mintStart`                                  |\n| supply     | `totalSupply`, `MAX_SUPPLY` / `maxSupply` / `MAX_TOKENS`                             |\n| sale state | `saleIsActive`, `publicMintActive`, `isMintActive`, `mintActive`, `publicSaleActive` |\n| per-wallet | `maxPerWallet`, `MAX_PER_WALLET`, `maxMintPerTx`                                     |\n| identity   | `name`, `symbol`, `owner`, `paused`                                                  |\n\nMissing getters fall back to the CLI default.\n\n### Balance check\n\n| Condition                            | Action                       |\n|--------------------------------------|------------------------------|\n| `balance == 0`                       | red hard exit                |\n| `balance \u003c price × qty`              | red hard exit (would revert) |\n| `price × qty ≤ balance \u003c worst-case` | yellow warn, continue        |\n| `balance ≥ worst-case`               | green, proceed               |\n\n### Auto-transfer (`--to`)\n\nAfter a successful mint, parses ERC-721 `Transfer(0x0, minter, tokenId)` events from the receipt and sends `safeTransferFrom(minter, dest, tokenId)` for each. ERC-1155 is not auto-handled.\n\nThe Transfer scan is **not restricted to the called contract** — this is what makes sale-contract proxies (next section) work end-to-end.\n\n---\n\n## Sale-contract / minter-proxy mints\n\nSome platforms split minting into two contracts:\n\n- **NFT contract** — holds the tokens, emits `Transfer` events\n- **Sale contract** — handles pricing, allowlists, phases; calls into the NFT contract\n\nExamples: Transient Labs (`TLStacks721`), Manifold lazy-mint, Zora ERC721 Drop minter modules.\n\nFor these, point `--contract` at the **sale contract**, not the NFT. The CLI:\n\n- sends `purchase(...)` (or equivalent) to the sale contract\n- the sale contract calls `externalMint` / `_mintTo` / similar on the NFT contract\n- `--to` auto-transfer still works — Transfer events are picked up from the underlying NFT contract via receipt scanning\n\n### Example — Transient Labs Still Alive\n\n`https://www.transient.xyz/mint/still-alive` is sold through `TLStacks721 v2.3.1` at `0x384092784cfaa91efaa77870c04d958e20840242`. The underlying NFT lives at `0x52caee4275765dde6f47f874e7cf8181f5b5e5da`. Since v0.2.0 the CLI auto-detects this pattern — just give it the contracts:\n\n```bash\nopensea-cli mint \\\n  --contract 0x384092784cfaa91efaa77870c04d958e20840242 \\\n  --fn 'purchase(address,address,uint256,uint256,bytes32[])' \\\n  --args '[\"0x52caee4275765dde6f47f874e7cf8181f5b5e5da\",\"self\",\"qty\",0,[]]' \\\n  --to 0xColdWalletDestination\n```\n\nWhen the first `--args` entry looks like an NFT address, the CLI calls `getDrop(nft)` + `protocolFee()` + `getDropPhase(nft)` on the sale contract and auto-fills:\n\n- **--price** = `publicCost + protocolFee` per NFT (e.g. `0.0269 + 0.0009 = 0.0278`)\n- **--start-ts** = `startTime + presaleDuration` (the moment presale ends and public opens)\n- **--gas-limit** = bumped to 500 000 (sale contracts delegate to `externalMint`, which costs more than a plain mint)\n- warns when `--qty` exceeds the on-chain per-wallet `allowance`\n\nOverride anything by passing it explicitly. For a busy drop, bump priority:\n\n```bash\nopensea-cli mint --contract 0x384092784cfaa91efaa77870c04d958e20840242 \\\n  --fn 'purchase(address,address,uint256,uint256,bytes32[])' \\\n  --args '[\"0x52caee4275765dde6f47f874e7cf8181f5b5e5da\",\"self\",\"qty\",0,[]]' \\\n  --qty 3 --priority auto:90+2 --to 0xCold\n```\n\nABI cheatsheet for `purchase`:\n\n| arg | meaning | typical value |\n|-----|---------|--------------|\n| 0   | NFT contract            | the ERC-721 address |\n| 1   | recipient               | `\"self\"` (minter) |\n| 2   | quantity                | `\"qty\"` (matches `--qty`) |\n| 3   | `presaleNumberCanMint`  | `0` for public phase |\n| 4   | merkle proof            | `[]` for public phase |\n\nTo find the right TLStacks deployment for any Transient drop, look up [`deployments.json`](https://github.com/Transient-Labs/tl-stacks/blob/main/deployments.json) (v2.3.1 currently hosts Still Alive).\n\n---\n\n## Safety\n\n- Use a fresh burner wallet; pass `--to` to forward NFTs to a cold wallet right after mint.\n- Private key: hidden prompt by default, or `-k` (logged in shell history \u0026 `ps`).\n- `check` and `test` cannot spend ETH. Only `mint` broadcasts.\n- The CLI refuses to sign if balance \u003c mint price.\n- Ctrl+C aborts cleanly until the 10 s countdown ends.\n\n---\n\n## Troubleshooting\n\n| Symptom | Likely cause / fix |\n|---|---|\n| `Missing contract`                  | pass `--contract 0x...` or set `CONTRACT_ADDRESS` |\n| `Invalid contract address`          | malformed hex — must be 20 bytes, with or without `0x` |\n| `NO BYTECODE at \u003caddr\u003e`             | wrong address, wrong chain, or contract not deployed yet |\n| `sim REVERT: ...`                   | check `--fn` signature, `--args`, `--price`, sale flag, and allowlist on Etherscan |\n| `balance \u003c price × qty`             | top up the minter wallet |\n| `bundle not included within window` | priority fee was too low — re-run with `--priority auto:99+2` or higher |\n| `relay rate-limited`                | switch from publicnode to a private RPC (Alchemy/Infura/QuickNode) |\n| `opensea-cli not found`             | `bash install.sh` again, or fall back to `node dist/index.js help` |\n\n---\n\n## Development\n\n```bash\ngit clone https://github.com/0xsyncroot/opensea-cli.git\ncd opensea-cli\nnpm install\nnpx tsx src/index.ts help   # run TS without rebuild\nnpm run build               # tsc → dist/\n```\n\nDeps: `ethers v6`, `chalk`, `dotenv`, `prompts`. Sources under `src/`.\n\n---\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n\n---\n\n## Disclaimer\n\nMainnet transactions move real ETH. No warranty. **You are responsible for everything you sign.** Start with `check` and `test` on a burner.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xsyncroot%2Fopensea-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xsyncroot%2Fopensea-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xsyncroot%2Fopensea-cli/lists"}