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

const { id: txId } = await ario.createVault({
    qty: 10000000000,
    lockLength: 720
});

Parameters

ParameterTypeDescriptionOptional
qtynumber

The amount of ARIO tokens to lock in the vault (in mARIO)

false
lockLengthnumber

The duration to lock tokens in blocks (minimum 14 days, maximum 4 years)

false
tagsarray

An array of GQL tag objects to attach to the vault creation AO message

true

Was this page helpful?