Skip to content

Service to standardize transactions (receipts resolutions) #357

@dgarcia360

Description

@dgarcia360

tldr; We could have a service to flatten transactions. E.g: Given a set of transactions announced, return them with resolved aliases.

Why?

Namespace alias make accounts and mosaics identifiers easily recognizable. While the feature makes announcing transactions more developer-friendly, it becomes much more complicated when having to process past transactions.

For example, imagine an exchange storing deposits in a database every time they receive a transaction. They query the latest transactions every 10 minutes to process which transactions the accounts of the group have received. Some of them come with the real mosaics identifier, whereas others use the aliases. The fact is that they need to have a way to identify mosaics in a transaction since they cannot trust in the latest alias resolution since the link may vary over time.

While exchanges can retrieve the real identifier behind the aliased assets, they need first to learn about aliases and receipts, raising the learning curve. Note that this problem does not apply only to exchanges (just an example), but to any other use case requiring to process transactions.

Next steps

  • Decide if we want to treat this in the SDK level or as a separate library.
  • Define the service.

Metadata

Metadata

Assignees

No one assigned

    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