Reference/Comment in Daml Finance Transfer
App Development2 posts304 views2 likesLast activity Jun 2023
FR
FrankieOP
Jun 2023Hi,
If there a way to add Comment/Reference field in Daml Finance Transfer? The scenario is that Account holder A transfers an asset to account holder B and need to pass a reference to specify the purpose of the transfer. Thanks.
Frank
JO
Johan_Sjodin
Jun 2023Hi @Frankie,
you could provide a “proxy” Transfer contract which has a choice which atomically transfer the holding + spawns a comment/reference contract instance (capturing the purpose of the actual transfer).
See Solution 3 in this thread:
Hi @huw, I agree that the current Transfer choice implementation does not fulfill your specific use case where Bob needs to see the payload of the incoming holding from Alice through the ledger API. I was thinking about a third solution which may better address your requirements: Solution 3 Let the Custodian (for example) create a separate contract called ProxyTransfer for its clients, or specifically for Alice. This contract includes a choice for Alice to transfer holdings. The body of the p…
I hope that helps!
Johan