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

fromBytes

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

Deserialize a transaction from RLP encoded bytes.

Parameters

encoded - Bytes!: The RLP encoded transaction.

Exceptions

RLPException - If there is an error decoding the transaction.

Return
Transaction!: The de-serialized transaction.

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

Deserialize a transaction from RLP encoded bytes.

Parameters

encoded - Bytes!: The RLP encoded transaction.

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

Exceptions

RLPException - If there is an error decoding the transaction.

Return
Transaction!: The de-serialized transaction.