blockchain v0.1.7 API Reference

Modules

Helpers for common operations on the blockchain

Documentation for Blockchain

Represents the state of an account, as defined in Section 4 of the Yellow Paper

This module effective encodes a Block, the heart of the blockchain. A chain is formed when blocks point to previous blocks, either as a parent or an ommer (uncle). For more information, see Section 4.4 of the Yellow Paper

Blocktree provides functions for adding blocks to the overall blocktree and forming a consistent blockchain

Represents the information about a specific chain. This will either be a current chain (such as homestead), or a test chain (such as ropsten). Different chains have different parameters, such as accounts with an initial balance and when EIPs are implemented

Defines functions on create and making message calls to contracts. The core of the module is to implement Λ and Θ, as defined in Eq.(70) and described in detail in sections 7 and 8 of the Yellow Paper

Defines an interface for methods to interact with contracts and accounts

Defines an interface for methods to interact with the block chain

Helper functions related to testing the Blockchain

This module encodes the transaction object, defined in Section 4.3 of the Yellow Paper (http://gavwood.com/Paper.pdf). We are focused on implementing 𝛶, as defined in Eq.(1)

This module specifies functions to create and interact with the transaction receipt, defined in Section 4.4.1 of the Yellow Paper

Defines helper functions for signing and getting the signature of a transaction, as defined in Appendix F of the Yellow Paper

Harness for running tests off of the Ethereum Common Test suite

Helper functions that will be generally available to test cases when they use EthCommonTest

Exceptions