This page uses machine translation from English, which may contain errors or unclear language. For the most accurate information, please see the original English version. Some content may be in the original English due to frequent updates. Help us improve this page's translation by joining our effort on Crowdin. (Crowdin translation page, Contributing guide)
Read
You can call functions in Smart Contract via "Call" RPC API. What you can call here is limited to view functions that is not changing any states in the Contract.
Import extend from web3py_ext to extend web3 to kaia web3
Create a Web3 instance with the specified kairos testnet URL
Also, you can change the provider URL from kairos to quicknode.
Create a contract instance with contract address and abi
Set the contract address that you deployed in the deploy tutorial (Counter contract). You can see the address in your deploy tx receipt
Set the contract abi. You can get the ABI after compiled in remix or solc compiler
Call the view function. It is just a RPC call to the blockchain node, not transaction