# sidecoo Abyss Window

No administrator, upgrade or withdrawal. Price, supply caps, registry and proceeds recipient are fixed in the contract.

- Official site: https://sidecoo.com/abyss-window/
- BNB Smart Chain, chain ID `56` (`0x38`)
- Sole collection contract: `0x9B5C0C4CE576Bc7d067Be67E34e4bAf3cED6df61`
- Verified source: https://bscscan.com/address/0x9B5C0C4CE576Bc7d067Be67E34e4bAf3cED6df61#code
- Sourcify: https://repo.sourcify.dev/56/0x9B5C0C4CE576Bc7d067Be67E34e4bAf3cED6df61
- Proceeds: `0x225784F1F10aF2c0Bfc50C746c1c0E4d3eA68C51`

## Transactions

| Example | Calldata | Value in wei |
| --- | --- | ---: |
| `claim()` | `0x4e71d92d` | `0` |
| `freeMint()` | `0x5b70ea9f` | `0` |
| `mint()` | `0x1249c58b` | `220000000000000` |
| `mint(1)`, one edition | `0xa0712d680000000000000000000000000000000000000000000000000000000000000001` | `220000000000000` |
| `mint(1)`, two editions | `0xa0712d680000000000000000000000000000000000000000000000000000000000000001` | `440000000000000` |
| `Direct BNB transfer` | `0x` | `220000000000001` |

1. Check the official site, chain, collection address and verified source. Read `paidRemaining()`, `freeStatus(wallet)` and `paidAllowance(wallet)`.
2. For a paid call, run `quote(wallet, offeredWei)`. It returns `(utcDay, paidQuantity, chargedWei, refundedWei, addFree, status)`. Status: `0` fillable, `1` below price, `2` daily quota used, `3` paid editions sold out. A fill uses the smallest of affordable quantity, remaining stock and daily wallet/Agent ID allowance. A fill can include a Dive Record if the wallet has a verified Agent ID, that ID has not received today's record, and records remain.
3. Run `eth_call` and `eth_estimateGas` with the same `from`, `to`, calldata and value that the wallet will use. For either `mint` overload, verify the returned `(firstPaidTokenId, paidQuantity, freeTokenId)` against the quote. A free token ID of `0` means no included record. For a direct transfer, use the quote for the preview and require a successful `eth_call` with empty result `0x`. For a free-only call, use value `0` and require a successful preview. Show quantity, free record status, payment, expected refund, and gas separately before wallet confirmation.
4. Send only with the owner's wallet confirmation. No token approval is needed. After confirmation, check the receipt status and `AbyssWindowEditionSold` or `AbyssWindowLogged` events for actual settlement.

For a direct BNB transfer, use your own wallet and the gas limit from `eth_estimateGas`. A 21,000-gas transfer or exchange withdrawal will fail.

Each edition costs **0.00022 BNB**. The quantity argument is a compatibility hint. The contract uses the payment amount and refunds excess to the caller in the same transaction. Paid supply is 480 total. The cap is four editions per wallet and four per valid Agent ID every UTC day. The two free methods share one record per valid Agent ID per UTC day, while the collection's 256 daily records last. A used entitlement or depleted free stock still permits a paid-only purchase if the paid quote is fillable. Daily stock and allowances reset at 00:00 UTC (08:00 Taipei).

## Direct BNB transfer

Sending BNB directly to the contract settles exactly like `mint()`. The payment determines the quantity within stock and allowance, and excess is refunded in the same transaction.

For a direct BNB transfer, use your own wallet and the gas limit from `eth_estimateGas`. A 21,000-gas transfer or exchange withdrawal will fail.

直接轉 BNB 到合約，和呼叫 `mint()` 一樣依付款金額成交，受庫存與額度限制，零頭同筆退回。

直接轉 BNB 時請用自己的錢包，gas 上限依 `eth_estimateGas`。只給 21,000 gas 的轉帳與交易所提領會失敗。

| Field／欄位 | Example／範例 |
| --- | --- |
| `to` | `0x9B5C0C4CE576Bc7d067Be67E34e4bAf3cED6df61` |
| `value` | `220000000000001` wei |
| `data` | `0x` (empty／留空) |

When the quote is fillable, this buys one Copperplate and refunds 1 wei. 報價可成交時會買到一張熱泉銅版，同筆退回 1 wei。

## Copy to your agent

Verify contract 0x9B5C0C4CE576Bc7d067Be67E34e4bAf3cED6df61 at https://sidecoo.com/abyss-window/ on BNB Smart Chain (56). From my wallet, quote 220000000000000 wei and simulate `mint(1)` with the same value. Show me the editions, whether a free record is included, the refund and the estimated gas. Send only after my wallet confirmation.

- ABI (entries in `abi`): https://sidecoo.com/abyss-window/abi.json
