Api vault redeem v2 request

ApiVaultRedeemV2Request

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.

Name
Lite
Type Required
Default
Description
vault_id
vi
string True The unique identifier of the vault to redeem from.
from_currency
fc
string True The currency the vault pays. This must be the vault's investment currency.
to_currency
tc
string True The currency paid into the funding account: the investment currency, or another currency converted at exchangeRate.
num_tokens
nt
string True The number of shares to redeem.
exchange_rate
er
string True The signed rate, toCurrency per unit of fromCurrency, up to 9 decimal places. Exactly 1 when both currencies are the same.
signature
s
Signature True The VaultRedeemV3 signature of the redeeming account.
The signer needs the vault investor permission on the main account.
Signature
Name
Lite
Type Required
Default
Description
signer
s
string True The address (public key) of the wallet signing the payload
r
r
string True Signature R
s
s1
string True Signature S
v
v
integer True Signature V
expiration
e
string True Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days
nonce
n
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_id
ci
string True Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.