mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
0b7ff197c85463f76fc335a603203f8601840aec
#The Ripple JavaScript Library
ripple-lib connects to the Ripple network via the WebSocket protocol and runs in Node.js as well as in the browser.
This file contains installation and quickstart instructions. For the full documentation see:
- The
ripple-libGuides - The
ripple-libAPI Reference - Additional documentation resources can be found at:
##Getting ripple-lib
- Via npm for Node.js:
npm install ripple-lib - Build from the source using
gruntand load the minifiedripple-#.#.#-min.jsinto your webpage
##Quickstart
Remote (remote.js) is the module responsible for managing connections to rippled servers.
/* Loading ripple-lib with Node.js */
var Remote = require('ripple-lib').Remote;
/* Loading ripple-lib in a webpage */
// var Remote = ripple.Remote;
var remote = new Remote({
// see next section for available options
trusted: true,
local_signing: true,
local_fee: true,
servers: [
{
host: 's1.ripple.com'
, port: 443,
, secure: true
}
]
});
remote.connect(function() {
/* remote connected */
});
Description
A JavaScript/TypeScript API for interacting with the Xahau Ledger in Node.js and the browser
Languages
TypeScript
97.4%
JavaScript
2.6%