Services Plugins FAQs

I am having issues reading and writing to Smart Contracts

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 "
image
"
Can someone provide me a working example for reading and writing to the smart contract please

Hello @jleach ,
Thank you for reaching out. :slightly_smiling_face:

We are currently looking into your question and will respond to you as soon as possible.

We appreciate your patience and cooperation.
Stay safe.:sun_with_face:

Hello @jleach,
I hope this message reaches you in good spirits.

I’m excited to share that we have effectively resolved the errors on our Live Page and redeployed a different version, and now the Smart Contract read feature works properly.

Could you please test again and confirm whether everything is now operating smoothly?

The more feedback we get, the more motivated we are to make things better in Bubble.

Thanks again for your patience and cooperation.
Take care!

Hello @jleach ,
I hope you are doing well. :slightly_smiling_face:

Is the plugin functioning properly within your application, or are there still some problems?

If the plugin is now functioning well and you don’t have any other issues, we would be grateful if you could take a moment and become the first to share your experience on Clutch with Zeroqode.

Alternatively, you can leave a review by going to the Plugins tab in the Bubble editor and giving it as many stars as it deserves.

Your feedback would make our day at the Support team and motivate us to continue developing outstanding products and maintaining excellent customer service. :blush:

Let me know if you have any other plugin-related questions we could help with.
Have a nice day! :sunny: