wharfkit / antelope

Core types, client interfaces, and other tools for working with Antelope-based blockchains.
Other
42 stars 23 forks source link

Helper to return the serialized transaction from a transaction object #11

Open aaroncox opened 3 years ago

aaroncox commented 3 years ago

A nice convenience method would be to add a .serialized get helper on to the Transaction structs. Currently we need to import the Serializer and serialize it ourselves using:

const serializedTransaction = Serializer.encode({ object: transaction }).array;

I'm sure there are more transaction transformation helpers that could also be useful on top of that. It's an area we might want to explore.