Initiates a client for Circle's User Controlled Wallets.
The client parameters.
Api Key that is used to authenticate against Circle APIs.
Optional base URL to override the default: https://api.circle.com
.
Additional headers that should be added to each request.
Optional custom storage solution for persisting data. We will fallback to InMemoryStorage if none was provided.
Optional custom user agent request header. We will prepend it to default user agent header if provided.
1import { initiateUserControlledWalletsClient } from '@circle-fin/user-controlled-wallets'
2
3const client = initiateUserControlledWalletsClient({
4 apiKey: 'YOUR_KEY',
5})
6
7const response = await client.listWallets({ userToken: 'dummy-user-token' })
8console.log(response.data?.wallets)