Api vault invest request
Request payload for investing in a vault.
This API allows a client to invest a specified amount of tokens in a particular vault.
NameLite |
Type | RequiredDefault |
Description |
|---|---|---|---|
vault_idvi |
string | True | The unique identifier of the vault to invest in. |
currencyc |
string | True | The currency used for the investment. This should be the vault's quote currency. |
num_tokensnt |
string | True | The investment sum, in terms of the token currency specified (i.e., numTokens of '1000' with tokenCurrency of 'USDT' denotes investment of 1,000 USDT). |
signatures |
Signature | True | The digital signature from the investing account. This signature must be generated by the main account ID and is used to verify the authenticity of the request. The signature must comply with AccountPermExternalTransfer permission. |
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. |