Install
This quickstart uses@renaiss-protocol/client@0.1.0-beta.3. Check availability before installing:
@renaiss-protocol/client@beta after confirming the tag exists. The tag can move to a newer release.
Install viem as well if you use the optional @renaiss-protocol/client/viem signer adapter.
For existing integrations, follow the migration guide.
Read available packs
/v2/gacha under the configured API base URL. Do not append /v2 to baseUrl. Choose a matching network and API deployment; network constants do not select a hostname.
Add wallet actions
- Request a builder key for your environment. For Redeem, also register the exact origins of your frontend.
- Add a backend proxy that authenticates your app’s users and injects
x-builder-api-key. Keep the key out of browser bundles. - Pass your user’s existing EOA signer to the client and set
baseUrlto your proxy, such as/api/renaiss. - Check the selected wallet, chain, balance and contract approvals before asking the wallet to sign.