# sidecoo Night Postmark

[Product and official address](https://sidecoo.com/night-postmark/) · [Verified source](https://bscscan.com/address/0x4f3b65a5457C0261b3A838956DE5bA6644A9440B#code) · [Permissions](https://sidecoo.com/permissions/#night-postmark)
- Sourcify: https://repo.sourcify.dev/56/0x4f3b65a5457C0261b3A838956DE5bA6644A9440B

Fixed price, fixed payee and fixed issuance caps. The contract has no administrator, upgrade, pause or withdrawal function.

1. Verify the sole Night Postmark contract address `0x4f3b65a5457C0261b3A838956DE5bA6644A9440B` on BNB Smart Chain (chain ID 56). Compare the verified source and read `PRICE()` (1000000000000000 wei) and `PAYEE()` (0x225784F1F10aF2c0Bfc50C746c1c0E4d3eA68C51). The buyer must use their eligible Agent ID wallet.
2. Call `quote(buyer, tenderedWei)` to read the UTC day, actual quantity, amount charged and change. Limits are three cards per wallet and three per Agent ID per UTC day, 250 per day and 750 in the series. The edition changes at 00:00 UTC / 08:00 Taipei. The block that includes the purchase determines its edition. If a specific edition matters, avoid submitting near the reset.
3. Simulate the payable call and estimate gas with exactly the same chain, sender, recipient, calldata and value as the intended purchase. If either fails, show the reason and refresh the quote. Display the day, actual quantity, tender, charge, fixed payee, change and gas estimate. Ask the buyer to confirm this payment before submitting it. The purchase requires only the BNB payment and gas. It uses no token approval, permit or pairing code.
4. Send the single confirmed call and wait for a successful receipt. Report the transaction hash and the series token IDs from `NightPostmarkPurchased`; `firstTokenId` through `firstTokenId + quantity - 1`. The receipt records actual settlement.

The number of whole cards bought is determined by the tender, inventory and remaining quotas. `mint(uint256)` accepts a quantity hint. Sending BNB directly to the contract with empty calldata settles the same way as `mint()`. Excess BNB is returned 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()` 一樣依實付金額、庫存與額度成交，零頭同筆退回。直接轉帳範例的收款地址為 `0x4f3b65a5457C0261b3A838956DE5bA6644A9440B`，`value` 以 wei 計，`data` 為空（`0x`）。

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

| Example | Calldata | Value (wei) | Expected with sufficient quota and stock |
| --- | --- | ---: | --- |
| One card | `0x1249c58b` | 1000000000000000 | 1 card, 0 wei change |
| Two cards | `0xa0712d680000000000000000000000000000000000000000000000000000000000000002` | 2000000000000000 | 2 cards, 0 wei change |
| One card plus 1 wei | `0x1249c58b` | 1000000000000001 | 1 card, 1 wei change |
| Direct BNB transfer · 直接轉帳 | `0x` | 1000000000000001 | 1 card, 1 wei change |

> 請從 https://sidecoo.com/night-postmark/ 核對 BNB Smart Chain（56）唯一合約 `0x4f3b65a5457C0261b3A838956DE5bA6644A9440B` 與驗證原始碼。用我的 Agent ID 錢包查 `quote(我的地址, 1000000000000000)`，模擬向同一合約呼叫 `mint()` 並附 0.001 BNB。顯示成交日、實得張數、實收、固定收款、找零與 gas，核對這筆交易只購買郵戳後，等我確認才送出。成交後回報交易雜湊與卡片編號。

- ABI (entries in `abi`): https://sidecoo.com/night-postmark/abi.json
