Skip to content

Instantly share code, notes, and snippets.

View kingaj12's full-sized avatar

Alan King kingaj12

  • IBM Research
  • Yorktown Heights, New York
View GitHub Profile
@salanfe
salanfe / AdditionContract.sol
Last active July 9, 2022 22:07
Ethereum: python for sending raw JSON-RPC HTTP requests to deploy and interact with a smart contract
pragma solidity ^0.4.18;
contract AdditionContract {
uint public state = 0;
function add(uint value1, uint value2) public {
state = value1 + value2;
}
function getState() public constant returns (uint) {