{"name":"xrpl","version":"2.7.0-beta.1","license":"ISC","_id":"xrpl@2.7.0-beta.1","homepage":"https://github.com/XRPLF/xrpl.js#readme","bugs":{"url":"https://github.com/XRPLF/xrpl.js/issues"},"dist":{"shasum":"7e71237d02a887bbc107a518796808b5d9d48738","tarball":"http://registry-npm.ywwl.com/xrpl/download/xrpl-2.7.0-beta.1.tgz","fileCount":1209,"integrity":"sha512-JYxBaYfawt6MoOZ4IL/NHsndiuYyx1+YaiHze2MD+AbSm2FIDPA5UNovQdzLulOohLPa/EVjaIDNDLHkSvPAZg==","signatures":[{"sig":"MEQCIHkzDT2l/8Jvv5Ay5604X5vJNepjpcEvSl4lD6JnkoymAiB/7T7kWrCTXrJ8vEcgiaBgYO0MhBOFmtUUum7rQTC+fQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11431879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7oOKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHmw/9HHRWGvSGa1LuewoxUCz2AmOn+HZKPOJ4RbEIDLEKOBc9WBtC\r\nM83NHnZmQAGVkvJf8XWWJ31tv2OwHyM0Kyxoou9PkCP4r9yeDnoAuXR1xO9g\r\nnABh5PBBmvzUwGpguw+M0ZipSJzxftDuLYiG7PxXRJT2mt3AFQ3vKt6x+Eam\r\nELpJppIZN4mV3uw2KAFDtI2rBFLcTnjHVXHqMXKTMSRiwNSD64+T3hGWVQkw\r\nKfgHt4MbV0+F3sp3bF7hxq/C8wqB/ccBKGtt/J0sAO2ykbVrqUbJB1ho4VUJ\r\narRe5ehiYI1RtTReXeytgvHT5buqUTiJBmk2tvmmqNB8l/jEQDxQBZnsEC1l\r\nBBVSmFYc9L/OV24LZIeC0co8g8y+fTtjM1Z6CcpHGBtYk9Kq+PbRfNfQnvQO\r\nJ4Vp568mbbxTcdvJqA2qttmU1aGcxS3xssFwB3CPy8/7COaB1pIsKWblEB6s\r\nET5dZTN8VE1bzzkrQzj7+WFlOMqDdDETfiXww18S/37Q4ol08kIk9Rne/Ynp\r\ntYwCkRzDVuq6ijJpjzYM4OgJg+3fvIp33tqIAYasyCP9mo/bo/CvS42PJVCe\r\nEe1OV9OZnmqFHmV/Uh5RcnY3tBxHtDaDPESKNQc2bojTmJO+xmrOEbUinV6q\r\nZjjXs71SZYoUH2iCqNq0+QZHieK1hINMAz4=\r\n=5mVL\r\n-----END PGP SIGNATURE-----\r\n","size":2446940,"noattachment":false,"key":"/xrpl/-/xrpl-2.7.0-beta.1.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":"619ac30c0dde59454f94a4cb087478b2ba05558c","scripts":{"lint":"eslint . --ext .ts --max-warnings 0","perf":"./scripts/perf_test.sh","test":"jest --verbose false --silent=false ./test/**/*.test.ts --testPathIgnorePatterns=./test/integration --testPathIgnorePatterns=./test/fixtures","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","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 --verbose false --silent=false --runInBand ./test/integration/**/*.test.ts","build:browserTests":"webpack --config ./test/webpack.config.js"},"_npmUser":{"name":"mvadari","email":"mvadari@ripple.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":"8.19.3","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":"16.19.0","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.1.4","https-proxy-agent":"^5.0.0","ripple-binary-codec":"^1.5.0-beta.3","ripple-address-codec":"^4.2.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"karma":"^6.4.1","react":"^18.2.0","typedoc":"^0.23.24","@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.7.0-beta.1_1676575626441_0.1165527948777052","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":1676575626695,"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":1676575626695,"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"}}