I am integrating ripple for my trading website and what I know is that the ripple address is common to all the users but we need to provide destination tags to identify the user. So my question is how can I assign destination tags to the users and how can I know about the received transaction is of the corresponding user.Please Help.... :(

1 Answer 1


You can assign destination tags to users however you wish. You can even do it randomly, which is the recommended method. Just keep track of which destination tags you've assigned to which users so you know who to credit when you receive a payment.

For UTXO-based systems, you give every user their own address and you credit the user whose address received a payment. For XRP, you give each user their own destination tag and you credit the destination tag that received the payment. This method is much simpler because you only have to watch one address on the network.

Note that you should set the "destination tag required" bit in your receiving address to ensure that you don't receive erroneous payments with no destination tag. If you need to send funds to your own account for some reason, just use any unassigned destination tag -- zero is commonly used for this purpose.

  • thanks for the answer. I thought of same as you said for assigning destination tag and giving the ripple to user according to received tag. But I'm stuck with the question that how can i know that the received payment is for the corresponding user. Do i receive a transaction hash whenever a user sends payment to my address?? so that i can fetch the destination tag from that hash. Commented Mar 12, 2018 at 9:37
  • How do i know that the received transaction is for the particular user and how can i credit them with the payment. Commented Mar 12, 2018 at 9:41
  • If i get the information whenever a receiving transaction is happened at that time how i can fetch the destination tag from that. Because the sender adds a destination tag but at the time of receiving that tag should be known to us, only in this condition i can credit the amount to particular user or else not. Commented Mar 12, 2018 at 9:52
  • @veereshkumbar There will be a "DestinationTag" field in the transaction. You can't credit someone for a transaction unless you see the transaction. You will have to follow all transactions to your account. Commented Mar 12, 2018 at 16:28
  • Do ripple-lib gives the info of Received transaction or the recently received transaction so that i can fetch the destination tag from it??? if yes please show the method to do it. Thanks Commented Mar 13, 2018 at 4:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.