If you are running GNU/Linux or macOS you can take advantage of our all in one installer.
$ curl https://dapp.tools/install | sh
$ seth --version
seth 0.7.0
$ dapp testnet
$ touch pass
$ export SETH_CHAIN=kovan
$ seth balance $ETH_FROM
$ export COL1=0x911eb92e02477a4e0698790f4d858e09dc39468a
seth call $COL1 'decimals()'
0x0000000000000000000000000000000000000000000000000000000000000012
$ seth --to-dec $(seth call $COL1 'decimals()')
18
$ export FAUCET=0xe8121d250973229e7988ffa1e9330b420666113a
$ seth send $FAUCET ‘gulp(address)’ $COL1
$ seth --to-dec $(seth call $COL1 'balanceOf(address)' $ETH_FROM)
500000000000000000000
$ seth --from-wei $(seth --to-dec $(seth call $COL1 'balanceOf(address)' $ETH_FROM)) eth
50.000000000000000000
$ seth block --help
:$ seth block latest gasLimit
8000000
seth estimate
can give an estimation for the gas usage of a transaction. The syntax is pretty much the same as for seth send
, but seth estimate
will not actually send the transaction.transfer(address _to, uint256 _value) public returns (bool success)
$ seth estimate $COL1 'transfer(address, uint)'
0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359
$(seth --to-uint256 $(seth --to-wei 0.1 ether))
37240
$ seth send $COL1 'transfer(address, uint)'
0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359
$(seth --to-uint256 $(seth --to-wei 0.1 ether))
$ seth receipt 0x58ba3980775741aecaf8435646a003bff3395d7d4e00c8f7a32ad1fa0ce64e01
$ seth tx 0x58ba3980775741aecaf8435646a003bff3395d7d4e00c8f7a32ad1fa0ce64e01
$ seth receipt 0x58ba3980775741aecaf8435646a003bff3395d7d4e00c8f7a32ad1fa0ce64e01 gasUsed
37240