serialize method
Serialize the transaction to a string so that it can be sent to a separate context.
This is different from build
in that it does not serialize to BCS bytes, and instead
uses a separate format that is unique to the transaction builder. This allows
us to serialize partially-complete transactions, that can then be completed and
built in a separate context.
For example, a dapp can construct a transaction, but not provide gas objects or a gas budget. The transaction then can be sent to the wallet, where this information is automatically filled in (e.g. by querying for coin objects and performing a dry run).
Implementation
@Deprecated('Use toJson() instead')
String serialize() {
return jsonEncode(serializeV1TransactionData(_blockData.snapshot()));
}