With the new version of the SDK, it doesn't seem possible to serialize a tx then sign it offline as outlined in this ticket:
#619 (comment)
It looks like you can serialize the underlying tx like this:
utils.bufferToHex(tx.toBytes());
But then that can't be used to recreate the same object to then use it with addTxSignatures.
Basically I want to do what's outlined in this example:
https://github.com/ava-labs/avalanchejs/blob/master/examples/c-chain/export.ts#L30
With the additional step of transforming the response newExportTxFromBaseFee into a hex encoded string, then decoding that string to sign it and then broadcast it.
With the new version of the SDK, it doesn't seem possible to serialize a tx then sign it offline as outlined in this ticket:
#619 (comment)
It looks like you can serialize the underlying tx like this:
But then that can't be used to recreate the same object to then use it with
addTxSignatures.Basically I want to do what's outlined in this example:
https://github.com/ava-labs/avalanchejs/blob/master/examples/c-chain/export.ts#L30
With the additional step of transforming the response newExportTxFromBaseFee into a hex encoded string, then decoding that string to sign it and then broadcast it.