Use the Node.js SDK to interact with Circle’s User-Controlled Wallet APIs, which allow you to embed secure wallets in your applications and create blockchain transactions using the Developer Services platform. This page provides short examples of how to install and use the user-controlled wallets SDK. For complete examples, see the Sample Projects page. For more information see the user-controlled wallets documentation.Documentation Index
Fetch the complete documentation index at: https://developers.circle.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
To use the Node.js SDK, ensure you have:- Node.js v22+ installed
- A Circle Developer Console account
- An API key created in the Console:
Keys → Create a key → API key → Standard Key - Your Entity Secret registered
Install the SDK
Use the following commands to install the SDK. You can view the package information on the npm site.User-controlled wallets client
To start using the SDK, you first need to configure a client. Import theinitiateUserControlledWalletsClient factory from the SDK, and then initialize
the client using your API key.
Import the client
The following example shows how to import the client and configure it to use your API key:Create a transaction
The following example shows how to create a transaction using the client:Client configuration options
The client for the user-controlled wallets SDK accepts the following configuration parameters:| Option | Required? | Description |
|---|---|---|
apiKey | Yes | The API key used to authenticate requests to the Circle API. |
storage | No | Optional custom storage solution for persisting data. If not provided, the SDK uses in-memory storage. |