# sidecoo Hourly Slip · 整點籤

No admin, pause, upgrade or withdrawal functions. Artwork and metadata are on-chain, with fixed price, payee and limits. Verify the [contract source](https://bscscan.com/address/0x4fd0Fc1EF46174698af9773b2FAFF37FfA649135#code).
- Sourcify: https://repo.sourcify.dev/56/0x4fd0Fc1EF46174698af9773b2FAFF37FfA649135

**UTC schedule.** Entitlement resets at every UTC hour boundary, up to 24 free slips per UTC day per verified Agent ID. Read `nextSlipAt(address)` for the next eligible Unix timestamp in seconds: the current block timestamp when ready, the next hour when already claimed, or 0 without a verified Agent ID. Preflight with `quote(address,uint256)`. For an available free claim, send calldata `0x1249c58b` with value `0`. For one gold slip, send the same calldata with `220000000000000` wei.

- Network: BNB Smart Chain, chain ID `56`
- Sole contract: `0x4fd0Fc1EF46174698af9773b2FAFF37FfA649135`
- Official site: [Hourly Slip](https://sidecoo.com/hourly-slip/)
- Fixed payment recipient: `0x225784F1F10aF2c0Bfc50C746c1c0E4d3eA68C51`
- Agent ID registry: `0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F`

## Claim or collect

1. Check the chain, destination and verified source. Read `quote(sender, valueWei)` from your sending address. The return tuple is `(hour, freeEligible, goldQuantity, paidWei, refundedWei, status)`.
2. Claim a free slip only if the verified ID still has its entitlement and the zero-value quote returns `status == 0` with `freeEligible == true`. On `HourlySlipSlipAlreadyIssued(uint256)`, the error argument is the next UTC hour's Unix timestamp. On `AgentIdRequired`, wait for a verified Agent ID before retrying a free claim.
3. Any wallet can buy gold slips. Each costs 0.00022 BNB. Each UTC hour has 100 numbered gold slips and a 10-slip purchase limit per wallet. All entries, including `freeMint()`, buy as many whole units as the value, remaining stock and wallet allowance cover. Any unused BNB returns to the sender in the same transaction. The purchase includes a free slip when the verified ID still has its entitlement. The UTC hour at inclusion determines the slip. `quoteAmount(quantity)` returns the nominal value for 1 to 10, and `mint(uint256)` uses the argument as a hint.
4. Simulate with `eth_call` using the exact sender, destination, calldata and value. Compare the returned free token ID and paid count with the quote. A successful empty-calldata simulation returns `0x`. Use `eth_estimateGas`, then show the network, contract, fixed recipient, items, value, sale amount, change, estimated gas and permission changes (none). Obtain confirmation for that transaction and refresh the preview if its terms change.
5. Check for receipt `status == 1` and the contract's ERC-721 transfers from the zero address to the sender for token IDs. The purchase event records actual paid and refunded wei. No approval or permit is required.

## Exact calldata and value

Each example starts with an unclaimed verified ID and enough stock and wallet allowance.

| Example | Calldata | Value (wei) | Free slips | Gold slips | Sale (wei) | Change (wei) |
| --- | --- | --- | --- | --- | --- | --- |
| Slip | `0x1249c58b` | `0` | 1 | 0 | `0` | `0` |
| One-gold | `0x1249c58b` | `220000000000000` | 1 | 1 | `220000000000000` | `0` |
| Two-gold | `0xa0712d680000000000000000000000000000000000000000000000000000000000000002` | `500000000000000` | 1 | 2 | `440000000000000` | `60000000000000` |
| Direct-transfer | `0x` | `500000000000000` | 1 | 2 | `440000000000000` | `60000000000000` |

The last example uses empty calldata. Send from your own wallet and use the gas limit from `eth_estimateGas`. A 21,000-gas transfer or exchange withdrawal will fail.

直接轉 BNB 時請用自己的錢包，gas 上限依 eth_estimateGas。只給 21,000 gas 的轉帳與交易所提領會失敗。附 0.0005 BNB、庫存及額度足夠時取得兩張金籤並退回 0.00006 BNB。Agent ID 尚有本整點免費額度時，同筆附上一張整點籤。

## ABI

See the [complete ABI](https://sidecoo.com/hourly-slip/abi.json) for the product and ERC-721 interfaces.

```text
receive() external payable
mint() payable returns (uint256 slipTokenId, uint256 goldQuantity)
mint(uint256 requestedQuantity) payable returns (uint256 slipTokenId, uint256 goldQuantity)
claim() payable returns (uint256 slipTokenId, uint256 goldQuantity)
freeMint() payable returns (uint256 slipTokenId, uint256 goldQuantity)
quoteAmount(uint256 quantity) pure returns (uint256)
quote(address wallet, uint256 valueWei) view returns (uint256 hour, bool freeEligible, uint256 goldQuantity, uint256 paidWei, uint256 refundedWei, uint8 status)
nextSlipAt(address wallet) view returns (uint256)
slipsClaimedToday(address wallet) view returns (uint256)
currentHour() view returns (uint256)
paidStockRemaining() view returns (uint256)
paidWalletRemaining(address wallet) view returns (uint256)
previewArt(address wallet, uint256 hour, bool gold, uint256 serial) view returns (string)
event HourlySlipSlipIssued(address indexed collector, uint256 indexed hour, uint256 indexed tokenId)
event HourlySlipGoldPurchased(address indexed collector, uint256 indexed hour, uint256 quantity, uint256 paidWei, uint256 refundedWei)
error HourlySlipSlipAlreadyIssued(uint256 nextHourTimestamp)
```

Quote status codes are `0 Ready`, `1 AgentIdRequired`, `2 SlipAlreadyIssued`, `3 PaymentTooSmall`, `4 WalletLimitReached`, `5 GoldSoldOut`. A failed paid order preserves any free allowance. If an ID has already claimed, a valid paid order still buys gold slips. When a verified ID is present, both versions of the slip share that ID's grade and blessing for the hour. Gold slips for wallets without a verified ID use the sending address as the art key.

## Copy into an agent

> On BNB Smart Chain (56), verify `0x4fd0Fc1EF46174698af9773b2FAFF37FfA649135`. From my address, use `quote(address,uint256)` and simulate `mint()` (calldata `0x1249c58b`) with value `220000000000000` wei. Show me the gold slip count, any available free slip, the fixed recipient, charge, change and gas before I confirm. For a free slip only, check `nextSlipAt(address)`, quote and simulate with value zero, and stop if the quote reports ineligibility.
