---
name: superrare-connect
description: Integrate SuperRare Connect hosted authentication, checkout, buy, bid, mint and transfer flows into a creator's site or game. Use when SuperRare commerce is requested, not for Studio hosting or general payment-provider selection.
---

# SuperRare Connect integration

Read https://studio.superrare.com/docs/connect and https://github.com/superrare/superrare-connect for the SDK version and the requested flow. Check the installed @rareprotocol/connect types and examples rather than inventing options. Connect is optional and its session is separate from Studio's publishing session.

## Before implementation

Confirm the intended transaction, chain, contract/release/listing IDs, currency and amount. Use verified identifiers, not example addresses. Do not deploy contracts, spend money or configure live payments without the creator's authorization. Do not request private keys or put secrets in a browser bundle.

## Hosted interaction

- Open the SDK action directly from a user click so the hosted popup can open. Handle popup blocking and cancellation.
- Use a relative same-origin returnPath, never an absolute return URL.
- Verify amount units for the exact SDK version and action. Transfer amounts use base-unit strings (wei for ETH; 6 decimals for USDC), but do not generalize this to mint, listing or CLI price fields without checking their contract. Avoid floating-point money arithmetic.
- Do not promise card availability across every flow. Transfers are wallet-only. For a custom contract that depends on the receiving wallet, consult the wallet-only option and card buy-proxy behavior in the current reference.
- Render pending, completed, failed and interrupted states. Closing a popup is not proof of completion. Use the supported intent outcome helpers.

## Fulfillment and game credits

Never grant goods or credits based on a browser callback alone. For transfers, associate an order with its intent before opening payment; the backend independently reads GET /v1/connect/intents/:intentId and verifies completed status, transfer action type, chainId, recipient, amount and currency against the order. Credit each intent only once. Follow the reference for other action types rather than applying transfer rules indiscriminately.

For game credit groups and server-verified scores, use https://github.com/superrare/studio-games-example/blob/main/docs/organizer-runbook.md. Do not equate a frontend score submission with verification.

## Test and hand off

For collection/release setup and mint-specific acceptance, read https://studio.superrare.com/skills/studio/references/minting.md. Creating a hosted mint intent does not deploy a collection or configure a sale. Connect's supported chains and payment methods can differ from the creator CLI; verify both before implementation. Connect controls its displayed fees; do not invent or override them in the integration.

Use a documented test environment and test assets with permission. Exercise successful, cancelled, pending, blocked-popup and duplicate-notification cases; verify backend fulfillment and refresh behavior. Report which environment was tested and any unfinished setup. Do not call a test payment production-ready or switch to mainnet silently.
