Skip to content
/ xrpsign Public

A simple package for signing XRP transactions.

License

Notifications You must be signed in to change notification settings

foxrp/xrpsign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xrpsign

A simple package for signing XRP transactions.

Installation

npm install xrpsign

Usage

const sign = require('xrpsign');

// tx can be an object or the JSON equivalent.
const tx = {
    TransactionType: 'Payment',
    Account: 'rQBnNY5w5cALHbMaue2VefSzuBfxafwqp9',
    Fee : '12',
    Destination: 'rnQ1WgToG2RL9Fjmofif9ixYVgJTi6BLas',
    Amount: '1000000',
    Sequence: 3
};

const secret = 'sxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';

// signedTx is now a transaction object with the signed data.
let signedTx = sign(tx, secret);

Acknowledgements

Big thanks to @WietseWind for help on this one.

About

A simple package for signing XRP transactions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published