{"bugs":{"url":"https://github.com/filecoin-shipyard/filecoin.js/issues"},"dist":{"shasum":"a8f412a0c4e3ca91166c86334910d5f2ee4659e5","tarball":"https://registry.npmjs.org/filecoin.js/-/filecoin.js-1.0.0-beta.1.tgz","fileCount":257,"integrity":"sha512-qN8Ugg8gzSw4TvySDw/Yh/UaCPBJeJ+RG+dXQDy0DDEQToa2iY9iqURhFuptFFV/+Wvl84ikTwzClzvmXDqqhQ==","signatures":[{"sig":"MEUCIQCFA+yes6npqGUDQkYceVtTGRu2mDsFW4/ms9mo72i8wAIgJU9HGgxFqB0AsCrjpXFWV6mHYDVhpP0FwICZNgzTfNk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13317477,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkU7ACRA9TVsSAnZWagAAMkgQAKC6ocplvZ3/MtokUlar\nE6PI/p67pHvMOfqLnXCpiCp7ItoVcrDV29bA/AHpLJMPKRhG4+4nl5xR1NLl\nKlLw9nnxH62Bl6sDY9cS+673u8uUmulSTjWbAJlM+q76bvIU9fE3LCKEhL2j\nLwhD6WAY4fTPBuS6+RdDx2FEmWR51Vd4VdkC2fFpk6yIdWswmShuJLJhOAW0\ndyHQNFsZZIfCBeXZHzEjQAwkKe5oBXu2gjtOO8a29+F727Y5RFpVQn6VxQp6\nE/KVCb/RQ1tu23+Qe7FTdhaP1UdPOQRFt7MZ++QZhzSAiO30EVTycVH2jQK0\nx00XhVDlKiByYfKWtbwTiWNKXEYCA+66SVXm8EDNwkQYamLNv5S2UDYE7Czx\n3w3mPa5iMl4B9wMVt/ZEL6C+IX3l4LXqOBZ0IoXiiyn06vQMxGptyN95f/Dn\njKPHft7Ay3CQ0G8ZwqlIO1xj5UXhHMAeBlolWcu0oF8E+Lp1V49U/v7AiJHP\nLUgpYenMEeioyqEltdfWyTSDbXB1i3lYy9EWfkwz1/iVMBIjl/DY5Aw7iC5m\ne5J03tZ71TC4kekB8HkdYwpyUEymGXT9oaM2HiiJgd9+REEi6aLe1Eh5w+dg\np6VH6lE6VtzWZImV0OwKy0QhTevecPuer30tIAf25lf7O89TpCyCT0rInBNo\nOXHr\r\n=eoGZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"builds/dist/index.js","name":"filecoin.js","types":"builds/dist/index.d.ts","author":"","module":"builds/dist-esm/index.js","readme":"A JavaScript (and TypeScript) library for interacting with the [Filecoin's](https://filecoin.io) [Lotus](https://github.com/filecoin-project/lotus) node, with support for external signers.\n\n:warning: The library is currently in ALPHA: things will not work or work incorectly, will break and the API will change! :warning:\n\n## Installing\n\nNode:\n\n```bash\nnpm install --save filecoin.js\n```\n\nBrowser:\n\n```html\n<script type=\"text/javascript\" src=\"https://unpkg.com/filecoin.js\"></script>\n<!-- window.FilecoinJs object contains the library exports -->\n```\n## Using\n\nNode JavaScript/TypeScript:\n\n```javascript\nimport { HttpJsonRpcConnector, MnemonicWalletProvider } from 'filecoin.js';\n\n(async () => {\n\n  const connector = new HttpJsonRpcConnector({ url: __LOTUS_RPC_ENDPOINT__, token: __LOTUS_AUTH_TOKEN__ });\n\n  const hdWalletMnemonic = 'equip ... young';\n  const hdWalletPassword = '...';\n  const hdDerivationPath = `m/44'/461'/0'/0/0`;\n\n  const walletProvider = new MnemonicWalletProvider(\n    connector,\n    hdWalletMnemonic,\n    hdWalletPassword,\n    hdDerivationPath\n  );\n\n  const myAddress = await walletProvider.getDefaultAccount();\n  console.log(myAddress);\n  // f1zx43cf6qb6rd...\n\n})().then().catch();\n```\n\nBrowser:\n\n```html\n<script type=\"text/javascript\" src=\"https://unpkg.com/filecoin.js\"></script>\n<script type=\"text/javascript\">\n(async () => {\n\n  const connector = new FilecoinJs.HttpJsonRpcConnector({ url: __LOTUS_RPC_ENDPOINT__, token: __LOTUS_AUTH_TOKEN__ });\n\n  const hdWalletMnemonic = 'equip ... young';\n  const hdWalletPassword = async () => await window.prompt(),;\n  const hdDerivationPath = `m/44'/461'/0'/0/0`;\n\n  const walletProvider = new FilecoinJs.MnemonicWalletProvider(\n    connector,\n    hdWalletMnemonic,\n    hdWalletPassword,\n    hdDerivationPath\n  );\n\n  const myAddress = await walletProvider.getDefaultAccount();\n  console.log(myAddress);\n  // f1zx43cf6qb6rd...\n\n})().then().catch();\n</script>\n```\n\n## Examples\n\nSending some FIL to `someAddress`:\n\n```javascript\n    const message = await walletProvider.createMessage({\n      From: myAddress,\n      To: someAddress,\n      Value: new BigNumber(42),\n    });\n\n    const msgCid = await walletProvider.sendSignedMessage(\n      await walletProvider.signMessage(message)\n    );\n```\n\nCheck out the [tests](./tests/) or [examples](./documentation/examples) folders for more usage examples.\n\n## Documentation\n\nAs with the rest of the library, the documentation is WIP. As it evolves the [documentation site](http://docs.filecoinjs.surge.sh/) will be updated.\n\n## Contributing\n\nFeel free to join in. All welcome. [Open an issue!](https://github.com/Digital-MOB-Filecoin/filecoin.js/issues)\n\n## License\n\nDual-licensed under [MIT](./LICENSE-MIT) + [Apache 2.0](./LICENSE-APACHE)\n","browser":"builds/bundle/filecoin.js","gitHead":"3a8311f15e7e042464ab39afb8b3e0b28427c994","license":"(Apache-2.0 AND MIT)","scripts":{"doc":"node build-tools/make-docs.js","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","test":"npm run _build_tests && npm run _test-node","build":"tsc && tsc -m es6 --outDir builds/dist-esm","bundle":"webpack","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","prebuild":"rimraf builds/dist builds/dist-esm builds/dist-tests builds/examples","prebundle":"rimraf builds/bundle","_test-node":"mocha --no-colors --reporter ./tests/reporter ./builds/dist-tests/tests/src/test-*.js","serve:local":"npx serve --config serve.json --cors -l 1337","_build_tests":"npm run prebuild && tsc --project tsconfig.tests.json","_bundle-tests":"webpack --config webpack.tests.config.js","build:examples":"rimraf builds/examples && mkdirp builds/examples/ && cp -r examples/* builds/examples && cp -r builds/bundle/* builds/examples","bundle:analyze":"npm run bundle:analyze:report && webpack-bundle-analyzer stats.json","test-browser-umd":"npm run _build_tests && npm run _bundle-tests && npm run _test-browser-umd","_test-browser-umd":"karma start --single-run --browsers HeadlessLittleLiar karma-umd.conf.js","bundle:analyze:report":"webpack --profile --json > stats.json"},"_npmUser":{"name":"alexandruma","email":"alexandrumatei3693@gmail.com"},"homepage":"https://github.com/filecoin-shipyard/filecoin.js#readme","repository":{"url":"git+https://github.com/filecoin-shipyard/filecoin.js.git","type":"git"},"_npmVersion":"6.14.4","description":"A JavaScript/TypeScript client library for Filecoin.io's Lotus","directories":{},"jsnext:main":"builds/dist-esm/index.js","maintainers":[{"name":"popra","email":"razvan.pop@gmail.com"},{"name":"smooth-operator","email":"bara.catalin@gmail.com"},{"name":"alexandruma","email":"alexandrumatei3693@gmail.com"}],"_nodeVersion":"10.21.0","dependencies":{"ws":"^7.3.1","events":"^3.2.0","btoa-lite":"^1.0.0","tweetnacl":"^1.0.3","websocket":"^1.0.31","node-fetch":"^2.6.0","bitcore-lib":"^8.22.2","bignumber.js":"^9.0.0","scrypt-async":"^2.0.1","isomorphic-ws":"^4.0.1","rpc-websockets":"^5.3.1","tweetnacl-util":"^0.15.1","bitcore-mnemonic":"^8.22.2","@nodefactory/filsnap-types":"^0.2.1","@nodefactory/filsnap-adapter":"^0.2.1","@ledgerhq/hw-transport-webusb":"^5.22.0","@zondax/filecoin-signing-tools":"^0.7.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"karma":"5.1.1","mocha":"^8.1.1","serve":"^11.3.2","dotenv":"^8.2.0","eslint":"7.7.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^8.10.2","webpack":"^4.44.1","fs-extra":"^9.0.1","prettier":"^2.0.5","@types/ws":"^7.2.6","supertest":"^4.0.2","ts-loader":"^8.0.2","typescript":"^3.9.7","@types/node":"^12.7.4","karma-mocha":"2.0.1","webpack-cli":"^3.3.12","@types/mocha":"^8.0.2","@types/assert":"^1.4.1","@types/dotenv":"^8.2.0","tsconfig-paths":"^3.9.0","@types/btoa-lite":"^1.0.0","@types/supertest":"^2.0.8","@types/websocket":"^1.0.1","semantic-release":"^17.2.1","@types/node-fetch":"^2.5.7","@types/bitcore-lib":"^0.15.2","@types/scrypt-async":"^1.3.1","eslint-plugin-tsdoc":"^0.2.6","eslint-plugin-import":"^2.20.1","@semantic-release/git":"^9.0.0","@semantic-release/npm":"^7.0.6","karma-chrome-launcher":"3.1.0","eslint-config-prettier":"^6.10.0","webpack-bundle-analyzer":"^3.8.0","@microsoft/api-extractor":"^7.9.2","@semantic-release/github":"^7.1.1","@microsoft/api-documenter":"^7.8.21","@typescript-eslint/parser":"3.9.0","@semantic-release/changelog":"^5.0.1","@typescript-eslint/eslint-plugin":"3.9.0","@semantic-release/commit-analyzer":"^8.0.1","@types/ledgerhq__hw-transport-webusb":"^4.70.0","@semantic-release/release-notes-generator":"^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/filecoin.js_1.0.0-beta.1_1603358399675_0.1744868282758314","host":"s3://npm-registry-packages"},"_id":"filecoin.js@1.0.0-beta.1","version":"1.0.0-beta.1"}