{"name":"xrpl","version":"2.2.2","license":"ISC","_id":"xrpl@2.2.2","homepage":"https://github.com/XRPLF/xrpl.js#readme","bugs":{"url":"https://github.com/XRPLF/xrpl.js/issues"},"dist":{"shasum":"326ca347490e0772195f1211c54d8740722064ba","tarball":"http://registry-npm.ywwl.com/xrpl/download/xrpl-2.2.2.tgz","fileCount":549,"integrity":"sha512-WnFGJCw9N3wQSlB7qDdoL0U+XM/2Uum/urgLcFDDBKGRbiDljRXoPF6sQ6+roOXwJ7ej5FNLMf8qzHDJZ/cWIw==","signatures":[{"sig":"MEUCIQChc7fo5tqh46zY/8a456S1BN1VQlthmmZ3Xs4hIihncwIgSnvtOLsI/mjArS6x9uOiWYr3hnfO26ITWky6ix61bUw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3846962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicD19ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpfZA/5AYhMufra1RdzqMNKIYmuHMhyL3E14m1K+zSEIVqvONITqOXO\r\n+q5Vz8yHhIWEBUGzHozoVNdQto0xCI6mq2hSFPIEXFTQGNKL2gawnVZWJWQW\r\nss1k7RJm72ogyPDkQtx37odzZ5q+dMyr/83lwbdvByf8XzyvzWTX8cwaqYLZ\r\nr1UsQhco+bgDQ8Qvnsym6kA0BBA/R0mti3FJ3T3xj+51xD7sLON7+R2ss1XR\r\n+HFHEQofwPA7odtlKTu14q7rbxa/8GSGYyJ0UPGWX46ZKyotuCoj3OJCOjlk\r\n/OZcTKj0DCpNRF0IiyV+Okw5TAm1WzKfDD34s7AFh2xDkEltfSHLU9nHyvem\r\naBl+wksAIlNwdgsAQtRd4jh2D1Lvw0zRysCnKDrrB3Kkb3ULvuf42kDRSobc\r\nMjeLW6Vnk1M70r2jDLqKBPcGno5TqH84SCMOs5vv2wM7ILC4KLjmlZojYHrM\r\nOkoxoDi0kwiEfJfnbZaClWZzbNlsDnOIWlrwdHF1TGqCxxgCniv9TvKmL8Tg\r\nPgJmVLJ4LDWAp39fO77HKHQsgYJvZNf03ERX3Cr8iqUQDWfd+5RlT3GAH9C/\r\n1bas4xQMoYQpZltMuY/IpyGM1chONeOUe/5s/a6031CXUb51uuBsiRf8hR8B\r\nh7TJGKZaZ4bMcJ9kTBLqJst0MgobCOql3Tk=\r\n=Ougw\r\n-----END PGP SIGNATURE-----\r\n","size":856931,"noattachment":false,"key":"/xrpl/-/xrpl-2.2.2.tgz"},"main":"dist/npm/","types":"dist/npm/index.d.ts","unpkg":"build/xrpl-latest-min.js","browser":{"ws":"./dist/npm/client/WSWrapper.js"},"engines":{"node":">=10.13.0"},"gitHead":"6d3b2d3a9e2ebcf68cd90cdb10d4e4a7c9d73004","scripts":{"lint":"eslint . --ext .ts --max-warnings 0","perf":"./scripts/perf_test.sh","test":"nyc mocha --config=test/.mocharc.json --exit","build":"run-s build:lib build:snippets build:web","clean":"rm -rf dist","watch":"run-s build:lib --watch","docgen":"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":"TS_NODE_PROJECT=src/tsconfig.json mocha --config=test/.mocharc.json --watch --reporter dot","test:browser":"npm run build:browserTests && TS_NODE_PROJECT=tsconfig.build.json nyc mocha ./test/browser/*.ts","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 nyc mocha ./test/integration/**/*.ts ./test/integration/*.ts","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@v14.17.3+x64 (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":"14.17.3","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.4.0","ripple-address-codec":"^4.2.4"},"_hasShrinkwrap":false,"devDependencies":{"xrpl-local":"file:./src"},"_npmOperationalInternal":{"tmp":"tmp/xrpl_2.2.2_1651522941026_0.5346814620482501","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":1651522941242,"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":1651522941242,"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"}}