I'm trying to use web3.py with infura.io to interact with my smartcontract. here is my simple greeter contract code
pragma solidity ^0.5.7;
contract greeter{
string greeting;
function greet(string memory _greeting)public {
greeting=_greeting;
}
function getGreeting() public view returns(string memory) {
return greeting;
}
}
I deployed it on ropsten testnet. with web3.py I can read greeting from chain. I wanted to add new greeting string with greet
function. but somehow I have no idea about signing transaction. could anyone help me in understanding how to sign transacion and adding greeting to the contract using web3.py?