PUT
/
v2
/
solana
/
accounts
/
{address}
Update a Solana account
curl --request PUT \
  --url https://api.cdp.coinbase.com/platform/v2/solana/accounts/{address} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "my-wallet",
  "accountPolicy": "123e4567-e89b-12d3-a456-426614174000"
}'
{
  "address": "HpabPRRCFbBKSuJr5PdkVvQc85FyxyTWkFM2obBRSvHT",
  "name": "my-account",
  "policies": [
    "123e4567-e89b-12d3-a456-426614174000"
  ]
}

Authorizations

Authorization
string
header
required

A JWT signed using your CDP API Key Secret, encoded in base64. Refer to the Generate Bearer Token section of our Authentication docs for information on how to generate your Bearer Token.

Headers

X-Idempotency-Key
string

An optional UUID v4 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.

Required string length: 36

Path Parameters

address
string
required

The base58 encoded address of the Solana account.

Body

application/json
name
string

An optional name for the account. Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long. Account names must be unique across all Solana accounts in the developer's CDP Project.

Example:

"my-wallet"

accountPolicy
string

The ID of the account-level policy to apply to the account.

Example:

"123e4567-e89b-12d3-a456-426614174000"

Response

Successfully updated Solana account.

address
string
required

The base58 encoded Solana address.

Example:

"HpabPRRCFbBKSuJr5PdkVvQc85FyxyTWkFM2obBRSvHT"

name
string

An optional name for the account. Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long. Account names are guaranteed to be unique across all Solana accounts in the developer's CDP Project.

Example:

"my-account"

policies
string[]

The list of policy IDs that apply to the account. This will include both the project-level policy and the account-level policy, if one exists.

Example:
["123e4567-e89b-12d3-a456-426614174000"]