# sidecoo Album

The list of 19 series is fixed at deployment. The contract has zero admin, pause, upgrade, payment, and withdrawal entry points. Album transfers and approvals revert. Verify the [BSC source](https://bscscan.com/address/0x34d96C8d2559dDf61D9D3674aB3949Af6EA35335#code) and the [ABI](https://sidecoo.com/album/abi.json).
- Sourcify: https://repo.sourcify.dev/56/0x34d96C8d2559dDf61D9D3674aB3949Af6EA35335

Use BNB Smart Chain, chain ID 56, and the official contract `0x34d96C8d2559dDf61D9D3674aB3949Af6EA35335`. The wallet pays network gas. The contract payment is 0 wei.

## Read an album

An address argument is the lowercase 40 hex digits of the wallet address, left padded with 24 zero hex digits. Append that 32-byte word to the selector and use `eth_call` against the Album contract.

| Method | Selector | Result |
|---|---|---|
| `slots(address)` | `0x39301427` | `uint256[]` in constructor order. Slot 0 is Daily. |
| `score(address)` | `0x776f3843` | Current number of slots with at least one card. |
| `balanceOf(address)` | `0x70a08231` | Latest stamped series count for this wallet. Returns zero before stamping. Use for contract eligibility. |
| `scoreCached(address)` | `0xaab23073` | Same latest-stamp result as `balanceOf(address)`. |
| `dailyCount(address)` | `0x96ecb845` | Current balance of Daily. |
| `albumStatus(address)` | `0xfa08ee27` | `(bool verified, uint256 tokenId, bool issued, uint256 nextStampAt)`. Timestamp is Unix seconds, or zero before the first stamp. |

Use `collectionCount()` and `collection(uint256)` to map the slot array to contracts and short labels. A failed series read or a response with a length other than 32 bytes contributes zero. Each series read has a 40,000 gas cap. An external contract can call `balanceOf(address)` within a 50,000 gas limit. The cache reflects a completed daily stamp. When an Agent ID stamps from a successor wallet, the prior wallet's score for that album clears.

Use `ownerOf(uint256)` for the mint wallet and `tokenURI(uint256)` for issued artwork. The token ID is the Agent ID handle hash. Stamp eligibility follows the registry's current ownership, and the artwork reads that holder's live scores.

## Claim or stamp

Check `verified` and `nextStampAt` against the latest block timestamp. The first successful stamp mints the album. Contract wallets can claim without an ERC-721 receive callback. Later successful calls update the existing album once per UTC day. `AlbumStamped` is emitted on each successful call. An increased score on a later stamp also emits `AlbumUpgraded`. A duplicate attempt reverts with `AlbumAlreadyStamped(nextUtcDay)`.

| Entry | Complete calldata | Value |
|---|---|---:|
| `claim()` | `0x4e71d92d` | 0 wei |
| `mint()` | `0x1249c58b` | 0 wei |
| `freeMint()` | `0x5b70ea9f` | 0 wei |

Copy to your wallet agent:

> On BNB Smart Chain, preflight a call from my wallet to 0x34d96C8d2559dDf61D9D3674aB3949Af6EA35335 with calldata 0x4e71d92d and value 0 wei. Estimate gas. If simulation succeeds and the wallet preview shows zero BNB and zero approval changes, request my confirmation for the same call.
