Stellar Asked on August 21, 2021
Hopefuly things are going fine with ya’ll.
I’ve created a [Custom Asset] asset_code="FAZ"(Alphanum_4) by set of Accounts (Source,Issuer,Distributor,Consumer) on Stellar Test-Net.
Set [Trustline] from Distributor to Issuer and Consumer to Distributor, generate some (FAZ) by [Payment] some amounts (500000.00) from Issuer to Distributor. Sofar, [Custom Asset] created as expected but,the "Balance" of Issuer remains intact (still holds the same amount before payment)
In a nutshell:
[Payments] with a "Custom Asset" increase the "Balance" of "Reciever-Account" but has no effect on "Sender-Account", establishing a [Trustline] with the same [Asset], opens a "New Entry"(like it’s a "New Asset") instead of holding the same!
Worth noting: Even though all mentioned [Operation]s/[Transactions]s done successfuly on the network(Test-Net), the "native" (XLM) balance of Accounts didn’t decrease as expected (for "Fees")?
My Dev. Environment: Win7-32bit, python 3.8.3, https://github.com/StellarCN/py-stellar-base 2.6.1
The Accounts Keys used in above scenario, are as follow:(in case)
Both Source Account and Consumer Account are created by "friendbot" of course.
It sounds like your mistake is here:
[Trustline] from Distributor to Issuer and Consumer to Distributor
The flow should be as follows:
The Issuer address does not maintain a balance of assets it issues, so you will see no changes in that account's balance. That is why a distributor account is necessary if you need to see a balance.
In your current setup you are creating an asset twice.
Answered by kolten on August 21, 2021
1 Asked on November 4, 2021
3 Asked on August 21, 2021
1 Asked on August 21, 2021 by j-r
1 Asked on August 21, 2021 by shan-gorai
2 Asked on August 21, 2021 by joseluis-diaz
1 Asked on August 21, 2021 by igor-komar
2 Asked on August 21, 2021 by ngb19
2 Asked on August 21, 2021 by ross-bates
1 Asked on August 21, 2021 by semooze
1 Asked on August 21, 2021 by lnband
1 Asked on August 21, 2021 by sergi-mansilla
2 Asked on August 21, 2021 by vishwas-bhushan
1 Asked on August 21, 2021 by arunagiriswaran-ezhilan
Get help from others!