Use theDocumentation Index
Fetch the complete documentation index at: https://developers.circle.com/llms.txt
Use this file to discover all available pages before exploring further.
POST /developer/wallets
endpoint to batch-create dev-controlled wallets and link each one to an existing
user in your system. Pass a metadata array with name and refId fields to
associate each wallet with a user. You can create up to 200 wallets per request.
Prerequisites
Before you begin, ensure that you’ve:- Created a Circle Developer Account and an API key.
- Registered your entity secret.
- Created a wallet set. If you haven’t, complete the Create a Dev-Controlled Wallet quickstart.
- Installed Node.js 22+ or Python 3.10+.
-
Installed the applicable server-side SDK for your language:
- Node.js
- Python
Use the following commands to install the SDK. You can view the package information on the npm site.For more information, visit the Node.js SDK.
Step 1. Prepare the metadata array
Build ametadata array where each element corresponds to one wallet you want
to create. Each element accepts two fields:
name: A human-readable label for the wallet.refId: Your internal user identifier (for example, a UUID from your database). Use this field to map the wallet back to the user in your system.
metadata array must exactly match the count value you pass
in the request. If they differ, the API returns error 155503.
For example, to create wallets for two users:
Step 2. Create the wallets
CallcreateWallets with your walletSetId, target blockchain, count,
accountType, and the metadata array from Step 1.
You can create up to 200 wallets per request. If you need more, make
additional requests until you reach the required total.
Step 3. Map wallet IDs to your users
Inspectdata.wallets in the response. Each wallet object includes the refId
and name you provided, along with the assigned wallet id and address.
Response
id against each user record in your database. Use the
refId field to match each wallet in the response to the corresponding user in
your system.