EVM Accounts

Export EVM account by name

Changed on

Export an existing EVM account's private key by its name. It is important to store the private key in a secure place after it's exported.

post/v2/evm/accounts/export/by-name/{name}

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    HTTP bearer

Path parameters

name, string required

The name of the EVM account.

Headers

X-Wallet-Auth, string required

A JWT signed using your Wallet Secret, encoded in base64. Refer to the Generate Wallet Token section of our Authentication docs for more details on how to generate your Wallet Token.

X-Idempotency-Key, string

An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our Idempotency docs for more information on using idempotency keys.

Request body

object required
exportEncryptionKey, string required

The base64-encoded, public part of the RSA key in DER format used to encrypt the account private key.

Example request

{
  "exportEncryptionKey": "U2FsdGVkX1+vupppZksvRf5X5YgHq4+da+Q4qf51+Q4="
}

Response

Successfully exported EVM account.

object required
encryptedPrivateKey, string required

The base64-encoded, encrypted private key of the EVM account which is a 32 byte raw private key. The private key is encrypted in transport using the exportEncryptionKey in the request.

Example response

{
  "encryptedPrivateKey": "U2FsdGVkX1+vupppZksvRf5X5YgHq4+da+Q4qf51+Q4="
}

Changes

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    5 more changes in this revision