Wallet
Private

Updates beneficiary information for an address in the address book. This method allows you to add or modify beneficiary details required for compliance purposes when making withdrawals to certain addresses.

Coinbase wallet type

For Coinbase wallet type accounts the method behaves differently:

  • Required parameters are currency (portfolio currencies or "all") and type, plus one of address or id (the entry identifier returned by private/get_address_book). Use network and tag together with address to disambiguate entries sharing the same address.
  • type accepts only withdrawal and transfer.
  • label is optional.
  • 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.
  • The response contains the updated Coinbase address book entry object instead of "ok".

📖 Related Article: Managing Withdrawals

Scope: wallet:read_write

Try in API console

get/private/update_in_address_book

Request

  • Base URL
    https://test.deribit.com/api/v2
  • URL
    https://test.deribit.com/api/v2/private/update_in_address_book
  • Auth
    none declared

Query parameters

currency'BTC' | 'ETH' | 'USDC' | 'USDT' | 'EURR' required

Currency, i.e "BTC", "ETH", "USDC"

The currency symbol. Legacy wallet type: wallet currencies only. Coinbase wallet type: any portfolio currency or "all".

type'transfer' | 'withdrawal' | 'deposit_source' required

Address book type

Address book type. Legacy wallet type: withdrawal, transfer or deposit_source. Coinbase wallet type: withdrawal or transfer only.

addressstring

Address in proper format for currency

Example:1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa

Address in currency format, it must be in address book. Required for legacy wallet type. Coinbase wallet type: required when id is not provided; use network and tag to disambiguate entries sharing the same address. For Coinbase wallet type the same value is also stored as the beneficiary address travel rule field.

networkstring
Example:networks/ethereum-mainnet

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.

tagstring

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.

idstring
Example:0190a1b2-7c3d-7e5f-8a9b-0c1d2e3f4a5b

Unique identifier (UUID7) of the address book entry, as returned in the id field of private/get_address_book results. Coinbase wallet type only. Can be used instead of address (with network and tag) to identify the entry.

labelstring

Label of the address book entry

Example:Main address

Label of the address book entry. Required for legacy wallet type; optional for Coinbase wallet type.

beneficiary_vasp_namestring

Name of beneficiary VASP

Example:Money's Gone

Name of beneficiary VASP. Legacy wallet type only.

beneficiary_vasp_didstring

DID of beneficiary VASP

Example:did:example:123456789abcdefghi

DID of beneficiary VASP. Legacy wallet type only.

beneficiary_vasp_websitestring

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

beneficiary_first_namestring

First name of the beneficiary (if beneficiary is a person)

Example:John

First name of beneficiary (if beneficiary is a person)

beneficiary_last_namestring

Last name of the beneficiary (if beneficiary is a person)

Example:Doe

First name of beneficiary (if beneficiary is a person)

beneficiary_company_namestring

Company name of the beneficiary (if beneficiary is a company)

Example:Company Name

Beneficiary company name (if beneficiary is a company)

beneficiary_addressstring

Geographical address of the beneficiary

Example:NL, Amsterdam, Street, 1

Geographical address of the beneficiary. Legacy wallet type only.

agreedboolean

Indicates that the user agreed to shared provided information with 3rd parties

Example:true

Indicates that the user agreed to shared provided information with 3rd parties. Legacy wallet type only.

personalboolean

The user confirms that he provided address belongs to him and he has access to it via an un-hosted wallet software

Example:true

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.

namestring
Example:Alice Smith

Full name of the beneficiary (person or organization). Coinbase wallet type only — travel rule data.

countrystring
Example:NL

Country code of the beneficiary (ISO 3166-1 alpha-2). Coinbase wallet type only — travel rule data.

financial_institutionstring

Name of the financial institution holding the beneficiary account. Coinbase wallet type only — travel rule data.

accountstring

Account identifier of the beneficiary at the financial institution. Coinbase wallet type only — travel rule data.

account_locationstring

Location of the beneficiary account. Coinbase wallet type only — travel rule data.

entity_type'organization' | 'individual'

Type of the beneficiary entity. Coinbase wallet type only — travel rule data.

wallet_type'exchange' | 'self_hosted'

Type of the beneficiary wallet. Coinbase wallet type only — travel rule data.

is_selfboolean

Indicates that the beneficiary is the account owner. Coinbase wallet type only — travel rule data.

Response

Success response

jsonrpc'2.0' required

The JSON-RPC version (2.0)

idinteger

The id that was sent in the request

Example response

{
  "result": "ok"
}

Changes

    • breaking

      removed the enum value BNB from the query request parameter currency

    • breaking

      removed the enum value ETHW from the query request parameter currency

    • breaking

      removed the enum value PAXG from the query request parameter currency

    • breaking

      removed the enum value SOL from the query request parameter currency

    • breaking

      removed the enum value STETH from the query request parameter currency

    • breaking

      removed the enum value USDE from the query request parameter currency

    • breaking

      removed the enum value USYC from the query request parameter currency

    • breaking

      removed the enum value XRP from the query request parameter currency

    • breaking

      added subschema #1 to the response property oneOf list for the response status

    • breaking

      the response's property type changed from string to no type for status

    • info

      added the new optional query request parameter account

    • info

      added the new optional query request parameter account_location

    • info

      added the new optional query request parameter country

    • info

      added the new optional query request parameter entity_type

    • info

      added the new optional query request parameter financial_institution

    • info

      added the new optional query request parameter id

    • info

      added the new optional query request parameter is_self

    • info

      added the new optional query request parameter name

    • info

      added the new optional query request parameter network

    • info

      added the new optional query request parameter tag

    • info

      added the new optional query request parameter wallet_type

    • info

      the query request parameter address became optional

    • info

      the query request parameter agreed became optional

    • info

      the query request parameter beneficiary_address became optional

    • info

      the query request parameter beneficiary_vasp_did became optional

    • info

      the query request parameter beneficiary_vasp_name became optional

    • info

      the query request parameter label became optional

    • info

      the query request parameter personal became optional