Issuer: Transfer Fees
Issuer: Transfer Fees

Issuer: Transfer Fees

Setting things up

Installing Node and VS Code EditorInstalling Node and VS Code EditorInstalling "XRPL JS TS Demo" and DependenciesInstalling "XRPL JS TS Demo" and Dependencies

XRP Ledger accounts

Learning More About XRP Ledger AccountLearning More About XRP Ledger AccountGenerating XRPL AccountGenerating XRPL AccountDerive r-address From SecretDerive r-address From SecretBrief Overview of The XRP LedgerBrief Overview of The XRP Ledger

First XRPL interaction

Activate Existing XRPL Account on Test NetworkActivate Existing XRPL Account on Test NetworkConnecting and Interacting with XRP Ledger: account_infoConnecting and Interacting with XRP Ledger: account_infoInteracting with XRP Ledger using JSON-RPCInteracting with XRP Ledger using JSON-RPCError Handling and Best PracticesError Handling and Best PracticesBasics of XRP and Issued CurrencyBasics of XRP and Issued CurrencySigning Payment TransactionSigning Payment TransactionAssignment SolutionAssignment SolutionVerifying SignatureVerifying SignatureSubmit Transaction Signature To XRP LedgerSubmit Transaction Signature To XRP LedgerSubscription MethodsSubscription MethodsSubscription Methods To Build Responsive AppSubscription Methods To Build Responsive AppTransaction VerificationTransaction VerificationBalance DetailBalance DetailTransaction CostTransaction CostMeasures to Avoid Ledger SpammingMeasures to Avoid Ledger SpammingSource And Destination TagsSource And Destination TagsAccountSet Transaction: Domain, GravatarAccountSet Transaction: Domain, GravatarAccountSet Transaction: SetFlag, ClearFlagAccountSet Transaction: SetFlag, ClearFlagDeposit AuthorizationDeposit Authorization

Tokens, transactions

Issuing Token on XRPLIssuing Token on XRPLToken(IOU): Payment TransactionToken(IOU): Payment TransactionCommands To Fetch TrustLine InformationCommands To Fetch TrustLine InformationFreeze a TrustLineFreeze a TrustLineIssuer: Transfer FeesIssuer: Transfer FeesMore about TrustLineMore about TrustLineCurrency Code In Hex FormatCurrency Code In Hex FormatRemoving a TrustLineRemoving a TrustLineRequire authorization FlagRequire authorization Flag

Ledger features

AccountDelete TransactionAccountDelete TransactionTickets: TheoryTickets: TheoryTicketCreate TransactionTicketCreate TransactionDelete Ticket ObjectDelete Ticket Object

SetRegularKey

SetRegularKey: The ConceptSetRegularKey: The ConceptAssigning RegularKeyAssigning RegularKeyChange RegularKeyChange RegularKeyRemove RegularKeyRemove RegularKeyBlackhole An AccountBlackhole An Account

MultiSigning

MultiSigning: The ConceptMultiSigning: The ConceptCreate SignerListCreate SignerListReplace SignerListReplace SignerListMulti-signed Payment TransactionMulti-signed Payment TransactionRemoving SignerListRemoving SignerList

Issuer: Transfer Fees

Intro

A sender should send a little more to cover the transfer fee set by the issuer.

Video

Topics covered

  • XRP To XRP transfers can never have a transfer fee, as it’s not issued by any issuer.
  • Range of transfer fee.
  • Implementing transfer fee.
  • Transfers of tokens to and from the issuer will not have a transfer fee.
  • Making payment transaction with SendMax to cover the transfer fee.
  • Changing the transfer rate.

Update

if (issuerDetail.account_data.TransferRate) {
    const Billion = 1000000000;
    const percentage = ((issuerDetail.account_data.TransferRate - Billion) / Billion) * 100;

    payload.SendMax = {
          currency: asset,
          value: String(Number(process.argv[5]) + (Number(process.argv[5]) * percentage) / 100),
          issuer: issuer,
    };
}

References

  • TransferRate
  • Payment
💡
Final tip: For a better UX, your client application must let the user know that they will be charged a percentage of fee by the issuer of the token for the transaction. Only execute the transaction if user agrees for it.

← Previous

Freeze a TrustLine

Next →

More about TrustLine

  • Issuer: Transfer Fees
  • Intro
  • Video
  • Topics covered
  • Update
  • References
💠
https://xrpl-labs.com

Footer Social Icons

© XRPL Labs - https://xrpl-labs.com