Adds a new address to the address book. The address book allows you to store addresses for withdrawals, along with beneficiary information for compliance purposes.
Coinbase wallet type
For Coinbase wallet type accounts the method supports network selection and CTN (Coinbase Travel Network) counterparties, and behaves differently:
- Required parameters are type and label, plus one of:
- address together with currency and network (optional tag) — an on-chain address on the selected network, or
- counterparty_id — a CTN counterparty; currency is then omitted and the entry applies to all currencies.
- type accepts only withdrawal and transfer.
- Travel rule data is provided with the fields name, country, address, financial_institution, account, account_location, entity_type (organization or individual), wallet_type (exchange or self_hosted) and is_self instead of the legacy beneficiary_*, agreed and personal fields.
- extra_currencies is not supported.
- The response contains a Coinbase address book entry object, including the entry id which can be used instead of address in the other address book methods.
📖 Related Article: Managing Withdrawals
Scope: wallet:read_write
Request
- Base URLhttps://test.deribit.com/api/v2
- URLhttps://test.deribit.com/api/v2/private/add_to_address_book
- Authnone declared
Query parameters
Currency, i.e "BTC", "ETH", "USDC"
The currency symbol. Required for legacy wallet type (wallet currencies only). Coinbase wallet type: required when address is used (any portfolio currency); omitted when adding a CTN counterparty via counterparty_id — such entries apply to all currencies ("all").
Address book type
Address book type. Legacy wallet type: withdrawal, transfer or deposit_source. Coinbase wallet type: withdrawal or transfer only.
Address in proper format for currency
Address in currency format. Required for legacy wallet type. Coinbase wallet type: required when counterparty_id is not provided, and must then be used together with currency and network (and tag for networks that require one). For Coinbase wallet type the same value is also stored as the beneficiary address travel rule field.
Blockchain network for the wallet operation, given as a network resource name (e.g. "networks/ethereum-mainnet"). Coinbase wallet type only. The networks available for each currency are returned by public/get_currencies in the coinbase_networks field. Required for operations that target an on-chain address or a deposit address; also used to disambiguate address book entries when the same address exists on multiple networks.
Destination tag / memo for networks that support one. Coinbase wallet type only. Used together with address and network; also serves to disambiguate address book entries that share the same address.
Identifier of a Coinbase Travel Network (CTN) counterparty. Coinbase wallet type only. Used instead of address and network; entries created with counterparty_id apply to all currencies, so currency is omitted.
Label of the address book entry
Name of beneficiary VASP
Name of beneficiary VASP. Legacy wallet type only.
DID of beneficiary VASP
DID of beneficiary VASP. Legacy wallet type only.
Website of the beneficiary VASP
Website of the beneficiary VASP. Required if the address book entry is associated with a VASP that is not included in the list of known VASPs
First name of the beneficiary (if beneficiary is a person)
First name of beneficiary (if beneficiary is a person)
Last name of the beneficiary (if beneficiary is a person)
First name of beneficiary (if beneficiary is a person)
Company name of the beneficiary (if beneficiary is a company)
Beneficiary company name (if beneficiary is a company)
Geographical address of the beneficiary
Geographical address of the beneficiary. Legacy wallet type only.
Indicates that the user agreed to shared provided information with 3rd parties
Indicates that the user agreed to shared provided information with 3rd parties. Legacy wallet type only.
The user confirms that he provided address belongs to him and he has access to it via an un-hosted wallet software
The user confirms that he provided address belongs to him and he has access to it via an un-hosted wallet software. Legacy wallet type only.
The user can pass a list of currencies to add the address for. It is currently available ONLY for ERC20 currencies. Without passing this paramater for an ERC20 currency, the address will be added to ALL of the ERC20 currencies.
[ "USDC" ]
Full name of the beneficiary (person or organization). Coinbase wallet type only — travel rule data.
Country code of the beneficiary (ISO 3166-1 alpha-2). Coinbase wallet type only — travel rule data.
Name of the financial institution holding the beneficiary account. Coinbase wallet type only — travel rule data.
Account identifier of the beneficiary at the financial institution. Coinbase wallet type only — travel rule data.
Location of the beneficiary account. Coinbase wallet type only — travel rule data.
Type of the beneficiary entity. Coinbase wallet type only — travel rule data.
Type of the beneficiary wallet. Coinbase wallet type only — travel rule data.
Indicates that the beneficiary is the account owner. Coinbase wallet type only — travel rule data.
Response
Success response
Example response
{
"result": {
"address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
"creation_timestamp": 1536569522277,
"label": "Main address",
"beneficiary_vasp_name": "Money's Gone",
"beneficiary_vasp_did": "did:example:123456789abcdefghi",
"beneficiary_first_name": "John",
"beneficiary_last_name": "Doe",
"beneficiary_company_name": "Company Name",
"beneficiary_address": "NL, Amsterdam, Street, 1",
"agreed": true,
"personal": true,
"info_required": true,
"waiting_timestamp": true,
"requires_confirmation": true,
"requires_confirmation_change": true
}
}Changes
- breaking
removed the enum value
BNBfrom thequeryrequest parametercurrency - breaking
removed the enum value
ETHWfrom thequeryrequest parametercurrency - breaking
removed the enum value
PAXGfrom thequeryrequest parametercurrency - breaking
removed the enum value
SOLfrom thequeryrequest parametercurrency - breaking
removed the enum value
STETHfrom thequeryrequest parametercurrency - breaking
removed the enum value
USDEfrom thequeryrequest parametercurrency - breaking
removed the enum value
USYCfrom thequeryrequest parametercurrency - breaking
removed the enum value
XRPfrom thequeryrequest parametercurrency - breaking
added to the
response propertyoneOflist for the response status - breaking
the
response's property type changed fromobjectto no type for status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
added the new optional
queryrequest parameteraccount - info
added the new optional
queryrequest parameteraccount_location - info
added the new optional
queryrequest parametercounterparty_id - info
added the new optional
queryrequest parametercountry - info
added the new optional
queryrequest parameterentity_type - info
added the new optional
queryrequest parameterfinancial_institution - info
added the new optional
queryrequest parameteris_self - info
added the new optional
queryrequest parametername - info
added the new optional
queryrequest parameternetwork - info
added the new optional
queryrequest parametertag - info
added the new optional
queryrequest parameterwallet_type - info
the
queryrequest parameteraddressbecame optional - info
the
queryrequest parameteragreedbecame optional - info
the
queryrequest parameterbeneficiary_addressbecame optional - info
the
queryrequest parameterbeneficiary_vasp_didbecame optional - info
the
queryrequest parameterbeneficiary_vasp_namebecame optional - info
the
queryrequest parametercurrencybecame optional - info
the
queryrequest parameterpersonalbecame optional
- breaking