Subaccounts
private/get_subaccounts
Changed onReturns the wallet address and the sorted list of subaccount IDs owned by that wallet. Yields an empty list if the wallet has no subaccounts.
post/private/get_subaccounts
Request
- Base URLhttps://api.derive.xyz/v3
- AuthAPI key in header X-DeriveWallet and API key in header X-DeriveTimestamp and API key in header X-DeriveSignature
Request body
Get Subaccounts Request required
wallet, string required
20-byte Ethereum address as a 0x-prefixed lowercase hex string.
Response
Success
Private Get Subaccounts Response required
subaccount_ids, integer[] required
wallet, string required
Changes
- info
the endpoint scheme security
DeriveWallet AND DeriveTimestamp AND DeriveSignaturewas added to the API - info
added the media type
application/jsonfor the response with the status
- info