Complete the code to read the contract's stored value.
const value = await contract.[1]();The function getValue is the correct contract method to read the stored value.
Complete the code to connect to the contract using ethers.js.
const contract = new ethers.Contract(contractAddress, abi, [1]);To read contract state, a provider is used to connect without signing transactions.
Fix the error in the code to properly await the contract call.
const balance = await contract.[1]();The await keyword should be used outside the function call, not inside the method name.
Fill both blanks to create a dictionary of token balances greater than zero.
const balances = { [1]: [2] for (const token of tokens) if (await contract.balanceOf(token) > 0) };Use token as the key and the awaited balance as the value in the dictionary comprehension.
Fill all three blanks to filter and map contract events for transfers above 100 tokens.
const largeTransfers = events.filter(e => e.args.[1] > [2]).map(e => e.args.[3]);
Filter events where value is greater than 100, then map to the to address.