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 SignerListSigning Payment Transaction
Intro
Sign a payment transaction offline, and analyse the signature.
Video
Topics covered
- Derive rAddress from familySeed.
- Payment TransactionType.
- Learn about all the fields in a Payment Transaction.
- Learn more about payload signature.
References
Possible Error
When you change isValidAddress to isValidSeed, if you start getting error like below:
(node:33872) UnhandledPromiseRejectionWarning:
TypeError: AddressCodec.isValidSeed is not a function
Then please run below command:
npm install xrpl-accountlib --save
Reason for the error: The older version of xrpl-accountlib library had this bug which was later fixed.
The above solution updates xrpl-accountlib library and also saves the version changes to your package.json file present in your project folder.
Easy Solution
I can go to XRPL-JS-TS-demo repository right now and change the version of xrpl-accountlib and push the changes. But I want you to encounter this error and then fix it with above solution. That way you know where to look for when you encounter similar problems in any of your projects in future.
Note:
If both Account and Destination are same in a transaction(i.e., both sender and receiver address are same), then it fails with following error code: temREDUNDANT.
But if you are a custodian of user funds and want to handle transactions where the sender and receiver accounts are same, then check the use-case section of Source And Destination Tags tutorial.
← Previous
Next →