User-Controlled Wallets
Project description
circle-user-controlled-wallets
User-Controlled Wallets API documentation.
- API version: 1.0
- Package version: 1.0
Requirements.
Python 3.7+
Installation
pip install
pip install circle-user-controlled-wallets
Then import the package:
from circle.web3 import user_controlled_wallets
Usage
- Generate an API key, if you haven't already, in the Web3 Services Console. This API key will be used for authentication and authorization when making requests to Circle's APIs. API key can be set by environment variable or function parameter
export CIRCLE_WEB3_API_KEY="Your API KEY"
-
Follow our User-Controlled QuickStart. This step ensures that you fully grasp the concept of Circle's User-Controlled Wallets.
-
Initiate API client
from circle.web3 import utils
client = utils.init_user_controlled_wallets_client(api_key="Your API KEY")
- Interact with the client:
import uuid
from circle.web3 import user_controlled_wallets
# generate a user id
user_id = str(uuid.uuid4())
# create user
api_instance = user_controlled_wallets.UsersAndPinsApi(client)
try:
request = user_controlled_wallets.CreateUserRequest(user_id=user_id)
api_instance.create_user(request)
except user_controlled_wallets.ApiException as e:
print("Exception when calling UsersAndPinsApi->create_user: %s\n" % e)
# get user
try:
response = api_instance.get_user(id=user_id)
print(response.data)
except user_controlled_wallets.ApiException as e:
print("Exception when calling UsersAndPinsApi->get_user: %s\n" % e)
# get user token
try:
request = user_controlled_wallets.GenerateUserTokenRequest.from_dict({"userId": user_id})
response = api_instance.get_user_token(request)
print(response.data.user_token)
except user_controlled_wallets.ApiException as e:
print("Exception when calling UsersAndPinsApi->get_user_token: %s\n" % e)
We recommend reading through the official documentation and QuickStart guides mentioned above to ensure a smooth setup and usage experience.
Configuration
The client accept following configuration parameters:
Option | Required | Description |
---|---|---|
api_key | Yes | Api Key that is used to authenticate against Circle APIs. Must be provided by ether env variable or function parameter. |
host | No | Optional base URL to override the default: https://api.circle.com/v1/w3s. |
user_agent | No | Optional custom user agent request header. We will prepend it to default user agent header if provided. |
Need help or have questions?
Here are some helpful links, if you encounter any issues or have questions about this SDK:
- 📖 Getting started: Check out our official Developer-Controlled Wallets QuickStart.
- 🎮 Join our Discord Community: Engage, learn, and collaborate.
- 🛎 Visit our Help-Desk Page: Dive into curated FAQs and guides.
- 📧 Direct Email: We're always a message away.
- 📖 Read docs: Check out our developer documentation. Happy coding!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for circle_user_controlled_wallets-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6d7718c86d4893e4b53b9e6f461224ee54338ddeadc6a2146123ac2840a3a4f |
|
MD5 | a50e039067dc02642898edecc5641608 |
|
BLAKE2b-256 | 894f2e19375d93070e1b4c3468c0f98932944a8995b8eaa02f85c7473649e071 |
Close
Hashes for circle_user_controlled_wallets-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 999c28bf5d11cdc24d43ade73930e22868e30e389f3e1dfcb3ab61e136974aab |
|
MD5 | ca7cfdb98de5d11f6782d1ea764b0261 |
|
BLAKE2b-256 | 8faf9f70ae5cf406df929e76757e1d5710eb813ca4a59b70755296869418d69c |