Skip to main content

Prerequisites

Before getting started:

Instantiating the PrivyClient

Import PrivyClient and create an instance with your Privy app ID and app secret.
This client is the entry point for managing Privy resources from a server. It provides services for creating wallets, signing and sending transactions, retrieving and creating users, and managing apps, organizations, policies, key quorums, and webhooks. The client owns an HTTP connection pool. Close it when your application shuts down, or use it as a context manager for shorter-lived scripts:

Authorization

If a resource (such as a wallet, policy, or key quorum) has an owner, requests that modify it require authorization signatures from the owner. An authorization context can contain authorization private keys and user JWTs. The Python SDK uses the authorization context to generate and attach the required signatures automatically.
Review the signing on the server guide before using the Python SDK with owned resources.
Pass request_options=request_options to an operation on an owned resource.

Rate limits

Privy rate limits REST API endpoints called from a server.
Learn more about optimizing request patterns and handling rate limits in the optimizing guide.

Next steps

Quickstart

Create wallets, sign messages, and send transactions with the Python SDK.

Authorization keys

Add an extra layer of security by signing requests with authorization keys.