{"name":"xrpl","version":"1.9.3","license":"ISC","_id":"xrpl@1.9.3","dist":{"shasum":"d19543f1895ca28cc36dc3a4faa47500795d4834","tarball":"http://registry-npm.ywwl.com/xrpl/download/xrpl-1.9.3.tgz","fileCount":615,"integrity":"sha512-QjzV8OfTkM19EDRxOC/kCz7x7mJBmwhKaQEz1saZ3LI8MUw5rYTxjwIiK6jd3Y/M80endC6OIaWP03Wqfoe/KA==","signatures":[{"sig":"MEUCIQC8w4pRk/pLHWIS/jUQVwrnSsfTK8xTPJupBBKqZ3IV0QIgTcFdJttjEsoim9MRILEKy66NdzcUG//xV/3L+ZgE7Jg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4286126,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgW5IkCRA9TVsSAnZWagAAh8YP/3wGIc9PFnu05hue7CtG\ntDcHGKc9uIlSy12SGkS3qJ5GJFvlErv+nPKzdcnV71InJlBKFHpqevtPoDsu\n3NcPNL2GfQUvUh2fIWm9SCv5MrdTk+yoD4CzNXYEWYikMDDmTqHaEIA1lgBg\nX4YSpp1tr9vrL85O4tF8AIoD2g48YUNZg4GuyfZMvE7o0oyWfJgaIJ0cjrAN\nhUZZscTX9UVmo/Tk2A2rCKIckZp6Fhebj3V94H5OreVL+7+lLR4dWFUST57x\nHB8hFRMe3rsmwHKCv40+yoS2ZNpK4sUu6bhp71wwNu7HlAVDLFw8KDB2MmSV\nEqB0jrqbpcV3UPJPk5EtkclTzXBsqy7a9wIluD0aZlggS1CF1hDV3/z2nVO/\nALlVAZoF1elSXNCuFp//BoGI+LsvIu5L8nJ0PV5xZq+O7YGG83E6KD6eeyBJ\nhU0rd7BHtACfmkRrESZWRZB+xoabBKoBJQKS14HcZFef1Rqb6iguUKmOf0J1\nA8ZsL8TtD+4c0IhYW1vPUUclWXDHfLmbHg9poCNY0dDf4e9OWAQE7/ii4Mdk\nWthCN370nQUorocB9+qo3ZLIAOT4GoB5ru0GR+/4+nHDMHdJXYyV8tN9akzh\n+t9w9i0biG+GWPHvc9TeJRrJWEOSnx77RvU/ZTmft3z3PqkjXCUD66o8U2ON\nQHHf\r\n=M8I8\r\n-----END PGP SIGNATURE-----\r\n","size":922431,"noattachment":false,"key":"/xrpl/-/xrpl-1.9.3.tgz"},"main":"dist/npm/","types":"dist/npm/index.d.ts","unpkg":"build/ripple-latest-min.js","browser":{"ws":"./dist/npm/common/wswrapper.js","https-proxy-agent":false},"engines":{"node":">=10.13.0","yarn":"^1.15.2"},"scripts":{"lint":"eslint 'src/**/*.ts' 'test/*-test.{ts,js}'","perf":"./scripts/perf_test.sh","test":"TS_NODE_PROJECT=src/tsconfig.json nyc mocha --exit","build":"yarn build:schemas && yarn build:lib && yarn build:web","clean":"rm -rf dist/npm","watch":"yarn build:lib --watch","docgen":"node --harmony scripts/build_docs.js","doctoc":"doctoc docs/index.md --title '# RippleAPI Reference' --github --maxlevel 2","format":"prettier --write '{src,test}/**/*.ts'","analyze":"yarn build:web --analyze","build:lib":"tsc --build","build:web":"webpack","prepublish":"yarn clean && yarn build","test:watch":"TS_NODE_PROJECT=src/tsconfig.json mocha --watch --reporter dot","build:schemas":"mkdir -p dist/npm/common && cp -r src/common/schemas dist/npm/common/","start:snippet":"npm run compile:snippets && node ./snippets/dist/start.js","inspect:snippet":"npm run compile:snippets && node inspect ./snippets/dist/start.js","compile:snippets":"tsc -p snippets/tsconfig.json"},"_npmUser":{"name":"intelliot","email":"github.public@intelliot.com"},"jsdelivr":"build/ripple-latest-min.js","repository":{"url":"git://github.com/ripple/xrpl.js.git","type":"git"},"description":"A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser","directories":{},"licenseText":"ISC License\n\nCopyright (c) 2012-2015 Ripple Labs Inc.\n\nPermission to use, copy, modify, and distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\nOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n","resolutions":{"elliptic":"^6.5.4"},"dependencies":{"ws":"^7.2.0","lodash":"^4.17.4","@types/ws":"^7.2.0","jsonschema":"1.2.2","bignumber.js":"^9.0.0","@types/lodash":"^4.14.136","lodash.isequal":"^4.5.0","ripple-keypairs":"^1.0.3","https-proxy-agent":"^5.0.0","ripple-binary-codec":"^1.1.2","ripple-address-codec":"^4.1.1","ripple-lib-transactionparser":"0.8.2"},"_hasShrinkwrap":false,"devDependencies":{"ejs":"^3.0.1","nyc":"^15","url":"^0.11.0","mocha":"^7","assert":"^2.0.0","buffer":"^6.0.2","doctoc":"^2.0.0","eslint":"^6.5.1","process":"^0.11.10","ts-node":"^9.1.1","webpack":"^5.6.0","prettier":"^2.0.5","typescript":"^3.7.5","@types/node":"^14.0.1","assert-diff":"^3.0.0","webpack-cli":"^4.2.0","@types/mocha":"^8.2.1","eventemitter2":"^6.0.0","crypto-browserify":"^3.12.0","stream-browserify":"^3.0.0","webpack-bundle-analyzer":"^4.1.0","@typescript-eslint/parser":"^2.27.0","json-schema-to-markdown-table":"^0.4.0","@typescript-eslint/eslint-plugin":"^2.3.3"},"_npmOperationalInternal":{"tmp":"tmp/xrpl_1.9.3_1616613923777_0.2932382198755239","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":1616613923964,"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":1616613923964,"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"}}