Coinbase Prime API
cURL
curl --request GET \ --url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/wallets/{wallet_id}
{ "wallet": { "id": "<string>", "name": "<string>", "symbol": "<string>", "type": "VAULT", "created_at": "2023-11-07T05:31:56Z", "address": "<string>", "visibility": "WALLET_VISIBILITY_UNSPECIFIED", "network": { "id": "<string>", "type": "<string>" } } }
Retrieve a specific wallet by Wallet ID.
WalletsService walletsService = PrimeServiceFactory.createWalletsService(client); GetWalletByIdRequest request = new GetWalletByIdRequest.Builder() .portfolioId("PORTFOLIO_ID_HERE") .walletId("WALLET_ID_HERE") .build(); GetWalletByIdResponse response = walletsService.getWalletById(request);
var walletsService = new WalletsService(client); var request = new GetWalletByIdRequest("PORTFOLIO_ID_HERE", "WALLET_ID_HERE"); var response = walletsService.GetWalletById(request);
walletsService := users.NewWalletsService(client) request := &users.GetWalletRequest{ PortfolioId: "PORTFOLIO_ID_HERE", Id: "WALLET_ID_HERE", } response, err := walletsService.GetWallet(context.Background(), request)
prime_client = PrimeClient(credentials) request = GetWalletRequest( portfolio_id="PORTFOLIO_ID_HERE", wallet_id="WALLET_ID_HERE", ) response = prime_client.get_wallet(request)
primectl get-wallet --help
const walletsService = new WalletsService(client); walletsService.getWallets({ portfolioId: 'PORTFOLIO_ID_HERE', walletId: 'WALLET_ID_HERE' }).then(async (response) => { console.log('Wallet: ', response); })
Portfolio ID
Wallet ID
A successful response.
Show child attributes
Was this page helpful?