Setting things up
Installing Node and VS Code Editor
Installing "XRPL JS TS Demo" and Dependencies
XRP Ledger accounts
Learning More About XRP Ledger Account
Generating XRPL Account
Derive r-address From Secret
Brief Overview of The XRP Ledger
First XRPL interaction
Activate Existing XRPL Account on Test Network
Connecting and Interacting with XRP Ledger: account_info
Interacting with XRP Ledger using JSON-RPC
Error Handling and Best Practices
Basics of XRP and Issued Currency
Signing Payment Transaction
Assignment Solution
Verifying Signature
Submit Transaction Signature To XRP Ledger
Subscription Methods
Subscription Methods To Build Responsive App
Transaction Verification
Balance Detail
Transaction Cost
Measures to Avoid Ledger Spamming
Source And Destination Tags
AccountSet Transaction: Domain, Gravatar
AccountSet Transaction: SetFlag, ClearFlag
Deposit Authorization
Tokens, transactions
Issuing Token on XRPL
Token(IOU): Payment Transaction
Commands To Fetch TrustLine Information
Freeze a TrustLine
Issuer: Transfer Fees
More about TrustLine
Currency Code In Hex Format
Removing a TrustLine
Require authorization Flag
Ledger features
AccountDelete Transaction
Tickets: Theory
TicketCreate Transaction
Delete Ticket Object
SetRegularKey
SetRegularKey: The Concept
Assigning RegularKey
Change RegularKey
Remove RegularKey
Blackhole An Account
MultiSigning
MultiSigning: The Concept
Replace SignerList
Create SignerList
Replace SignerList
Multi-signed Payment Transaction
Removing 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
References
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.
Final tip: Keep tsc -w running so that it transpiles the Typescript files to Javascript.
Next →