2

From where is the transaction fee for a custom token (build on Stellar) that is charged by Stellar Network? Is it from the custom wallet (I know the only possibility will be in XLM)? From whose Account are these XLMs deducted?

Regards,

2

The transaction fee is deducted from the account that acts as the source account for the transaction envelope.

Using the JavaScript SDK, it's the account used to construct the TransactionBuilder:

const account = await server.loadAccount(source);
const builder = new stellar.TransactionBuilder(account)
1
  • Can we charge a custom fee as our profit from each trade on SDEX? I tried my best to find an option or code but nothing available on stellar documentation. Aug 18 at 22:50

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.