{"_id":"@starport/client-js","_rev":"50-f755fef6fc621e7093dc17d73bd6aeb3","name":"@starport/client-js","dist-tags":{"next":"0.1.57-beta.0","latest":"0.1.58"},"versions":{"0.1.12":{"name":"@starport/client-js","version":"0.1.12","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.12","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"e651fd35bef6c7321e5cc1445e67a577354b2846","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.12.tgz","fileCount":9,"integrity":"sha512-wvRH0gXNMOCSSMGXqhiR34xERWLWV0eD2MQn0niGVyw4acyDXMhWTPoOL9FhxJ5QLfdHtmpJ+Pv1B/KHAOIuVg==","signatures":[{"sig":"MEQCICEOP6YWvujsFHTbFIzEHv8TCYFvbCYlnHSa/OSkwTJ6AiAp7Di9X2R6H5fNQ+xooVXlz7pP9CfrAroYBQI2Fr/9Uw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32438,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNBM/CRA9TVsSAnZWagAAjloQAIj3R0QtPyxr8Sk78mUo\n7PMgZov3XNNCGrpmE5jnH+1eOk1A60FU24FA2IdwEExaq46DmInSookwKToY\n6C0BV5PeZEL0wJku+WqxHXGefjp8QnoxGaVzi7auvEKTrNo+E6qYTaZasUZ0\nEwgrFYLuP7r5zHq/DPeyZ/kTz7RCs4VzOKiA2miGj+FRtwio8W11eUxpRUUn\njf6a6C6vowmNk2QF7rZfkAR6JVWXH7FG4D26Cds58DShY49+9QbOQFZ9CzL0\nGeyAR/hNrYhW/5B7D3oCN7PM4x7me6Bi64rsSNOubnf8OP9y+zPYGcRo54bU\ndQe8SFDy2MB19mIlQLfhCcow5rKshZqU6lRPOW1Wdvng7NBG7Swwur2ErK8Q\n3dNifXL3t6PH6D3acMwIdLAXIcwhn7KVHlLYwNAPI6vPr4gFGTU+YaB9KbbW\nxMDBRJO82ol4RZ9Xry9oFb8LgZu4qKf60OBR8IhNleQE32nu/eI7a7WP2aVi\nDU2DDe7hbnJevhSvrvSIOqYb9AZQAT/CFSzCZh/xR3cgdYUc2QNDqipoFJMb\nOuFrN/+DLleGaiTP8DOTXhcopr7rZFRq73/sbLWjmB3KlxAVG4hOLLPQaEh8\nS0LYZPlnCdPhQp/fFzSyM/O3PdIeJnJj3L27OpxQAlwDFx89CI6y98jBZHV9\nq9IU\r\n=SXfo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\"","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"6.14.11","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.15.5","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.0-alpha.25","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.20.0","@babel/cli":"^7.12.16","typescript":"^4.1.5","@babel/core":"^7.12.16","@types/node":">=12.0.0 < 13","@types/axios":"^0.14.0","babel-loader":"^8.2.2","@babel/preset-env":"^7.12.16","@cosmjs/proto-signing":"^0.24.0-alpha.25","@babel/preset-typescript":"^7.12.16","@typescript-eslint/parser":"^4.15.1","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.15.1","@babel/plugin-proposal-class-properties":"^7.12.13"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.12_1614025534946_0.24974432495941712","host":"s3://npm-registry-packages"}},"0.1.13":{"name":"@starport/client-js","version":"0.1.13","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.13","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"1f4084fe1964a049deca95f39b2d7fc04eec57b6","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.13.tgz","fileCount":9,"integrity":"sha512-Y7kdmLsQivY0td1CURO0ov2c0zwdb9qHD1gjhgHbIHo4jNc+a2Hf3h0LRx4VtF+Ye/3T1gdu+pm/LZaqF5XDaw==","signatures":[{"sig":"MEYCIQC2PCuY2vV4OKLef7LzHTEE5MvfsjdZLDqi5aX7LRBiVgIhANi/gfTI27s/U1g7zgcHkjnU8eEMiXu0UKtCMZHDwSR3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38346,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNLbhCRA9TVsSAnZWagAARB4P/RcTkF0gsMNkjAk8GA+s\nSQnhpTFVKcMguPLAEe6pQiPYk2tEzEg3UFFWTw15DvX2wKJnEJtWmDyaTFFL\nz3a3NyVo4p0Az1JUG03b4RuDcA9XxGZlQv+KwI17QMIEuviKFjhKN8MsWWmD\nng1v4jhZ2O1yWFIAX1Ui35JYK30WEmWfnHOVKypXbXxcSEkr+K3Oq6lYmdDy\nAZiN14LHM7MLeqYkA3IEGA/3w5EZoBmrZeOo8pc7O2oliXp3mJPHGyc6O1es\n62Asb2mJICtwV+JW4I0uktlC31GuhMfYXaS90Fxur4kJKc2iNMVmBftJPv0e\nrWbj0jjaysNjogbRc7ykH+K+A2rqcNKVKPIj2021D8eEmxhoBexyhfPP4Orw\nwOPwyBsN7RR9P7hhkA5uNrWyCaamyQ6PLyKhbxAa4wAd3vRGdlfObRT3NXjz\noHr+yLx3/An2Ts4LCDaD8ckmoWINp/nBmemYczltDOlMXB+WRkIGY6UoSlMj\nSVmameTJ+jcDGJ2QJzXmFrmBydsA05Nn1addDwnnPQqH6yDDlnpQNdTIMVRy\n9dCiMGaubCLh5SXg5Ej7EUY/dumIA2EWm6UBSgOfsDdS61MSL1HabLcXcrxh\n+biTFH/HWYD9VPJ3mJnRvsUPVt6qtHifTI4spJH9tRTSyEF1k5GKiI8KngBj\nSLfx\r\n=TQ5v\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\"","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"6.14.11","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.15.5","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.0-alpha.25","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.20.0","@babel/cli":"^7.12.16","typescript":"^4.1.5","@babel/core":"^7.12.16","@types/node":">=12.0.0 < 13","@types/axios":"^0.14.0","babel-loader":"^8.2.2","@babel/preset-env":"^7.12.16","@cosmjs/proto-signing":"^0.24.0-alpha.25","@babel/preset-typescript":"^7.12.16","@typescript-eslint/parser":"^4.15.1","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.15.1","@babel/plugin-proposal-class-properties":"^7.12.13"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.13_1614067425243_0.844303435543786","host":"s3://npm-registry-packages"}},"0.1.14":{"name":"@starport/client-js","version":"0.1.14","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.14","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"9f1a45c6d39d5b4d600ee847d00ecd14e0c072df","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.14.tgz","fileCount":9,"integrity":"sha512-ks5fcCwDpcRRMZF4p5sYRYggv4tc7aH4a12LWU92bASjzQizTWssY0Scm9zHMHT9E5HmuLFVmCFC6ZCWFZK7FQ==","signatures":[{"sig":"MEUCIQCmjCQ1jn+WnWfnieb5C9pSknbAbm9T37v0UwLRsPpbagIgQEutriuQddz4CrH3E5nSjvA7SK/bJVUw4k4aQF5MBJM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38916,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNRRYCRA9TVsSAnZWagAAW8UQAIpzZrCHE6vOVnZzwps3\nkjIYkaGqsYvrxb1Bl40He6dNT6BRN+k00IKttu/60IUec0LRuF7RuXjERwUb\nOsB0ZFJfJwXCNusmggNOX0uUqSojuNd25lbcjVEH1lWv3b2YUJ8grKie3sTE\nTzeXrtHix1906rnBxyNfB1R7E2UCqrTY8rnMMuNdiH2hAGAIFEYHrPToTEmx\nUWUARcQsGsodIP4+MTsMYoj6/LNyixLhKZ/XhOooR6+5Oq0yOvEteZ2T4KKe\nzqCaabNKmonX9aEA0vpqGTxN2bv7r3ChqdB3WcZIu6PBN1z6/uIG5LzVDAe8\nzLjX6DjaqPMuXZ0h4VUZSUYBQxr1ZsWQEFD+VuQu49x328UZZbjLbK+mTl+x\n+Oq/VwxH1zVnYiGnwdun+wpuizpRe4LivpEkX4DL/tEN4mZVcY/xQWqSiRhW\nL/yHiySITBIyczPRdPcR8meukV8WeFS21a9wbJsTXnNTDiUu0E7AnSNzrMMg\nCL8J6oPqayk5jG+Nclo0vCFiGyInT0TXIylFW6iOMr/d7pTHZzPwFiQMuNDB\n+v4k+5s/wCoxQ/mRPevyxBaFamgP8vr5/PhUnn1CDjOYPSn1DnVtljN+Y6Kc\nO3Eo9zQxuTaOqSfnkCdoOszLsv4y87CDN21TsQxE94Lem/unGCBviDEcldbE\nI3iJ\r\n=UBl6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\"","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"6.14.4","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.13.1","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.0-alpha.25","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.20.0","@babel/cli":"^7.12.16","typescript":"^4.1.5","@babel/core":"^7.12.16","@types/node":">=12.0.0 < 13","@types/axios":"^0.14.0","babel-loader":"^8.2.2","@babel/preset-env":"^7.12.16","@cosmjs/proto-signing":"^0.24.0-alpha.25","@babel/preset-typescript":"^7.12.16","@typescript-eslint/parser":"^4.15.1","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.15.1","@babel/plugin-proposal-class-properties":"^7.12.13"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.14_1614091351607_0.00985126644741574","host":"s3://npm-registry-packages"}},"0.1.22":{"name":"@starport/client-js","version":"0.1.22","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.22","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"f1c79535ad531fcb2c8ed72e4d17fc564ed91eba","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.22.tgz","fileCount":14,"integrity":"sha512-Vq9TvXcPGwbqx/SPV4PZPkDxlxTvQxtGYHAwUqRGrf7ZGR1IaVJbB6kPWw45EYPpSpodiyXoDzRS2hOIUZajPQ==","signatures":[{"sig":"MEYCIQDY1eoMRRL2WXKB9QkQguzNx/3DlZTHvjJ8q9FFHZYYfQIhAONoUed6YjwCG+ALINQ6KQO4rmRhH8+F/RjJlL4b33cC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52932,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRgGeCRA9TVsSAnZWagAACKEQAKA87hqs/vBY3TbcmLD0\nH5nEslXwOFIH3z9AXiO0rAVdLNWijG5vGktRAvcx+9O8tN57miVdjX44UmA/\nbnvcgTDvZn3Qucz8S1xEM56l9onDzvY4zbWTlAeuxOhfJxNbIM8tvoLoFMo5\nkyw+Uu16t/9FZSF0uTWghn/SnOVYI6uPm2jqAuJU118z88Wm1DL7yCj4ecYg\n5MXiCenDPuooLr+EnAroltfhix093Uqs03lI1nAwJiAj3wgjdSi+YtxOE0ib\n4Dt4FCcVGQtu9G65pRS6QTTLLZOY65ZRUBhV5s2AyAGWWuFXEZDRlpe3KWO6\nKO3/XRUMf0dh9L60REVJwL+zK/+vXmBnpia3SJDXF02z6msbfU67IyDJSqJE\np/qbSHcxMGjq3j1hNXUSs2hreZ27A2StdqnEGXhEoGQVOEyxW07ZqO0lYlVO\nTArXb4kurL/jdY6RFZ15hXK6cysFEVZ0aagcVdV51fJrnUycWI3PLVPGRs7u\nimPPkTy3s8MjKCcdypY7V5sYPBDRHwjTrngyZTOxPSd/bMbRxInypKwTvK+m\nMd7XyWNZbILRycqRXHis09iPq+BbGom+LU8FPiHp2pg5hzFohTNqcl0q49hW\nwswhxMM0u3smtZhgcQxG0ycuUAAHjydIjpBjAvxC9UJZRPX3asRX8hJWKv4R\nJjOc\r\n=GmTe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"6.14.11","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.0","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.0-alpha.26","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.21.0","prettier":"^2.2.1","@babel/cli":"^7.13.0","typescript":"^4.2.3","@babel/core":"^7.13.8","@types/node":">=12.0.0 < 13","@types/axios":"^0.14.0","babel-loader":"^8.2.2","@babel/preset-env":"^7.13.9","@cosmjs/proto-signing":"^0.24.0-alpha.26","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.16.1","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.16.1","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.22_1615200670196_0.8228163080404369","host":"s3://npm-registry-packages"}},"0.1.25":{"name":"@starport/client-js","version":"0.1.25","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.25","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"bc5f7904da5d519035a4fffc9de093b194c50af4","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.25.tgz","fileCount":14,"integrity":"sha512-fTEEVsd/pdHC8pxmSr1dy9UnxMb8pH91N273y5h5zQM2XFDchTi3l+S3gZBPv2nui8W7TsmbCkTQ93825BallQ==","signatures":[{"sig":"MEYCIQDn+eK6Iau83puHX9EBOwZaZj58FCfZaxW68JBriyDiuAIhAOhfWBVYaTSXgZorXHTQ1/Djy0Iw3Uh3H0f8/XE0zan/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgS2mpCRA9TVsSAnZWagAAfnkP/joitv/+nYZsS1VvOZ+z\n6ID9C5NMb/Wgqgurmyp27GVOmzSvMlls6wXxnshJk1DakV7SXYoAvg+m6sQt\nTU0B2GQDOUoJ025VlZHqne1hRypEwpcctXwjmQLhDsBZ9gnEonZ6P/5A1ua/\nt0Qs7V2fmpBb0xVqwi+/3Bnh5JLgAJtOqsAYC9G44b+drkLEhy/xV/H13jvj\nYwJEm9k8SI1FLZzDNH8K5IuWbXPtYSNZR+jvqMjIVuQaldhXc5rk20YpBVcQ\nwm/s8KKMJ+Ou87pJiUCB+cSMzxa67EvAJ7mAcDI3m5Ox674kUU2oI+xA1a50\ncIm3XHAyV9XkhTxgzBdwws58vxgzeZKd/TY30X1RDNvFwlyDGCrGu4ZzP+bE\nTDYySmk+9C/VYI+Nn//UzphNnMz1JmzlnckEUTnZ4xqR7YWYb3fiwd277Kyc\nCsZLm4Mlgt68ZdeH4Yoj61esvUmzDOLwpiZlu+T/J3UhEw77BLCjDP+Af/pV\nuUHQAtksLAK06gsXwqVNYxWPRdyYqaF9FDjbvhkTWYCUvATc6z7eSGg0fKVD\nhIibdNKfaDBa8ae9TLaMHK56lIKN8VJsHWyOHbI9IvgNMe+gn2dg7fuNqQUA\n5O7Ndb9ltpLU0a7JVvkL4Ot2/DEczru0VKQvCZnJDTu40cx3alBh2wAEwrSZ\nR1fU\r\n=tyog\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"6.14.4","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.13.1","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.0","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.21.0","prettier":"^2.2.1","@babel/cli":"^7.13.10","typescript":"^4.2.3","@babel/core":"^7.13.10","@types/node":"^12.20.5","@types/axios":"^0.14.0","babel-loader":"^8.2.2","@babel/preset-env":"^7.13.10","@cosmjs/proto-signing":"^0.24.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.17.0","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.17.0","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.25_1615554984830_0.33228160806005724","host":"s3://npm-registry-packages"}},"0.1.26":{"name":"@starport/client-js","version":"0.1.26","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.26","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"997acd9e3387dfa8cfcaff1ede5f63eda0664955","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.26.tgz","fileCount":14,"integrity":"sha512-8IDoz7XYGIcVcJTj6ueVmB7DMhapGqS2Hop71zGnjSWsJi2T6qu0w7BobUEKUlDuBs71FOI1hfa0IaIIjaFc1Q==","signatures":[{"sig":"MEUCICRuujlgsOWNRfHOB+NPfS6qi9LZDGkKCpy8WYZf5ObWAiEAwja7DDzt+3QgVb2kXTC9C6I9q+sDqfyotj9M41iKGTo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52912,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgT7P8CRA9TVsSAnZWagAACx8P/3hc7zxumwwIxcafaXIg\n+MbWmChpkpFMAANrVj0nwZp20ff8WN/t6CoZe7hERwf2EPxr7PyWofXWU5o5\nzbSe7I9mA4Oox9XGKKu6GXymu/OSzK2WKXQNFEjv/5xUB5zZTJJ/qI+6Azbd\n/p1GNkgn+cjcspWfqB5HZ9LddMQQXeFaFOrVRVlnuvxtgWtTVrjGotuSzP9h\nIgemgq63T21s7xiKploMLyBH7VJtdfqTawIJirJ5hLmpo5SvbHb2Dlzp8520\n5Ul/8SlJ3C0j7ieCIuCxH6uIlTNfwgHwb8MguOo/T4P6E2CCRyrke7nR0fu3\nUByf7tUYh6FqSKE1nZ6T02cL+EkjwL8/mJ//4/2F2WfqJnn2f2nuJ+UYSniu\nFrEuSif5xXcu6SRviKyDF3RZwifkmu68O2knyVHh3ZNZdpUl0HeLslefj4I4\nXrGtUu4xtRAH8lhKM91rFyyMJL46f3PFskf7AVt8AopvRUPkRWeLVOEMkdxV\nywpel4aWqTSmvr9pQ91bs4IhC6xQIponKdMt/KN7wC+sx1RPfhP2W3fZ7aB0\nYd0eRm+SiiAskeAQGKkt8yy9ln8MR74SS9oHG4gJfjHLxASYBBBCex2VKUQW\nJZpvHOLZcY0rZoC/6GUkOWn2tTWYpuLK5dlN+qh21SIvFzumHTgYd6SHBTO9\ndel+\r\n=7xl7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"6.13.6","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.15.4","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.0","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.21.0","prettier":"^2.2.1","@babel/cli":"^7.13.10","typescript":"^4.2.3","@babel/core":"^7.13.10","@types/node":"^12.20.5","@types/axios":"^0.14.0","babel-loader":"^8.2.2","@babel/preset-env":"^7.13.10","@cosmjs/proto-signing":"^0.24.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.17.0","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.17.0","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.26_1615836156361_0.685529860440397","host":"s3://npm-registry-packages"}},"0.1.27":{"name":"@starport/client-js","version":"0.1.27","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.27","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"2674d65421275cf5bc38b96b1467eedef09206c0","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.27.tgz","fileCount":14,"integrity":"sha512-hAfuOPxPdFafOczFwVKIXGwo3nwJoRyBLGIkX2uyPjC8Jl6533DRz0lcNIksTpwIdvYj0X8KSUPMVNHhrtgV8A==","signatures":[{"sig":"MEQCIHuL3qhiV+EjE9HAa+cLyA3P/8QdkpafnrjQ81e8oPSgAiBUhYaLUAAlXR7Cahab3KURELZUhk9cnERDXiFLEuJ2QA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57004,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYeYKCRA9TVsSAnZWagAA/7EP/3r9JEKuUQONI69EGUSh\nVo7cUFiuSjH3EK2YM0wErq3hm5QrMbCR5jRQQQzX/DUm3A3BSkVNx9i2QaoB\nGOizAWt8rr7tAQ6YOQtwetoz1M2LBikp+NsNpAPmMNUf61kKohriaIdB6q3A\nJgw0dEVmYIamJKXQuuGZycfNZhPXd7s9C7Of9vs5l+Pva40tY7XmJtwZaDr7\npZ8PQj7Xity20zN9fh1KNlhkJNjvLaxoG70AZLZS/wFl0g67bEXJtkrX8GhC\ncrxN8gSMu8IjsouhGaFfU9QiQAjZbwrKABbewVF1ezSY/fRmpb6fnNuQtTOB\njTKHfbQANffEhpogOpzinnwbioBLh/nLeYAbZEXnavvi9LFny8L+Vhn5CcvF\nb7CgFKYeZhBJMf6FcFgV+SIc9RZmo04Le+v7zq8TU2Z38q8tWHbiMhp38Ghy\n8f9Gtze67uCm9+CFf2JnIDaLyFXlN+qlgNFV8N79WKA3yZYmIS3cnpdlR0pA\nahNKTKCM8ZUWV8jD/3HrpKC0FSTpy6V8GVoHEPrJgwmXfVT9AzYJfWHew32l\n3ySexNTvH6SodJZiaCnaI2xo5zMWqD31jK2XYnXtDL812ERtkAVdFt4rTTrh\nnivNBOhmXrEns0n6ozzx0I6E+xscZTDSVZ7BEMKBRvurzo6WWf15hvCtx0T3\nkDzH\r\n=rKh0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"6.14.4","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.13.1","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.0","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.21.0","prettier":"^2.2.1","@babel/cli":"^7.13.10","typescript":"^4.2.3","@babel/core":"^7.13.10","@types/node":"^12.20.5","@types/axios":"^0.14.0","babel-loader":"^8.2.2","@babel/preset-env":"^7.13.10","@cosmjs/proto-signing":"^0.24.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.17.0","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.17.0","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.27_1617028617712_0.038186626568420756","host":"s3://npm-registry-packages"}},"0.1.28":{"name":"@starport/client-js","version":"0.1.28","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.28","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"9b420bd41446adf5d3159111cf3756b91638f892","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.28.tgz","fileCount":14,"integrity":"sha512-X3It7UQq+XOGu7oZTMA+2/VOHmLGdn/dlrb/drVELTRpr8+F5CcHOmKs/YofOx6E/EkY2/cnOTndIFIfS4UVSg==","signatures":[{"sig":"MEUCIQDdyVDPB8GHgjuhHRe/SKpMr1ZBlVGsi1OBaPNM+wl+9AIgbuJBrXgPBGJ9QXWs8R2wATotO/x1xJ2LBS9AafJ7yk8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYt1KCRA9TVsSAnZWagAA0w0QAJ/zgWZZ/8SqYMnBLga8\nbrdLZN3bZUdBG64UZgPCJsri//4yhkNUioobtOAA92MR7eaVegwFkre4nN8K\nnESq2sJehZr26IYXViTCJ9pRBrFzEnPA877SziAtruSg/Uq4Kp8aUez5jvHz\nAwuRxS5NnOsCDAJcyGKf1qIdGWu1fGSZ/YHBgGXCdxP7Mc2yh3EeGfc/m5hn\n2eDtjm2F//12Ychchv0mPuYEqk9JZksfKz8tWmi6VvZxpar3IdBOBW50uj03\nVfwCKN/Kinop8emUVOa1+vdNe7Eo/Gtep4Zabk1VId4rJgYAOBFrgxU3n76n\nqaPInBO06EgmAupjURpwri3v+0qLTIXdz9yvc/FYmPTnX+ICI9xPyluJ/h8k\n0jYllufc7DkR7w5tptHWB/6DdAgur8nWzCpMct5sLhimI1Tf1Emzcvls6uY6\nOXUheiuXcJ0Nh4pc+1IrLBmww5uNSrbgj2Et1bVjq0DbxpmT5LGShd46KIDn\nGccTGoYFgIES95OZyh1bnMlMH2jsGUu5GvDzdWi+iG1eR2ZkoJWwBl4IyUr3\nuiMP6+L0vX4FIt/n+tn6WNiaKVe0MpOYM4xJD2Y8oJhdemc7KiUOPK+HDk3A\nylR/NuWG1AWCImCiRm6oyMrs9fsitfDFsLjpeWfF5JEG7o/vOhuDscDnMdWU\nWgfl\r\n=u4De\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"7.5.6","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.0","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.0","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.10","typescript":"^4.2.3","@babel/core":"^7.13.10","@types/node":"^12.20.5","@types/axios":"^0.14.0","babel-loader":"^8.2.2","@babel/preset-env":"^7.13.10","@cosmjs/proto-signing":"^0.24.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.17.0","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.17.0","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.28_1617091913748_0.5799024975414917","host":"s3://npm-registry-packages"}},"0.1.36":{"name":"@starport/client-js","version":"0.1.36","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.36","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"17914f3657d84938b2d2245542c98b15a3c216a6","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.36.tgz","fileCount":14,"integrity":"sha512-go2IWp7fpzBTDEhJhVOas6/G/NRuGKZTIC5gJm+vi86u3bgNFOgTwZvZL3arWXLq7xeVWmH5XoeX3b1FGLt6gA==","signatures":[{"sig":"MEYCIQDzw/Q8yO/8+9zGfOyXQFN61vwj1Q5G5cvgtDix/iH7pwIhAMwC/7dI8OjI5ulQ/Hkc9/OWta02BVYdEHppyPyVS13z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYt7jCRA9TVsSAnZWagAAGMUP/3JE4gUql9LEWYQXwIoZ\nO3XGfCZsPt7RMfqt0OCl3wsoYgzcZhtLySGqlLl8rGP2HA6s2tMFaiPrec/B\nJ5Yw9gfnAaf+5ktvJhVAY2fCKv1LqXKmlRWevaB2RmNMfGfKaGC5Jw0q2cAg\niXgCF19fr8PRYUVMHykKWt1+71tRu6u8Ve/dNmJBsMXQpnRX73XwX7JkqyNE\nebBa6IWsKNmTlpRtyZAS2QfYFxtiuS44m0Ld1lmG67rw137LL/rcRo7BY5dC\nSaO4KawLREjQk5Xvqeqri3BSTN6SEMSpy0nfFtoaRxz4m1GScaYj5FwiWEeO\n44yUmIB10QJTURa8/QUSAAoxORnfX/9hzMzvy910SfewtDnHSivIHke6C0Ur\nEmzsNnpFNroRz4BavFJMdfQ89tfVsSRkBwEo2zSFbYbznn8+9J+D2blr5m7j\n4FlU2J0B5UmuLIx9MsqXExg0zmc5Yesdytj6/RyK/cZt5SsMVJwqmMzYqhEb\n47fsj8KSC63GAnjrv526XV2H4lostpZDgxm9qpYvqBZ2XyS87cciefvpaY47\ngO+BmsqijUbZ3IwmcXWJT4GnRXt8kIASgMkMVIdn6ToOe9RQpPaXoG4KlUYo\nxMBUcWwuK9xZlxQUbbW4Ji0QNflGaGRnWXwC2Dg5QQKJgdr7u/Pnx9IF3Aob\nNDAl\r\n=NYao\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"7.5.6","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.0","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.10","typescript":"^4.2.3","@babel/core":"^7.13.10","@types/node":"^12.20.5","@types/axios":"^0.14.0","babel-loader":"^8.2.2","@babel/preset-env":"^7.13.10","@cosmjs/proto-signing":"^0.24.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.17.0","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.17.0","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.36_1617092322968_0.06642003438854727","host":"s3://npm-registry-packages"}},"0.1.37":{"name":"@starport/client-js","version":"0.1.37","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.37","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"81b46dcd1474e7627e2451ee704b39253d367571","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.37.tgz","fileCount":14,"integrity":"sha512-kvf7afA5YGHVpfSmYLENfugqloflCsQpuxGd6y3u1Je/hIZmXksRG/uViqY6yJo9cbAyeDHKLEJYziEzzilxVQ==","signatures":[{"sig":"MEQCICfsu7bxNtbh1gAcXfI2yTcgwspkr4llUogMhSo5+UDgAiA9SXiCWxFpZx7vpuVHbPf3ZFma7lr+RgS6iNrZYbVBCA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56055,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYvvnCRA9TVsSAnZWagAAqhIP/i3WtIvVBRY4VM6lPs4V\nroKgorEDV7D6JQGrA61QQYMMY0d9/SbmddH3Kr97xC/UTmN6OehhvzyxF4bC\nCE9xIAcfSBjE714nyhvAfIJcq8TuJXeVHBfOrLKwL4mS3gm7eCFyXEwJP4TJ\nvQi6uGI0xwhEcVZ4T/Q40ML4V2B/iw/eJp6nEC8uy7OwXdrz132HPpWgJEu8\nEofKTPRwH2JynB4wqwI1RQn/XZVjX0351BaUYg3Q9gdxZg+ubN1Q1KLnK4gH\njWuHUx+5jFOPMZRT0Jv7zoJGdB63x5X6vBP9yK0MLXfgWyJKAfLpAadkjO6R\nFKSQDIStS6ldjszqjtDt/S3U+UQagDBZReIFFTWh+yrZ5lwhk+j4cnFMEIh5\nJq0W91mBHhayllcvpC7AbT+AAIPBfbpPYyTfy7cjuCl/y/nFYxqvuTIo9ELn\niYsvuXSZtEv9XFb2Kp/PfQJklbfqL0orndp5Ch6TtuMsvHF9CNKdfOAVttgU\n/84tv2A5cU11k2IKOt8c6VxgL83AUvU0149JBubX+MNYhdsAbzlZD4cF2/rK\nYoGK5YtEg5IOWLbOT7KG4lvVCK4TT8XBWFuy/jzkXEwG4jPEIxnxLsk0+iNh\nOlVvoUvyPp7WuOydT+gTaay3gPHNIyJVQQ/Q/45KNtNS9BAsN5s9xaVMsHlV\nG6iP\r\n=Adzi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","gitHead":"c7ad5edd391a9884d29991db27a6c49509ba872d","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.0","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.10","typescript":"^4.2.3","@babel/core":"^7.13.10","@types/node":"^12.20.5","@types/axios":"^0.14.0","babel-loader":"^8.2.2","@babel/preset-env":"^7.13.10","@cosmjs/proto-signing":"^0.24.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.17.0","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.17.0","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.37_1617099750594_0.5758374297261091","host":"s3://npm-registry-packages"}},"0.1.38":{"name":"@starport/client-js","version":"0.1.38","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.38","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"7217345e6f746b1b002e273d4cfca52c21be6336","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.38.tgz","fileCount":14,"integrity":"sha512-RhT7P0JuXP7pAUSW9tF5JGyHyvYZmCdNSfAE8nQV9CWef1F7omv58t+4mapxenhF7p66GSSMNa6JUokC8iHwBA==","signatures":[{"sig":"MEUCIEsTand88K9Jx8kFDWrkJd5+uaHqCFj+XE6B8P1poEv8AiEAjkkoKQ/Scqq8Vwv+l0sCPLbiQVnWS36Sj3u/SvCUpcg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56959,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZIcUCRA9TVsSAnZWagAAeHQP+wedsJqMk/OPhzhCB++7\naIh70siGE1A2oglqU69rr/WDmbpcHKgpi23a/QHp/goSM98xxoye/7Gpn0H2\n/arIIVEM0U5ZKpY5mNzVjJASB57iF2VoKZSwkpJA1s25ypo205+vUOugUYDU\nQZj2uiEfjVXuBEhfJCOftZyDWNArvuuMY8w0W01AHnjZ5vt3/Mk46QR/L2H3\ntl5kULrt8FwGkysl1hVKDdzijhnWNM2Xs4uvN2ZTWfNxw9vWFI6e1evSzIk+\nB4jPrbyFZjgDuvcBZnfALuNedmvUqLj6YC5E4SjGSiQGQg5zcAZLAEfdoani\n1xITW6poUQDJyQ0qp1/Nfi8ReYRlENTuvnZXqfPTJ/TVSWExpKLuSTisD3ha\nEAFyfdvoO748ndEAIegxSkbURHhnFXRQ7XS9gVxopHfPgGcSQXaUnPNnhifT\ngCEK49Rp9ylSlZ/LVIM6Q2zj5d+ktfolpDOsHouhUiLVwC2513l4bsL67H6b\nwTIYDDlycLFXBxq3kvZ1pDhk/v3r9XlpQK8WXesUJj1caY9CkXKn/exRAX1L\nGwaZk9AHq62xtASa0E/Apv0iC1Kk4Ewb4CwypGPhKvs4cvFj7qBu0VQkCDEa\nWh2xZ2nZ9V9Ofh5NxIJsZ+cg9s7/2Cvzk1p8PwgaYmVgG2JDQjIcqAXVaboa\nma0p\r\n=Rvlu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"6.14.4","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.13.1","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.10","typescript":"^4.2.3","@babel/core":"^7.13.10","@types/node":"^12.20.5","@types/axios":"^0.14.0","babel-loader":"^8.2.2","@babel/preset-env":"^7.13.10","@cosmjs/proto-signing":"^0.24.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.17.0","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.17.0","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.38_1617200915925_0.19120314341679912","host":"s3://npm-registry-packages"}},"0.1.42-beta.130":{"name":"@starport/client-js","version":"0.1.42-beta.130","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.42-beta.130","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"c276a72a66ae97e847c3ef45318eed459949c615","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.42-beta.130.tgz","fileCount":14,"integrity":"sha512-M7MYZ0ZtbmQRvms3TVVWCSuM8otvh+4U7Kk8HJ1UzztRS43PaVdSiPRTNO1bUn9TMSW00BgRngGtYS3OCvVB2g==","signatures":[{"sig":"MEYCIQDXAAcXr8BZW5CSehe6dOSTECDH+6g9eWQZDU8P+dU1HwIhANm2busBCQVAbmik4jZQ7pIh1MFFKYJmXX65w2L+6V8b","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgcCzWCRA9TVsSAnZWagAA67oP/0DFGKS+4KgOEAAH0IMx\nXfPJfNOxb41wYvnbQn60C4grjBiXHLcphePFqi1+oMJPlvzS3A8OdG17yJQg\nSiYy+4JNH4evHNQLfXdDh2LthSvvtTTaONIqR2GFKBuCptA6hRykSSkLwilN\nHFLMNaK21ZvY3/RngEnMDLSKKdCTWbUh7drBC4igiCUdu372LY4puzvG82ou\nxDusvCp2M6QIqnD1tCrCk15FMfxij6Yy7n8/3YTdT1zIK7cptOCKQJRKcGiJ\n1oloxalZOacTYhQP1p8A4MmaAM3SvWvnIotJQEdlF8XePi9DbHwnv6tSBxfg\ndbz8n3WMmyQ+ohAwDwh6vBvZqbzyrE4C/buNu/Vokx//g0NTWu+hUCfLWN4v\nZSnTV2VGt0yLmIvxw6E/zcmHhlzcNhVd3q5ZIwMyZkNQzIPs7mmMRAyQ4ghM\nJvH1URzyLgew/jSJN2OIyIsBRufkQDLul0gT9yKr+IJu250Zdjptj2/vnEYB\nxa6zsE2avGlwrzyzVyGbfOwD8vX707E94CU3QsgTi+okBJdJ+f1Zy5lZiXbu\ntfgVCRuzE5TKEBwXF22omlDe9jBUyXk+2DKgnT759tuak3X6sdTl40dr2I34\nw4WjPDXKtUVWw2cEN8YO3rHJhkMIoK/YP+OFPDowlrgjOHe5Phlb3/DCYH11\nVDWf\r\n=cd4y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","readme":"# `@starport/client-js`\n\nThis package implements a generic JS client wrapper for the Tendermint RPC, Tendermint WebSocket, and Cosmos SDK APIs.\n\n## Install\n\n```\nnpm install client-js\n```\n## Usage\n\n```\nimport Client from '@starport/client-js'\n\nconst client = new Client({\n                  apiAddr: 'http://localhost:1317',        // Replace with Cosmos API node address\n                  rpcAddr: 'http://localhost:26657',       // Replace with Tendermint RPC node address\n                  wsAddr: 'ws://localhost:26657/websocket' // Replace with Tendermint WS node address\n                });\n\n```\n\nThe client implements EventEmitter, runs a periodic connectivity test, and emits the following events based on the connection state:\n\n* 'api-status' : true/false\n* 'rpc-status' : true/false\n* 'ws-status' : true/false\n\nYou can listen for and handle those events in your app in the standard way:\n\n```\nclient.on('api-status', (status) => { \n  // Handle API status here\n});\nclient.on('rpc-status', (status) => { \n  // Handle RPC status here\n});\nclient.on('ws-status', (status) => { \n  // Handle WS status here\n});\n```\n\nThe client also provides methods to switch the nodes used in an existing instance:\n\n```\nclient.switchAPI('<new_api_node_address>');\nclient.switchRPC('<new_rpc_node_address>');\nclient.switchWS('<new_ws_node_address>');\n```\n\nThe client automatically subscribes to new block events and emits the events for handling:\n\n```\nclient.on('newblock',(block) => {\n  //handle incoming block here\n})\n```\n\n### Additional features\n\nThe client provides a `useSigner()` method to connect a signer or wallet using the [CosmJS OfflineDirectSigner interface](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/signer.offlinedirectsigner.html).\n\nTo access the resulting [CosmJS signing client](https://cosmos.github.io/cosmjs/latest/stargate/classes/signingstargateclient.signingstargateclient-1.html), use the `.signingClient` property. To access the signer, use the `.signer` property.\n\nUsing the client `.switchRPC()` method reinstantiates the signing client appropriately.\n\n```\nconst signer = await DirectSecp256k1HdWallet.fromMnemonic(mymnemonic) // or any other object implementing the OfflineDirectSigner interface\n\nawait client.useSigner(signer)\n\nconst [account] = await client.signer.getAccounts();\n\nconst recipient = \"cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5\";\n\nconst amount = {\n  denom: \"uatom\",\n  amount: \"1\",\n};\n\nconst result = await client.signingClient.sendTokens(account.address, recipient, [amount], \"Memo Message\");\n```\n\nFinally, the client provides two querying methods for the Cosmos SDK API:\n\n### query()\n\n`.query(endpoint,queryparams)` \n\nA basic wrapper around Axios. For example, to query the bank module for an address's balances: \n\n```\nlet balances = await client.query('/cosmos/bank/v1beta1/balances/','cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n### request()\n\n```\n.request({\n    body: body,\n    path: path,\n    query: query,\n    method: method,\n  })\n```\n\nThis helper method is compatible with the swagger-typescript-api API classes that are generated with `--single-http-client` by using their Swagger definitions if the generated API classes exist for your chain endpoints.\n","gitHead":"6c17090071f1190cb71e8180d8c1d1920ccd196d","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.0","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.10","typescript":"~4.1.5","@babel/core":"^7.13.10","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.13.10","@cosmjs/proto-signing":"^0.24.1","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.3.1","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.18.0","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.18.0","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.42-beta.130_1617964245983_0.6452027808760068","host":"s3://npm-registry-packages"}},"0.1.42-beta.0":{"name":"@starport/client-js","version":"0.1.42-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.42-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"f2a9fde6ae75f050d3bb4554a5083f4358b21f1e","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.42-beta.0.tgz","fileCount":14,"integrity":"sha512-Z2G3JcLbvj2KWMLLVR4gw4P9Y8safObsy8WEBcKJgErcq5t4PHoI7IEI6LSu4jSHnC/yG2KCI88shuOIuoaM4A==","signatures":[{"sig":"MEYCIQDk9MUcUNAKY90AayoXqhBz8IfoIaBLR8nMRX7ndmjMlwIhAPRPSJGthc73fo5GDPnd6nyaoDDhlyuoLW++B5Iai4tu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56782,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgcDX/CRA9TVsSAnZWagAA4SMP/3mkfg69VHwq2ZY1LqN1\ngaGOkTvR//SrkFK+KP4ugUAon7YANjdo1xwcjirs6Ww5IKY8xpR6WzkN9TFH\ngXN3G3vyxHVrEiHHtl6GLXI/f+3FrAZd9dF9a5B5Sy253k3o8Desf1XXLrFd\nKw/d9IyX/bOmmmNNQND/+vbBHPQwPj3NiuozD5jwnfpqzumaWFip76S6uSar\n0TVQs6WXuqgHLLuQ6+BwHsVGhnAWEC/2kpsJjmS+RzZSCQrnrzAlQ9RjDFnC\nR9R8SsL5zJahMQZP0Veakefcv9aBMzKu0IwzqeYuZKuCemFwPBRtqs7F8UIj\n6QKm6mRRZm16FN3xEjvQtGkoqgQ41sv4yE91PUEXnOA1FoMnwWiMYA60wYrc\nKnY2j8JjW72jam022UtqQxi28D9N/R/A9MKGi4R+fQ9xTQ8kIT4Z0jYxkEXs\n3Dx5YVS1B2T5wmNhZW5UR03476s76CC5devlVayVh/WmvXRksJhfDxD9YJIG\nG4uN46Ei/v897jG8JTqcJJu8NcU2eqYi92cBrhS561NGIbSWVqdwnIvvcLLM\nyXDqosiPhj1tdKOvTYyeYsIzKwGPDlRzXYkxU0mTnqp8k1XTNi62gHXXMrkt\nwnRpG3uI0pxWRqgI6y759xY8ohSBCbRc3TPLpwG966emdSLyKuHylZWelViQ\nzrSs\r\n=Q1Fh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","readme":"# `@starport/client-js`\n\nThis package implements a generic JS client wrapper for the Tendermint RPC, Tendermint WebSocket, and Cosmos SDK APIs.\n\n## Install\n\n```\nnpm install client-js\n```\n## Usage\n\n```\nimport Client from '@starport/client-js'\n\nconst client = new Client({\n                  apiAddr: 'http://localhost:1317',        // Replace with Cosmos API node address\n                  rpcAddr: 'http://localhost:26657',       // Replace with Tendermint RPC node address\n                  wsAddr: 'ws://localhost:26657/websocket' // Replace with Tendermint WS node address\n                });\n\n```\n\nThe client implements EventEmitter, runs a periodic connectivity test, and emits the following events based on the connection state:\n\n* 'api-status' : true/false\n* 'rpc-status' : true/false\n* 'ws-status' : true/false\n\nYou can listen for and handle those events in your app in the standard way:\n\n```\nclient.on('api-status', (status) => { \n  // Handle API status here\n});\nclient.on('rpc-status', (status) => { \n  // Handle RPC status here\n});\nclient.on('ws-status', (status) => { \n  // Handle WS status here\n});\n```\n\nThe client also provides methods to switch the nodes used in an existing instance:\n\n```\nclient.switchAPI('<new_api_node_address>');\nclient.switchRPC('<new_rpc_node_address>');\nclient.switchWS('<new_ws_node_address>');\n```\n\nThe client automatically subscribes to new block events and emits the events for handling:\n\n```\nclient.on('newblock',(block) => {\n  //handle incoming block here\n})\n```\n\n### Additional features\n\nThe client provides a `useSigner()` method to connect a signer or wallet using the [CosmJS OfflineDirectSigner interface](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/signer.offlinedirectsigner.html).\n\nTo access the resulting [CosmJS signing client](https://cosmos.github.io/cosmjs/latest/stargate/classes/signingstargateclient.signingstargateclient-1.html), use the `.signingClient` property. To access the signer, use the `.signer` property.\n\nUsing the client `.switchRPC()` method reinstantiates the signing client appropriately.\n\n```\nconst signer = await DirectSecp256k1HdWallet.fromMnemonic(mymnemonic) // or any other object implementing the OfflineDirectSigner interface\n\nawait client.useSigner(signer)\n\nconst [account] = await client.signer.getAccounts();\n\nconst recipient = \"cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5\";\n\nconst amount = {\n  denom: \"uatom\",\n  amount: \"1\",\n};\n\nconst result = await client.signingClient.sendTokens(account.address, recipient, [amount], \"Memo Message\");\n```\n\nFinally, the client provides two querying methods for the Cosmos SDK API:\n\n### query()\n\n`.query(endpoint,queryparams)` \n\nA basic wrapper around Axios. For example, to query the bank module for an address's balances: \n\n```\nlet balances = await client.query('/cosmos/bank/v1beta1/balances/','cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n### request()\n\n```\n.request({\n    body: body,\n    path: path,\n    query: query,\n    method: method,\n  })\n```\n\nThis helper method is compatible with the swagger-typescript-api API classes that are generated with `--single-http-client` by using their Swagger definitions if the generated API classes exist for your chain endpoints.\n","gitHead":"5cacc490cff00cac42a46f80dcee0b459e7e818d","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.0","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.10","typescript":"~4.1.5","@babel/core":"^7.13.10","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.13.10","@cosmjs/proto-signing":"^0.24.1","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.3.1","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.18.0","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.18.0","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.42-beta.0_1617966590929_0.20635802547980675","host":"s3://npm-registry-packages"}},"0.1.42":{"name":"@starport/client-js","version":"0.1.42","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.42","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"71ef4e97d18110bb344d37d5d5d8ed1709d762f1","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.42.tgz","fileCount":14,"integrity":"sha512-gedAEDhj4l24MWPBDyBySCeHTtJIOE5CkIkTcrPYw2shzx+1eKhzyrLlpshtgptRDuRrC0mwo+QfFqLWu+bdDg==","signatures":[{"sig":"MEYCIQDQRiXjZEpvssUONm6nICrIacC/udnp+e3BDWqu6hW7tgIhAMrSr5EKUZkqwknDZNChd7RBB4NlCGTzOlqYSox+UUCV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56767,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdXJdCRA9TVsSAnZWagAASL0QAJE5IFafiYbggTa342Vm\n/zOAcMtMIxyqQlargylIZhD4Iqi8o1GqzDDLtoGQYIGYegqg3HHbt5WCQej6\ntcUJVGaIq5OkPAJXgcPmQvt/qWzKbifO6l5IAvMcte3DgYdzGTLLUtMLx70N\njFJE2+Qc5diKrLqt/c6ysnDpQosWO5UBPEFlzCRNiniytIMzFkbEFOUaFuxB\n7nuhgOclN/cbji8vpiD4TWNWpOoYH6Wnpf+HQbKq74TxSDBkpcbvNgDaNZSy\nGjN8U9gu6dflPzcpJv+NgQ+nQKwo/CNOtOFkq7pXB5zrhfLbhJpuxgfqvCq0\nphWSe1YSmM9tkqU+P79JSZHY/SoWR6+x6yxgyRRUHKYP+mtjJQF+kGXwpb9E\nhPc7DH9mLdBVMd5BRNX2zSMP8kEUm2EbPCrbPVi/hDbqH3Ra4uEMN4BLkU1r\nJqvKIaeSRxcObZ1wGPbhs/gRwBhisUH6zvN4JNqFuXwdZ/Yee0i0kx5GujxL\n030fM7f8Y/TFOnNSmU0lf6VhWXgyttaS+F1p8avBTT+bbQxlKDre0bjiTgfP\n/7OpWkCnFdKSpIByZYWj/1Be7k+jhV+p8nKsY5BDhqxqZ6TVcKkdlwWPfT8d\nAqFkWYv+N55sGMh4+74XT2JQ+N0GKz9URfmKN+c8Gj52MlL9h9LR+dM6OIRA\nEdSy\r\n=+ab6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","gitHead":"e1d9d963d15cb5b57748f1910271dae84c7d09a1","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.0","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.10","typescript":"~4.1.5","@babel/core":"^7.13.10","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.13.10","@cosmjs/proto-signing":"^0.24.1","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.3.1","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.18.0","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.18.0","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.42_1618309725343_0.17271765822846175","host":"s3://npm-registry-packages"}},"0.1.43-beta.0":{"name":"@starport/client-js","version":"0.1.43-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.43-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"08af3b2c862945e17fdc5cc528db67560ad5eeb0","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.43-beta.0.tgz","fileCount":14,"integrity":"sha512-kgH9DKaqtXExtuWMVH4vo+KNeCTuPp9T3M2HLQvdFrh7XbdYYoERRBCA/u6AxMdioovQjCU5GjPcM8inpVn3bQ==","signatures":[{"sig":"MEYCIQCNZhcT9lMNu/kXKg/EdUeBp8zy17d+gpQoSzhYrXqYowIhAK4c52iuq5oCeKyQJWUVfBjR7bN86/0WveeiDMxfoEV7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56782,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdXT7CRA9TVsSAnZWagAARq4QAKMQag+oPkRzDd5/uQB4\nz2ev5qFYzG3xUlqKLSAA0MNMubC5lhrwWHNWJHp5jlheVbYMgNKxbVO5IDmf\n7JPAiIBXEHnNuY5q91ELMKuISw9yBjEMpSQCSO7aB091scCKOLm6+oaug8MO\nT2JjwjbLySRkILVmyUUZUoyqeTm/ZcW5ZxUaUKVI7v1JWszR1GuovxWoPJzS\n3tVmY/raKQB0vR7gB1CVDckhvT2KVFVAGPZajzI3m0T3QKBUDNjTk1L+lzEs\nKr1FPZ7Vu1eGSjtkZbLZKk4mgcSg9xI/U1bkpkuiK9h6szyA6H06KBT0/b1D\nEu4G70oFWeyXPeizg/wMLSh72FFHL/OsIkBxBOVwBCqzlOD+XnFwlGw8MvaK\ns6OxwzbM8jBYJsrGk85oPsBJd/YfLzM1ubZ0W+cYpB6lqj4cKszpZL15w7Of\nnDMd2HEuissaC0bUeFGa9jHH8gPW2LowxbwNK2TdNvD5c2HTc2UUxAaKxvm9\nf1Dy7l0U6sv0Jm+btR6cI5fSATyUxrC4Uaa3wFpR6BYM8nmqK4oZgFatc6H9\nHSP11+14eOkUW0pluJNWviHS6bfUfP2TpdtOW0j5eCyTCSiHooAULu+mRIMA\nLkC6t4PgIx+feCOix9yduiWNFKLMvJb+AxvNpBOtUQp2GaypM/hrlV4+2tm6\nC3Rz\r\n=I+pJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","readme":"# `@starport/client-js`\n\nThis package implements a generic JS client wrapper for the Tendermint RPC, Tendermint WebSocket, and Cosmos SDK APIs.\n\n## Install\n\n```\nnpm install client-js\n```\n## Usage\n\n```\nimport Client from '@starport/client-js'\n\nconst client = new Client({\n                  apiAddr: 'http://localhost:1317',        // Replace with Cosmos API node address\n                  rpcAddr: 'http://localhost:26657',       // Replace with Tendermint RPC node address\n                  wsAddr: 'ws://localhost:26657/websocket' // Replace with Tendermint WS node address\n                });\n\n```\n\nThe client implements EventEmitter, runs a periodic connectivity test, and emits the following events based on the connection state:\n\n* 'api-status' : true/false\n* 'rpc-status' : true/false\n* 'ws-status' : true/false\n\nYou can listen for and handle those events in your app in the standard way:\n\n```\nclient.on('api-status', (status) => { \n  // Handle API status here\n});\nclient.on('rpc-status', (status) => { \n  // Handle RPC status here\n});\nclient.on('ws-status', (status) => { \n  // Handle WS status here\n});\n```\n\nThe client also provides methods to switch the nodes used in an existing instance:\n\n```\nclient.switchAPI('<new_api_node_address>');\nclient.switchRPC('<new_rpc_node_address>');\nclient.switchWS('<new_ws_node_address>');\n```\n\nThe client automatically subscribes to new block events and emits the events for handling:\n\n```\nclient.on('newblock',(block) => {\n  //handle incoming block here\n})\n```\n\n### Additional features\n\nThe client provides a `useSigner()` method to connect a signer or wallet using the [CosmJS OfflineDirectSigner interface](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/signer.offlinedirectsigner.html).\n\nTo access the resulting [CosmJS signing client](https://cosmos.github.io/cosmjs/latest/stargate/classes/signingstargateclient.signingstargateclient-1.html), use the `.signingClient` property. To access the signer, use the `.signer` property.\n\nUsing the client `.switchRPC()` method reinstantiates the signing client appropriately.\n\n```\nconst signer = await DirectSecp256k1HdWallet.fromMnemonic(mymnemonic) // or any other object implementing the OfflineDirectSigner interface\n\nawait client.useSigner(signer)\n\nconst [account] = await client.signer.getAccounts();\n\nconst recipient = \"cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5\";\n\nconst amount = {\n  denom: \"uatom\",\n  amount: \"1\",\n};\n\nconst result = await client.signingClient.sendTokens(account.address, recipient, [amount], \"Memo Message\");\n```\n\nFinally, the client provides two querying methods for the Cosmos SDK API:\n\n### query()\n\n`.query(endpoint,queryparams)` \n\nA basic wrapper around Axios. For example, to query the bank module for an address's balances: \n\n```\nlet balances = await client.query('/cosmos/bank/v1beta1/balances/','cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n### request()\n\n```\n.request({\n    body: body,\n    path: path,\n    query: query,\n    method: method,\n  })\n```\n\nThis helper method is compatible with the swagger-typescript-api API classes that are generated with `--single-http-client` by using their Swagger definitions if the generated API classes exist for your chain endpoints.\n","gitHead":"0f713b3aa77fd3dcd7e33783fc572d735e93f798","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.0","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.10","typescript":"~4.1.5","@babel/core":"^7.13.10","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.13.10","@cosmjs/proto-signing":"^0.24.1","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.3.1","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.18.0","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.18.0","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.43-beta.0_1618310395349_0.9317612321201096","host":"s3://npm-registry-packages"}},"0.1.43":{"name":"@starport/client-js","version":"0.1.43","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.43","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"bb64e695e2b07705983584753f5962ff91bb0d9e","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.43.tgz","fileCount":14,"integrity":"sha512-tcfj4GydE/9wzVdl3v51OJJ5UgB5BZGgfRs5dyawmMoA9L+bcDHjgxWELQjCzJ4NQHYbNTTSIngiqWPE8MZ/PA==","signatures":[{"sig":"MEUCIQCgxNO4avlEHyfPXME5KkqmjpeN62xophDx6tPLlXMkswIge/KCVEtiI/YbRCzZzOll3o5tGQK64EWnlnNXhuq4xY0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56767,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdXanCRA9TVsSAnZWagAAUWQQAIiG9LnPrWAHN/Sc9wV/\nPl0pYeFV8k4/MyjMOuLLSwi0j8GA+WXMCsRXSYX8yPmaQ2xpJ6Qjkjn2inP1\navskDREh29ng7U8rwp/jzt/0y6dSlH/sLu//5jVP3B/WXOhebKuXsszO4Qs8\nb3PA+jt6TWSJPFkQe9F+zM/e6wcdQTacfXm4wAiWibahZZt91Itxr1FeXnhj\nTUljB0tIasBir2bcbdQ+fqKsOjhtUD9DbH2SnuOSejy+7Ae6TWoP0Wj3jUPc\nM09Owz9ybBlZoknHzCPy+a4TM+xu6VcCuEcr4sIDd9ggNw78ZFuaQoNnnXSE\nHEMFqd+coSB98WB5/Qo8z1sVnkSY7HP3gHZ88IrWcNBjjPyy8kudWk0QfITN\nB7XRwOAnTdqi0bJOMCKTGh2Jp1bZYF+pJGAiqdf78ccHoXnx/ViLW1AEL2zG\nHL4YyH/BtZVygUoKC259D5G+pcLj53FI1QU7Bff3o3cblPDYgu5LiGAvxiLD\nkDOSaF+pSWcn2/llxJixMZjyLcv3kTQqlIkDmmMvredBXfgxaA41pa69ZrcK\nfGxpO0Uc8BJ/IBC4KUp9VmRm9511V+mEMB/+B4nNR+mT22CbsZc9Sa5/6R+N\nh1173Yt9qedY44Xh5oX46nfAL+dlK4TAGa/mS2l8IPKlSTGQmEI5yv6APali\nfKHd\r\n=jBvU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","gitHead":"19c725f96c15dae3f5c4893f8e4291501fd17774","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.0","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.10","typescript":"~4.1.5","@babel/core":"^7.13.10","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.13.10","@cosmjs/proto-signing":"^0.24.1","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.3.1","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.18.0","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.18.0","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.43_1618310822684_0.6386260057144679","host":"s3://npm-registry-packages"}},"0.1.44-beta.0":{"name":"@starport/client-js","version":"0.1.44-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.44-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"017029f80584be9adbf92e017f766acdb535f501","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.44-beta.0.tgz","fileCount":14,"integrity":"sha512-yNbDMyjQtWRUTYpAI0gGqCidPYKdS5X/DB4dOzLT6AuA264DxRzGUmP2N7MMV8M/evjmD6sXunTz7J1DQNK8Vw==","signatures":[{"sig":"MEYCIQCzZRG9UcwE5HHVTz6Rhq1zwq2O52EFuBjGb8/3XaNTQAIhAJhSKGzFRbdvk5Htq3UxSdq8FgNNQKqUHFTLRGS+v7vi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56782,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdXm4CRA9TVsSAnZWagAAYqIP/3k1Fax8nGobuJf/GaxG\nGP2hCsCDuf7BeBQFxE8x+dSV0cjHOsyBXZRzy1B0ZUQOSNyqdBphVZRd/z66\n+LRwPdzA2+uPEvsP4gymR801kf4en0ZdyUn89oiUzy3cYS4G68UM3xwg0red\n5ffjbl5WTYh0tAxZfN7bVvsTXr4WvT+LPKuk2xuyGtNwqw2L19b4CmXK0tpb\n6oVCoogvTLL1RTRmlI9BvRhsqHWYAD5oJCy2inEOnmweieBQ1I/Hs/LkFs53\n/NPjj0u8CVbL1Dkd9XcK1HFzdXUgDmnyBHAAxnDrvtLB7xIjGVRwIbkqlbeJ\nNMFGb9JVyerx1vhOXSEtRL8OIHHQiDm/6HjZ3TsbXlrjj9r4V2/Dz6/xYFXb\n6bfnhZ4LcNVkXg8zLR8DJTahvPRMVaAglz8X91oOHnWvgPQeo1GxP2F+DnyV\nWfV9miRAAoAUqWHggbD+2+UzyEeux2yN43c4fJ61vsIA599g8+lEDl0eJVKK\nVX4xel8NwDPkX2OWD6ANOFtKl6DWNiADy6t1KFvoaN7aFX5duo2xiqeCscGm\nQKhdVmtAS+5qxQJOKfIBU7aW6swjbVUN31DPHNPzr1dcLWhvBhIdABKF+CHY\nML1HMbvsFHM8bgzmVAVRJ9wc0VFtrCtXgrVcvEddr9dnJiz44FblZ51/0MBq\nZ1SN\r\n=LRlf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","readme":"# `@starport/client-js`\n\nThis package implements a generic JS client wrapper for the Tendermint RPC, Tendermint WebSocket, and Cosmos SDK APIs.\n\n## Install\n\n```\nnpm install client-js\n```\n## Usage\n\n```\nimport Client from '@starport/client-js'\n\nconst client = new Client({\n                  apiAddr: 'http://localhost:1317',        // Replace with Cosmos API node address\n                  rpcAddr: 'http://localhost:26657',       // Replace with Tendermint RPC node address\n                  wsAddr: 'ws://localhost:26657/websocket' // Replace with Tendermint WS node address\n                });\n\n```\n\nThe client implements EventEmitter, runs a periodic connectivity test, and emits the following events based on the connection state:\n\n* 'api-status' : true/false\n* 'rpc-status' : true/false\n* 'ws-status' : true/false\n\nYou can listen for and handle those events in your app in the standard way:\n\n```\nclient.on('api-status', (status) => { \n  // Handle API status here\n});\nclient.on('rpc-status', (status) => { \n  // Handle RPC status here\n});\nclient.on('ws-status', (status) => { \n  // Handle WS status here\n});\n```\n\nThe client also provides methods to switch the nodes used in an existing instance:\n\n```\nclient.switchAPI('<new_api_node_address>');\nclient.switchRPC('<new_rpc_node_address>');\nclient.switchWS('<new_ws_node_address>');\n```\n\nThe client automatically subscribes to new block events and emits the events for handling:\n\n```\nclient.on('newblock',(block) => {\n  //handle incoming block here\n})\n```\n\n### Additional features\n\nThe client provides a `useSigner()` method to connect a signer or wallet using the [CosmJS OfflineDirectSigner interface](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/signer.offlinedirectsigner.html).\n\nTo access the resulting [CosmJS signing client](https://cosmos.github.io/cosmjs/latest/stargate/classes/signingstargateclient.signingstargateclient-1.html), use the `.signingClient` property. To access the signer, use the `.signer` property.\n\nUsing the client `.switchRPC()` method reinstantiates the signing client appropriately.\n\n```\nconst signer = await DirectSecp256k1HdWallet.fromMnemonic(mymnemonic) // or any other object implementing the OfflineDirectSigner interface\n\nawait client.useSigner(signer)\n\nconst [account] = await client.signer.getAccounts();\n\nconst recipient = \"cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5\";\n\nconst amount = {\n  denom: \"uatom\",\n  amount: \"1\",\n};\n\nconst result = await client.signingClient.sendTokens(account.address, recipient, [amount], \"Memo Message\");\n```\n\nFinally, the client provides two querying methods for the Cosmos SDK API:\n\n### query()\n\n`.query(endpoint,queryparams)` \n\nA basic wrapper around Axios. For example, to query the bank module for an address's balances: \n\n```\nlet balances = await client.query('/cosmos/bank/v1beta1/balances/','cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n### request()\n\n```\n.request({\n    body: body,\n    path: path,\n    query: query,\n    method: method,\n  })\n```\n\nThis helper method is compatible with the swagger-typescript-api API classes that are generated with `--single-http-client` by using their Swagger definitions if the generated API classes exist for your chain endpoints.\n","gitHead":"497f385f551f2ef310530ec33304784b96b6b503","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.0","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.10","typescript":"~4.1.5","@babel/core":"^7.13.10","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.13.10","@cosmjs/proto-signing":"^0.24.1","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.3.1","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.18.0","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.18.0","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.44-beta.0_1618311608182_0.20497249963327047","host":"s3://npm-registry-packages"}},"0.1.44":{"name":"@starport/client-js","version":"0.1.44","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.44","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"49474dcb0492c12d1b4a62d96cd97b708d2a080e","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.44.tgz","fileCount":14,"integrity":"sha512-kCztbSjbdEMnjKG7cHtg7sPqKQ9YtyD8UdVNiXf/gOeKEJlHYxcx+gVu4GnW/Lc5xzSd5Xtn8CGMKA6qf1B4Ww==","signatures":[{"sig":"MEUCIQC33JTbYtW+HDiWrD5wkgvsmjPw9IrwDO3bSISO+bYFXgIgNCtCPjy1SS5zJ/dFIbjfvedrNERS59XFAb7hTJRTrJE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56767,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdXn2CRA9TVsSAnZWagAA75oP/0wWKk74Ek6A1AvW9JOi\nRu8w787Z8twRJT8lDSE85gmN4HJ+IpoUgRF0guBF+0Cd3iOMklk69cAngdlr\nBGCTCbcLzjGooFVf1ZUFpPh4W2qpD9OVR3+4ucqUX13OlFoPNuA1AYmFzXax\nbDiTe47wV0GMmrf2IiYhWNpnj7yTn4P01NS+7/ANYzigA3DYcG7n7eg4Cu08\n/7l/Smlaw46fAlCKk9rhiq8w61GbApVx2QkE/YBH5X+7atTyXB/DAcAjj1vK\nVrom6ERcoUSQD0GGkXZeAxu5Nvse0lwHVlo8UZsMzXsDTZC39Mp8dv3Xly0L\nYwjSau8+KL+hKvXt8JDj5AcJDEkqnD8tstq7lsxQa5Sj8yh1J3gBF41lN5fL\nXjsRIrvq9/5NwIMNAnx3bbN1/mRDmOYjplR5qKnBELqE9LyvNJsj/LRLNJW1\nNW1lEEqKjfEKIZPBoIRwUd5J/V/yCd6IzIxGyjDu9un4HlJxO2w3TrkhYSml\nnM/s+lLFeeEU72OMCQPvzxhqgVX8uEzrZR9ZfxHN4+0UyoQSOM1FuS/HofZV\ntAx9o3bzUzNjY75Pa3/SyBcv1GJXzMdYW8GGxcAeyqap9fOkVHQODvzEpqCW\nZ0VnXu0wx9ykPahniHB9nMRXfBSydVXuUgALBmR2JZcm+2h8ASCXg4RVAfxr\n3ZOQ\r\n=6eTo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","gitHead":"f50faa04e5d00087b96cd65a173845640ac85aab","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.0","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.10","typescript":"~4.1.5","@babel/core":"^7.13.10","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.13.10","@cosmjs/proto-signing":"^0.24.1","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.3.1","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.18.0","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.18.0","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.44_1618311670454_0.763176704670774","host":"s3://npm-registry-packages"}},"0.1.45-beta.0":{"name":"@starport/client-js","version":"0.1.45-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.45-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"dcdeaa42b7a5e7566c6846cfc669c922583a0ece","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.45-beta.0.tgz","fileCount":14,"integrity":"sha512-0h2tfbkudEXMZFUd/4FFxtFBAkiQqiRwUGFj4VkOXea60H00ImXvyHaOomBlNGGHAxq5t35AeTasQMcIen7G0w==","signatures":[{"sig":"MEQCIF35Gw+ieC1JOYZucs6j765PWMrutAtYxFUuAEhIkbRdAiAt7wZSLSrsbaF2sQlYg0LRGzz9wcIq12S7iZkmzSP+Rw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56782,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdslQCRA9TVsSAnZWagAA7B4P/i3W3Nx/ulgF8JPVcF96\nm62xFUAT9r82I9UfmNagYfJAzR6MdyEFCRaglZfEwArJ+DtSL56HJsCc0aBy\n3wykA5E05lowrqXi8Y1yOIQGG7F6EIMIQizEzhxidUrtng9QgqnH96zqDPph\ngrmcsWO5pIpe8Q9riYzUUIRNd0iaJ61q07xJ/DyTZWOfK9Bt3H7pJgNTZ6T/\nS67qGVD9XYWEnEgLt7HddF4B5fuDKq3kB9swpXBvFW5aZpISsIglUGSjkQ+c\ngt4ZvdPjLJtcfZErDdY5LcZFG7loGLudhFdddNyEylcPMDjFIgR+KHE8fUt3\n1R2KfnE0xBIvCm3ZfKY9yMPB3b3VU9LOUoodIl2xlHnED9UIGrpPLi6zVE1J\nh922g6rXFWB/+EMhQ1UDpkyTWvguIE8Ivc8+S9q2YHv+50/nyxZaEguE0HU9\nzFCRxXlWNd7fsD0ST36q06m19Ceq0e928BFP7zJ3hicbkdAImohewtxLlGCm\noSkn24qxWCvogbhDgcLorAJtbNXixuSkKyUun5DmARt4I+UstPxVpBj1btnK\nN7r6aG7Bcrfj5dPb2JTFBXfQUK3n4hVCowKXMAKtMJyLtg04Gy/AxSqvJs/B\nOXjvu13mGWMdzZYt2PxS34rUAxv4b31Rst3fEEYwM5W2v/pDf0t4xW9Lalpc\n6Ry3\r\n=Ls6n\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","readme":"# `@starport/client-js`\n\nThis package implements a generic JS client wrapper for the Tendermint RPC, Tendermint WebSocket, and Cosmos SDK APIs.\n\n## Install\n\n```\nnpm install client-js\n```\n## Usage\n\n```\nimport Client from '@starport/client-js'\n\nconst client = new Client({\n                  apiAddr: 'http://localhost:1317',        // Replace with Cosmos API node address\n                  rpcAddr: 'http://localhost:26657',       // Replace with Tendermint RPC node address\n                  wsAddr: 'ws://localhost:26657/websocket' // Replace with Tendermint WS node address\n                });\n\n```\n\nThe client implements EventEmitter, runs a periodic connectivity test, and emits the following events based on the connection state:\n\n* 'api-status' : true/false\n* 'rpc-status' : true/false\n* 'ws-status' : true/false\n\nYou can listen for and handle those events in your app in the standard way:\n\n```\nclient.on('api-status', (status) => { \n  // Handle API status here\n});\nclient.on('rpc-status', (status) => { \n  // Handle RPC status here\n});\nclient.on('ws-status', (status) => { \n  // Handle WS status here\n});\n```\n\nThe client also provides methods to switch the nodes used in an existing instance:\n\n```\nclient.switchAPI('<new_api_node_address>');\nclient.switchRPC('<new_rpc_node_address>');\nclient.switchWS('<new_ws_node_address>');\n```\n\nThe client automatically subscribes to new block events and emits the events for handling:\n\n```\nclient.on('newblock',(block) => {\n  //handle incoming block here\n})\n```\n\n### Additional features\n\nThe client provides a `useSigner()` method to connect a signer or wallet using the [CosmJS OfflineDirectSigner interface](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/signer.offlinedirectsigner.html).\n\nTo access the resulting [CosmJS signing client](https://cosmos.github.io/cosmjs/latest/stargate/classes/signingstargateclient.signingstargateclient-1.html), use the `.signingClient` property. To access the signer, use the `.signer` property.\n\nUsing the client `.switchRPC()` method reinstantiates the signing client appropriately.\n\n```\nconst signer = await DirectSecp256k1HdWallet.fromMnemonic(mymnemonic) // or any other object implementing the OfflineDirectSigner interface\n\nawait client.useSigner(signer)\n\nconst [account] = await client.signer.getAccounts();\n\nconst recipient = \"cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5\";\n\nconst amount = {\n  denom: \"uatom\",\n  amount: \"1\",\n};\n\nconst result = await client.signingClient.sendTokens(account.address, recipient, [amount], \"Memo Message\");\n```\n\nFinally, the client provides two querying methods for the Cosmos SDK API:\n\n### query()\n\n`.query(endpoint,queryparams)` \n\nA basic wrapper around Axios. For example, to query the bank module for an address's balances: \n\n```\nlet balances = await client.query('/cosmos/bank/v1beta1/balances/','cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n### request()\n\n```\n.request({\n    body: body,\n    path: path,\n    query: query,\n    method: method,\n  })\n```\n\nThis helper method is compatible with the swagger-typescript-api API classes that are generated with `--single-http-client` by using their Swagger definitions if the generated API classes exist for your chain endpoints.\n","gitHead":"10dadf91ba2398f22c2c9adb9c6c0dd4b5a68d89","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"^0.21.1","@types/axios":"^0.14.0","@cosmjs/stargate":"^0.24.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.10","typescript":"~4.1.5","@babel/core":"^7.13.10","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.13.10","@cosmjs/proto-signing":"^0.24.1","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.3.1","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.18.0","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.18.0","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.45-beta.0_1618397519582_0.15421166874790093","host":"s3://npm-registry-packages"}},"0.1.45":{"name":"@starport/client-js","version":"0.1.45","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.45","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"f496d9eb1e479b9ffb3492a11ee2aaece7b98ab6","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.45.tgz","fileCount":14,"integrity":"sha512-FfQkWaWYE91aiM0mz+jpqCvyRww+HaiTXXQq9jtiS/y92BjIXub4YWnLisSXt7lVPnzVFDTGiutUv7k4niKP/w==","signatures":[{"sig":"MEUCIQC8sxDwDi729/2OO0UvCKAmsH2qJpDpkOFk5zhkMU0l6gIgOKBosv38rrQAaSeAtrH9YixCvOagT5E1N29gM7qT6uE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggZlVCRA9TVsSAnZWagAAZDEQAJDE/1w5Ez8ShOtsZNS1\nLOb2WskyMv3fwZxamC+wn+6tUUnC9uyTNgLYoz1B1QqI+/MXpDsMt27O9Cqh\nvsEmdpENwWam8/0/QvNPKDgEU8OClGH0vnzGHWujEzN96cE6gzvlNA4s0xHn\n9nGcRGNu4A/Evu5C4PHhfikhgrqqGlZOyFfaLU/DehJSt+T18CBoNodfSW12\nw1lvK7ygDyO/TyueIwle5u5gC9pOTeHPvqHQPxBOS68g9+qd33eDQ8mv7Zhj\n2mt000PviGoJyhxBQlUEbrMUv1lLfmi8bn3cjdqOYxeoMmaXMWeootbNi3rh\n0A1LGuxN3ltz2jrv21HurdP+KdFT9X6YC5z9VXliTToj6THu/DO97+UADBrf\nXA0QrvlT6n7IxrL6CWLOkdbDq8B3tlaXSEwpp/fuFeWVjBrBq5oEYl7+49SG\nzAIKwrjJNI4kiQQCPdBk+LDWYTF0RL/Smvo6h145eHRT9q0yHYFQZH8rRcbA\nzgjvAJTRpfAfdGs/sC0LRYiLFXHVKCFCLdSYbAfPRcqcnE9RRalS8xnxPZPb\n7RcDX22sbKF4+yOnFLRFACQ65VFVrx59TI0aezqedSdwjiDWt+7B/23f6vcx\nfjJNfc1KnnuLo0qGWhPzdyMvUNjjoIF+T0AmBVCYLndUX/cwT0pV+k/BwC9p\nwjTW\r\n=RS+N\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","gitHead":"d183bc4c37125d7282fe47c782aabc5a0be87284","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"0.21.1","@cosmjs/stargate":"0.24.1","reconnecting-websocket":"4.4.0","@types/reconnectingwebsocket":"1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"6.8.0","prettier":"2.2.1","@babel/cli":"7.13.10","typescript":"4.1.5","@babel/core":"7.13.10","@types/node":"12.20.5","babel-loader":"8.2.2","@babel/preset-env":"7.13.10","@cosmjs/proto-signing":"0.24.1","eslint-config-prettier":"6.11.0","eslint-plugin-prettier":"3.3.1","@babel/preset-typescript":"7.13.0","@typescript-eslint/parser":"4.18.0","@types/reconnectingwebsocket":"1.0.6","@typescript-eslint/eslint-plugin":"4.18.0","@babel/plugin-proposal-class-properties":"7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.45_1619106132610_0.06909182083701637","host":"s3://npm-registry-packages"}},"0.1.46":{"name":"@starport/client-js","version":"0.1.46","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.46","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"b2b1233c48ed33257dacd2069f3274953bcbb462","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.46.tgz","fileCount":14,"integrity":"sha512-eZ1vYp0CSo9InxsgNj1F8UyUjP0nvgBtMujynSzPOeoKHdPyjjCzFHP/LPDjbA0UylKhL0yRSOgxgzYoTcKIyA==","signatures":[{"sig":"MEYCIQD8NpA0A5aGRL+bj7300jGSmzUVGSCHWhpwEhI6X+3LdQIhAOlgsx5TXU+eFtkfzcI+caWJMT2687Dc9w9y3EYx2pHs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggaaeCRA9TVsSAnZWagAASRIP/0XCu7fTb7wgq5Qtii2y\njzXIah7/YUQYlqVD6i3D2V0ysQ3/mbxYfonIDibx48Etdzjz7SARK/ppIfJK\n/4oPazHgLFh9wc8u+APZSA7mTpEqdKvngKRAQrQ52fy2IoyUgGSwCQdYNSPn\n0Hff5i3AQ0rFSzQNOWjS0ecIrrKJfqPRWWOQ49kp2pEMsPtN/UnPPCt5cNXN\nazmyi4VS88mVnHAfqz4GoSZh+TsLkCHzlxaT6xSOBDWpMswFE54Y9YxMwlKV\nrLD0QmLRH2UoghUlhXPyuiAUQ5jy6iqbNs9JT0jrYFBOxcxasjR4k9pNdCku\nw1PvmpxbeXH3VRllInTbSWbGoDjVVcrkc4IO20XJPfLce5zQW+gHkTF72B2K\ndEZhSS0Xgx1lmX0L7O8y2gQvZwjsf3NOHHH6k7ny9swty+NeqKkXj+NPtMEU\nhPM3uyPxY3vaTs0X1N1eBCyb9gLi6GgCSGHQuBjtsqbUQi3eVAc2ukHXm+Gp\nzgsCie2mX5+MCX0e9HiU5eKuyaoE8YsPT97scj12Wgp6RjmAhVPa5wQ5qHCU\nsLZw5Ona5SAQwu4gtDYDTrFbkp4P7ak8lsjC2gfLuf073y7002CTxL6lPRoK\nNb6VYs/zHzDIFrPHoupB/DZ7JAMnSp+AUcqAvdm6LpiBuATd4YDk6jO6Ktr3\n/smI\r\n=HZ7R\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","gitHead":"dbfc774b8618d96a3a31ace2755ae700360d749a","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"0.21.1","@cosmjs/stargate":"0.25.0-alpha.2","reconnecting-websocket":"4.4.0","@types/reconnectingwebsocket":"1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"6.8.0","prettier":"2.2.1","@babel/cli":"7.13.10","typescript":"4.1.5","@babel/core":"7.13.10","@types/node":"12.20.5","babel-loader":"8.2.2","@babel/preset-env":"7.13.10","@cosmjs/proto-signing":"0.25.0-alpha.2","eslint-config-prettier":"6.11.0","eslint-plugin-prettier":"3.3.1","@babel/preset-typescript":"7.13.0","@typescript-eslint/parser":"4.18.0","@types/reconnectingwebsocket":"1.0.6","@typescript-eslint/eslint-plugin":"4.18.0","@babel/plugin-proposal-class-properties":"7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.46_1619109533724_0.9425199418382015","host":"s3://npm-registry-packages"}},"0.1.47-beta.0":{"name":"@starport/client-js","version":"0.1.47-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.47-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"e0311f831ba4c7f433bf3f724a6a32229df34fdf","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.47-beta.0.tgz","fileCount":14,"integrity":"sha512-Hw1C0sUVMSfAg0Z1vd+n2/oMWdCfMjCsf93YyVCBowcXs9cgzJfDAsSR6jSqfQ7GqwMEwExWu6qX5mjRPAywfw==","signatures":[{"sig":"MEUCIQDjCQzx4He6SntWd/7ioNW63tXlTopOThg56IbWqO3WMQIgbLezMm2bhohAGi8wMKqY0wy0tOF+kOh3P9Ypj/llGQk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57171,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggqQJCRA9TVsSAnZWagAALjgP/A7VSCCOrhI362dZf/tL\nN767YDWqhG+Hw92h/OJU0WGjkfbd9+5IvUHCiUYwSGX1/kBmtBYmJ8UQUHbl\nQHV+YX80Cen3S6ukGPEmQZ8PieTL70sKjvuFSktUNQT4d0U3H0yL54dYG+MK\nSJkpzF9HluWG26irevHuH5AodRtWHG8u10Lo8kJdsiHXjrKfTd56I2rt7ZxO\nKjOnotUmtdJrCNozaN1zdRmdLKj44k9zwLotklyERPqWvNXOCDNyXvMqzv7M\n5BGPgUGUqxOpH6Zhk4Jnw7DKXtinbggkDMZgqhMJgyrYFUciSbIVjubpGRaM\nFvInD5o8vwI0O1arobAD+SaESUTNaHBHprfqp6yAnY+xaxbqELHreRS/dIzo\nGJX07y2vkMVGzeo37hz4pVSg0IRpEQYkfY4/zK3qAlwbQV5qzv1TSbPuoRtG\n23b2i91oVOdcFsgaviiKO4mpt3qcNCPmGkdYZToxH7N43Ye8CFRHjfrFkdcp\nusLzm/qQw/6zRq8Q9C1f2lpPzF4NV8Y4ereWscw8/GTuV2CJAFHzchfmZgg0\nrl4lxa+nxPAiwp1LSigGtHQXReNGgO1BUy/sfbw8GzwFn+Whyib1feCluqq+\nOqlkpaXSCwHjYGMqNMMBeaj6ZDhq44dYmTel2M8fYx9U0B6TujGu311OrmOy\nuJQQ\r\n=h/Xe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","readme":"# `@starport/client-js`\n\nThis package implements a generic JS client wrapper for the Tendermint RPC, Tendermint WebSocket, and Cosmos SDK APIs.\n\n## Install\n\n```\nnpm install client-js\n```\n## Usage\n\n```\nimport Client from '@starport/client-js'\n\nconst client = new Client({\n                  apiAddr: 'http://localhost:1317',        // Replace with Cosmos API node address\n                  rpcAddr: 'http://localhost:26657',       // Replace with Tendermint RPC node address\n                  wsAddr: 'ws://localhost:26657/websocket' // Replace with Tendermint WS node address\n                });\n\n```\n\nThe client implements EventEmitter, runs a periodic connectivity test, and emits the following events based on the connection state:\n\n* 'api-status' : true/false\n* 'rpc-status' : true/false\n* 'ws-status' : true/false\n\nYou can listen for and handle those events in your app in the standard way:\n\n```\nclient.on('api-status', (status) => { \n  // Handle API status here\n});\nclient.on('rpc-status', (status) => { \n  // Handle RPC status here\n});\nclient.on('ws-status', (status) => { \n  // Handle WS status here\n});\n```\n\nThe client also provides methods to switch the nodes used in an existing instance:\n\n```\nclient.switchAPI('<new_api_node_address>');\nclient.switchRPC('<new_rpc_node_address>');\nclient.switchWS('<new_ws_node_address>');\n```\n\nThe client automatically subscribes to new block events and emits the events for handling:\n\n```\nclient.on('newblock',(block) => {\n  //handle incoming block here\n})\n```\n\n### Additional features\n\nThe client provides a `useSigner()` method to connect a signer or wallet using the [CosmJS OfflineDirectSigner interface](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/signer.offlinedirectsigner.html).\n\nTo access the resulting [CosmJS signing client](https://cosmos.github.io/cosmjs/latest/stargate/classes/signingstargateclient.signingstargateclient-1.html), use the `.signingClient` property. To access the signer, use the `.signer` property.\n\nUsing the client `.switchRPC()` method reinstantiates the signing client appropriately.\n\n```\nconst signer = await DirectSecp256k1HdWallet.fromMnemonic(mymnemonic) // or any other object implementing the OfflineDirectSigner interface\n\nawait client.useSigner(signer)\n\nconst [account] = await client.signer.getAccounts();\n\nconst recipient = \"cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5\";\n\nconst amount = {\n  denom: \"uatom\",\n  amount: \"1\",\n};\n\nconst result = await client.signingClient.sendTokens(account.address, recipient, [amount], \"Memo Message\");\n```\n\nFinally, the client provides two querying methods for the Cosmos SDK API:\n\n### query()\n\n`.query(endpoint,queryparams)` \n\nA basic wrapper around Axios. For example, to query the bank module for an address's balances: \n\n```\nlet balances = await client.query('/cosmos/bank/v1beta1/balances/','cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n### request()\n\n```\n.request({\n    body: body,\n    path: path,\n    query: query,\n    method: method,\n  })\n```\n\nThis helper method is compatible with the swagger-typescript-api API classes that are generated with `--single-http-client` by using their Swagger definitions if the generated API classes exist for your chain endpoints.\n","gitHead":"6e847e6c443213bb0b1427b1a18774ba77aeda3f","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"0.21.1","@cosmjs/stargate":"0.25.0-alpha.2","reconnecting-websocket":"4.4.0","@types/reconnectingwebsocket":"1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"6.8.0","prettier":"2.2.1","@babel/cli":"7.13.10","typescript":"4.1.5","@babel/core":"7.13.10","@types/node":"12.20.5","babel-loader":"8.2.2","@babel/preset-env":"7.13.10","@cosmjs/proto-signing":"0.25.0-alpha.2","eslint-config-prettier":"6.11.0","eslint-plugin-prettier":"3.3.1","@babel/preset-typescript":"7.13.0","@typescript-eslint/parser":"4.18.0","@types/reconnectingwebsocket":"1.0.6","@typescript-eslint/eslint-plugin":"4.18.0","@babel/plugin-proposal-class-properties":"7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.47-beta.0_1619174409075_0.9443808396363953","host":"s3://npm-registry-packages"}},"0.1.47":{"name":"@starport/client-js","version":"0.1.47","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.47","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"3c62edf7b73edf362c4b6a9bcc6385d499022402","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.47.tgz","fileCount":14,"integrity":"sha512-72ldchaf2MLhYh+tDpYsK2gfsGi9Aciy6onSZajmQlHr1nHhUZZ9II2Gr/b8pckMM3/DFgO4T78Jx2OP8LvDVw==","signatures":[{"sig":"MEUCIH8i9oEytp+jqz+rL9fak85sqTz0pA8H4jchV1Ye1b8fAiEAqmtTihmS1X5xxSsZlyVHZIdQhAQJOabDNmI6BhgAMik=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghRKECRA9TVsSAnZWagAAorwP/iqAoyoS7gV23KZsREDS\nUrbE9piQ7w1dq2e3QpWZDavULdm8ak2fueDkMAGeXcrHaCmP7EQDzmkTv7KG\niOmINVYfhKwcITRJPGMWclmk9qKE2VTBYwApXv8EE/uhlw3OeGUj+jtXH20f\nsKy8D/0drA7Ii0/w4Yog3tLlJHoXkmj1sb7BvsGuy1eUpUaD+y8DDcPEEQ7d\n7aK/1H3LjcShCXgEW28pQoC1UBFzQgoiipx78xTKy7O8eqMpfP703pBeiYXj\nDyWwlbPNGgPywuOeggacGWVYEKb/GcwBN5n83NwGYikkZRxnyguffsZ8Rq+/\nhvbby/HYiJI75w3SnQZgBLTVULfwMzCKD21dSszWeYAmOX7k2CNZZOQ5fscR\nOeDQgBrj+caQrl0JbbZoWP8VkMbSyur1rkyoSAadw7Mx3zca0vPU5r5bUoMI\nSF5tdOvCmoc0uusHitoFkMVOeT5Hi4qsTdZF85mFtBTPd1NT6HxHGsKhW60b\n2tjkSxn9a4cBt7RHtktoLA+bqNgVkZ8Pl5iwaELhNEmJqeUeimrHzSahXWnN\nRozP8ThvBDBSXNelGLm+6WZ684tYy3BmXd6ghzhH4Pr9/nue2KqMcwpAheTe\nbaBTDf4AvtV6gSTkpKuPenKrlJ0MmsESihSCwJvB5wYXTA3wQd5BDOiFS0Gs\n/OQH\r\n=/jmu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","gitHead":"ca731429d0417bd03755e707f6d103d2c8866d75","scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"0.21.1","@cosmjs/stargate":"0.25.0-alpha.2","reconnecting-websocket":"4.4.0","@types/reconnectingwebsocket":"1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"6.8.0","prettier":"2.2.1","@babel/cli":"7.13.10","typescript":"4.1.5","@babel/core":"7.13.10","@types/node":"12.20.5","babel-loader":"8.2.2","@babel/preset-env":"7.13.10","@cosmjs/proto-signing":"0.25.0-alpha.2","eslint-config-prettier":"6.11.0","eslint-plugin-prettier":"3.3.1","@babel/preset-typescript":"7.13.0","@typescript-eslint/parser":"4.18.0","@types/reconnectingwebsocket":"1.0.6","@typescript-eslint/eslint-plugin":"4.18.0","@babel/plugin-proposal-class-properties":"7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.47_1619333763936_0.340934941961359","host":"s3://npm-registry-packages"}},"0.1.48-beta.0":{"name":"@starport/client-js","version":"0.1.48-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.48-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"2acca47d6efc33391c4c32bcca12897fa032a3b4","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.48-beta.0.tgz","fileCount":14,"integrity":"sha512-v3WaGOOoK80NK1/L/xqTSXKWuTaAdqK9oUhLSmI/BQPjlbMBQK1yuHWgW1xX5AlharlXj5ds0MfjmK0YI6HH7Q==","signatures":[{"sig":"MEUCIG25h9SySbK0gXMW1LjLmEM2MO6Rq3gl5UAJp5uZQFLZAiEAmum9eqB96y8RCrherzAOMqYmW+85RTTKz7ujLwZTVbQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58018,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkUzjCRA9TVsSAnZWagAAK5QP/if0phsSsw5QH4O/yy//\niS+x3+JWADqScqICwxF2SaN1H9hNulJBgqKBHveGoEkU1nmTMB0+Pj0a0+0Q\nFWIcW6DpWXYLSUXIlikMt+8oz1fGO9nUYqSZw7WOeX91CK8FIqFJ83j4Dwe/\n/lzUoqCkQSBtxizGYf/Y2w9OSUbci1dNwV7pngByoI1p1XfYusf9hp0RfD25\nCFCtM8CjtlUJbk5SliCqCzWYqvA/qd3H/u7JjfcwBEoJl2tY039Hw6XUoGOH\njGpWLd0Pvpw5LZ1SEWZbkLA636Nev3Huezn312TM8+iyOkgYJf+BDor5iaZm\nFf6nUtesseq2aRGjwWc25FpiL0rjTr15maELPx1+h0mY+/uHBeQV9WcAakYj\nsC5Po8iNQAzfb9c6V2DvPU0yErVvtncc7GKUiVzsH+Lc6cMWf5CW07QEqjYB\nN9Hjrz7RV+q+9yJiMp7zserRJ4mbPkXJWYcNatYP1eBAg1JsHLluy/RHy6DY\nBk2QqXncdMFBBlKuINsg96gX/8OGCoL2o/cFreIcdtfxAEr/lr250EuJfmom\n/oxVu2UDm948PZ3gE+lbbpOmXAbeIQWIjz5inEIxq7p1HlH/3MwMQRnTmA9H\nVZdq27x2bhM1csAdyWOvLkoIbadPeuGTsuPbPgKUdVbzQJXV8Jt9SScPWmLx\nTqyr\r\n=dEUG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","readme":"# `@starport/client-js`\n\nThis package implements a generic JS client wrapper for the Tendermint RPC, Tendermint WebSocket, and Cosmos SDK APIs.\n\n## Install\n\n```\nnpm install client-js\n```\n## Usage\n\n```\nimport Client from '@starport/client-js'\n\nconst client = new Client({\n                  apiAddr: 'http://localhost:1317',        // Replace with Cosmos API node address\n                  rpcAddr: 'http://localhost:26657',       // Replace with Tendermint RPC node address\n                  wsAddr: 'ws://localhost:26657/websocket' // Replace with Tendermint WS node address\n                });\n\n```\n\nThe client implements EventEmitter, runs a periodic connectivity test, and emits the following events based on the connection state:\n\n* 'api-status' : true/false\n* 'rpc-status' : true/false\n* 'ws-status' : true/false\n\nYou can listen for and handle those events in your app in the standard way:\n\n```\nclient.on('api-status', (status) => { \n  // Handle API status here\n});\nclient.on('rpc-status', (status) => { \n  // Handle RPC status here\n});\nclient.on('ws-status', (status) => { \n  // Handle WS status here\n});\n```\n\nThe client also provides methods to switch the nodes used in an existing instance:\n\n```\nclient.switchAPI('<new_api_node_address>');\nclient.switchRPC('<new_rpc_node_address>');\nclient.switchWS('<new_ws_node_address>');\n```\n\nThe client automatically subscribes to new block events and emits the events for handling:\n\n```\nclient.on('newblock',(block) => {\n  //handle incoming block here\n})\n```\n\n### Additional features\n\nThe client provides a `useSigner()` method to connect a signer or wallet using the [CosmJS OfflineDirectSigner interface](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/signer.offlinedirectsigner.html).\n\nTo access the resulting [CosmJS signing client](https://cosmos.github.io/cosmjs/latest/stargate/classes/signingstargateclient.signingstargateclient-1.html), use the `.signingClient` property. To access the signer, use the `.signer` property.\n\nUsing the client `.switchRPC()` method reinstantiates the signing client appropriately.\n\n```\nconst signer = await DirectSecp256k1HdWallet.fromMnemonic(mymnemonic) // or any other object implementing the OfflineDirectSigner interface\n\nawait client.useSigner(signer)\n\nconst [account] = await client.signer.getAccounts();\n\nconst recipient = \"cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5\";\n\nconst amount = {\n  denom: \"uatom\",\n  amount: \"1\",\n};\n\nconst result = await client.signingClient.sendTokens(account.address, recipient, [amount], \"Memo Message\");\n```\n\nFinally, the client provides two querying methods for the Cosmos SDK API:\n\n### query()\n\n`.query(endpoint,queryparams)` \n\nA basic wrapper around Axios. For example, to query the bank module for an address's balances: \n\n```\nlet balances = await client.query('/cosmos/bank/v1beta1/balances/','cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n### request()\n\n```\n.request({\n    body: body,\n    path: path,\n    query: query,\n    method: method,\n  })\n```\n\nThis helper method is compatible with the swagger-typescript-api API classes that are generated with `--single-http-client` by using their Swagger definitions if the generated API classes exist for your chain endpoints.\n","gitHead":"842aa9f3a6f55ba68783f7bc84697304f7adf659","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"^0.21.1","@cosmjs/amino":"^0.25.0-alpha.3","@cosmjs/utils":"^0.25.0-alpha.3","@cosmjs/crypto":"^0.25.0-alpha.3","@cosmjs/stargate":"^0.25.0-alpha.3","@cosmjs/launchpad":"^0.25.0-alpha.3","@cosmjs/proto-signing":"^0.25.0-alpha.3","@cosmjs/tendermint-rpc":"^0.25.0-alpha.3","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","typescript":"^4.2.4","@babel/core":"^7.14.0","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.22.1","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.22.1","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.48-beta.0_1620135138824_0.4458187010132746","host":"s3://npm-registry-packages"}},"0.1.48":{"name":"@starport/client-js","version":"0.1.48","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.48","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"0d2207fa89266c2cc3ef2dfabb814e9e80197d5d","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.48.tgz","fileCount":14,"integrity":"sha512-8Q4ZnDuhNnmVqk/m81MdshaC5/a+FQkB8ogmLWP2X8/Jx87wYq81KB5ser8Ff0T+IrtF1il46SFZ22V4bfF74Q==","signatures":[{"sig":"MEUCIQDvAg3xTSCmFS70mKeA8Z80UwIusjWuuwFhdlUMxbhRfwIgcho+RwunJ1rMTiWSnoL6+rKAloqMctoPoNIXgB1py2E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkVSvCRA9TVsSAnZWagAAw2MQAIC86D8qEH3bHj2PZUpl\nc3+jjdn62/xHmajfLfNUYCvoZrKtQzTE6RDyv1WZNwVCqrNtP3IND8ow9zv0\nKKThH/PcnuPIYJDvSII+/CPfROCv8aMJNBnwT0enLT7PYoEqd/+4fE3HGVxl\nqv8SMNV8p3AArYbYTjN1+4/IG+2ob2CX+PvrbQ0PGY1Jp76BBsrse2iCmTSx\npZnmT7AGNBs0BMbz/F6w86A0ZUDo2fWFGpzHuAcTvfv2tFLbZgwoq/ojpLW3\nBOK2AjmKBSuVxEO1lRxR74B2nwOlRMA07jCnetggi6VzZ+eez+pI0g+gJDIB\n6hF4p9iZ09KG7mw6MUydz6MoRKeClSaA0YHwwnCrcL5Xh11lS76iSJvJbLBc\nY5c8bcFLycj6KGuQ8R8/rtd76ns/sxipec6Oicd3JW8q1FdPDqTQJcyMboeh\n3R5C6nS9SOgLtfZuKp9SICnayNlDI03FWoPMNj7LBpe3LvVNQXi91K/oM9f7\njwbqAFNDm0ZtUjWU1099KjsBJKOLAAzuclxjLZzwdFWyYX0+3cNlyrWbVRAP\nsP7hqFIpbe6bqRpFwEOINfCHfpikzlnT8jCWXXpTrKO7TvATQmP5dnFQx9U4\nM0niIzeK9iNcpPkfkLpwaDgLVRzsaMVN8ra7MP4CvLlHWSXZXUnmNx7pUkl1\nBghc\r\n=CTP7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","gitHead":"240fe66591ae55e0ba5d5e6b849502972cfc01e3","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"^0.21.1","@cosmjs/math":"0.25.0-alpha.2","@cosmjs/amino":"0.25.0-alpha.2","@cosmjs/utils":"0.25.0-alpha.2","@cosmjs/crypto":"0.25.0-alpha.2","@cosmjs/stream":"0.25.0-alpha.2","@cosmjs/encoding":"0.25.0-alpha.2","@cosmjs/stargate":"0.25.0-alpha.2","@cosmjs/launchpad":"0.25.0-alpha.2","@cosmjs/faucet-client":"0.25.0-alpha.2","@cosmjs/proto-signing":"0.25.0-alpha.2","@cosmjs/tendermint-rpc":"0.25.0-alpha.2","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","typescript":"^4.2.4","@babel/core":"^7.14.0","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.22.1","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.22.1","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.48_1620137135094_0.47396402551887484","host":"s3://npm-registry-packages"}},"0.1.49-beta.0":{"name":"@starport/client-js","version":"0.1.49-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.49-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"f1c1764550f2e6b28f12389901656ff8a8cf2f99","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.49-beta.0.tgz","fileCount":14,"integrity":"sha512-ydX6ltPKgrs4e+Dsg10PGK06SEfehcMRIYmjtPzRqKnZb+YWsPAJ6yolU2k8HRZ1nhMT+TZE/0lKV78M+v9BEw==","signatures":[{"sig":"MEUCIQDY7g1mx1O5y2EVVV7zoJL7JeT9UxeEPzbp8z/PzA2FvgIgTpoODbLE67nOrhOweXWo71nlhHA3Dt7crdYjMj4ueCE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57786,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmShACRA9TVsSAnZWagAACHYP/RQn3hIno1ZCJOjUVNtS\nbWP4ocZi/eQ0QFWp9uCIhhdE9w3cIzqwT+kylIvTYef6HDXFi+kmAz2ReTJ+\nGoZVVy8Cm0fo7rWwWJQJreGRipbPsiCLH2jy/DtfScmv4byJiLJZpmV6PkOO\nM+5mttptHUDoD1gEjCBVGJWFe4uAgjpK1YQEV9L066WGUKxCDZTys4T+wlro\n/Hl8HRHRYijpI/DJlwi+Cxkf7XFsB7RtIR2uzYxcffjXCTQbYEmww7EmgcQV\nTfTkQjmbcdCXsPbYWPlkOp0DNK3voW9mumXyl7h+eOFkzglEBbtAKma0zUlu\nxlIHpCqie66vpYVIpbJxfm6JyJVYwezQ/m/wrO2HrbHLhmW9KhXWBVSV+nNY\nqSYFZ+tfqdIhlH+j8/vbO83A7aVTACoPfnMBrC2+wHePaRb0gcoE4YBPci/r\n77E62taldGxj0wY/tFpWTcaoIuDsSQBrw/8eES9Qtk6ZBjIpunlqMhmQeX3B\nj+vxjEs65M5uc9etnd+ISN1REfeC6ohu+bJn3aePlwwV8Kkc0+hdNipfWCpe\nfAYNY3cMyHNp0EhikzQOBakxCEAOa5vBSCTSAEvd5SEJfB5vkk+9K1g1/OlR\nQac0oEQhvdSpyBLmc6lfGbLRBY1d/W7wdJHkZk2UOPUEmfFN1S+JfpGFrNbS\nEtEi\r\n=jeH9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","readme":"# `@starport/client-js`\n\nThis package implements a generic JS client wrapper for the Tendermint RPC, Tendermint WebSocket, and Cosmos SDK APIs.\n\n## Install\n\n```\nnpm install client-js\n```\n## Usage\n\n```\nimport Client from '@starport/client-js'\n\nconst client = new Client({\n                  apiAddr: 'http://localhost:1317',        // Replace with Cosmos API node address\n                  rpcAddr: 'http://localhost:26657',       // Replace with Tendermint RPC node address\n                  wsAddr: 'ws://localhost:26657/websocket' // Replace with Tendermint WS node address\n                });\n\n```\n\nThe client implements EventEmitter, runs a periodic connectivity test, and emits the following events based on the connection state:\n\n* 'api-status' : true/false\n* 'rpc-status' : true/false\n* 'ws-status' : true/false\n\nYou can listen for and handle those events in your app in the standard way:\n\n```\nclient.on('api-status', (status) => { \n  // Handle API status here\n});\nclient.on('rpc-status', (status) => { \n  // Handle RPC status here\n});\nclient.on('ws-status', (status) => { \n  // Handle WS status here\n});\n```\n\nThe client also provides methods to switch the nodes used in an existing instance:\n\n```\nclient.switchAPI('<new_api_node_address>');\nclient.switchRPC('<new_rpc_node_address>');\nclient.switchWS('<new_ws_node_address>');\n```\n\nThe client automatically subscribes to new block events and emits the events for handling:\n\n```\nclient.on('newblock',(block) => {\n  //handle incoming block here\n})\n```\n\n### Additional features\n\nThe client provides a `useSigner()` method to connect a signer or wallet using the [CosmJS OfflineDirectSigner interface](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/signer.offlinedirectsigner.html).\n\nTo access the resulting [CosmJS signing client](https://cosmos.github.io/cosmjs/latest/stargate/classes/signingstargateclient.signingstargateclient-1.html), use the `.signingClient` property. To access the signer, use the `.signer` property.\n\nUsing the client `.switchRPC()` method reinstantiates the signing client appropriately.\n\n```\nconst signer = await DirectSecp256k1HdWallet.fromMnemonic(mymnemonic) // or any other object implementing the OfflineDirectSigner interface\n\nawait client.useSigner(signer)\n\nconst [account] = await client.signer.getAccounts();\n\nconst recipient = \"cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5\";\n\nconst amount = {\n  denom: \"uatom\",\n  amount: \"1\",\n};\n\nconst result = await client.signingClient.sendTokens(account.address, recipient, [amount], \"Memo Message\");\n```\n\nFinally, the client provides two querying methods for the Cosmos SDK API:\n\n### query()\n\n`.query(endpoint,queryparams)` \n\nA basic wrapper around Axios. For example, to query the bank module for an address's balances: \n\n```\nlet balances = await client.query('/cosmos/bank/v1beta1/balances/','cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n### request()\n\n```\n.request({\n    body: body,\n    path: path,\n    query: query,\n    method: method,\n  })\n```\n\nThis helper method is compatible with the swagger-typescript-api API classes that are generated with `--single-http-client` by using their Swagger definitions if the generated API classes exist for your chain endpoints.\n","gitHead":"5af61d29902fe20a605051aff0c60b96ff49ef27","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.16.1","dependencies":{"axios":"^0.21.1","@cosmjs/stargate":"0.25.0","@cosmjs/proto-signing":"0.25.0","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","typescript":"^4.2.4","@babel/core":"^7.14.0","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.22.1","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.22.1","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.49-beta.0_1620650047387_0.03439772323459711","host":"s3://npm-registry-packages"}},"0.1.49":{"name":"@starport/client-js","version":"0.1.49","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.49","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"88d2607d1e8d85f890adc6188fcd7c1c3fec591b","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.49.tgz","fileCount":14,"integrity":"sha512-FMaw5Ft1NSdNggJPlqxvf7EXFRLxfHjN3hjP20u38z/tLQKrIJu3tg5DjnFs+VbBaB85W40bpfG7O/r05WEKMA==","signatures":[{"sig":"MEQCIDX2dBYtydlh9i4CYBEKp3ulIQtsS+6dLQ+5510M1DkdAiBDyZLHCLl6UU71E5eWODVqkUIZ6VbPzdSZ52b56KGXXg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgq2y2CRA9TVsSAnZWagAANYMQAJB6mTjhm1ufZCkUxvCL\nUiVdZgECt7O2eA1j5hROdB0VoRiGA992M1ZHPC0m5uXUxWNDVRnwtyEZsgyR\niE/KXqkfi8S0xDExxbmiMqfFwySlIdrGecPtBi5bx6wmvh1ENI5pVq3x2KO9\nFwYB3LIYGsvIFzlWVxlprdD976TjEnFPVzajScrwwPdbutz8XEC8xcq4uTBJ\nCLl3sasaNtkGb3hbbi4+SWv6Fq7PXZ7gH4R4DPN47qGx6i1W2lQWutZcga8m\ntQbPsoVL+BV1i06WybfV0fcbaRDPMsRxHW2VMhsAWRkdsi1BczKmFwys+cow\nM8QCsYKBl09fPave9kBO6zWXRd3U/CZwwQpIMhvVIezYBEl9Jucd7hVJUhXK\n7ad9XeHE++BxRFUQcd0EnfrdAQIjG4rCkiMReRxjfvn+ZC6FZM72klpP5Ozb\nQCzBFUPnklwlws6vMv9JTFDLUrgBQYxjHukPOgr1fqiSNMyJlgRsio7jh/5u\ndpClwV21XJnL93b+USppqAn2qTX7df0okbxH3jHI5XcXqGvmhHSfrwPO7ZRQ\nvlyCmLvElaGTgrkKZp4EuxXvdeXDn7mauuBTy6Ls1t30aBmCjXweIcI0Tf6b\nH6eAneD4x2lfzrCSDK4Lpq0p4+afvQVgZy7h0O9IE9INcxTBN5GVCmP50z4G\nasjN\r\n=Y598\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","gitHead":"c3de715d1326437aada3c50fbcd3ab49daf12cd1","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.17.0","dependencies":{"axios":"^0.21.1","@cosmjs/stargate":"0.25.0","@cosmjs/proto-signing":"0.25.0","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","typescript":"^4.2.4","@babel/core":"^7.14.0","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.22.1","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.22.1","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.49_1621847222522_0.07413701140326956","host":"s3://npm-registry-packages"}},"0.1.50-beta.0":{"name":"@starport/client-js","version":"0.1.50-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.50-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"6ac2e9c3af75528a16446440833246b9372c75a6","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.50-beta.0.tgz","fileCount":14,"integrity":"sha512-xus/NmYCb/+mElYNhGya0xMLxy94QLhHeFL2qmx9yqpWRKGPH3rKGWC/WtFgz0M1+v7+8PFUXPElVe37hbz6Hg==","signatures":[{"sig":"MEUCIBySsYLL0DEsL+igvHfVH9cqfnLA6BAolBJ1UC8Gc2WTAiEAgb9DFQNu/w56SZqVWdbI0nkdeKWzPHELTK3yg+nssk4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57786,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrMBVCRA9TVsSAnZWagAAo9YP/0YXDqex/pgim/oWDx2z\nnNwf80D91CtdZ17OzK5IGrSm4lgzWmJw0JM497a1OyTd2ESPV3kWTr0gjG+D\nQRBLkaHTmnfWxvy7I3ITV2sixkZsUcgVzFgkEbwvi2Nnxlp8PP/nqkOoo5iw\n5LrV4Om5Hg4dGlPaQ/AWujeA2xpXmf1yKreo+etJgZc4gssXPERK+pJsa08Y\nMXitPLP0qMSJYLXTmtfcJf8zR8ftwcKUZCvk2nlOnkXPLHwiPbrH9CJBHP5r\nDnLxw/CyajkByluJsTXZ2Emn0VXxaK9vp0YkTWnsjBgGScYaMdwplSYiExYf\n/13bWEg/E7DumasqUoOcs+u32b4zkzJbSmHDr8TDOq7BL21tnPX/vxb95fto\nB2sJs+0I5GqxmHufdbYuQ+HO6knvoVujLpVB70Oyxaoia9eEZYQe2lmp6K45\nN21b+YV0muVD7BFyc6jXjrBYunQ2DThYgNjCM3g002K4ueriD8tB76I+Mmvf\nO8n3f05zqR1Y5OrXWDIjZYPN7c98gSY50m8ASl+wjWmpmKJRVgvuRZ4X831J\n8EOJgNuGMkZYXeDEq4aFyEnxwzmC6FA6dCku3CxVC9jQc8+guvB5RDd2l0Fh\n9hQnWEMzjuHaRmvvQt3vOndmuegAoszK7KuQpY0kGY2LFSNaJle+46IKlsd9\nBJxD\r\n=eche\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","readme":"# `@starport/client-js`\n\nThis package implements a generic JS client wrapper for the Tendermint RPC, Tendermint WebSocket, and Cosmos SDK APIs.\n\n## Install\n\n```\nnpm install client-js\n```\n## Usage\n\n```\nimport Client from '@starport/client-js'\n\nconst client = new Client({\n                  apiAddr: 'http://localhost:1317',        // Replace with Cosmos API node address\n                  rpcAddr: 'http://localhost:26657',       // Replace with Tendermint RPC node address\n                  wsAddr: 'ws://localhost:26657/websocket' // Replace with Tendermint WS node address\n                });\n\n```\n\nThe client implements EventEmitter, runs a periodic connectivity test, and emits the following events based on the connection state:\n\n* 'api-status' : true/false\n* 'rpc-status' : true/false\n* 'ws-status' : true/false\n\nYou can listen for and handle those events in your app in the standard way:\n\n```\nclient.on('api-status', (status) => { \n  // Handle API status here\n});\nclient.on('rpc-status', (status) => { \n  // Handle RPC status here\n});\nclient.on('ws-status', (status) => { \n  // Handle WS status here\n});\n```\n\nThe client also provides methods to switch the nodes used in an existing instance:\n\n```\nclient.switchAPI('<new_api_node_address>');\nclient.switchRPC('<new_rpc_node_address>');\nclient.switchWS('<new_ws_node_address>');\n```\n\nThe client automatically subscribes to new block events and emits the events for handling:\n\n```\nclient.on('newblock',(block) => {\n  //handle incoming block here\n})\n```\n\n### Additional features\n\nThe client provides a `useSigner()` method to connect a signer or wallet using the [CosmJS OfflineDirectSigner interface](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/signer.offlinedirectsigner.html).\n\nTo access the resulting [CosmJS signing client](https://cosmos.github.io/cosmjs/latest/stargate/classes/signingstargateclient.signingstargateclient-1.html), use the `.signingClient` property. To access the signer, use the `.signer` property.\n\nUsing the client `.switchRPC()` method reinstantiates the signing client appropriately.\n\n```\nconst signer = await DirectSecp256k1HdWallet.fromMnemonic(mymnemonic) // or any other object implementing the OfflineDirectSigner interface\n\nawait client.useSigner(signer)\n\nconst [account] = await client.signer.getAccounts();\n\nconst recipient = \"cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5\";\n\nconst amount = {\n  denom: \"uatom\",\n  amount: \"1\",\n};\n\nconst result = await client.signingClient.sendTokens(account.address, recipient, [amount], \"Memo Message\");\n```\n\nFinally, the client provides two querying methods for the Cosmos SDK API:\n\n### query()\n\n`.query(endpoint,queryparams)` \n\nA basic wrapper around Axios. For example, to query the bank module for an address's balances: \n\n```\nlet balances = await client.query('/cosmos/bank/v1beta1/balances/','cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n### request()\n\n```\n.request({\n    body: body,\n    path: path,\n    query: query,\n    method: method,\n  })\n```\n\nThis helper method is compatible with the swagger-typescript-api API classes that are generated with `--single-http-client` by using their Swagger definitions if the generated API classes exist for your chain endpoints.\n","gitHead":"18b1863fe9380a90e47c638e7917b2c9a0ea98a5","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.17.0","dependencies":{"axios":"^0.21.1","@cosmjs/stargate":"0.25.0","@cosmjs/proto-signing":"0.25.0","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","typescript":"^4.2.4","@babel/core":"^7.14.0","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.22.1","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.22.1","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.50-beta.0_1621934165554_0.3619577693032967","host":"s3://npm-registry-packages"}},"0.1.50":{"name":"@starport/client-js","version":"0.1.50","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.50","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"9741b715bed613b177b13fc054c6fcc8b6d96e13","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.50.tgz","fileCount":14,"integrity":"sha512-J4f11xJEK3Hp7fl84+elbl/qm2ZXXKDERSu18Sye1v0soPogP6mx2NzmP1r0g/wbTYO/DJa40K2N/LSMLgRBrw==","signatures":[{"sig":"MEYCIQC8gZoqCtXgtt66XamfRdwAmBhbKDxxxtgvDeAUS4lqSwIhAOQM9FG0euHBbg5ypypF8a3HuBzJ34vAlfrjYyYHgJQ/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrMIACRA9TVsSAnZWagAAn64P/0gai7N0bJ1X5JBvndj1\nte94/kFGFKnfQ9q3OOtZxIy1VtL+RSryqxTxBhorzR9mkIuSpLhU+QkilO6Q\nPUNxKhGaulqx66YBFIkJa7mbbQIabenSEsigp3EC/9KzWEVK8bBraqky6RON\n0XXUw4dCONtGokktiAO+8ObmmU2/BC5BAoA8lA4KTLZyptJFVRRDcDoOjf9v\npKwBwOnaT7KUNMm4JWL9TWpLDgclBhaKKVeUVMm1NazucsAvmvWmBzpPEe/f\nIWTbPnYRh+Igdm3qDVgjf1q8kw692BMyC8sefpXPsporIyGzHl1nEcjqdGd5\nBb+nz2/4K0z75aLFe/PIunE8R2S7saKW6H+Rzmj1B2JpNhM0BQA1B0Bnxo5X\nwscklNBiqZCEpdWYKX6w5y470b1Xi9I5zqr+ONgzS0lBME7Oep0mRRg3FgJs\nJlNnJEgb7sEJrHNM8n0mN/lXpx5Bx0ls4IEJR1Voi7y9g8/4j9+6z46EyKWN\n9L67RUSgZGex+QzeB743XVDxB95+sSG6m+5cke6BZO46EL1JnIkRKRN6kJs5\nYQXdr+pmTsguUo3z3F8pqVwhlrD8ZTXcopVfyWdo4skVxJP1Vtdx9PAMgm7V\nyK0YBTAfEs9PN/ROugejGn/P5vKRSoCsqqlRmVo+P1tfx1JrwKx8pjQOwVCg\nGbo5\r\n=X4GZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","gitHead":"55678e1636a90c745a960664c27b85dcf8b3f394","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.17.0","dependencies":{"axios":"^0.21.1","@cosmjs/stargate":"0.25.0","@cosmjs/proto-signing":"0.25.0","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","typescript":"^4.2.4","@babel/core":"^7.14.0","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.22.1","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.22.1","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.50_1621934592329_0.1850825017911919","host":"s3://npm-registry-packages"}},"0.1.51-beta.0":{"name":"@starport/client-js","version":"0.1.51-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.51-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"3104f00c0c552f238ae8e4e48bc84acf30bbe4f7","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.51-beta.0.tgz","fileCount":14,"integrity":"sha512-P2VuivbDtX1wQlx7xbRA/+2PhfGeC6ZP7u+BKHTvo/heaTct8vbhIxuri2oiCs0Otg+UC3eL6kFgPEiE6HwtXw==","signatures":[{"sig":"MEUCICA8oDyb1CsVjkyVCvuEe+7CojcLWjqBzMTC9RsPkmR+AiEA0/goXrVduZbc2nTJATuNHdWbfoxrfFH6HYS7PJT6u5w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57786,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwc4VCRA9TVsSAnZWagAAZ/sQAKEfX7t/DWjnW6+9MSBg\nVXqh/llBA/EQiRUNVCoXUfnQyCMy+wyc8w9vY3Cohwg9nk368FgeTs1gzxK7\nFkBgKVSH5fL2/o3sNUjidwEsFEy6w4MgK913MthJdXCJmqnM0c6iYZZkdf5A\n8RhaUAnTCmHA70szuEQmOc44Xg5bGBBwQhTPm5cvwQrON8gZNvYLM6bZ83BL\nBu/XFzUGP3Aewc5z4rN1mPcBi01hqmOSSK/0TBcfWH1gjutlSdX9rV4SHIlS\nkyQC2gAZIS49cxLmFxgtDAebbwqUag9yPBpZukzXXE95H2MPI1W4HS2/4x6o\nYZFq0SHktL2UuA3fvNHglQDCBZK5k9oQ0pfE0LEXXTxIKVwpv+8R6UvOXTrM\nsCgKn+9c0zLQvgL5xlMY9uOb78uverVP4pyUQhOJ9v7YIDe+LVDCTYxfZV3y\nI+3f0gQ/QhGL082/HhoOgNjAiapNQ2j31lfYJOlv8dknhoyQ64oyjDeQtjz2\nokarvVUwWNEGiNf5ugAM6INHBC04kPjf1Jh2G/xSIAMpHtXg+pgLukjq30Rm\nCFW16akoF7/P9NIcgdAZcTIiSncE5ISOxkhsbGZ/PeIM58yaH+F3UhHQC3e+\nbLSF2kHR+fsaGkJ9Vq5QZvMfvb9TtfvblNLWmqAtm0bsyvCC/T4rAne4rbSS\nKjCf\r\n=ql/s\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","readme":"# `@starport/client-js`\n\nThis package implements a generic JS client wrapper for the Tendermint RPC, Tendermint WebSocket, and Cosmos SDK APIs.\n\n## Install\n\n```\nnpm install client-js\n```\n## Usage\n\n```\nimport Client from '@starport/client-js'\n\nconst client = new Client({\n                  apiAddr: 'http://localhost:1317',        // Replace with Cosmos API node address\n                  rpcAddr: 'http://localhost:26657',       // Replace with Tendermint RPC node address\n                  wsAddr: 'ws://localhost:26657/websocket' // Replace with Tendermint WS node address\n                });\n\n```\n\nThe client implements EventEmitter, runs a periodic connectivity test, and emits the following events based on the connection state:\n\n* 'api-status' : true/false\n* 'rpc-status' : true/false\n* 'ws-status' : true/false\n\nYou can listen for and handle those events in your app in the standard way:\n\n```\nclient.on('api-status', (status) => { \n  // Handle API status here\n});\nclient.on('rpc-status', (status) => { \n  // Handle RPC status here\n});\nclient.on('ws-status', (status) => { \n  // Handle WS status here\n});\n```\n\nThe client also provides methods to switch the nodes used in an existing instance:\n\n```\nclient.switchAPI('<new_api_node_address>');\nclient.switchRPC('<new_rpc_node_address>');\nclient.switchWS('<new_ws_node_address>');\n```\n\nThe client automatically subscribes to new block events and emits the events for handling:\n\n```\nclient.on('newblock',(block) => {\n  //handle incoming block here\n})\n```\n\n### Additional features\n\nThe client provides a `useSigner()` method to connect a signer or wallet using the [CosmJS OfflineDirectSigner interface](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/signer.offlinedirectsigner.html).\n\nTo access the resulting [CosmJS signing client](https://cosmos.github.io/cosmjs/latest/stargate/classes/signingstargateclient.signingstargateclient-1.html), use the `.signingClient` property. To access the signer, use the `.signer` property.\n\nUsing the client `.switchRPC()` method reinstantiates the signing client appropriately.\n\n```\nconst signer = await DirectSecp256k1HdWallet.fromMnemonic(mymnemonic) // or any other object implementing the OfflineDirectSigner interface\n\nawait client.useSigner(signer)\n\nconst [account] = await client.signer.getAccounts();\n\nconst recipient = \"cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5\";\n\nconst amount = {\n  denom: \"uatom\",\n  amount: \"1\",\n};\n\nconst result = await client.signingClient.sendTokens(account.address, recipient, [amount], \"Memo Message\");\n```\n\nFinally, the client provides two querying methods for the Cosmos SDK API:\n\n### query()\n\n`.query(endpoint,queryparams)` \n\nA basic wrapper around Axios. For example, to query the bank module for an address's balances: \n\n```\nlet balances = await client.query('/cosmos/bank/v1beta1/balances/','cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n### request()\n\n```\n.request({\n    body: body,\n    path: path,\n    query: query,\n    method: method,\n  })\n```\n\nThis helper method is compatible with the swagger-typescript-api API classes that are generated with `--single-http-client` by using their Swagger definitions if the generated API classes exist for your chain endpoints.\n","gitHead":"1b44e201c472ece8aff72f0d9f65e6bc85c9494e","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.17.0","dependencies":{"axios":"^0.21.1","@cosmjs/stargate":"0.25.0","@cosmjs/proto-signing":"0.25.0","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","typescript":"^4.2.4","@babel/core":"^7.14.0","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.22.1","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.22.1","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.51-beta.0_1623313941530_0.982221556207364","host":"s3://npm-registry-packages"}},"0.1.51":{"name":"@starport/client-js","version":"0.1.51","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.51","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"889320ec73a13d0f2471e888e687a594218a1b3a","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.51.tgz","fileCount":14,"integrity":"sha512-SI7cN3t+18UpJ6GUYRD2qDfqdHhOvB0m9CtfUEtSmQ2dl+wiacKMSQoX6y8uiufSVT/pB8r2F3O4GMzESC2liA==","signatures":[{"sig":"MEYCIQD8qMJOEleeLorbyVkXBOg/JIh2l1adJvcjpKcg1YAzQAIhALPvVh1qtZNNFHxKaF641LI9108cnGg09FBYYoNpktst","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyLy/CRA9TVsSAnZWagAAOPYQAJ9lusaS/sHKt1DqOAoV\n0ofX6qKMZj+pvoMKwmduJoJ5qMbODwbs5y2jKidvynTvPy1VlOchJW85aBS6\nwmsBlBNAY2AqeCTtzO7+zaIO8XHStbHlXlZ7L+8bBmneID/xcY0P0vwmJkcv\no56CeYaoZjJxf24udwkoAY2fa1ugofVTY3OKMQmK3k8lfmaIhosEsDeZcDzz\n1Cv+UWR7FIlP7lkzB3Wp0sntOSVBTFdzbzqnw4uIxGqPHbxaMbhAuhvL3sTa\nPsJ2HhQ7vl6E7qT3gOOHexZa6sl0GMIkt8iCVFwmxxIBoEAkRYQ8oQwCIC84\nAKogvbmO+kZ+IMuqFhbJuuRILNnQ+c8QLu/K5kYtFmqv953TkK6YcSHLatAp\nE55CU9xNsKawdTpbJFfN5Agk4AcKiCumVUNGr7VItlQcMaO9QR2lLk+QcoTe\nDIiuwF2fkgocK8Y80wt19KkXw9anAc2RemR1EENLWJN1P3Q3MR9y3/btsVrY\nPoU+DGOa0bDUGnlZR266dfauTDQUVCccn4hqxZsYeqVuCmmC2ZOVeFV2k311\nsAwvHtH6UwU8cT68xK+Ng69wL2C6ISpO7jhjckEJdYO8wYPRZ+qLYIPTw5gq\nnWFBMXCwvdEqxnx0qAJUA0BLQdlaixnlZqEcxq2zYKmhcl7kZfcYJT3S0UoJ\nAaAS\r\n=xqzg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","gitHead":"e3c17b754c1e409c22619a833b981705f6a6996e","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.17.0","dependencies":{"axios":"^0.21.1","@cosmjs/stargate":"0.25.0","@cosmjs/proto-signing":"0.25.0","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","typescript":"^4.2.4","@babel/core":"^7.14.0","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.22.1","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.22.1","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.51_1623768255725_0.8848821973163241","host":"s3://npm-registry-packages"}},"0.1.52-beta.0":{"name":"@starport/client-js","version":"0.1.52-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.52-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"dab86bc999d5ffef1002839629f41c84b4beaf07","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.52-beta.0.tgz","fileCount":14,"integrity":"sha512-ai1kplI8QIWlEqCCK0qCbZddaEf1drqVbrrhD/vpVR22krYqj2SfUOmdgVhJfAKgzrDmQO4vau1J8tvhZPouww==","signatures":[{"sig":"MEYCIQD+Qe7nohEZ4ppAXGQp91V8N31N3QuXJ8zFEjE5f5V4pAIhAMDV17pEeCoqSoZXufNWkHvR3O1IzIrBUm5Ppbe9uX/C","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3ZGMCRA9TVsSAnZWagAAYB8P/2qU/HGiZ9QyW9flnbt+\nGrl95jdXMvIjDbi5F7mL2NcjusjzQnPyZ4mWZOuNKSBeFZohX99FJEM31wPZ\nXdZmfXnpJz8sQIeRoJBcQoNUg8TH15gSHUCxLSUqmGDCivf4dCN9tGnb2Esn\nq8PyECbV8Djuqv8cZvo10Lxg3y0VlJqNWxn47SWx9J+6zx7DctdfnnYJfHPI\nN8Hx4lf1l7u1PaFZo6c3Crj6cBpOWt4nUeKJSmv+hvh9+FyLZv9EhTNS+dg2\n0rfeJ+I6DcrH7UH1bN+oQ067GQcKPkFuXLvsupUZBkjtiWFFnK591XK3VOpa\npe/ynrG9yWmcJv8BRCnAwOluOIah6oE8bVDHBFh0asnTLuNIw0nob/MrvYXl\n8kjzypid+5hSJkclNjDkrnA/aRwiI4Ob5Nc7KPR81jaR9zc9ttdIZmjmQ7u4\nhKnLqlmRQ+6+RzOu0lwAJ0a3LqwO5hC65KrlBr9MwcO6a+sLhrwRu59GAsXI\nQs2eacsOs8Vvqi1kdF5fNoKn83KxjRwlmqrnwrQTBjODxuRk2o9n2yuGoMCZ\nWtAndiDGU4ang6KhgiP7GaxKcLO49LiQ1McLgoFx7r5kxdC/8ohmpesETJmi\nclQ5d2/PS+3ibrNqzkeuI8WWO8y8M+3BDzy7QiQCpFsNEYxvK74Otg1L9iYP\nf0FU\r\n=HTkT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","readme":"# `@starport/client-js`\n\nThis package implements a generic JS client wrapper for the Tendermint RPC, Tendermint WebSocket, and Cosmos SDK APIs.\n\n## Install\n\n```\nnpm install client-js\n```\n## Usage\n\n```\nimport Client from '@starport/client-js'\n\nconst client = new Client({\n                  apiAddr: 'http://localhost:1317',        // Replace with Cosmos API node address\n                  rpcAddr: 'http://localhost:26657',       // Replace with Tendermint RPC node address\n                  wsAddr: 'ws://localhost:26657/websocket' // Replace with Tendermint WS node address\n                });\n\n```\n\nThe client implements EventEmitter, runs a periodic connectivity test, and emits the following events based on the connection state:\n\n* 'api-status' : true/false\n* 'rpc-status' : true/false\n* 'ws-status' : true/false\n\nYou can listen for and handle those events in your app in the standard way:\n\n```\nclient.on('api-status', (status) => { \n  // Handle API status here\n});\nclient.on('rpc-status', (status) => { \n  // Handle RPC status here\n});\nclient.on('ws-status', (status) => { \n  // Handle WS status here\n});\n```\n\nThe client also provides methods to switch the nodes used in an existing instance:\n\n```\nclient.switchAPI('<new_api_node_address>');\nclient.switchRPC('<new_rpc_node_address>');\nclient.switchWS('<new_ws_node_address>');\n```\n\nThe client automatically subscribes to new block events and emits the events for handling:\n\n```\nclient.on('newblock',(block) => {\n  //handle incoming block here\n})\n```\n\n### Additional features\n\nThe client provides a `useSigner()` method to connect a signer or wallet using the [CosmJS OfflineDirectSigner interface](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/signer.offlinedirectsigner.html).\n\nTo access the resulting [CosmJS signing client](https://cosmos.github.io/cosmjs/latest/stargate/classes/signingstargateclient.signingstargateclient-1.html), use the `.signingClient` property. To access the signer, use the `.signer` property.\n\nUsing the client `.switchRPC()` method reinstantiates the signing client appropriately.\n\n```\nconst signer = await DirectSecp256k1HdWallet.fromMnemonic(mymnemonic) // or any other object implementing the OfflineDirectSigner interface\n\nawait client.useSigner(signer)\n\nconst [account] = await client.signer.getAccounts();\n\nconst recipient = \"cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5\";\n\nconst amount = {\n  denom: \"uatom\",\n  amount: \"1\",\n};\n\nconst result = await client.signingClient.sendTokens(account.address, recipient, [amount], \"Memo Message\");\n```\n\nFinally, the client provides two querying methods for the Cosmos SDK API:\n\n### query()\n\n`.query(endpoint,queryparams)` \n\nA basic wrapper around Axios. For example, to query the bank module for an address's balances: \n\n```\nlet balances = await client.query('/cosmos/bank/v1beta1/balances/','cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n### request()\n\n```\n.request({\n    body: body,\n    path: path,\n    query: query,\n    method: method,\n  })\n```\n\nThis helper method is compatible with the swagger-typescript-api API classes that are generated with `--single-http-client` by using their Swagger definitions if the generated API classes exist for your chain endpoints.\n","gitHead":"f907e5b150c631b9a071cafd9d38b73364c356eb","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.17.1","dependencies":{"axios":"^0.21.1","@cosmjs/stargate":"0.25.0","@cosmjs/proto-signing":"0.25.0","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","typescript":"^4.2.4","@babel/core":"^7.14.0","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.22.1","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.22.1","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.52-beta.0_1625133452000_0.28579712693432846","host":"s3://npm-registry-packages"}},"0.1.52":{"name":"@starport/client-js","version":"0.1.52","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.52","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"4a2f7d6ad155be7124e7e37b3ac385da6713c627","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.52.tgz","fileCount":14,"integrity":"sha512-6pStHzI9Qx4V4R1KyAOFdvWqN9KU+68d26J9ju4+FIY/qufcl4GjQthDW6yrA1DFfX9PoUOPTG+HHoANojAQcA==","signatures":[{"sig":"MEUCID6Frw0RUEx/JvzZi7XvvEv2z+/rcyv+yXCFrJeCSq5LAiEAgnsd5CGRgHKGe/jQxwufm1qWAkZwxySV5XOIcDy2dIA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58380,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3ZL4CRA9TVsSAnZWagAAL3IP/jMdpR0kGj+lEIXTWw4p\nud+RVWGfCVLpF2w2/t0PShKFRpePUvwlYQ6yN+iAxjxWZwY+9BeuZ77wen4C\nFZAk5Km0V59GRr9qcOqQcdEPHvIs2U3N51VsnIt0Sl/u/ZfnldgTOBs6DZtQ\nqyY9w+94D4VbEz/wSQUtAp+i0O57nMNxUNhsL5zi6BTGYuOe/AI0t++RcKDA\nRJatMCZ7dqU57bzzy5ix78/679PflvRCizNXfBGSgteBLOIROML+JkDCMcPw\n1KbOZGmpzddjyAUu0laKqfeySsdfAWS+l/xPzhUZnplkJYa0vpsqmJj0x4/M\nytWdQN0DRObSlmZJM8Fj89gI3qaDn+4/ILt/IaIWHNvQmpf09aVuM7pfJj2V\nXNC/upRUjDFieyKu8Y/AcTsjLKhOhp6B93znmfgjw0Xg6giIh4GyA3v0nrMn\nakGWN3yD0yURnu18yXORI5KCmzcOERiKqOs0EeN8GkIlS2g7QZ2+yK1+Zsqg\noaX4uDtjznwE0LN4qsDomJ6z2dQKHyfsognIZD4OSACsMeoGZHTazcOVU29v\ns68IhSHR0w8Y0Bb2IA59slc2KgQt5dnZeTVERAiJYM+0Mx1276RW0RgbkjUg\nOhpKJtM3PpWkIZEGWvnX+5FuPTtqpLcQrdbwGkz8/mpg0GHSoYyJFzRe+zrU\nlRxS\r\n=KWyQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","gitHead":"b5957e85d18c547b0c8c5032c753f765fa355e89","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.17.1","dependencies":{"axios":"^0.21.1","@cosmjs/stargate":"0.25.0","@cosmjs/proto-signing":"0.25.0","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","typescript":"^4.2.4","@babel/core":"^7.14.0","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.22.1","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.22.1","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.52_1625133816159_0.9942724369440392","host":"s3://npm-registry-packages"}},"0.1.53-beta.0":{"name":"@starport/client-js","version":"0.1.53-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.53-beta.0","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"73972a28b12672834858a55918fc5ca00cf7647e","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.53-beta.0.tgz","fileCount":7,"integrity":"sha512-cTkoJYtBT4kZgCbK2gP3v2l1/V8OBiqgwk5WCgxe5iLqLmeXtt5ZGjGH3BdzqnG9vIrWjftVT2ab76A4yQMzmA==","signatures":[{"sig":"MEYCIQCBlZKeyPXZ8tTMwaBVpxYGArW72yvg97ZsiNVyj/1NnwIhAMZnPQ4y0mqq7z2Wi9kVi/Jbz7nAMVjP66qLlqScpJ1a","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51135,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhGdzbCRA9TVsSAnZWagAATpwP/3RIpx1SsJAvUvvo3Nga\natPj8vTaK/mQIO1nsOkx6kgQAz6clAqfX2SZh26zP6hfg+l41e33DTlE9o1b\nUD4nbg3RF2j/l4uz22Fh4QhH9/7RUS2IapHuqaNv/Ko6k+4vHDjfItoF7/fR\nGw3pc/Ene/KE9b5EcjTG0Lgrza41Ja2pPpA3YUg0x0nplp6G6rFYpd4Rt+Mo\nvu/bYiA799dDSP81usLn+njyhDeyvdaqOyolKEes143JNe4i8BA1wJ4xs5Xo\nXfBMe161qD5IbJuNr30KdxSB/g/QOgrkOpS2iYq2jiCUjWvDt9Px46FpL3R8\ntgJyEEjurCDBpHSxQPXctEpL8QJLw3sMJEkuviCw41IZoD28Mt6jOoPJQqjr\nWXjwXtJbbGb7ceTPvjwVgCL0UTk3UATihXDPBgIB7GVSYNDnOALfCHSLrq1Z\nD1LwcefbL8ll3u0I8NinAcOE2pd2sTHLKjpa3wI97vAf0/jB/l6FdFd2N2eT\nX4/RH948FQjKSqIT/a47+ixLQv/d/g0sW3ZX14Z2Trcq5ebjJhi9Q2CQLPq6\nnf9r/ANPPJXrVQHmSWXJomWjcQpL2NDFOeulecJOXWXDO82aMSamHVVoF87h\nBx6fdvaKU4gKQiyNKz6YqIJCGIh8hFksVybUVDK6SeTUU3Sa7qKSf3+/cskX\nnjfW\r\n=5A7l\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","readme":"# `@starport/client-js`\n\nThis package implements a generic JS client wrapper for the Tendermint RPC, Tendermint WebSocket, and Cosmos SDK APIs.\n\n## Install\n\n```\nnpm install client-js\n```\n## Usage\n\n```\nimport Client from '@starport/client-js'\n\nconst client = new Client({\n                  apiAddr: 'http://localhost:1317',        // Replace with Cosmos API node address\n                  rpcAddr: 'http://localhost:26657',       // Replace with Tendermint RPC node address\n                  wsAddr: 'ws://localhost:26657/websocket' // Replace with Tendermint WS node address\n                });\n\n```\n\nThe client implements EventEmitter, runs a periodic connectivity test, and emits the following events based on the connection state:\n\n* 'api-status' : true/false\n* 'rpc-status' : true/false\n* 'ws-status' : true/false\n\nYou can listen for and handle those events in your app in the standard way:\n\n```\nclient.on('api-status', (status) => { \n  // Handle API status here\n});\nclient.on('rpc-status', (status) => { \n  // Handle RPC status here\n});\nclient.on('ws-status', (status) => { \n  // Handle WS status here\n});\n```\n\nThe client also provides methods to switch the nodes used in an existing instance:\n\n```\nclient.switchAPI('<new_api_node_address>');\nclient.switchRPC('<new_rpc_node_address>');\nclient.switchWS('<new_ws_node_address>');\n```\n\nThe client automatically subscribes to new block events and emits the events for handling:\n\n```\nclient.on('newblock',(block) => {\n  //handle incoming block here\n})\n```\n\n### Additional features\n\nThe client provides a `useSigner()` method to connect a signer or wallet using the [CosmJS OfflineDirectSigner interface](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/signer.offlinedirectsigner.html).\n\nTo access the resulting [CosmJS signing client](https://cosmos.github.io/cosmjs/latest/stargate/classes/signingstargateclient.signingstargateclient-1.html), use the `.signingClient` property. To access the signer, use the `.signer` property.\n\nUsing the client `.switchRPC()` method reinstantiates the signing client appropriately.\n\n```\nconst signer = await DirectSecp256k1HdWallet.fromMnemonic(mymnemonic) // or any other object implementing the OfflineDirectSigner interface\n\nawait client.useSigner(signer)\n\nconst [account] = await client.signer.getAccounts();\n\nconst recipient = \"cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5\";\n\nconst amount = {\n  denom: \"uatom\",\n  amount: \"1\",\n};\n\nconst result = await client.signingClient.sendTokens(account.address, recipient, [amount], \"Memo Message\");\n```\n\nFinally, the client provides two querying methods for the Cosmos SDK API:\n\n### query()\n\n`.query(endpoint,queryparams)` \n\nA basic wrapper around Axios. For example, to query the bank module for an address's balances: \n\n```\nlet balances = await client.query('/cosmos/bank/v1beta1/balances/','cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n### request()\n\n```\n.request({\n    body: body,\n    path: path,\n    query: query,\n    method: method,\n  })\n```\n\nThis helper method is compatible with the swagger-typescript-api API classes that are generated with `--single-http-client` by using their Swagger definitions if the generated API classes exist for your chain endpoints.\n","gitHead":"7a823c61428a80ea4c1d369d81e7047478f1d9b5","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.17.4+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.17.4","dependencies":{"axios":"^0.21.1","@cosmjs/stargate":"0.25.0","@cosmjs/proto-signing":"0.25.0","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","typescript":"^4.2.4","@babel/core":"^7.14.0","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.22.1","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.22.1","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.53-beta.0_1629084890932_0.5204015639902775","host":"s3://npm-registry-packages"}},"0.1.53":{"name":"@starport/client-js","version":"0.1.53","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.53","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"c5684bba88e6647c3f7612fb617a70ab91a06aa5","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.53.tgz","fileCount":7,"integrity":"sha512-2R1hicqi4Wn1qt8xo2TXwvD6nm5vDz8P3v7AqsLWqzlIV8WjHA18e6ttargylMWZrbZYkKPFvUIvhposYsPaDw==","signatures":[{"sig":"MEUCIDHNFcOE/MGK+jCeNwlplgSB7AHLsPpNNa5rqYx3KaoMAiEA7O+8IPn+T+HYtNticK8wmWVX5zMwukj2OIimGAEhMtQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51120},"main":"lib/SPClient.js","gitHead":"0002f118709da37f940a7aa29eebcfbf4899a925","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.17.6+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.17.6","dependencies":{"axios":"^0.21.1","@cosmjs/stargate":"0.25.0","@cosmjs/proto-signing":"0.25.0","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","typescript":"^4.2.4","@babel/core":"^7.14.0","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.22.1","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.22.1","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.53_1632742097147_0.5818511474093875","host":"s3://npm-registry-packages"}},"0.1.54-beta.0":{"name":"@starport/client-js","version":"0.1.54-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.54-beta.0","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"fd577d299628da611ae45e8b63fef0997ce5aa7e","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.54-beta.0.tgz","fileCount":7,"integrity":"sha512-aEqLdDeNbwI1iSefY7Co/g0d5wBwIh/CS/YiZbgVGHJH/XnQPlN1kzKeyhfIZRTFnEhNQUF9fEjBQmOlG+7Y3g==","signatures":[{"sig":"MEQCICm4aFVk+VHqtDrKrZVD3KnmxEoxhmpTfeiRNuL3StkhAiB3O/rfev3agiFT5k+HEBhU0N1ThIvhoFo90TQnKPdXvw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51135},"main":"lib/SPClient.js","readme":"# `@starport/client-js`\n\nThis package implements a generic JS client wrapper for the Tendermint RPC, Tendermint WebSocket, and Cosmos SDK APIs.\n\n## Install\n\n```\nnpm install client-js\n```\n## Usage\n\n```\nimport Client from '@starport/client-js'\n\nconst client = new Client({\n                  apiAddr: 'http://localhost:1317',        // Replace with Cosmos API node address\n                  rpcAddr: 'http://localhost:26657',       // Replace with Tendermint RPC node address\n                  wsAddr: 'ws://localhost:26657/websocket' // Replace with Tendermint WS node address\n                });\n\n```\n\nThe client implements EventEmitter, runs a periodic connectivity test, and emits the following events based on the connection state:\n\n* 'api-status' : true/false\n* 'rpc-status' : true/false\n* 'ws-status' : true/false\n\nYou can listen for and handle those events in your app in the standard way:\n\n```\nclient.on('api-status', (status) => { \n  // Handle API status here\n});\nclient.on('rpc-status', (status) => { \n  // Handle RPC status here\n});\nclient.on('ws-status', (status) => { \n  // Handle WS status here\n});\n```\n\nThe client also provides methods to switch the nodes used in an existing instance:\n\n```\nclient.switchAPI('<new_api_node_address>');\nclient.switchRPC('<new_rpc_node_address>');\nclient.switchWS('<new_ws_node_address>');\n```\n\nThe client automatically subscribes to new block events and emits the events for handling:\n\n```\nclient.on('newblock',(block) => {\n  //handle incoming block here\n})\n```\n\n### Additional features\n\nThe client provides a `useSigner()` method to connect a signer or wallet using the [CosmJS OfflineDirectSigner interface](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/signer.offlinedirectsigner.html).\n\nTo access the resulting [CosmJS signing client](https://cosmos.github.io/cosmjs/latest/stargate/classes/signingstargateclient.signingstargateclient-1.html), use the `.signingClient` property. To access the signer, use the `.signer` property.\n\nUsing the client `.switchRPC()` method reinstantiates the signing client appropriately.\n\n```\nconst signer = await DirectSecp256k1HdWallet.fromMnemonic(mymnemonic) // or any other object implementing the OfflineDirectSigner interface\n\nawait client.useSigner(signer)\n\nconst [account] = await client.signer.getAccounts();\n\nconst recipient = \"cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5\";\n\nconst amount = {\n  denom: \"uatom\",\n  amount: \"1\",\n};\n\nconst result = await client.signingClient.sendTokens(account.address, recipient, [amount], \"Memo Message\");\n```\n\nFinally, the client provides two querying methods for the Cosmos SDK API:\n\n### query()\n\n`.query(endpoint,queryparams)` \n\nA basic wrapper around Axios. For example, to query the bank module for an address's balances: \n\n```\nlet balances = await client.query('/cosmos/bank/v1beta1/balances/','cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n### request()\n\n```\n.request({\n    body: body,\n    path: path,\n    query: query,\n    method: method,\n  })\n```\n\nThis helper method is compatible with the swagger-typescript-api API classes that are generated with `--single-http-client` by using their Swagger definitions if the generated API classes exist for your chain endpoints.\n","gitHead":"eb8a3ebee4a6f9fb834e8ef365ae2b08d8165fec","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/3.22.1/node@v14.18.0+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.18.0","dependencies":{"axios":"^0.21.1","@cosmjs/stargate":"0.25.0","@cosmjs/proto-signing":"0.25.0","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","typescript":"^4.2.4","@babel/core":"^7.14.0","@types/node":"^12.20.5","babel-loader":"^8.2.2","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0","@babel/preset-typescript":"^7.13.0","@typescript-eslint/parser":"^4.22.1","@types/reconnectingwebsocket":"^1.0.6","@typescript-eslint/eslint-plugin":"^4.22.1","@babel/plugin-proposal-class-properties":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.54-beta.0_1633082482442_0.5517853478905346","host":"s3://npm-registry-packages"}},"0.1.54":{"name":"@starport/client-js","version":"0.1.54","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.54","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"fa6822937dfa4748c4f473fd9bbb01d1336fb8e0","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.54.tgz","fileCount":7,"integrity":"sha512-xRzxhYTxTp2I0MC+A5RIo0I+SMhg30BwUEyi+VCHO+gPCIz3xn5WP2rfCJTdIDVAvgeB9N5bBjUQmYCpwGajmg==","signatures":[{"sig":"MEQCIHThH6GUyjX1A4z3Ou8bzOnU4oG5gABPyfxWeG90t3auAiAP6u8AgwINfBGihfwyvf2eP+FFBtdYRZKoY/P0k6GVpg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51343},"main":"lib/SPClient.js","gitHead":"63169568f8cc43549500241ec55149ef382395c3","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"^0.22.0","@cosmjs/stargate":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.32.0","prettier":"^2.4.1","@babel/cli":"^7.15.7","typescript":"^4.4.3","@babel/core":"^7.15.5","@types/node":"^16.10.3","babel-loader":"^8.2.2","@babel/preset-env":"^7.15.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1","@babel/preset-typescript":"^7.15.0","@typescript-eslint/parser":"^4.33.0","@types/reconnectingwebsocket":"^1.0.7","@typescript-eslint/eslint-plugin":"^4.33.0","@babel/plugin-proposal-class-properties":"^7.14.5"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.54_1636649909162_0.8080529180235669","host":"s3://npm-registry-packages"}},"0.1.55-beta.0":{"name":"@starport/client-js","version":"0.1.55-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.55-beta.0","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"46d43a287e3131e971ee72fcb316519e3299bbc8","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.55-beta.0.tgz","fileCount":7,"integrity":"sha512-aXaMibI/rNt4vle0xNQy5ucouA1hbvT6bJ2IK51K07FRfBukuPUpqowUJyCF/E67FcXNncVMpfOHNRW2X2R6Zg==","signatures":[{"sig":"MEUCIADTAvuMFP9t/tARwXBeVSKRA9RUcYOEdbgMVkfczFpLAiEAprmVm1CY2Z9qpleZ3MRAwvppFLd6fHeFNhFn4u75i+M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51358,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnSz4CRA9TVsSAnZWagAAJ34P+wagZUvGYH1wrS43YHdC\ngfhgdzstZ1jvHN40DJ1QGkF1ESgokcfRwvktld122jo7uIFRGFD3oVpogBlA\n8axWEb11o5vsg8xSuGmh4P10GmxJWdH0f+XzooQSafLvDxD6ivMLWeo0d0Br\n85Uzb7i07Xen6uhCUOVFM7wr2zuj1m/3OGxmz8oKy+MWQsHWK0C6hHE+gDWC\nbJ22T9uGT4pgKTpQf8s6qjt7foBxaalYPDKZ4tbd2sKDgnCyCbvp/P1kOxPl\nngSh/42zH2OiIXXz58wkNdUxb2gPGJ6EBjeCm3SUAUFexRFd60Vm9n6rQTkM\nqV7JuTAAZHzcRXYzrSrDkAEz94jCUS9VrSfxMgOKrHhMeLpxrbJERUCaTEm8\naAedl8yl13yEZjrM9lSXQqdDux2ue3HO6J6Xsfg+JWv4G+7j2HRDm9wFDBDP\nJJYZfq8zrSwPkjtxxr6YeJBMTjcV5IoUD2FjWoAAuhw4Wvu7KxsfUqPKyn4K\neEiIQgYXgb3xxYIr99Ag3HbhCbeEotrnIkvlKnP+WbDB8B/YbpbRzkd/A9ph\nVpa92yh0cS2ulrVBlYsjr7UYUU7er6m137iU8T4LGIRHzvHpHp+7Dm635wjQ\nKfhD4X8HKsBX1IUHrfzzsNgZrYb6+Um7o7h1t//XRpMEo1mxpKZnY6nZ8ggW\nB4qR\r\n=OYvq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","readme":"# `@starport/client-js`\n\nThis package implements a generic JS client wrapper for the Tendermint RPC, Tendermint WebSocket, and Cosmos SDK APIs.\n\n## Install\n\n```\nnpm install client-js\n```\n## Usage\n\n```\nimport Client from '@starport/client-js'\n\nconst client = new Client({\n                  apiAddr: 'http://localhost:1317',        // Replace with Cosmos API node address\n                  rpcAddr: 'http://localhost:26657',       // Replace with Tendermint RPC node address\n                  wsAddr: 'ws://localhost:26657/websocket' // Replace with Tendermint WS node address\n                });\n\n```\n\nThe client implements EventEmitter, runs a periodic connectivity test, and emits the following events based on the connection state:\n\n* 'api-status' : true/false\n* 'rpc-status' : true/false\n* 'ws-status' : true/false\n\nYou can listen for and handle those events in your app in the standard way:\n\n```\nclient.on('api-status', (status) => { \n  // Handle API status here\n});\nclient.on('rpc-status', (status) => { \n  // Handle RPC status here\n});\nclient.on('ws-status', (status) => { \n  // Handle WS status here\n});\n```\n\nThe client also provides methods to switch the nodes used in an existing instance:\n\n```\nclient.switchAPI('<new_api_node_address>');\nclient.switchRPC('<new_rpc_node_address>');\nclient.switchWS('<new_ws_node_address>');\n```\n\nThe client automatically subscribes to new block events and emits the events for handling:\n\n```\nclient.on('newblock',(block) => {\n  //handle incoming block here\n})\n```\n\n### Additional features\n\nThe client provides a `useSigner()` method to connect a signer or wallet using the [CosmJS OfflineDirectSigner interface](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/signer.offlinedirectsigner.html).\n\nTo access the resulting [CosmJS signing client](https://cosmos.github.io/cosmjs/latest/stargate/classes/signingstargateclient.signingstargateclient-1.html), use the `.signingClient` property. To access the signer, use the `.signer` property.\n\nUsing the client `.switchRPC()` method reinstantiates the signing client appropriately.\n\n```\nconst signer = await DirectSecp256k1HdWallet.fromMnemonic(mymnemonic) // or any other object implementing the OfflineDirectSigner interface\n\nawait client.useSigner(signer)\n\nconst [account] = await client.signer.getAccounts();\n\nconst recipient = \"cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5\";\n\nconst amount = {\n  denom: \"uatom\",\n  amount: \"1\",\n};\n\nconst result = await client.signingClient.sendTokens(account.address, recipient, [amount], \"Memo Message\");\n```\n\nFinally, the client provides two querying methods for the Cosmos SDK API:\n\n### query()\n\n`.query(endpoint,queryparams)` \n\nA basic wrapper around Axios. For example, to query the bank module for an address's balances: \n\n```\nlet balances = await client.query('/cosmos/bank/v1beta1/balances/','cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n### request()\n\n```\n.request({\n    body: body,\n    path: path,\n    query: query,\n    method: method,\n  })\n```\n\nThis helper method is compatible with the swagger-typescript-api API classes that are generated with `--single-http-client` by using their Swagger definitions if the generated API classes exist for your chain endpoints.\n","gitHead":"53bd15718fdad75023c9997cd66a939359d88a79","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"^0.22.0","@cosmjs/stargate":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^7.32.0","prettier":"^2.4.1","@babel/cli":"^7.15.7","typescript":"^4.4.3","@babel/core":"^7.15.5","@types/node":"^16.10.3","babel-loader":"^8.2.2","@babel/preset-env":"^7.15.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1","@babel/preset-typescript":"^7.15.0","@typescript-eslint/parser":"^4.33.0","@types/reconnectingwebsocket":"^1.0.7","@typescript-eslint/eslint-plugin":"^4.33.0","@babel/plugin-proposal-class-properties":"^7.14.5"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.55-beta.0_1637690616452_0.7044953459259475","host":"s3://npm-registry-packages"}},"0.1.55":{"name":"@starport/client-js","version":"0.1.55","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.55","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"d43d2d79931130b57814baae435a20c18f812cbc","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.55.tgz","fileCount":7,"integrity":"sha512-93dEVv/KHy8fKPaqHCimDyLjstA8x9Z04oEM1J5qwIXBjwL7Mr5AShXPgFgGXzL+nS8tsKLj1NzyqC5yFJq4mA==","signatures":[{"sig":"MEQCIE8NB5GqvgwukYaOrWLzVh+TSjfyZxfftbHOyIAC4sviAiAOzifzLw8x311i28yzIcxqgoFUWANokV0j4oPV8/dTQA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnh3JCRA9TVsSAnZWagAAt0UP/jqtPXvX25VnI7Y8amx3\ndr5Si6mHMEOe77J9zpJ9HcTz19K2qMUU/IL40VwJmlbngFvgxG+Len71COPG\nNDEskTNElG+EQkVRgBJDWaRS7b1Oc0EBWYi0RomSKWhwChrNLP7y4BY2yrvM\nlregJ7awALQxMdt0DMKV+yHIgVvjYGJG3fXGofN02LMw4wsL3OKhF2aUVG6k\nZuuWQoHgfxq5STTeEpl8fig0e2c0H3qrb0WGal+xMQH6SzsqDsPrSoy9ifDX\nWe2SLjya2uax/zqLKbMg6fQDOJgeX9KsrMRI/mxZTN++DpLoGYghw40dS7Up\ndKf96CyDPr802lUD8ZLyHr0ND3IAjlx8JcEcsd8BkKBkW3RIwkFq1srUYhYb\ndgEAfqD7qIKoXffOa4ae9bMabrJM6SISFp4BIt+Yy1AxqkZrv5+P2/rtue/t\neAaGA7jPjgBSOuSJQSg3LoM0rBgOsW+zJvZbWjWZWmNLgu5vxhQN3QrW4wU+\nAQLzKSCp/MKm6P2/+gFjxZPqtX/khTmLXnTf2s0e8nwzrODBGXzgG/vMkIZI\n/2rb09Z71si5x9xzoA7L5O8St1d9uJ+0Pc6Y+JGL9pSBsGXxYpJr6/d2QFtu\nZWDVaOskPMN4K5fDVCcdHzH0/n2YkAQRFyl5HXY/SvcH7L0cXPK/Vh5QBN/x\n2eOH\r\n=JVtt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","gitHead":"215b5325b02de9fd4abda325ee73b5f9380848b5","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"^0.22.0","@cosmjs/stargate":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.32.0","prettier":"^2.4.1","@babel/cli":"^7.15.7","typescript":"^4.4.3","@babel/core":"^7.15.5","@types/node":"^16.10.3","babel-loader":"^8.2.2","@babel/preset-env":"^7.15.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1","@babel/preset-typescript":"^7.15.0","@typescript-eslint/parser":"^4.33.0","@types/reconnectingwebsocket":"^1.0.7","@typescript-eslint/eslint-plugin":"^4.33.0","@babel/plugin-proposal-class-properties":"^7.14.5"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.55_1637752264961_0.3461592523790329","host":"s3://npm-registry-packages"}},"0.1.56-beta.0":{"name":"@starport/client-js","version":"0.1.56-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.56-beta.0","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"aee8f7d94ded1a83f54c2b5c1b4cf274177c5255","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.56-beta.0.tgz","fileCount":7,"integrity":"sha512-upduOEspjynYYOUrfofku8hcGmad+gpujtuCKso84jdZlizAOtVln6I8nlzfoCmR8pkNnKZWukZQ63DY61gQEg==","signatures":[{"sig":"MEUCIQDSWtlzmsF3x3NsFM7+1jOzQ4JNZuaTz9U7Xy06SPOehwIgX1ZaKZRmILT5O8Rfp3hcauAiZar+LKM0SO7Dkrwy3Uw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51358,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhphBOCRA9TVsSAnZWagAAZzwP/1j3UJF0383cZekDDYdi\nScO3gE4sVdEez+yG0ySn/dUE7DF4aeXS7+/vZibCY2KadzUvHUCkyEh87jlm\np8EnRzaG4BC5k+QjIejA/1KIjrCf5TzKfS+VsxyUQY51Int8yMiESvhlUW36\nJYE1A4ENlp7Teu+AqWWWS/g9KHDwXWkxL45nsVccrF3AAOt7M/gTF3EmQikh\njvNkOjx01zt7/rCxUYkS8PutWt7OI6L12aFPoX7EUzfDmtEe28D45di7JvNO\na9iZ/EJ0H+HXM9UkKjw48PkDdoTMFtGwjgMpz9I1ruu3QN0Gbt5onhNr1Mbr\nYvfytGc98A69HXnaE9p4cAL2w2velneD0tFxqvZCtFL18TPV+XEK+W6cLLBJ\nf57DfMI+Pyu43DlPGVy0UCL9dc+QUXbq/uMIZVNhIxQv2ja99DlUwOPxgTlG\nJxuMdu6xOnBZSH3nHxerlH1BgpfpKS+ICrJ7XI5hsCQDJaKsRlWY6K2rRamR\nU0aAH63JLbvA2ZxaSKUisVk0CCoCdSQ+hbmjZV2mp20e5Tcd6INNbecXCrff\nCCPqoQUe/wECGklUYesQbbXMwjauiwYy/15k/t0vLSPzGu6u1lW7dWA3+PLb\nArFZVrcgLcKe+e0B/MceVpIv1y7sPZQWCyE31H9wLtiJ5WHD+rQ9pgco7j8B\nreju\r\n=hOWz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","readme":"# `@starport/client-js`\n\nThis package implements a generic JS client wrapper for the Tendermint RPC, Tendermint WebSocket, and Cosmos SDK APIs.\n\n## Install\n\n```\nnpm install client-js\n```\n## Usage\n\n```\nimport Client from '@starport/client-js'\n\nconst client = new Client({\n                  apiAddr: 'http://localhost:1317',        // Replace with Cosmos API node address\n                  rpcAddr: 'http://localhost:26657',       // Replace with Tendermint RPC node address\n                  wsAddr: 'ws://localhost:26657/websocket' // Replace with Tendermint WS node address\n                });\n\n```\n\nThe client implements EventEmitter, runs a periodic connectivity test, and emits the following events based on the connection state:\n\n* 'api-status' : true/false\n* 'rpc-status' : true/false\n* 'ws-status' : true/false\n\nYou can listen for and handle those events in your app in the standard way:\n\n```\nclient.on('api-status', (status) => { \n  // Handle API status here\n});\nclient.on('rpc-status', (status) => { \n  // Handle RPC status here\n});\nclient.on('ws-status', (status) => { \n  // Handle WS status here\n});\n```\n\nThe client also provides methods to switch the nodes used in an existing instance:\n\n```\nclient.switchAPI('<new_api_node_address>');\nclient.switchRPC('<new_rpc_node_address>');\nclient.switchWS('<new_ws_node_address>');\n```\n\nThe client automatically subscribes to new block events and emits the events for handling:\n\n```\nclient.on('newblock',(block) => {\n  //handle incoming block here\n})\n```\n\n### Additional features\n\nThe client provides a `useSigner()` method to connect a signer or wallet using the [CosmJS OfflineDirectSigner interface](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/signer.offlinedirectsigner.html).\n\nTo access the resulting [CosmJS signing client](https://cosmos.github.io/cosmjs/latest/stargate/classes/signingstargateclient.signingstargateclient-1.html), use the `.signingClient` property. To access the signer, use the `.signer` property.\n\nUsing the client `.switchRPC()` method reinstantiates the signing client appropriately.\n\n```\nconst signer = await DirectSecp256k1HdWallet.fromMnemonic(mymnemonic) // or any other object implementing the OfflineDirectSigner interface\n\nawait client.useSigner(signer)\n\nconst [account] = await client.signer.getAccounts();\n\nconst recipient = \"cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5\";\n\nconst amount = {\n  denom: \"uatom\",\n  amount: \"1\",\n};\n\nconst result = await client.signingClient.sendTokens(account.address, recipient, [amount], \"Memo Message\");\n```\n\nFinally, the client provides two querying methods for the Cosmos SDK API:\n\n### query()\n\n`.query(endpoint,queryparams)` \n\nA basic wrapper around Axios. For example, to query the bank module for an address's balances: \n\n```\nlet balances = await client.query('/cosmos/bank/v1beta1/balances/','cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n### request()\n\n```\n.request({\n    body: body,\n    path: path,\n    query: query,\n    method: method,\n  })\n```\n\nThis helper method is compatible with the swagger-typescript-api API classes that are generated with `--single-http-client` by using their Swagger definitions if the generated API classes exist for your chain endpoints.\n","gitHead":"737a3d31d450e7a969fc64fb14d289d09835e2b1","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"^0.22.0","@cosmjs/stargate":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^7.32.0","prettier":"^2.4.1","@babel/cli":"^7.15.7","typescript":"^4.4.3","@babel/core":"^7.15.5","@types/node":"^16.10.3","babel-loader":"^8.2.2","@babel/preset-env":"^7.15.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1","@babel/preset-typescript":"^7.15.0","@typescript-eslint/parser":"^4.33.0","@types/reconnectingwebsocket":"^1.0.7","@typescript-eslint/eslint-plugin":"^4.33.0","@babel/plugin-proposal-class-properties":"^7.14.5"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.56-beta.0_1638273102020_0.04110509510943072","host":"s3://npm-registry-packages"}},"0.1.56":{"name":"@starport/client-js","version":"0.1.56","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.56","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"982ec180c90d2a68e6c31a6d55e076c8a79fe68f","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.56.tgz","fileCount":7,"integrity":"sha512-B1w1B71N0Ff10CqRKrU3Um0wKk9jcH7Wk0+83+H2MsjuWOT5fLWPr/myANzT2mjm17vqYbO6k6AEVejQy5Ke9A==","signatures":[{"sig":"MEYCIQChPMo3jfkTNoLsOQ4sQtHPLBsU9jqg+wF0V7ibm9+b9gIhAJCKhdZoiSMVqAgJ3TLJ3JZBil8iO6TqIt6jjGADL3Vn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqQ9mCRA9TVsSAnZWagAAMqgQAIEXGwa8qZNTpDTGXmHy\nxeHGLCjIWk62JVsrLnLW8IoBZicGQozmh/0LPs8Nweiyj8vuitaHEfUGNQTZ\nI+CxNzRUPMXUFrCkj3i1BUDD5tU+/9nqRcLhg32T41bWSxewGclEl06Bb5eQ\nVGctPHUAfG0y6IKPyQ0XFuR3Cy9pspTnkKFWOF2RJ9FEUinvoEfJdaSgrQy9\nRjHmQNenJXcDK0gT4F5VC0ALBPvctlVFUn6n5U2xAcRpyD6VtrNNxrlp+2zF\ngDmh1RAAz2c5CsU7NSvK19Az2lZSxpj8qyDGy/5uTJp6coE0KLpjka573Wyb\nGfrelQeuTw/nhNy6E7/ttwPAlxIul4ZrhvzJDfKAJbP0SO1U49Xkg4zs+lbb\n6LdjWawvqDA+GJ0qpce4ClgQ7lZbDwQs4om/6xRudvYRY7KbbXnqon2GtwPU\n95u8xNX2CrQ2Vr/4jdMfHZCd+rvHuAjgT/GTWw8RKSLFlYl5i49dp9ZHK4M4\neLPuMY5iSnB1EkJR/5Jfp674zDqkR17vAlruXofT9P5hUcygI4uKaXOL1BBy\nsa4snOP+isWebtTusqtzWGfD9GDoupSMB29/J0mwl/NPHKLbAiwMHbElVEv9\n/i8a1+wBIp08pwBfCOGD1R0OizBWkjyv7saqRavCfH1ZupkkW/CLaKZlZR/z\ncZvD\r\n=BZSK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","gitHead":"f4a60c9aa39ee0f7ff91fcd9b6aa382f44ef155e","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"^0.22.0","@cosmjs/stargate":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.32.0","prettier":"^2.4.1","@babel/cli":"^7.15.7","typescript":"^4.4.3","@babel/core":"^7.15.5","@types/node":"^16.10.3","babel-loader":"^8.2.2","@babel/preset-env":"^7.15.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1","@babel/preset-typescript":"^7.15.0","@typescript-eslint/parser":"^4.33.0","@types/reconnectingwebsocket":"^1.0.7","@typescript-eslint/eslint-plugin":"^4.33.0","@babel/plugin-proposal-class-properties":"^7.14.5"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.56_1638469478031_0.6129297881349491","host":"s3://npm-registry-packages"}},"0.1.57-beta.0":{"name":"@starport/client-js","version":"0.1.57-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.57-beta.0","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"c1762cee54ea3b4559d8195fc256929a50875857","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.57-beta.0.tgz","fileCount":7,"integrity":"sha512-dZTbptYl920+jmGODFzk95mx9eU9VqkyclSq1YGTPj9kQ8h6K4p8nT/E93m60xNpSeE9n/wPjJY566DK0+e/rw==","signatures":[{"sig":"MEYCIQDzMCHU4LE6VIu6POxE02+cmDbGSd1H1EtvPzLg3sChUQIhAP/SD6Xt+aFMbSjd4oCEZ9ik2cYN5WKtie0BAC3FuqAH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51358,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqg1KCRA9TVsSAnZWagAAZacP/0Q8uJBP8N+LMuxzzo0r\nf7shrFFK7ZQjXyNFtvjheuqL/X11QoMOVWPqS/dPd9bENp7fH9hFKy4vMUmW\n2E4FB6OmNoLaYJoqlEiS5k2t7lMS5So6dTn3RBOUXLfBdQHmzrRrwH6dXqOD\nGN5zAr04UAcgImlWOsHa3uDyoWtRChl0iDZL5mJ9Yn4l5q7kqZPEan5+si/N\n2IHgNJ+AnHqrLEeeT9nWlgD5b6eF+S29NEruhsU2L2pfcwWFDIJiAvJaezo2\nLlOv++ER50+lH/VzPLpWTMLY97a/i1meKRdh457Zbsl1jCInrNSYzHF/19Ag\nwouhTUIMltvFRiThRJba9dDVS3j23tFld/5B1+9bGl672lvuYeI76ozPAnaQ\n9i4oKTME9zFXg+7/ey4/kp949HsXkLuyI2H6mbT6hfZcx8zvfeLm2C0DjbTm\nO/+eAw5M7zaYGPczbLIScYhDZwY2917QR1RgJbpF0a1EXut/XYKnl27c9EUS\ncdqCEx3pWxgqCfqhPz8eSByDS0TWfFoPK05iDhEmrwe9HDFAbt2d0HdUtQrA\nAESCnvkRLKqCSOKP1v/RCQhohwRns9CguxVq8WCnQT6YP6UEnrrRkYIH5s4M\ne8Q7uZ+frDcU/gPrzPWttHuqbQI1cPyREoOzwLIMXVyFtW22ANq1ukH/P2QO\nLss/\r\n=EU9C\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","readme":"# `@starport/client-js`\n\nThis package implements a generic JS client wrapper for the Tendermint RPC, Tendermint WebSocket, and Cosmos SDK APIs.\n\n## Install\n\n```\nnpm install client-js\n```\n## Usage\n\n```\nimport Client from '@starport/client-js'\n\nconst client = new Client({\n                  apiAddr: 'http://localhost:1317',        // Replace with Cosmos API node address\n                  rpcAddr: 'http://localhost:26657',       // Replace with Tendermint RPC node address\n                  wsAddr: 'ws://localhost:26657/websocket' // Replace with Tendermint WS node address\n                });\n\n```\n\nThe client implements EventEmitter, runs a periodic connectivity test, and emits the following events based on the connection state:\n\n* 'api-status' : true/false\n* 'rpc-status' : true/false\n* 'ws-status' : true/false\n\nYou can listen for and handle those events in your app in the standard way:\n\n```\nclient.on('api-status', (status) => { \n  // Handle API status here\n});\nclient.on('rpc-status', (status) => { \n  // Handle RPC status here\n});\nclient.on('ws-status', (status) => { \n  // Handle WS status here\n});\n```\n\nThe client also provides methods to switch the nodes used in an existing instance:\n\n```\nclient.switchAPI('<new_api_node_address>');\nclient.switchRPC('<new_rpc_node_address>');\nclient.switchWS('<new_ws_node_address>');\n```\n\nThe client automatically subscribes to new block events and emits the events for handling:\n\n```\nclient.on('newblock',(block) => {\n  //handle incoming block here\n})\n```\n\n### Additional features\n\nThe client provides a `useSigner()` method to connect a signer or wallet using the [CosmJS OfflineDirectSigner interface](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/signer.offlinedirectsigner.html).\n\nTo access the resulting [CosmJS signing client](https://cosmos.github.io/cosmjs/latest/stargate/classes/signingstargateclient.signingstargateclient-1.html), use the `.signingClient` property. To access the signer, use the `.signer` property.\n\nUsing the client `.switchRPC()` method reinstantiates the signing client appropriately.\n\n```\nconst signer = await DirectSecp256k1HdWallet.fromMnemonic(mymnemonic) // or any other object implementing the OfflineDirectSigner interface\n\nawait client.useSigner(signer)\n\nconst [account] = await client.signer.getAccounts();\n\nconst recipient = \"cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5\";\n\nconst amount = {\n  denom: \"uatom\",\n  amount: \"1\",\n};\n\nconst result = await client.signingClient.sendTokens(account.address, recipient, [amount], \"Memo Message\");\n```\n\nFinally, the client provides two querying methods for the Cosmos SDK API:\n\n### query()\n\n`.query(endpoint,queryparams)` \n\nA basic wrapper around Axios. For example, to query the bank module for an address's balances: \n\n```\nlet balances = await client.query('/cosmos/bank/v1beta1/balances/','cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n### request()\n\n```\n.request({\n    body: body,\n    path: path,\n    query: query,\n    method: method,\n  })\n```\n\nThis helper method is compatible with the swagger-typescript-api API classes that are generated with `--single-http-client` by using their Swagger definitions if the generated API classes exist for your chain endpoints.\n","gitHead":"87e4e8c335f92f81cd0edb8eb52cad610c6d5ca7","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"^0.22.0","@cosmjs/stargate":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^7.32.0","prettier":"^2.4.1","@babel/cli":"^7.15.7","typescript":"^4.4.3","@babel/core":"^7.15.5","@types/node":"^16.10.3","babel-loader":"^8.2.2","@babel/preset-env":"^7.15.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1","@babel/preset-typescript":"^7.15.0","@typescript-eslint/parser":"^4.33.0","@types/reconnectingwebsocket":"^1.0.7","@typescript-eslint/eslint-plugin":"^4.33.0","@babel/plugin-proposal-class-properties":"^7.14.5"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.57-beta.0_1638534474428_0.04560103149479944","host":"s3://npm-registry-packages"}},"0.1.57":{"name":"@starport/client-js","version":"0.1.57","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.57","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"5aeac884fc83267ef53abdd38ad722aee6014901","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.57.tgz","fileCount":7,"integrity":"sha512-fJpwl/Gy4MJJz59SzTbuCPqtVyA8hBBug6ncgOSUckkcO96CUPy43nUB7cxO8oUPtesd9WtmD8JdshWSnorncg==","signatures":[{"sig":"MEUCIQCowbq9Ty533Ddzbkwg0k68esVudaSxnuVSBPPgkiUN6QIgG8PSBBMOTH9RYB384ErLLe1aki8p6f0wPwo61SAS2K8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4XIZCRA9TVsSAnZWagAA5hkP/3dWg26yYXHkXKvCVoUZ\n24gFypMuC5VK9ZcwdGWwqBWW2ZkRtMUGRiCi2gWCT8iMXOZuRRUeyKUA8drG\nC007gC1BXL/wxsN7PAOw8UyHoXU0IO6VqDYdJpz+putwIov9hrKd7qiMJ7y6\n2flHP/cwcrdETjeG+lhszlDBTDoyDVoPAkjG7woPSGn5S+E/331PMc21mmqp\nKADZle37I4VB+6eO8riuL9A/FDTFVtZhyrUo7TGPwkIvtwU0zmvHIOad/pPr\nrnCGfbfKqotECxUBTxqZcTbvFJpp22xVFVXEuEtbb7emTjVdK5pFyuELse6L\nrRCdTM6IyULIaWdarxm+KnDi14cO10XV0KaWtcrS4c2ozL4aspc3VJ5QP6sa\nKheJiJm1uhJ/f1dR2jL2/UfPwbWg9BTyBg31IrOL9fSZJCWnns+vqcBLRbcV\nv8+HN4p3x5ZwZk9dtDqQLE0zwxHDNflYObvE6LeCFVfsFbifirkbKOKNePls\nSa2HVIXbGOArdNMx6ZsUiTBxEe7kKalbsMkocBhUqQf4FTcERfjakSkyiFCV\nItWdabOTqa7gT20Fo4uyEMdXlMsCpEuSVaAoANagbm5xWubzHSs4JezWFMRN\n1kVVOtYyFagVmNXrAB1TLw8SWgdGUj0+igpDbL//TkTw78WJECSd56dQm1IX\nKqZl\r\n=lJsX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","gitHead":"8705f1d21c61ed4bcc9096222180df6c34d15b43","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v14.18.3+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.18.3","dependencies":{"axios":"^0.22.0","@cosmjs/stargate":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.32.0","prettier":"^2.4.1","@babel/cli":"^7.15.7","typescript":"^4.4.3","@babel/core":"^7.15.5","@types/node":"^16.10.3","babel-loader":"^8.2.2","@babel/preset-env":"^7.15.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1","@babel/preset-typescript":"^7.15.0","@typescript-eslint/parser":"^4.33.0","@types/reconnectingwebsocket":"^1.0.7","@typescript-eslint/eslint-plugin":"^4.33.0","@babel/plugin-proposal-class-properties":"^7.14.5"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.57_1642164760966_0.7277921048175757","host":"s3://npm-registry-packages"}},"0.1.58":{"name":"@starport/client-js","version":"0.1.58","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/client-js@0.1.58","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"e39a985ef3dbc82cf8ca19daac7f4ed70ac46c8d","tarball":"https://registry.npmjs.org/@starport/client-js/-/client-js-0.1.58.tgz","fileCount":7,"integrity":"sha512-vo5ECeBxIHMFNkP2w+dy7kLzn0NzD5T7lLRYM1jvs7jdD+7Cwj8GcN1/KpIIXSJftEfif1U4hiujAsEUd8itUQ==","signatures":[{"sig":"MEQCIFv5CtOPD6PCkUs71ZLBHz3bx/4TQOwkInLONxMHr6rLAiBoDd6jbvswS0KA5AtvO8fBmoHmxjWKh+rQ4y2DRInAUw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5++eCRA9TVsSAnZWagAAx7sP/Ag4i6VD4oeQ+EYJ5Hvb\n9/HlYhVEYG16Tf4FXH2/pkB4TYZT8Yzb8hY7HiYFWgWvZnkzdYcYBBx3opjV\n03LD7zQZOTVyypk1KgHZ96uaHl8FO7eGpxdw8hXJ2UQGCXHq52Bc60wR0pwr\nB1sVkDqT0D8eHujldK+SmobLmOKPp0lDpTFVHxgEHkfIABhMRjw1npbYxU3N\ngpI8ya9lN72w4gc4Mi2ADCWWprZPsvf/Vg+Q7DVaQZ8+XqPIJTFUpEzWL99R\ni8po/AOqJhmzJ1jLBXMF/yoHiNnd86GH9+N+Joo2Z9Ylj2t4en6gOVCGSfmv\n9uuZw1UNjtqNXogu3u+Prxszh53+abX5bmDih5gYg32U99l1+/tG44mS1Hex\nXH/2zCrmEPRKqJbdRc3QOUuQaM1NJkKcwZNmtVd7wgr12k+1tOuovKUKDjVK\n9p1yglxlKisgO/wrC+E8gdsTiSGOiqwvwmaW+VXl5d3dAkgBzKmw5LEwLcgc\nlgkX0SWnnoS3s5ZLAYOMqUEsnf4U7VWSGIVx7+TAczzOJUgnO3RvrsUKaY0X\nRqIDHX0EeVh5VI4r2skj3tKY5Bdl76n8WQJJz+r60MAZb+uVmEfcs3FgIJFX\nRBrQxXmjbRrgShBxx3Kv64e4j2BazlfjP2/lob5RLM+wZihRIIi+Xg4uM2Tk\nKOoN\r\n=yONo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/SPClient.js","gitHead":"8592c94e43592b17c7367606ace161d80a9fff74","scripts":{"tsc":"tsc","lint":"eslint 'src/**/*.ts'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps","watch":"babel src --out-dir lib --extensions \".ts,.tsx\" --watch --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v14.18.3+x64 (linux)","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","directories":{},"_nodeVersion":"14.18.3","dependencies":{"axios":"^0.22.0","@cosmjs/stargate":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","reconnecting-websocket":"^4.4.0","@types/reconnectingwebsocket":"^1.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.32.0","prettier":"^2.4.1","@babel/cli":"^7.15.7","typescript":"^4.4.3","@babel/core":"^7.15.5","@types/node":"^16.10.3","babel-loader":"^8.2.2","@babel/preset-env":"^7.15.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1","@babel/preset-typescript":"^7.15.0","@typescript-eslint/parser":"^4.33.0","@types/reconnectingwebsocket":"^1.0.7","@typescript-eslint/eslint-plugin":"^4.33.0","@babel/plugin-proposal-class-properties":"^7.14.5"},"_npmOperationalInternal":{"tmp":"tmp/client-js_0.1.58_1642590110227_0.34590610479519124","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-02-22T20:25:34.710Z","modified":"2025-08-25T16:01:27.096Z","0.1.12":"2021-02-22T20:25:35.074Z","0.1.13":"2021-02-23T08:03:45.494Z","0.1.14":"2021-02-23T14:42:31.792Z","0.1.22":"2021-03-08T10:51:10.320Z","0.1.25":"2021-03-12T13:16:24.964Z","0.1.26":"2021-03-15T19:22:36.553Z","0.1.27":"2021-03-29T14:36:57.839Z","0.1.28":"2021-03-30T08:11:53.939Z","0.1.36":"2021-03-30T08:18:43.193Z","0.1.37":"2021-03-30T10:22:30.743Z","0.1.38":"2021-03-31T14:28:36.051Z","0.1.42-beta.130":"2021-04-09T10:30:46.175Z","0.1.42-beta.0":"2021-04-09T11:09:51.057Z","0.1.42":"2021-04-13T10:28:45.514Z","0.1.43-beta.0":"2021-04-13T10:39:55.559Z","0.1.43":"2021-04-13T10:47:02.885Z","0.1.44-beta.0":"2021-04-13T11:00:08.303Z","0.1.44":"2021-04-13T11:01:10.633Z","0.1.45-beta.0":"2021-04-14T10:51:59.704Z","0.1.45":"2021-04-22T15:42:12.722Z","0.1.46":"2021-04-22T16:38:53.887Z","0.1.47-beta.0":"2021-04-23T10:40:09.308Z","0.1.47":"2021-04-25T06:56:04.095Z","0.1.48-beta.0":"2021-05-04T13:32:18.952Z","0.1.48":"2021-05-04T14:05:35.241Z","0.1.49-beta.0":"2021-05-10T12:34:07.829Z","0.1.49":"2021-05-24T09:07:02.665Z","0.1.50-beta.0":"2021-05-25T09:16:05.681Z","0.1.50":"2021-05-25T09:23:12.475Z","0.1.51-beta.0":"2021-06-10T08:32:21.665Z","0.1.51":"2021-06-15T14:44:15.908Z","0.1.52-beta.0":"2021-07-01T09:57:32.143Z","0.1.52":"2021-07-01T10:03:36.288Z","0.1.53-beta.0":"2021-08-16T03:34:51.106Z","0.1.53":"2021-09-27T11:28:17.371Z","0.1.54-beta.0":"2021-10-01T10:01:22.567Z","0.1.54":"2021-11-11T16:58:29.334Z","0.1.55-beta.0":"2021-11-23T18:03:36.632Z","0.1.55":"2021-11-24T11:11:05.147Z","0.1.56-beta.0":"2021-11-30T11:51:42.234Z","0.1.56":"2021-12-02T18:24:38.222Z","0.1.57-beta.0":"2021-12-03T12:27:54.735Z","0.1.57":"2022-01-14T12:52:41.154Z","0.1.58":"2022-01-19T11:01:50.377Z"},"author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","homepage":"https://github.com/tendermint/vue","description":"A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs","maintainers":[{"email":"alex@clockwork.gr","name":"clockworkgr"},{"email":"lali.brown@tendermint.com","name":"lali.brown"}],"readme":"# `@starport/client-js`\n\nThis package implements a generic JS client wrapper for the Tendermint RPC, Tendermint WebSocket, and Cosmos SDK APIs.\n\n## Install\n\n```\nnpm install client-js\n```\n## Usage\n\n```\nimport Client from '@starport/client-js'\n\nconst client = new Client({\n                  apiAddr: 'http://localhost:1317',        // Replace with Cosmos API node address\n                  rpcAddr: 'http://localhost:26657',       // Replace with Tendermint RPC node address\n                  wsAddr: 'ws://localhost:26657/websocket' // Replace with Tendermint WS node address\n                });\n\n```\n\nThe client implements EventEmitter, runs a periodic connectivity test, and emits the following events based on the connection state:\n\n* 'api-status' : true/false\n* 'rpc-status' : true/false\n* 'ws-status' : true/false\n\nYou can listen for and handle those events in your app in the standard way:\n\n```\nclient.on('api-status', (status) => { \n  // Handle API status here\n});\nclient.on('rpc-status', (status) => { \n  // Handle RPC status here\n});\nclient.on('ws-status', (status) => { \n  // Handle WS status here\n});\n```\n\nThe client also provides methods to switch the nodes used in an existing instance:\n\n```\nclient.switchAPI('<new_api_node_address>');\nclient.switchRPC('<new_rpc_node_address>');\nclient.switchWS('<new_ws_node_address>');\n```\n\nThe client automatically subscribes to new block events and emits the events for handling:\n\n```\nclient.on('newblock',(block) => {\n  //handle incoming block here\n})\n```\n\n### Additional features\n\nThe client provides a `useSigner()` method to connect a signer or wallet using the [CosmJS OfflineDirectSigner interface](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/signer.offlinedirectsigner.html).\n\nTo access the resulting [CosmJS signing client](https://cosmos.github.io/cosmjs/latest/stargate/classes/signingstargateclient.signingstargateclient-1.html), use the `.signingClient` property. To access the signer, use the `.signer` property.\n\nUsing the client `.switchRPC()` method reinstantiates the signing client appropriately.\n\n```\nconst signer = await DirectSecp256k1HdWallet.fromMnemonic(mymnemonic) // or any other object implementing the OfflineDirectSigner interface\n\nawait client.useSigner(signer)\n\nconst [account] = await client.signer.getAccounts();\n\nconst recipient = \"cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5\";\n\nconst amount = {\n  denom: \"uatom\",\n  amount: \"1\",\n};\n\nconst result = await client.signingClient.sendTokens(account.address, recipient, [amount], \"Memo Message\");\n```\n\nFinally, the client provides two querying methods for the Cosmos SDK API:\n\n### query()\n\n`.query(endpoint,queryparams)` \n\nA basic wrapper around Axios. For example, to query the bank module for an address's balances: \n\n```\nlet balances = await client.query('/cosmos/bank/v1beta1/balances/','cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n### request()\n\n```\n.request({\n    body: body,\n    path: path,\n    query: query,\n    method: method,\n  })\n```\n\nThis helper method is compatible with the swagger-typescript-api API classes that are generated with `--single-http-client` by using their Swagger definitions if the generated API classes exist for your chain endpoints.\n","readmeFilename":"README.md"}