fromKind static method

Transaction fromKind(
  1. dynamic serialized
)

Converts from a serialize transaction kind (built with build({ onlyTransactionKind: true })) to a Transaction class. Supports either a byte array, or base64-encoded bytes.

Implementation

static Transaction fromKind(dynamic serialized) {
	final tx = Transaction();

	tx._blockData = TransactionBlockDataBuilder.fromKindBytes(
		serialized is String ? fromB64(serialized) : serialized,
	);

	return tx;
}