Installing "XRPL JS TS Demo" and Dependencies
Installing "XRPL JS TS Demo" and Dependencies

Installing "XRPL JS TS Demo" and Dependencies

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

Installing "XRPL JS TS Demo" and Dependencies

Intro

Introduction to nodejs and typescript transpilation.

Video

Topics covered

  • Installation of libraries.
  • Installation of dependencies: xrpl-client and xrpl-accountlib.
  • Transpile Typescript code to JavaScript.

Some people are getting errors like:

"TypeError: AddressCodec.isValidSeed is not a function" error.
var Keypair = ripple_keypairs_1.default.deriveKeypair(familyseed); 
TypeError: Cannot read properties of undefined (reading 'deriveKeypair')

Solution: Install the latest versions of the dependency libraries:

npm install xrpl-accountlib@latest xrpl-client@latest --save

TypeScript Error

- error TS7016: Could not find a declaration file for module 'ripple-secret-codec'. '/Users/Satish//XRPL-JS-TS-demo/node_modules/ripple-secret-codec/ripple-secret-codec.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/ripple-secret-codec` if it exists or add a new declaration (.d.ts) file containing `declare module 'ripple-secret-codec';`

10 import * as rippleSecretCodec from "ripple-secret-codec";

Solution: Run this command

npm i --save-dev @types/ripple-secret-codec

Report Issues:

Submit Issue with library

References

  • XRPL JS TS

Possible Error

If you get error(bash: tsc: command not found) while running tsc -w, then please use this command(in the command prompt) to first install typescript: npm install typescript -g

Note

If you are a windows user and you do not have Git tools, you can directly download “XRPL JS TS” package from Github. Please refer the image below to find the download link.

image
💡
Final tip: Keep tsc -w running so that it transpiles the Typescript files to Javascript.

← Previous

Install nodejs & editor

Next →

XRPL Account

  • Installing "XRPL JS TS Demo" and Dependencies
  • Intro
  • Video
  • Topics covered
  • Some people are getting errors like:
  • Report Issues:
  • References
  • Possible Error
  • Note
💠
https://xrpl-labs.com

Footer Social Icons

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