tuweni / 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!

getBalance

fun getBalance(): Wei!

getCodeHash

fun getCodeHash(): Hash!

getNonce

fun getNonce(): UInt256!

getStorageRoot

fun getStorageRoot(): Hash!

getVersion

fun getVersion(): Int

hashCode

fun hashCode(): Int

toBytes

fun toBytes(): Bytes!