Create a new instance of NectarStaking based on the provided address.
The address of the staking pool.
Protected
_honeycombReadonly
poolReadonly
programGet the address of the staking pool.
The address of the staking pool.
Get the allowed mints for the staking pool.
Get the collections associated with the staking pool.
Get the cooldown duration for the staking pool.
Get the creators associated with the staking pool.
Get the end time of the staking pool.
Get the maximum rewards duration for the staking pool.
Get the minimum stake duration for the staking pool.
Get the name of the staking pool.
Get the reset stake duration for the staking pool.
Get the rewards duration for the staking pool.
Get the rewards per duration for the staking pool.
Get the start time of the staking pool.
Get the total staked amount in the staking pool.
Add a new multiplier to the staking pool.
The arguments for adding the multiplier.
Optional
confirmOptions: ConfirmOptionsOptional transaction confirmation options.
A promise that resolves when the transaction is confirmed.
Fetch the available NFTs for staking in the staking pool.
Optional
reFetch: booleanIf true, re-fetch the data from the blockchain.
A Promise that resolves with the available NFTs data.
Claim rewards for staked NFTs.
The staked NFTs to claim rewards for.
Optional
confirmOptions: ConfirmOptionsOptional transaction confirmation options.
A promise that resolves with an array of responses for the transactions.
Get the NectarStakingFetch instance to fetch data related to staking pools and NFTs.
The NectarStakingFetch instance.
Initialize an NFT for the staking pool.
The address of the NFT mint.
Optional
confirmOptions: ConfirmOptionsOptional transaction confirmation options.
A promise that resolves when the transaction is confirmed.
Get the staking pool details.
The staking pool details.
Reload the data associated with the staking pool, including multipliers, stakers, available NFTs, and staked NFTs.
A Promise that resolves when all data is reloaded.
Stake NFTs in the staking pool.
The NFTs to stake.
Optional
confirmOptions: ConfirmOptionsOptional transaction confirmation options.
A promise that resolves with an array of responses for the transactions.
Get the staker associated with the staking pool.
Optional
args: { Optional object containing either wallet address or staker address.
Optional
reFetch: booleanIf true, re-fetch the data from the blockchain.
A Promise that resolves with the Staker instance.
Unstake NFTs from the staking pool.
The staked NFTs to unstake.
Optional
confirmOptions: ConfirmOptionsOptional transaction confirmation options.
A promise that resolves with an array of responses for the transactions.
Update the staking pool with new parameters.
The arguments for updating the staking pool.
Optional
confirmOptions: ConfirmOptionsOptional transaction confirmation options.
A Promise that resolves with the context of the transaction.
Withdraw rewards from the staking pool.
The amount of rewards to withdraw.
Optional
receiverWallet: PublicKeyOptional receiver wallet address, defaults to the identity wallet address.
Optional
confirmOptions: ConfirmOptionsOptional transaction confirmation options.
A promise that resolves when the transaction is confirmed.
Static
fromCreate a new instance of NectarStaking based on the provided address.
The Solana connection object.
The address of the staking pool.
Optional
commitmentOrConfig: Commitment | GetAccountInfoConfigOptional parameter for the commitment or account info config.
A new NectarStaking instance.
Static
newCreate a new NectarStaking instance with the provided arguments.
The Honeycomb instance.
The arguments for creating a new staking pool.
Optional
confirmOptions: ConfirmOptionsOptional transaction confirmation options.
A new NectarStaking instance representing the created staking pool.
Generated using TypeDoc
Represents the Nectar Staking module in the Honeycomb Protocol. Allows users to interact with staking pools, claim rewards, and manage staked NFTs.