solana-nft-staking
solana-nft-staking copied to clipboard
I have problem while calling stake_nft
This a very excellent example I have changed it a bit to work with the latest version however I want to know about the current stake accounts used.
await program.rpc.stakeNft({
accounts: {
store: stakeStore.publicKey,
list: stakeList.publicKey,
depositor: provider.wallet.publicKey,
stakeNft: stakeAccountNFT2,
mint: mintNFT2.publicKey,
clock: web3.SYSVAR_CLOCK_PUBKEY,
systemProgram: web3.SystemProgram.programId,
tokenProgram: TOKEN_PROGRAM_ID,
},
signers: [],
});
Can you explain stakeAccountNFT2 here, is this nft holder account, or will this be someone else account? Thanks in Advance