createVault
createVault
is a method on the ARIO
class that creates a new vault to lock ARIO tokens for a specified duration. Vaulted tokens earn rewards but cannot be transferred until the lock period expires.
createVault
requires authentication.
Examples
createVault
Parameters
Parameter | Type | Description | Optional |
---|---|---|---|
qty | number | The amount of ARIO tokens to lock in the vault (in mARIO) | false |
lockLength | number | The duration to lock tokens in blocks (minimum 14 days, maximum 4 years) | false |
tags | array | An array of GQL tag objects to attach to the vault creation AO message | true |