Sets whether withdrawals to the given address book address require a security key. Returns the updated address book entry.
Coinbase wallet type
For Coinbase wallet type accounts the entry is identified by one of address or id (the entry identifier returned by private/get_address_book) instead of address alone. Use network and tag together with address to disambiguate entries sharing the same address. The mainaccount scope is not required for Coinbase wallet type accounts.
📖 Related Article: Managing Withdrawals
Scope: wallet:read_write and mainaccount
Request
- Base URLhttps://test.deribit.com/api/v2
- URLhttps://test.deribit.com/api/v2/private/set_address_requires_security_key
- Authnone declared
Query parameters
Currency, i.e "BTC", "ETH", "USDC"
The currency symbol. Legacy wallet type: wallet currencies only. Coinbase wallet type: any portfolio currency or "all".
Address book type
Address book type. Legacy wallet type: only withdrawal is supported. Coinbase wallet type: withdrawal or transfer.
Address in proper format for currency
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.
Blockchain network resource name (e.g. networks/ethereum-mainnet), for Coinbase wallet types. Available networks are returned by public/get_currencies in coinbase_networks. Requiredness depends on the operation. When resolving an existing address-book entry, it is optional if the entry resolves uniquely; it disambiguates an address present 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.
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.
If true, withdrawals to the address require a security key
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": 1720252232860,
"requires_confirmation": true,
"requires_confirmation_change": true
}
}Changes
- breaking
the response property
/////became nullable for the status - breaking
the response property
/////became nullable for the status - breaking
the
/////response's property type changed frombooleantointegerfor status - breaking
the
/////response's property type changed frombooleantointegerfor status
- breaking
- info
endpoint added
- info