Core Functions
createVestingEscrowV2
Creates a vesting escrow. This function is a v2 function ofcreateVestingEscrow
.
Function
- The
payer
andfeeVault
is required to sign the transaction. UserShare
is an array of objects withaddress
andshare
.- Minimum: At least 2 users must be included
- Maximum: No more than 5 users can be included
claimV2
Claims the maximum amount from the vesting escrow. Function- The
payer
andrecipient
is required to sign the transaction.
createVestingEscrowMetadata
Creates a vesting escrow metadata. Function- The
payer
andcreator
is required to sign the transaction.
State Functions
getRootEscrow
Gets the root escrow. Function- Returns a
RootEscrow
object.
getEscrow
Gets the vesting escrow.- Returns a
Escrow
object.
Helper Functions
deriveEscrow
Derives the escrow address. Function- Returns an
Escrow
PDA.
deriveEscrowMetadata
Derives the escrow metadata address. Function- Returns an
EscrowMetadata
PDA.