Generating XRPL Account
Generating XRPL Account

Generating XRPL Account

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

Generating XRPL Account

Intro

Generating XRPL account offline.

Video

Topics covered

  • Mathematically generating XRPL account - offline.
  • Different secret formates: familySeed, Mnemonic, secretNumber.

References

  • xrpl-accountlib

Error Handling

If you are getting errors similar to what’s shown below, then make sure to install nodejs version which is “Recommended For Most Users” on nodejs website, and not the “Latest Features” version. After installing the correct version of nodejs, run npm install

 node:internal/crypto/hash:67
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at createHash (node:crypto:135:10)
    at Object.hash160 (C:\Users\---\Desktop\XRPL\XRPL-JS-TS-demo\node_modules\bip32\src\crypto.js:15:16)
    at BIP32.get identifier [as identifier] (C:\Users\---\Desktop\XRPL\XRPL-JS-TS-demo\node_modules\bip32\src\bip32.js:65:23)
    at BIP32.get fingerprint [as fingerprint] (C:\Users\---\Desktop\XRPL\XRPL-JS-TS-demo\node_modules\bip32\src\bip32.js:68:21)
    at BIP32.derive (C:\Users\---\Desktop\XRPL\XRPL-JS-TS-demo\node_modules\bip32\src\bip32.js:151:88)
    at BIP32.deriveHardened (C:\Users\---\Desktop\XRPL\XRPL-JS-TS-demo\node_modules\bip32\src\bip32.js:168:21)
    at C:\Users\---\Desktop\XRPL\XRPL-JS-TS-demo\node_modules\bip32\src\bip32.js:182:31
    at Array.reduce (<anonymous>)
    at BIP32.derivePath (C:\Users\---\Desktop\XRPL\XRPL-JS-TS-demo\node_modules\bip32\src\bip32.js:178:26) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
💡
Final tip: You can derive public key using your secret key, but you can not derive secret key using your public key.

← Previous

XRPL Accounts

Next →

Derive r-address

  • Generating XRPL Account
  • Intro
  • Video
  • Topics covered
  • References
  • Error Handling
💠
https://xrpl-labs.com

Footer Social Icons

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