Skip to main content

Prerequisites

Before you begin:

Instantiating the PrivyClient

Import the PrivyClient struct and create an instance by passing your Privy app ID and app secret as parameters.
You can also store your credentials as environment variables for security:
This client PrivyClient is now your entry point to manage Privy from your server. With the PrivyClient you can interact with wallets with methods for creating wallets, signing and sending transactions. You can also manage users with methods for getting a user object, verifying an auth token, and importing new users.

Authorization

If a resource (i.e. wallet, policy, key quorum) has an owner, authorization signatures from the owner are required. Use the authorization context to specify authorization private keys and user JWTs of the wallet’s owners, and the Rust SDK will generate signatures and sign requests under the hood.
We strongly recommend reading this guide before using the Rust SDK for the best development experience.

Rate limits

Privy rate limits REST API endpoints that you may call from your server.
Learn more about optimizing your setup and handling rate limits in our optimizing guide!