I would like to use web3.py instead of using the etherscan write contract function available in ethercan.io,
Is this possible? if yes can someone please show me a sample. The contract address of the sample above: https://etherscan.io/token/0x2b591e99afe9f32eaa6214f7b7629768c40eeb39#writeContract
Best Answer
"Writing to contracts" is a somewhat confusing term from Etherscan.
It is doing a transaction to a smart contract address and function.
If look Web3.py examples the example that calls the function
setVar()
is writing to the contract.