Coinbase Server Wallet icon

Coinbase Server Wallet

Interact with Coinbase Server Wallet API v2 (EVM & Solana)

Actions61

Solana Accounts → Import Solana Account

AI-generated

Summary

Import a Solana account using its encrypted private key and authentication token.

Inputs

  • X-Wallet-Auth (required) — A JWT signed using your Wallet Secret, encoded in base64.
  • encryptedPrivateKey (required) — The base64-encoded, encrypted 32-byte private key of the Solana account.
  • name — An optional unique name for the account, consisting of alphanumeric characters and hyphens, 2 to 36 characters long.
  • X-Idempotency-Key — An optional UUID v4 request header for safely retrying requests.
  • requestOptions — A collection of additional request options including batching, SSL issues, proxy settings, and timeout settings.

Output shape

no body — success/failure only

Ensure unique account names across all EVM accounts in the developer's CDP Project.

Examples

Example 1: Importing a new account

Provide the encrypted private key and the wallet auth token.

Example 2: Retrying the request

Use the same idempotency key for duplicate requests.

Discussion