pub fn encode_transaction(
transaction: &impl SerializableTransaction,
) -> Result<String, SerializeEncodeError>Expand description
Encodes a transaction the way ScheduledAction::transactions and
ContinueParams::transactions carry it: the standard base64 of its wire bytes, the bytes
sendTransaction takes, for a legacy, v0 or v1 transaction.
It serializes with wincode, which writes those bytes. bincode does not: it drops a v1 transaction’s version marker, so the server cannot read it back. Errors only if wincode cannot serialize the transaction.