The first thing I tried was to read from a smart contract
Contract Address: 0x418b85403575f9a9CB9e44A8cB3b011BEdfb895c
ABI
[{“inputs”:[{“internalType”:“address”,“name”:"_dao",“type”:“address”},{“internalType”:“uint256”,“name”:"_pricePerGameETH",“type”:“uint256”},{“internalType”:“uint256”,“name”:"_taxRate",“type”:“uint256”},{“internalType”:“uint256”,“name”:"_winnerPercentage",“type”:“uint256”},{“internalType”:“address”,“name”:"_taxWallet",“type”:“address”},{“internalType”:“uint256”,“name”:"_sequenceLength",“type”:“uint256”},{“internalType”:“uint256”,“name”:"_inputLength",“type”:“uint256”}],“stateMutability”:“nonpayable”,“type”:“constructor”},{“anonymous”:false,“inputs”:[{“indexed”:true,“internalType”:“address”,“name”:“player”,“type”:“address”},{“indexed”:false,“internalType”:“uint256”,“name”:“mlmTokensEarned”,“type”:“uint256”}],“name”:“GamePlayed”,“type”:“event”},{“inputs”:[],“name”:“DAY_IN_SECONDS”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“NINETY_DAYS”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“SEVEN_DAYS”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“THIRTY_DAYS”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“areWinningNumbersSet”,“outputs”:[{“internalType”:“bool”,“name”:"",“type”:“bool”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“dao”,“outputs”:[{“internalType”:“address”,“name”:"",“type”:“address”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“depositForGame”,“outputs”:[],“stateMutability”:“payable”,“type”:“function”},{“inputs”:[],“name”:“distributeJackpot”,“outputs”:[],“stateMutability”:“nonpayable”,“type”:“function”},{“inputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“name”:“exactMatchWinners”,“outputs”:[{“internalType”:“address”,“name”:"",“type”:“address”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“exactMatches”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“gameDuration”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“gameStartTime”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“getExactMatches”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“getInputLength”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“getLastWinner”,“outputs”:[{“internalType”:“address”,“name”:"",“type”:“address”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“getPartialMatches”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“getRemainingTime”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“getTotalGamesPlayed”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“getWinningExactMatchMembers”,“outputs”:[{“internalType”:“address[]”,“name”:"",“type”:“address[]”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“getWinningNumbersPast30Days”,“outputs”:[{“internalType”:“uint256[]”,“name”:"",“type”:“uint256[]”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“getWinningNumbersPast7Days”,“outputs”:[{“internalType”:“uint256[]”,“name”:"",“type”:“uint256[]”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“getWinningNumbersPast90Days”,“outputs”:[{“internalType”:“uint256[]”,“name”:"",“type”:“uint256[]”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“getWinningPartialMatchMembers”,“outputs”:[{“internalType”:“address[]”,“name”:"",“type”:“address[]”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“hasWinner”,“outputs”:[{“internalType”:“bool”,“name”:"",“type”:“bool”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“inputLength”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“isJackpotPaidOut”,“outputs”:[{“internalType”:“bool”,“name”:"",“type”:“bool”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“jackpot”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“jackpotPaidOut”,“outputs”:[{“internalType”:“bool”,“name”:"",“type”:“bool”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“lastWinner”,“outputs”:[{“internalType”:“address”,“name”:"",“type”:“address”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“name”:“partialMatchWinners”,“outputs”:[{“internalType”:“address”,“name”:"",“type”:“address”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“partialMatches”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“name”:“pastWinningNumbers”,“outputs”:[{“internalType”:“uint256”,“name”:“timestamp”,“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“name”:“pastWinningTimestamps”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[{“internalType”:“uint256[]”,“name”:"_chosenNumbers",“type”:“uint256[]”}],“name”:“playGameWithDepositedETH”,“outputs”:[],“stateMutability”:“nonpayable”,“type”:“function”},{“inputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“name”:“playerAddresses”,“outputs”:[{“internalType”:“address”,“name”:"",“type”:“address”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[{“internalType”:“address”,“name”:"",“type”:“address”}],“name”:“players”,“outputs”:[{“internalType”:“address”,“name”:“addr”,“type”:“address”},{“internalType”:“uint256”,“name”:“mlmTokens”,“type”:“uint256”},{“internalType”:“uint256”,“name”:“balance”,“type”:“uint256”},{“internalType”:“bool”,“name”:“hasDepositedETH”,“type”:“bool”},{“internalType”:“uint256”,“name”:“gamesPlayed”,“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“pricePerGameETH”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“sequenceLength”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[{“internalType”:“uint256”,“name”:"_price",“type”:“uint256”}],“name”:“setPricePerGameETH”,“outputs”:[],“stateMutability”:“nonpayable”,“type”:“function”},{“inputs”:[{“internalType”:“uint256”,“name”:"_percentage",“type”:“uint256”}],“name”:“setTaxPercentage”,“outputs”:[],“stateMutability”:“nonpayable”,“type”:“function”},{“inputs”:[{“internalType”:“uint256”,“name”:"_percentage",“type”:“uint256”}],“name”:“setWinnerPercentage”,“outputs”:[],“stateMutability”:“nonpayable”,“type”:“function”},{“inputs”:[{“internalType”:“uint256[]”,“name”:"_numbers",“type”:“uint256[]”}],“name”:“setWinningNumbers”,“outputs”:[],“stateMutability”:“nonpayable”,“type”:“function”},{“inputs”:[],“name”:“taxRate”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“taxWallet”,“outputs”:[{“internalType”:“address”,“name”:"",“type”:“address”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“taxesEnabled”,“outputs”:[{“internalType”:“bool”,“name”:"",“type”:“bool”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[{“internalType”:“bool”,“name”:"_enabled",“type”:“bool”}],“name”:“toggleTaxes”,“outputs”:[],“stateMutability”:“nonpayable”,“type”:“function”},{“inputs”:[],“name”:“totalGamesPlayed”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“winnerPercentage”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“name”:“winningNumbers”,“outputs”:[{“internalType”:“uint256”,“name”:"",“type”:“uint256”}],“stateMutability”:“view”,“type”:“function”},{“inputs”:[],“name”:“withdrawAllETH”,“outputs”:[],“stateMutability”:“nonpayable”,“type”:“function”},{“stateMutability”:“payable”,“type”:“receive”}]
Action name: _taxRate
When running I get this error "
"
Can someone provide me a working example for reading and writing to the smart contract please