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)
Furthurmore …
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.
Ssource Account
Public_Key:GDP4HJRNBGEX5QCMJ7L54HYCIBRXH6IR6VUZ5HWBOLUPMALRKV4N2HHY
Secret_Seed:SAM7ZNG4K6GCG5LCAOY4Z4XZD5IJ2EMJCJHA7IYKFNSEMURVK2BGAUVC
Issuing Account:
Public_Key:GADARWSV74FALR5ILJAXA7ICUDTUK5VLRFK4SLFC2QTI2ZOVBP5VNU64
Secret_Seed:SC4F3B65GDWVJ6R2BIQVHARFOQ7EJ2EAHWEKEJBGI25KTHN75JRR7GNJ
Distributor Account:
Public_Key:GCRH6K7FYR7QIFS7DR5RV7OWVH2RHFU4Z22O6PDYBZLN3Q5SCDWATKK5
Secret_Seed:SCSRPIEMKFAMXGOLURUEOWTSFZHTV6QCMIFH76CUUTUBUSVXQMRR2UUU
Consumer Account:
Public_Key:GAEINH2YYS57QGSR2M4VGU6XSILY3NQLFKVIQN7AJN545HK2UC6NV4SP
Secret_Seed:SDQEEKBKL7MFILH2CQUBAJZU5AM5CX6RCHVYHITQKH43VVY7CIUYH3MP
Any Idea?
Stay Safe
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
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP