When a transaction is submitted to the block chain it is broadcasted to the memory pool and is waiting for…
Deposit 14 ETH game in a Solidity smart contract
The contract below is a gambling game where the 14th person to send ETH to the contract wins all ETH…
Build an Ethereum node using GETH in Docker
Build an Ethereum node using GETH. GETH is the Golang implementation of the Ethereum protocol. Building an Ethereum node using…
Uint = 2^256-1 is the largest uint
Keep in mind: Any number larger the Uint = 2^256-1 will cause an overflow. We need to prevent our contracts…
Bits Bytes and Hex
More then you ever wanted to know about bits bytes and Hex. Bytes32 = uint256 1 bit = can represent…
Trustless token swap in a Solidity smart contract
The contract below demonstrate a swap of two tokens between two parties at the same time (atomic). Alice owns token…
Shared wallet Solidity smart contract
Build a shared wallet Solidity smart contract. The owner of this contract can add and remove other owners and temporarily…
CHI Gas Token
To encourage developers to remove unnecessary data on the blockchain the Ethereum network provides a refund for each burned element…