Skip to content

Unable to recreate UnsignedTx for offline signing #963

@curtis741

Description

@curtis741

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions