Prerequisites
Before you begin, ensure you’ve:- Created an API key in the Circle Console.
- Installed Node.js v22.6+ or Python 3.11+.
- Installed the developer-controlled wallets SDK:
If you are not using the Circle SDK, you can generate and register your entity
secret manually
using standard libraries or command-line tools.
Generate and register an entity secret
Create your script file withtouch register-entity-secret.ts (Node.js) or
touch register_entity_secret.py (Python), then add the following script,
which:
- Generates a 32-byte entity secret
- Registers it with Circle
- Saves the recovery file to
./recovery/with a unique filename - Adds
CIRCLE_ENTITY_SECRETto your.envfile for local development (use a secrets manager in production)
CIRCLE_API_KEY in your environment.
Run the script
From the same directory, run:If you see
Cannot find module '@circle-fin/developer-controlled-wallets',
run the script from the same directory where you ran npm install (or pip install). The SDK lives in that project’s node_modules or virtualenv and
isn’t visible from other folders.