Skip to content

Sign a transaction offline with VSC and Node.js and submit to the XRPL wiht accountlib

Notifications You must be signed in to change notification settings

JosepMariaVila/SIGN-PAYMENT-OFFLINE-XRPL-accountlib-library

Repository files navigation

SIGN-OFFLINE-XRPL-accountlib

Sign a transaction offline with VSC and Node.js and submit to the XRPL.

You need Node.js and VisualStudioCode.

Step by step guide to use the code:

  1. Create an empty folder in your desktop

  2. Open that folder with VSC, or when you are in VSC open that folder

  3. Once in VSC create a jason file called tsconfig.json

  4. Put inside that file this:

{ "compilerOptions": { "target": "ES5", "module": "CommonJS", "sourceMap": true } }

  1. Open terminal and type: npm install -g typescript

  2. After that, type this (creates a basic package.json): npm init --yes

  3. After that type in the terminal (installs the library): npm i xrpl-accountlib

  4. After that type in the terminal (installs the library): npm i xrpl-client

  5. Type in the terminal (this is just in case you want to modify the code, to modify it you will always do that): tsc -w

(an don't close not use that terminal, just leave it opened)

  1. Usage:

    To SIGN a transaction offline disconnect internet and type in a new terminal (where brakets you have to put the concrete real data): node indexsign <secret_type> <destination_address>

  2. Usage:

    To SUBMIT a transaction online connect internet and type in the terminal (where brakets you have to put the concret real data): node indexsubmit <tx_blob>

About

Sign a transaction offline with VSC and Node.js and submit to the XRPL wiht accountlib

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published