eth / org.apache.tuweni.eth / AccountState

AccountState

class AccountState (source)

State of an account as stored on chain.

Constructors

<init>

Default constructor for account state without a version.

AccountState(nonce: UInt256!, balance: Wei!, storageRoot: Hash!, codeHash: Hash!)

Default constructor for account state.

AccountState(nonce: UInt256!, balance: Wei!, storageRoot: Hash!, codeHash: Hash!, version: Int)

Functions

equals

fun equals(other: Any?): Boolean

fromBytes

Reads an account state from a RLP representation.

static fun fromBytes(bytes: Bytes!): AccountState!

hashCode

fun hashCode(): Int

toBytes

fun toBytes(): Bytes!