Api vault redeem v2 request
Request payload for redeeming from a vault, paid in the vault's investment currency or converted into another currency.
The investor signs VaultRedeemV3 over both currencies, the number of shares and the exchange rate. The request keeps the signed rate and is paid at it, at the share price of the payout.
NameLite |
Type | RequiredDefault |
Description |
|---|---|---|---|
vault_idvi |
string | True | The unique identifier of the vault to redeem from. |
from_currencyfc |
string | True | The currency the vault pays. This must be the vault's investment currency. |
to_currencytc |
string | True | The currency paid into the funding account: the investment currency, or another currency converted at exchangeRate. |
num_tokensnt |
string | True | The number of shares to redeem. |
exchange_rateer |
string | True | The signed rate, toCurrency per unit of fromCurrency, up to 9 decimal places. Exactly 1 when both currencies are the same. |
signatures |
Signature | True | The VaultRedeemV3 signature of the redeeming account.The signer needs the vault investor permission on the main account. |
Signature
NameLite |
Type | RequiredDefault |
Description |
|---|---|---|---|
signers |
string | True | The address (public key) of the wallet signing the payload |
rr |
string | True | Signature R |
ss1 |
string | True | Signature S |
vv |
integer | True | Signature V |
expiratione |
string | True | Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days |
noncen |
integer | True | Users can randomly generate this value, used as a signature deconflicting key. ie. You can send the same exact instruction twice with different nonces. When the same nonce is used, the same payload will generate the same signature. Our system will consider the payload a duplicate, and ignore it. Range: 0 to 4,294,967,295 (uint32) |
chain_idci |
string | True | Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID. |