web3j 部署合约
环境:mac os & android studio
官网:here
以太坊 web3j for java 配置和使用<1>: here
以太坊 web3j for java 使用 - 为用户创建凭证credentials <2>:here
零、书写合约
本文还是使用MetaCoin.sol
pragma solidity ^0.4.2;
contract MetaCoin {
mapping (address => uint) balances;
event Transfer(address indexed _from, address indexed _to, uint256 _value);
function MetaCoin() {
balances[tx.or