Accounts represent a grouping of wallets across multiple chain types and custody configurations. Think of accounts as a single unit of balance; create one account for each end user or customer of your service. When creating an account, specify:Documentation Index
Fetch the complete documentation index at: https://docs.privy.io/llms.txt
Use this file to discover all available pages before exploring further.
- a display name for the account
- the account’s wallets, either by providing a
wallets_configurationto create new wallets, or a list ofwallet_idsto add existing wallets to the account. For each wallet in awallets_configuration, the wallet’s owner can also be specified.
View the full API reference for creating an account.
Usage
- REST API
To create an account via REST API, make a Provide exactly one of the following (Using
Use ResponseUsing
Use Response
POST request to:Body
An optional display name for the account.
wallets_configuration or wallets_ids) to specify the account’s wallets:New wallets to create for the account, each specified with a chain type and optional custody configuration. At least one wallet is required. Maximum of five wallets total per account.Mutually exclusive with
wallet_ids.Each item in the array has the following fields:IDs of existing wallets to include in the account. Must contain between one and five wallet IDs.Mutually exclusive with
wallets_configuration.Response
Unique ID of the created account.
The display name of the account, or
null if not set.The wallets included in the account. Each wallet contains:
id(string): The wallet IDchain_type('ethereum' | 'solana'): The chain type of the walletaddress(string): The on-chain address of the walletcustody(object | undefined): The custody configuration, if the wallet is custodial
Examples
Using wallets_configuration
Use wallets_configuration to create new wallets as part of the account.RequestUsing wallet_ids
Use wallet_ids to group existing wallets into an account.Request
