1

I know this questions is already asked, but the solution provided is not proper. So asking the question again.

We created a custom assets with name FOC. when we send any FOC to any account, the balance of asset is not being updated. we created 1000000000, and we have sent payments to other accounts as well, but the balance is not being updated.

You can see the balance here.

https://horizon.stellar.org/accounts/GD57ZNS2KGQWJMCUOSAVQH5QXBARDC3ISAK66I3SUYXPCDZ44G2FBD3P

You can see a payment transaction made here https://steexp.com/account/GCUBPFP7PSJG7ZNLC64HAAKRB3E23OCUW2TJIJ4WYTPFXHKQEZQIC2YS#payments

but the balance is still same, we have done lots of other payment transactions but it keeps the same balance.

1 Answer 1

3

The asset issuer is different. The account has a balance of FOC-GDK... tokens, but the payment was a FOC-GD5... token payment. Since the trustline is for FOC-GD5... and the payment is also originated by FOC-GD5... those payments are new minted FOC-GD5... tokens, not the FOC-GDK... that the account holds.

You allways have to reference the asset_issuer/asset_name for your asset. Create a trustline for the asset_issuer, not for the sender/distributor.


Example:

  • GDK2G... is the issuer
  • GCUBP... is the distributor that got minted tokens from issuer
  • GCUBP... is a user

Since distributor and user want to use your token, they all need a trustline to FOC-GDK2G.... Distributor already has it but your user has not. Once GCUBP... has the right trustline, GCUBP... can send him FOC-GDK2G... tokens.

GCUBP... has currently another trustline so it's minimum reserve is 1.5 XLM. It will need a minimum balance of 2 XLM for two trustlines, so you have to either delete the existing trustline first or charge it with some lumens to have 2 XLM.

7
  • Thanks for reply, I tried to change trust from this account GCUB... to this account GDK2....., this give me error [transaction] => tx_failed [operations] => ( [0] => op_low_reserve Is this because for issuer account we Set Options after issuing the tokens?: Master Weight=0 Low Threshold=0 ...... Also, do you think after changing the trust we need to send payments from issuer account instead of sender/distributor?
    – Aaron
    Apr 9, 2019 at 13:39
  • Do I need to create new account for customer as the Trust has been already issue with Distributor account? or Trust can be change with Issuer account as well?
    – Aaron
    Apr 9, 2019 at 13:53
  • op_low_reserve means that the sender account has not enough XLM to keep the required XLM minimum reserve after deducting transaction fees.
    – sui
    Apr 9, 2019 at 14:14
  • an account may have multiple trustlines (only it's minimum reserve is increased by 0.5 XLM for every trustline), you can also delete a trustline with changeTrust( limit=0)
    – sui
    Apr 9, 2019 at 14:16
  • But you can see this account has GCUB.... enough XLM, and I am trying to issue trust from this GCUB.... to this GDK2.......
    – Aaron
    Apr 9, 2019 at 14:50

Your Answer

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

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