How can I find full information about staking (pool info, pool id, reward amount, etc.) knowing the contract staking address, block start/end? I want to call deposit function for some not my NFT Staking in my web3app.
I use Moralis for interact with smart contract.
I know ABI, contract adreess and nft IDs.
How can i find _pid (pool id)
const ABI = [
{
inputs: [
{
internalType: "uint256",
name: "_pid",
type: "uint256",
},
{
internalType: "uint256[]",
name: "tokenIds",
type: "uint256[]",
},
],
name: "depositBEP721",
outputs: [],
stateMutability: "nonpayable",
type: "function",
}
]
async function staking() {
let nfts = [632113,632114];
let options = {
contractAdress: stakingContract,
functionName: 'depositBEP721',
abi: ABI,
params: {tokenIds: nfts, _pid: 'i dont know pool id'}
}
await Moralis.executeFunction(options);
}