0

it is possible te deduct commission when from the token used for every transaction. let's assume the token name is "Xtoken" User "A" send "1000 Xtoken" to user "B", the stellar network will deduct transaction fees from my stellar source account, I want to get "1 Xtoken" for every transaction and send it to my "Xtoken" wallet. These additional fees will be paid by the sender. is it possible?

0

No, it's not possible on Stellar currently. There are several protocol changes proposals that may allow addressing such logic in the future, but I doubt that we'll see it on the mainnet anytime soon.

| improve this answer | |
0

One workarounds for this case is:

Set "authorization required" for your asset but don't allowTrust to any user in general. Instead require them to sandwich every payment + payment fee operation between a allowTrust and a allowTrust(revoke) operation. This way your authorization (by co-signing every transaction with the asset issuer account) for using that asset is only granted temporarily within this atomic transaction.

Altough there is SEP-8 showing a standardized way to automate the co-signing process, afaik there is yet no wallet around that implements it. You'll have to code your own wallet and co-signing service.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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