Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #65 from ethereum/ethers-patch-4
Browse files Browse the repository at this point in the history
note that Ether values are in wei
  • Loading branch information
zelig committed Mar 1, 2016
2 parents 97e3c0c + 05941fa commit 029b670
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ Contract Accounts:
- Can send messages.
- Contracts are controlled by their contract code.
- Only send transactions in response to other transactions that they have received. Therefore, all action on the Ethereum block chain is set in motion by transactions fired from externally owned accounts.
- Every time a contract account receives a transaction it's code activates, allowing it to read and write to internal storage and send other transactions/messages or create contracts.
- Every time a contract account receives a transaction its code activates, allowing it to read and write to internal storage and send other transactions/messages or create contracts.

All Ether balances and values are denominated in units of wei: 1 Ether is 1e18 wei.

Note that "contracts" in Ethereum should not be seen as something that should be "fulfilled" or "complied with"; rather, they are more like "autonomous agents" that live inside of the Ethereum execution environment, always executing a specific piece of code when "poked" by a message or transaction, and having direct control over their own ether balance and their own key/value store to keep track of persistent variables.

Expand All @@ -35,7 +37,7 @@ The term "transaction" is used in Ethereum to refer to the signed data package t
Transactions contain:
- The recipient of the message.
- A signature identifying the sender.
- ``VALUE`` field - The amount of ether to transfer from the sender to the recipient.
- ``VALUE`` field - The amount of wei to transfer from the sender to the recipient.
- An optional data field.
- A ``STARTGAS`` value, representing the maximum number of computational steps the transaction execution is allowed to take.
- A ``GASPRICE`` value, representing the fee the sender pays per computational step.
Expand All @@ -47,7 +49,7 @@ Contracts have the ability to send "messages" to other contracts. Messages are v
A message contains:
- The sender of the message (implicit).
- The recipient of the message.
- ``VALUE`` field - The amount of ether to transfer alongside the message to the contract address.
- ``VALUE`` field - The amount of wei to transfer alongside the message to the contract address.
- An optional data field.
- A ``STARTGAS`` value.

Expand Down

0 comments on commit 029b670

Please sign in to comment.