Skip to content

Expose serialization methods #56

@dgarcia360

Description

@dgarcia360

The NEM-SDK has a class TransactionMapping to map JSON transactions into models.

It can be useful for advanced users to make use the json mapping, and as well get transactions in serialized form. This table gathers the functions that each transaction model could implement.

Function Description
serialize():string Serializes a transaction model into binary (unsigned payload)
toDTO():json Serializes a transaction model into JSON
createFromPayload(data:string):Transaction Reads the unsigned payload and creates a Transaction.
createFromDTO(data:json):Transaction Reads from JSON and creates a Transaction.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions