tuweni / org.apache.tuweni.eth.genesis / GenesisFile

GenesisFile

open class GenesisFile (source)

Utility to read genesis config files and translate them to a block.

Constructors

<init>

GenesisFile(nonce: String!, difficulty: String!, mixhash: String!, coinbase: String!, timestamp: String!, extraData: String!, gasLimit: String!, parentHash: String!, allocs: MutableMap<String!, String!>!, chainId: Int, forks: MutableList<Long!>!)

Functions

getAllocations

open fun getAllocations(): MutableMap<Address!, Wei!>!

getChainId

open fun getChainId(): Int

getForks

open fun getForks(): MutableList<Long!>!

read

open static fun read(contents: ByteArray!): GenesisFile!

toBlock

open fun toBlock(): Block!