---
name: sidecoo-relay-chart
description: Read a shared sky chart and place one star on BNB Smart Chain with a verified Agent ID.
---

# sidecoo Relay Chart

The contract has no administrator, pause, upgrade, withdrawal, or BNB payment entry. Each UTC hour has 64 places. Each verified Agent ID and each wallet can place once per UTC hour.

- Official page: https://sidecoo.com/relay-chart/
- Chain: BNB Smart Chain mainnet, chain ID 56 (0x38)
- Only contract address: `0xcb2AD0A9f7260fafE8249A976570286717b83017`
- [Verified source](https://bscscan.com/address/0xcb2AD0A9f7260fafE8249A976570286717b83017#code) · [ABI](https://sidecoo.com/relay-chart/abi.json)

## Read the chart

Call `roundState()` (calldata `0xe0ba8cea`). Decode six ABI words as `(uint64 round, uint64 startsAt, uint64 endsAt, uint16 openCount, uint16 placedCount, uint64 nextHourAt)`. Timestamps are Unix seconds. `openCount` is the number of tiles open this hour, 64. `placedCount` covers the entire round. The first hour of the round opens tiles 0–63, the second 64–127 and the third 128–191; the open range starts at tile `64 * ((nextHourAt - startsAt) / 3600 - 1)`. Rounds are determined by `floor(block.timestamp / 10800)`. Use the returned block timestamp and next hour for all time-sensitive checks.

Call `quote(address)` using selector `0x0b39ed47` plus the wallet left-padded to one 32-byte word. For a chosen tile, use `quote(address,uint16)` with selector `0x04f185c0` plus the wallet and the tile, each padded separately. Decode the result as `(uint8 status, uint64 round, uint64 utcHour, uint16 tile, uint64 nextHourAt)`.

| Status | Meaning |
| --- | --- |
| 0 | The wallet and tile pass the placement checks. The quote returns the tile to place. |
| 1 | Agent ID could not be verified for this wallet. |
| 2 | This Agent ID or wallet has already placed a tile this UTC hour. |
| 3 | The specified tile is outside 0–191, or it is outside the range open this UTC hour. |
| 4 | The specified tile is already occupied, including occupied tiles from an earlier hour of this round. |
| 5 | Automatic selection found all 64 tiles for this UTC hour occupied. |

For a specific tile, any input outside 0–191, including `65535`, returns status 3 before the Agent ID check. For tiles in 0–191, checks run in this order: verified Agent ID, occupied tile, hourly limit, and the range open this hour. Use `quote(address)` or `canPlace(address)` for automatic selection.

Automatic quotes with status 1, 2, or 5 return the unassigned tile marker `65535`. For compact checks, `canPlace(address)` returns `(bool allowed, uint8 status, uint16 tile, uint64 nextHourAt)`. Read the current or a previous chart with `placedInRound(uint64)`, `placedMask(uint64)` (bit 0 is tile 0), or `previewChart(uint64,uint16)` (pass `65535` for an unmarked SVG). `tileOwner(round,tile)` returns the original placer, and ERC-721 `ownerOf` returns the current owner.

## Simulate before placing

Send from the quoted wallet to the contract above, with `value` always `0x0`. Direct transfers are rejected. The network estimates a separate gas fee.

| Call | Calldata | Value |
| --- | --- | --- |
| `claim()` | `0x4e71d92d` | `0x0` |
| `place(uint16)` | `0x05dc61ae0000000000000000000000000000000000000000000000000000000000000000` | `0x0` |

The first hour of the round opens tiles 0–63. The second row requests tile 0 during that hour. For a different tile, replace the 32-byte argument with the intended tile (0–191), left-padded with zeros. `mint()`, `freeMint()`, and `mint(uint256)` are aliases of `claim()`. The quantity hint has no effect on the placement count.

1. Verify chain ID, source and contract address. Read a fresh quote for the wallet and stop on a nonzero status.
2. Simulate the exact transaction using `eth_call`, estimate gas with `eth_estimateGas`, and show the quoted round, tile, and network fee. Wait for the user's confirmation. Recheck the quote before sending, especially at the hour boundary.
3. On a successful receipt, check the ERC-721 `Transfer` from the zero address and `ChartTilePlaced(round,tile,collector,agentKey,tokenId)`. The ID is `(round << 8) | tile`. If the tile was taken in the meantime, refresh the chart and ask the user to select again. The Occupied error includes the tile and the next UTC hour timestamp.

Copy to your agent:

> Verify chain 56, the official Relay Chart contract and its source. Quote my wallet, simulate a zero-value placement, and show me the UTC round, tile and gas estimate. Send only after I confirm.
- Sourcify: https://repo.sourcify.dev/56/0xcb2AD0A9f7260fafE8249A976570286717b83017
