solana-nft-staking icon indicating copy to clipboard operation
solana-nft-staking copied to clipboard

I have problem while calling stake_nft

Open abdulmanan7 opened this issue 2 years ago • 0 comments

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

abdulmanan7 avatar Dec 10 '22 17:12 abdulmanan7