GET
/
v2
/
solana
/
accounts
/
by-name
/
{name}
Get a Solana account by name
curl --request GET \
  --url https://api.cdp.coinbase.com/platform/v2/solana/accounts/by-name/{name} \
  --header 'Authorization: Bearer <token>'
{
  "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.

Path Parameters

name
string
required

The name of the Solana account.

Response

Successfully got 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"]