eth / org.apache.tuweni.eth / Transaction / fromBytes

fromBytes

static fun fromBytes(encoded: Bytes): Transaction (source)

Deserialize a transaction from RLP encoded bytes.

Parameters

encoded - The RLP encoded transaction.

Exceptions

RLPException - If there is an error decoding the transaction.

Return
The de-serialized transaction.

static fun fromBytes(encoded: Bytes, lenient: Boolean): Transaction (source)

Deserialize a transaction from RLP encoded bytes.

Parameters

encoded - The RLP encoded transaction.

lenient - If true, the RLP decoding will be lenient toward any non-minimal encoding.

Exceptions

RLPException - If there is an error decoding the transaction.

Return
The de-serialized transaction.