I'm interacting with my local private blockchain created using geth. I'm able to use eth_call, but now I have some problems with eth_sendTransaction.

The signature of the function is this:

function addContract(bytes32,address)

So in python I do:

addContract = sha3hex8('addContract(bytes32,address)')

sha3hex8 is a function I've created that I'm sure works correctly because I use it for all the eth_call I've done. Then I need to add the two parameters.

How can I attach the two parameters with the right encoding? Should I simply concatenate at the end the address parameter without the starting 0x?



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.