Coinbase Prime API
cURL
curl --request GET \ --url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/address_book
{ "addresses": [ { "id": "<string>", "currency_symbol": "<string>", "name": "<string>", "address": "<string>", "account_identifier": "<string>", "account_identifier_name": "<string>", "state": "<string>", "explorer_link": "<string>", "last_used_at": "2023-11-07T05:31:56Z", "added_at": "2023-11-07T05:31:56Z", "added_by": { "id": "<string>", "name": "<string>", "avatar_url": "<string>" }, "type": "ADDRESS_BOOK_TYPE_UNSPECIFIED", "counterparty_id": "<string>" } ], "pagination": { "next_cursor": "<string>", "sort_direction": "DESC", "has_next": true } }
Gets a list of address book addresses.
AddressBookService addressBookService = PrimeServiceFactory.createAddressBookService(client); GetPortfolioAddressBookRequest request = new GetPortfolioAddressBookRequest.Builder("portfolio_id").build(); GetPortfolioAddressBookResponse response = addressBookService.getAddressBook(request);
DESC
ASC
Show child attributes
Was this page helpful?