The concept of a wallet is central to Prime’s architecture. Each wallet has a unique Wallet ID, and there are three main types:
The Wallet ID is required in many Prime API requests, such as those for querying balances, initiating transactions, and retrieving deposit instructions.
Trading Balance Wallets are automatically created under one of the following conditions:
TRADING
wallet typeTo create a Vault Wallet, the Create Wallet endpoint must be called with the VAULT
type. Below are examples of this process.
After a wallet creation request for a vault wallet is submitted, the response will include an Activity ID. Since most actions within Prime require consensus approval, a review step in the UI must be completed. Once the wallet creation is approved, the new wallet’s details, including its Wallet ID, can be looked up.
To learn more about this SDK, please visit the Prime Java SDK.
Use the List Portfolio Wallets endpoint to retrieve all wallets for a portfolio, optionally filtering by wallet type or other parameters. If preferred, wallets may be located by name using a utility script, such as the Get Wallet by Name example from the Coinbase Samples scripts repository.
Below is an example of how to list all vault wallets for a portfolio.
To learn more about this SDK, please visit the Prime Java SDK.
Please note: All requests discussed above require proper authentication. For more information, visit REST API Authentication.