aeternity / aepp-sdk-go

Golang SDK to interact with the Æternity blockchain
ISC License
18 stars 10 forks source link

Tx structs should support being Unmarshaled from the node's response #94

Closed randomshinichi closed 5 years ago

randomshinichi commented 5 years ago

SpendTx.Payload should be populated with the decoded ba_.... from the node.

But in general, Tx structs right now were only written with the expectation that they be created via the constructor, and then serialized to RLP or JSON from there. There is no real way (or need so far) to populate a Tx struct from a node's JSON response, but the need will come in the future.

Other swagger models will probably be treated in a similar fashion too.