private/create_vault
Changed onRegisters a new vault on-chain from a signed action; the signing wallet becomes the vault's curator and seeds the initial deposit from its funding subaccount. Inputs set the deposit asset, initial deposit amount, initial share price, management/performance fee rates (in basis points), max slippage, redemption cooldown, an optional benchmark asset for the high-water mark, and the max sequencer fee authorized. Requires the vault curator-create permission.
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
Fields common to every signed vault action. They appear alongside each endpoint's action-specific parameters in the same request object.
20-byte Ethereum address as a 0x-prefixed lowercase hex string.
20-byte Ethereum address as a 0x-prefixed lowercase hex string.
Initial deposit in the vault's deposit asset, as a USD decimal string (e.g. "15000").
Initial share price the vault is seeded at, in USD, as a decimal string (e.g. "1" or "100"). Must lie within the protocol's permitted range.
Maximum sequencer fee the signer authorises, in USD, as a decimal string (e.g. "1.5").
0x-prefixed hex of the 65-byte EOA signature.
20-byte Ethereum address as a 0x-prefixed lowercase hex string.
The subaccount the action is signed on; which subaccount applies depends on the specific method — see that method's reference.
Response
Success
Returned by create_vault: identifiers to track the on-chain CreateVault operation.
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