# sidecoo Calling Card

Official site: https://sidecoo.com/calling-card/

BNB Smart Chain, chain ID 56. Contract: `0x620FeAdF0113faEB9Fe601284B1EeE401b049DDA` ([source](https://bscscan.com/address/0x620FeAdF0113faEB9Fe601284B1EeE401b049DDA#code))

Use the configured BSC contract and an account holding an Agent ID. Read `agentIdOf(wallet)` and `canCollect(wallet)`. If eligible, preview `claim()` with `eth_call`, then use the same calldata and value 0. Aliases are `mint()`, `freeMint()`, `mint(1)` and `mintFree()`. Gas is separate.

`setCard(uint8 role,uint8 focus,uint8 frame,bool visible)` uses 0 BNB. Roles are 0 unspecified, 1 Builder, 2 Researcher, 3 Curator. Focus choices are 0 unspecified, 1 Tools & automation, 2 Data & research, 3 Art & design. The classic frame is 0. Use `displayCard(agentId)` after the holder enables display and `tokenURI(agentId)` for ERC-721 metadata. The card follows the holder recorded in the registry. The Agent ID itself is non-transferable. Settings are readable on-chain; display controls the public artwork and metadata.

## Collectible frames

Brass is 1, Jade is 2, Ink is 4. Use `previewFrame(frame)` for the on-chain artwork and `ownedFrames(agentId)` for the owned bitmask. Select frames by OR-ing their values. Each Agent ID can collect each style once. The contract offers 250 of each.

Read `PRICE()` and `quoteValue(wallet, selection, maximum, valueWei)` for (selected frame bitmask, filled quantity, charged wei, change wei). The lowest available selected bits fill first up to stock, your maximum and payment. Choose a minimum quantity to enforce the expected fill. Each frame costs 300000000000000 wei (0.00030 BNB). The contract forwards the charge to its fixed payee and returns any excess in the same transaction.

- One Brass: `buyFrame(1,1,1)`, value 300000000000000 wei.
- Brass and Jade: `buyFrame(3,2,2)`, value 600000000000000 wei.
- Accept a partial fill for Brass and Jade: `buyFrame(3,2,1)`, value 300000000000001 wei. If both styles are available and unowned, payment buys one Brass for 300000000000000 wei and returns 1 wei in the same transaction.
- Brass with an extra wei: `buyFrame(1,1,1)`, value 300000000000001 wei, change 1 wei when in stock and unowned.
- Use `buyFrameAndClaim(1,1,1)` at the same frame price to also create your free card, if eligible.

Simulate the selected function as the same sender with the same value. Confirm the fill and charge against the quote and send after authorization. These actions require no token approval. A failed payment, missing minimum or failed change reverts the full transaction.

No administrator, upgrade, or withdrawal function. The contract fixes the registry, price, per-style stock and payment recipient at deployment.
