One of the payments model in the stellar platform is to act as an anchor. An anchor can use two accounts, an issuing and a receiving accounts. To allow payments be made to members of this model, the sending transaction must contain a memo and memo_type text
, of the user's identifier. In most cases anchors expose the federation module so that external applications can request user containing identifier in the form of userId*domain, e.g
email@yahoo.com*domain.com
.
Furthermore, users can send close loop payments to members of the same domain using any currency irrespective of whether it is a flat or crypto currencies as long as those currencies are properly issued and a trustline between the issuing and receiving account is created for each currency used.
My challenge is, I would like to take the trustline idea to members of my platform. In other words, I would like to dynamically increase and decrease trustlines of members in my platform as their accounts are debited and credited. This will allow me to use the stellar platform as a single source of truth for all my transactions irrespective of whether I am maintaining a database of user transactions locally.
On another note, I am wondering if there is a way I can pass an additional ID field on outbound requests to my Bridge Module so that when I get a callback I can used that ID to perform cleanup.
Thanks
Blessed