POST
/
v1
/
portfolios
/
{portfolio_id}
/
wallets
curl --request POST \
  --url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/wallets \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "symbol": "<string>",
  "wallet_type": "UNKNOWN_WALLET_TYPE",
  "idempotency_key": "<string>",
  "network_family": "NETWORK_FAMILY_UNSPECIFIED",
  "network": {
    "id": "<string>",
    "type": "<string>"
  }
}'
{
  "activity_id": "<string>",
  "name": "<string>",
  "symbol": "<string>",
  "wallet_type": "UNKNOWN_WALLET_TYPE",
  "network_family": "NETWORK_FAMILY_UNSPECIFIED"
}

Supported Types

Currently, this endpoint can be used only to create vault wallets and onchain wallets that do not require key generation. The first EVM and first Solana onchain wallet in a portfolio must be created prior to creating subsequent EVM or Solana wallets in a portfolio via API.

Use the Prime SDK or CLI to test this endpoint by following the quickstart guide and running with the following examples

WalletsService walletsService = PrimeServiceFactory.createWalletsService(client);

CreateWalletRequest request = new CreateWalletRequest.Builder()
    .portfolioId("PORTFOLIO_ID_HERE")
    .type(WalletType.VAULT)
    .name("PRIME_API_EXAMPLE")
    .symbol("ETH")
    .build();

CreateWalletResponse response = walletsService.createWallet(request);

For more information, please visit the Prime Java SDK.

Path Parameters

portfolio_id
string
required

Portfolio ID

Body

application/json

Response

200
application/json

A successful response.

The response is of type object.