the runtime environment that is used to run smart contract code written with Turing complete language called Solidity Each operation executed by EVM is evaluated in terms of complexity. Depending from the overall complexity of the code executed in a smart contract, users are paying for contracts execution in Ether - Ethereum platform cryptocurrency.
ETHEREUM TRANSACTION Gas limit - evaluation of a computational complexity of a transaction, usually provided by the node user connected to Gas price - amount of Ether user is willing to pay per a unit of computational power spent. Median value is provided by the connected node Gas to Ether rate is dynamic and can be seen . here
When user submits a transaction, certain amount of Ether is getting locked Ether locked = Gas limit * Gas price If gas price is set too low, the nodes may never start processing, or will start processing a er a long while When processing starts, nodes start spending Gas on the transaction execution
If Gas limit is exceeded, the execution halts and nodes are collecting the reward, while reverting the transaction If Gas limit is higher or equal to Gas spent, the transaction completes. If there is an unspent Gas, the corresponding Ether amount is returned to the user
nodes must validate all the transactions in the network Inability to validate transactions in parallel drastically limits Tx/sec Current theoretical Ethereum throughput is 25 Tx/sec. It is 7 Tx/sec for Bitcoin For comparison, theoretical throughput for Visa is 56K Tx/sec, with current average of 1,700
digital content Secure funds transfer: must be done only a er the buyer confirmation Only buyers must have access to a purchased content Funds are transferred in a store-specific cryptocurrency
on top of Ethereum platform Can represent digital or real world assets The properties and functions of each token are subject to its intended use. Ethereum token is represented by a corresponding token contract
is used as a means of payment in a digital store Token is released through a token sale event(ICO) which is managed by a dedicated contract Token is purchased by transferring Ether to a token sale contract address Token has a fixed supply and a fixed exchange rate