{"name":"xrpl","version":"2.14.0","keywords":["ripple-lib","ripple","xrp","xrp ledger","xrpl"],"license":"ISC","_id":"xrpl@2.14.0","homepage":"https://github.com/XRPLF/xrpl.js#readme","bugs":{"url":"https://github.com/XRPLF/xrpl.js/issues"},"dist":{"shasum":"d6ec6dab5a61aa50dffc40cab16c46e8afc33518","tarball":"http://registry-npm.ywwl.com/xrpl/download/xrpl-2.14.0.tgz","fileCount":1515,"integrity":"sha512-HOHP9RJfFGqOAZYeL6A0aC8Ffx2f9IjnZNfgYpjBaWMPsWpj/CegRbJDxtBJrHVNBODR5rGzqsLDhNvilsqBbA==","signatures":[{"sig":"MEUCIEFRmt3fH2vmGHEe4pLcrHrk/fr8FedtDrM0ErjNKJQNAiEAn79RoSa3Kf2PP88wEbpXlu6fxkbTaPplfSwLNAa/Ew4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12639862,"size":2770424,"noattachment":false,"key":"/xrpl/-/xrpl-2.14.0.tgz"},"main":"dist/npm/","types":"dist/npm/index.d.ts","unpkg":"build/xrpl-latest-min.js","browser":{"ws":"./dist/npm/client/WSWrapper.js","https-proxy-agent":false},"engines":{"node":">=10.13.0"},"gitHead":"99dd0eb44c00b6a4e934467a68036f15320ae69b","scripts":{"lint":"eslint . --ext .ts --max-warnings 0","perf":"./scripts/perf_test.sh","test":"jest --config=jest.config.unit.js --verbose false --silent=false","build":"run-s build:lib build:snippets build:web","clean":"rm -rf dist build coverage","watch":"run-s build:lib --watch","docgen":"tsc --build tsconfig.docs.json && typedoc && echo js.xrpl.org >> ../../docs/CNAME","format":"prettier --write '{src,test}/**/*.ts'","analyze":"run-s build:web --analyze","prepare":"copyfiles ../../README.md xrpl/README.md","build:lib":"tsc --build tsconfig.build.json","build:web":"webpack","prepublish":"run-s clean build","test:watch":"jest --watch --verbose false --silent=false --runInBand ./test/**/*.test.ts --testPathIgnorePatterns=./test/integration --testPathIgnorePatterns=./test/fixtures","test:browser":"npm run build && npm run build:browserTests && karma start ./karma.config.js --single-run","start:snippet":"npm run compile:snippets && node","build:snippets":"tsc --build ./snippets/tsconfig.json","inspect:snippet":"npm run compile:snippets && node inspect","compile:snippets":"tsc -p snippets/tsconfig.json","test:integration":"TS_NODE_PROJECT=tsconfig.build.json jest --config=jest.config.integration.js --verbose false --silent=false --runInBand","build:browserTests":"webpack --config ./test/webpack.config.js"},"_npmUser":{"name":"jst5000","email":"aim4math@gmail.com"},"jsdelivr":"build/xrpl-latest-min.js","prettier":"@xrplf/prettier-config","repository":{"url":"git+ssh://git@github.com/XRPLF/xrpl.js.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v18.17.1+arm64 (darwin)","description":"A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser","directories":{"test":"test"},"resolutions":{"elliptic":"^6.5.4"},"_nodeVersion":"18.17.1","dependencies":{"ws":"^8.2.2","bip32":"^2.0.6","bip39":"^3.0.4","lodash":"^4.17.4","bignumber.js":"^9.0.0","ripple-keypairs":"^1.3.1","https-proxy-agent":"^5.0.0","ripple-binary-codec":"^1.11.0","xrpl-secret-numbers":"^0.3.3","ripple-address-codec":"^4.3.1"},"_hasShrinkwrap":false,"devDependencies":{"karma":"^6.4.1","react":"^18.2.0","typedoc":"0.25.0","@types/node":"^14.18.36","browserify-fs":"^1.0.0","karma-jasmine":"^5.1.0","karma-webpack":"^5.0.0","https-browserify":"^1.0.0","assert-browserify":"^2.0.0","constants-browserify":"^1.0.0","karma-chrome-launcher":"^3.1.1","@geut/browser-node-core":"^2.0.13","node-polyfill-webpack-plugin":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/xrpl_2.14.0_1701379778086_0.31022796095982375","host":"s3://npm-registry-packages"},"readme":"# xrpl.js\n\nA JavaScript/TypeScript library for interacting with the XRP Ledger\n\n[![NPM](https://nodei.co/npm/xrpl.png)](https://www.npmjs.org/package/xrpl)\n![npm bundle size](https://img.shields.io/bundlephobia/min/xrpl)\n\nThis is the recommended library for integrating a JavaScript/TypeScript app with the XRP Ledger, especially if you intend to use advanced functionality such as IOUs, payment paths, the decentralized exchange, account settings, payment channels, escrows, multi-signing, and more.\n\n## [➡️ Reference Documentation](http://js.xrpl.org)\n\nSee the full reference documentation for all classes, methods, and utilities.\n\n## Features\n\n1. Managing keys & creating test credentials ([`Wallet`](https://js.xrpl.org/classes/Wallet.html) && [`Client.fundWallet()`](https://js.xrpl.org/classes/Client.html#fundWallet))\n2. Submitting transactions to the XRP Ledger ([`Client.submit(...)`](https://js.xrpl.org/classes/Client.html#submit) & [transaction types](https://xrpl.org/transaction-types.html))\n3. Sending requests to observe the ledger ([`Client.request(...)`](https://js.xrpl.org/classes/Client.html#request) using [public API methods](https://xrpl.org/public-api-methods.html))\n4. Subscribing to changes in the ledger ([Ex. ledger, transactions, & more...](https://xrpl.org/subscribe.html))\n5. Parsing ledger data into more convenient formats ([`xrpToDrops`](https://js.xrpl.org/functions/xrpToDrops.html) and [`rippleTimeToISOTime`](https://js.xrpl.org/functions/rippleTimeToISOTime.html))\n\nAll of which works in Node.js (tested for v18+) & web browsers (tested for Chrome).\n\n# Quickstart\n\n### Requirements\n\n+ **[Node.js v18](https://nodejs.org/)** is recommended. We also support v20. Other versions may work but are not frequently tested.\n\n### Installing xrpl.js\n\nIn an existing project (with package.json), install xrpl.js with:\n\n```\n$ npm install --save xrpl\n```\n\nOr with `yarn`:\n\n```\n$ yarn add xrpl\n```\n\nExample usage:\n\n```js\nconst xrpl = require(\"xrpl\");\nasync function main() {\n  const client = new xrpl.Client(\"wss://s.altnet.rippletest.net:51233\");\n  await client.connect();\n\n  const response = await client.request({\n    command: \"account_info\",\n    account: \"rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe\",\n    ledger_index: \"validated\",\n  });\n  console.log(response);\n\n  await client.disconnect();\n}\nmain();\n```\n\nFor a more in-depth example, you can copy/forking this Code Sandbox template!\n<br>https://codesandbox.io/s/xrpl-intro-pxgdjr?file=/src/App.js\n\nIt goes through:\n\n1. Creating a new test account\n2. Sending a payment transaction\n3. And sending requests to see your account balance!\n\n### Case by Case Setup Steps\n\nIf you're using xrpl.js with React or Deno, you'll need to do a couple extra steps to set it up:\n\n- [Using xrpl.js with a CDN](https://github.com/XRPLF/xrpl.js/blob/main/UNIQUE_SETUPS.md#using-xrpljs-from-a-cdn)\n- [Using xrpl.js with `create-react-app`](https://github.com/XRPLF/xrpl.js/blob/main/UNIQUE_SETUPS.md#using-xrpljs-with-create-react-app)\n- [Using xrpl.js with `React Native`](https://github.com/XRPLF/xrpl.js/blob/main/UNIQUE_SETUPS.md#using-xrpljs-with-react-native)\n- [Using xrpl.js with `Vite React`](https://github.com/XRPLF/xrpl.js/blob/main/UNIQUE_SETUPS.md#using-xrpljs-with-vite-react)\n- [Using xrpl.js with `Deno`](https://github.com/XRPLF/xrpl.js/blob/main/UNIQUE_SETUPS.md#using-xrpljs-with-deno)\n\n## Documentation\n\nAs you develop with xrpl.js, there's two sites you'll use extensively:\n\n1. [xrpl.org](https://xrpl.org/references.html) is the primary source for:\n   - How the ledger works ([See Concepts](https://xrpl.org/concepts.html#main-page-header))\n   - What kinds of transactions there are ([Transaction Types](https://xrpl.org/transaction-types.html#transaction-types))\n   - Requests you can send ([Public API Methods](https://xrpl.org/public-api-methods.html))\n   - Tutorials for interacting with various features of the ledger ([Tutorials](https://xrpl.org/tutorials.html#main-page-header))\n2. [js.xrpl.org](https://js.xrpl.org/) has the reference docs for this library\n\n### Mailing Lists\n\nIf you want to hear when we release new versions of xrpl.js, you can join our low-traffic mailing list (About 1 email per week):\n\n- [Subscribe to xrpl-announce](https://groups.google.com/g/xrpl-announce)\n\nIf you're using the XRP Ledger in production, you should run a [rippled server](https://github.com/ripple/rippled) and subscribe to the ripple-server mailing list as well.\n\n- [Subscribe to ripple-server](https://groups.google.com/g/ripple-server)\n\n## Asking for help\n\nOne of the best spots to ask for help is in the [XRPL Developer Discord](https://xrpldevs.org) - There's a channel for xrpl.js where other community members can help you figure out how to accomplish your goals.\n\nYou are also welcome to create an [issue](https://github.com/XRPLF/xrpl.js/issues) here and we'll do our best to respond within 3 days.\n\n## Key Links\n\n- [xrpl.js Reference Docs](https://js.xrpl.org/)\n- [xrpl.org (Detailed docs on how the XRPL works)](https://xrpl.org/references.html)\n- [XRPL Code Samples](https://github.com/XRPLF/xrpl-dev-portal/tree/master/content/_code-samples)\n- [#javascript in the XRPL Developer Discord for questions & support](https://xrpldevs.org)\n- [xrpl-announce (The mailing list for new xrpl.js versions)](https://groups.google.com/g/xrpl-announce)\n- [Applications that use xrpl.js](https://github.com/XRPLF/xrpl.js/blob/main/APPLICATIONS.md) (You can open a PR to add your project!)\n","publish_time":1701379778351,"maintainers":[{"name":"anissa-ripple","email":"anissaw@ripple.com"},{"name":"justinr1234","email":"justinr1234@gmail.com"},{"name":"intelliot","email":"github.public@intelliot.com"},{"name":"mukulljangid","email":"mukulmdj9070@gmail.com"},{"name":"mvadari","email":"mvadari@ripple.com"},{"name":"ckniffen","email":"ckniffen@ripple.com"},{"name":"khancode_","email":"khancodegt@gmail.com"},{"name":"pdp2121","email":"ppham@ripple.com"},{"name":"shawnxie9999","email":"shawnxie@ripple.com"},{"name":"achowdhry","email":"achowdhry@ripple.com"}],"_cnpm_publish_time":1701379778351,"dist-tags":{"batch-experimental":"5.1.0-batch.1","beta-experimental":"5.4.0-beta.0","entropy-2.x-experimental":"2.15.0","entropy-3.x-experimental":"3.2.0","entropy-4.x-experimental":"4.7.0","latest":"5.3.0","ripple-lib":"1.10.1","smart-contract-experimental":"4.7.0-smartcontract.0","smart-escrow-experimental":"5.4.0-smartescrow.0"}}