An instance of the Premia SDK.
Readonly
premiaCasts votes.
An array of Vote instances representing the votes to be cast.
Encodes a transaction to cast votes.
An array of Vote instances representing the votes to be cast.
Encodes a transaction to harvest and stake.
The options for the operation.
The allowance target address.
The minimum amount out.
The callee address.
The data for the operation.
The refund address.
The stake period.
Encodes a transaction to bridge vxPREMIA tokens to the destination chain.
The address from which the tokens will be sent.
The id of the destination chain.
The address to which the tokens will be sent.
The amount of tokens to be sent.
The address to which the tokens will be refunded in case of failure.
The address to which the ZRO payment will be sent.
The adapter params.
Encodes a transaction to stake.
The amount to be staked.
The staking period.
Estimates the fee for bridging vxPREMIA to the destination chain.
The id of the destination chain.
The address to which the tokens will be sent.
The amount of tokens to be sent.
Whether to use ZRO or not.
The adapter params.
Retrieves all the last vault votes.
The field to order the results by.
The order direction ('asc' or 'desc').
Optional
first: number = 100The maximum number of records to retrieve.
Optional
skip: number = 0The number of records to skip.
A promise that resolves to an array of vault votes.
Retrieves the last user stake from a given timestamp.
The timestamp for retrieving the stake.
The user's address.
A promise that resolves to an array of user stakes.
Retrieves the amount of rewards that are pending for a specific user.
The address of the user.
Retrieves the information of a pending withdrawal of a user.
The address of the user.
Retrieves stake histories for a given start time.
The start time for retrieving stake histories.
Optional
first: number = 100The maximum number of records to retrieve.
Optional
skip: number = 0The number of records to skip.
A promise that resolves to an array of stake histories.
Retrieves stake history for a given id.
The id of the stake.
A promise that resolves to the stake history.
Retrieves user stakes for a given start time.
The start time for retrieving stakes.
The user's address.
Optional
first: number = 100The maximum number of records to retrieve.
Optional
skip: number = 0The number of records to skip.
A promise that resolves to an array of user stakes.
Retrieves vault votes for a given user and timestamp range.
The user's address.
The start timestamp for the range.
The end timestamp for the range.
Optional
first: number = 100The maximum number of records to retrieve.
Optional
skip: number = 0The number of records to skip.
A promise that resolves to an array of vault votes.
Retrieves vault votes for a given user.
The user's address.
Optional
first: number = 100The maximum number of records to retrieve.
Optional
skip: number = 0The number of records to skip.
A promise that resolves to an array of vault votes.
Retrieves vote history for a given id.
The id of the vote.
A promise that resolves to the vote history.
Harvests and stakes.
The options for the operation.
The allowance target address.
The minimum amount out.
The callee address.
The data for the operation.
The refund address.
The stake period.
Bridges vxPREMIA tokens to the destination chain.
The address from which the tokens will be sent.
The id of the destination chain.
The address to which the tokens will be sent.
The amount of tokens to be sent.
The address to which the tokens will be refunded in case of failure.
The address to which the ZRO payment will be sent.
The adapter params.
Stakes an amount for a certain period.
The amount to be staked.
The staking period.
Generated using TypeDoc
Construct a new BaseAPI object.