Skip to main content
POST
Initialize import

SDK methods

Learn more about importing wallets using our SDKs here.
Idempotency on errors: On 4xx or 5xx, Privy caches the response and replays it for the same key. Generate a new key to retry after a server error. Policy violations are an exception and allow same-key retries.

Authorizations

Authorization
string
header
required

Basic Auth header with your app ID as the username and your app secret as the password.

Headers

privy-app-id
string
required

ID of your Privy app.

Body

application/json

The input for HD wallets.

address
string
required

The address of the wallet to import.

chain_type
enum<string>
required

The chain type of the wallet to import. Supports ethereum, solana, stellar, tron, sui, and aptos.

Available options:
ethereum,
solana,
stellar,
tron,
sui,
aptos
encryption_type
enum<string>
required

The encryption type of the wallet to import. Currently only supports HPKE.

Available options:
HPKE
entropy_type
enum<string>
required

The entropy type of the wallet to import.

Available options:
hd
index
integer
required

The index of the wallet to import.

Required range: x >= 0

Response

200 - application/json

The encryption public key to encrypt the wallet entropy with.

encryption_type
enum<string>
required

The encryption type of the wallet to import. Currently only supports HPKE.

Available options:
HPKE
encryption_public_key
string
required

The base64-encoded encryption public key to encrypt the wallet entropy with.