Coinbase Prime API
cURL
curl --request POST \ --url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/address_book \ --header 'Content-Type: application/json' \ --data '{ "address": "<string>", "currency_symbol": "<string>", "name": "<string>", "account_identifier": "<string>" }'
{ "activity_type": "ACTIVITY_TYPE_UNKNOWN", "num_approvals_remaining": 123, "activity_id": "<string>" }
Creates an entry for a portfolio’s trusted addresses.
AddressBookService addressBookService = PrimeServiceFactory.createAddressBookService(client); CreateAddressBookEntryRequest request = new CreateAddressBookEntryRequest.Builder("portfolio_id") .accountIdentifier("account_identifier") .address("address") .currencySymbol("currency_symbol") .name("name") .build(); CreateAddressBookEntryResponse response = addressBookService.createAddressBookEntry(request);
Portfolio ID
A successful response.
The response is of type object.
object
Was this page helpful?