from static method

Transaction from(
  1. String serialized
)

Converts from a serialized transaction format to a Transaction class. There are two supported serialized formats:

  • A string returned from Transaction_serialize. The serialized format must be compatible, or it will throw an error.
  • A byte array (or base64-encoded bytes) containing BCS transaction data.

Implementation

static Transaction from(String serialized) {
	final tx = Transaction();
	tx._blockData = TransactionBlockDataBuilder.restore(jsonDecode(serialized));
	return tx;
}