Setting things up
Installing Node and VS Code EditorInstalling "XRPL JS TS Demo" and DependenciesXRP Ledger accounts
Learning More About XRP Ledger AccountGenerating XRPL AccountDerive r-address From SecretBrief Overview of The XRP LedgerFirst XRPL interaction
Activate Existing XRPL Account on Test NetworkConnecting and Interacting with XRP Ledger: account_infoInteracting with XRP Ledger using JSON-RPCError Handling and Best PracticesBasics of XRP and Issued CurrencySigning Payment TransactionAssignment SolutionVerifying SignatureSubmit Transaction Signature To XRP LedgerSubscription MethodsSubscription Methods To Build Responsive AppTransaction VerificationBalance DetailTransaction CostMeasures to Avoid Ledger SpammingSource And Destination TagsAccountSet Transaction: Domain, GravatarAccountSet Transaction: SetFlag, ClearFlagDeposit AuthorizationTokens, transactions
Issuing Token on XRPLToken(IOU): Payment TransactionCommands To Fetch TrustLine InformationFreeze a TrustLineIssuer: Transfer FeesMore about TrustLineCurrency Code In Hex FormatRemoving a TrustLineRequire authorization FlagLedger features
AccountDelete TransactionTickets: TheoryTicketCreate TransactionDelete Ticket ObjectSetRegularKey
SetRegularKey: The ConceptAssigning RegularKeyChange RegularKeyRemove RegularKeyBlackhole An AccountMultiSigning
MultiSigning: The ConceptReplace SignerListCreate SignerListReplace SignerListMulti-signed Payment TransactionRemoving SignerListBalance Detail
Intro
Calculating Balance details by fetching the reserve requirements directly from the ledger.
Video
Topics covered
- XRP Ledger Account Reserve Requirement.
- Fetch reserve values directly from the ledger.
- Total Reserve = Base_reserve + Owner_reserve * OwnerCount;
- Spendable Balance = Total Balance - Total Reserve;
- You can not send more XRP than present in your “spendable balance”.
References
Update
Since TrustLines are a powerful feature of the XRP Ledger, there is a special feature to make an account's first two trust lines "free". When an account creates a new trust line, if the account owns at most 2 items in the ledger including the new line, the account's owner reserve is treated as zero instead of the normal amount. This allows the transaction to succeed even if the account does not hold enough XRP to meet the increased reserve requirement for owning objects in the ledger. When an account owns 3 or more objects in the ledger, the full owner reserve applies.
Final tip: Do not assume the reserve value as it’s bound to change. So always fetch these information directly from the ledger and cache for a long time - as these reserves do not change regularly.
← Previous
Next →