{"name":"@taquito/rpc","version":"20.2.0-beta.0","keywords":["tezos","blockchain","rpc"],"author":"Simon Boissonneault-Robert <simon@ecadlabs.com>","license":"Apache-2.0","_id":"@taquito/rpc@20.2.0-beta.0","dist":{"shasum":"8a96b270efb373710ddc11d1357fa84962c86fde","tarball":"http://registry-npm.ywwl.com/@taquito/rpc/download/@taquito/rpc-20.2.0-beta.0.tgz","fileCount":22,"integrity":"sha512-d7Ces2BiyWHbxzSMVanT1UV4H2ziY4Flj4Xz5xLpcROpseI+DDlo9DXTg6NVH5dGsbkDgj+TdAgDOvAyKVl9Jw==","signatures":[{"sig":"MEUCIBaw9uuckjjK7p6mjCz4Vq5Y4YF4LRdSlYUuIU3T7NxwAiEA1kXGpmLxDsTsR8B220mx5DM1+y+gsT3u7tUxknEfOSw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":528358,"size":78385,"noattachment":false,"key":"/@taquito/rpc/-/@taquito/rpc-20.2.0-beta.0.tgz"},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","moduleNameMapper":{"^@taquito/http-utils$":"<rootDir>/../taquito-http-utils/src/taquito-http-utils.ts"},"collectCoverageFrom":["src/**/*.{js,ts}"],"moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"]},"main":"dist/taquito-rpc.umd.js","module":"dist/taquito-rpc.es6.js","engines":{"node":">=20"},"gitHead":"de49571826b30682dd74d3ebc17a0e191128c617","scripts":{"lint":"eslint --ext .js,.ts .","test":"jest --coverage","build":"tsc --project ./tsconfig.prod.json --module commonjs && rollup -c rollup.config.ts --bundleConfigAsCjs","start":"rollup -c rollup.config.ts --bundleConfigAsCjs -w","prebuild":"rimraf dist","precommit":"lint-staged","test:prod":"npm run lint && npm run test -- --no-cache","test:watch":"jest --coverage --watch","version-stamp":"node ../taquito/version-stamping.js"},"typings":"dist/types/taquito-rpc.d.ts","_npmUser":{"name":"hui-an.yang","email":"hui-an.yang@ecadlabs.com"},"repository":{"url":"","type":"git"},"_npmVersion":"lerna/8.1.7/node@v20.17.0+arm64 (darwin)","description":"Provides low level methods, and types to invoke RPC calls from a Nomadic Tezos RPC node","directories":{},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","eslint --fix"]},"_nodeVersion":"20.17.0","dependencies":{"bignumber.js":"^9.1.2","@taquito/core":"^20.2.0-beta.0","@taquito/utils":"^20.2.0-beta.0","@taquito/http-utils":"^20.2.0-beta.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","colors":"^1.4.0","eslint":"^8.57.0","prompt":"^1.3.0","rimraf":"^6.0.1","rollup":"^4.22.4","shelljs":"^0.8.5","ts-jest":"^29.2.3","ts-node":"^10.9.2","prettier":"^3.3.3","coveralls":"^3.1.1","cross-env":"^7.0.3","typescript":"~5.5.4","@types/jest":"^29.5.12","@types/node":"^22","jest-config":"^29.7.0","lint-staged":"^15.2.7","ts-toolbelt":"^9.6.0","@types/bluebird":"^3.5.42","replace-in-file":"^8.1.0","lodash.camelcase":"^4.3.0","rollup-plugin-json":"^4.0.0","@typescript-eslint/parser":"^6.21.0","rollup-plugin-typescript2":"^0.36.0","@typescript-eslint/eslint-plugin":"^6.21.0"},"_npmOperationalInternal":{"tmp":"tmp/rpc_20.2.0-beta.0_1732129889352_0.4066738335214837","host":"s3://npm-registry-packages"},"readme":"# Taquito RPC package\n*Documentation can be found [here](https://taquito.io/docs/rpc_package)*  \n*TypeDoc style documentation is available on-line [here](https://taquito.io/typedoc/modules/_taquito_rpc.html)*\n\n`@taquito/rpc` is an npm package that provides low-level methods and types to invoke RPC calls from a Nomadic Tezos RPC node.\n\n## General Information\n\nThe RPC package can be used to query the RPC API of your chosen node. Methods in the RPC package map one-to-one to the corresponding Tezos RPC API endpoints. All responses from the RPC are returns with TypeScript types.\n\nThe higher-level `@taquito/taquito` package builds on this RPC package.\n\n## Install\n\n```\nnpm i --save @taquito/rpc\n```\n\n## Usage\n### RpcClient\n\nThe constructor of the `RpcClient` takes an RPC URL as a parameter and an optional chain (default is main).\n\n```ts\nimport { RpcClient } from '@taquito/rpc';\n\nconst client = new RpcClient('https://YOUR_PREFERRED_RPC_URL');\n\n// Fetching the balance of an account in mutez (micro ꜩ)\nconst balance = await client.getBalance('tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb');\n```\n\n### RpcClientCache\n\nThe `RpcClientCache` class aims to improve the performance of dApps built using Taquito by reducing the number of calls made to the RPC. Its constructor takes a RpcClient instance as a parameter and an optional ttl (time to live). The RpcClient responses will be cached for the period defined by the ttl (default is of 1000 milliseconds). The `RpcClientCache` can be injected to the TezosToolkit as follow:\n\n```ts\nimport { TezosToolkit } from '@taquito/taquito';\nimport { RpcClient, RpcClientCache } from '@taquito/rpc';\n\nconst rpcClient = new RpcClient('https://YOUR_PREFERRED_RPC_URL');\nconst tezos = new TezosToolkit(new RpcClientCache(rpcClient));\n```\n## Additional info\n\nSee the top-level project [https://github.com/ecadlabs/taquito](https://github.com/ecadlabs/taquito) for details on reporting issues, contributing and versioning.\n\n## Disclaimer\n\nTHIS SOFTWARE IS PROVIDED \"AS IS\" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","publish_time":1732129889549,"maintainers":[{"name":"jevonearth","email":"jev@ecadlabs.com"},{"name":"roxaneletourneau","email":"roxane@ecadlabs.com"},{"name":"gimbrailo","email":"ginoimbrailo@gmail.com"},{"name":"hui-an.yang","email":"hui-an.yang@ecadlabs.com"},{"name":"dsawali","email":"davis.sawali@ecadlabs.com"},{"name":"alirezahaghshenas","email":"alirezahaghshenas@gmail.com"}],"_cnpm_publish_time":1732129889549,"dist-tags":{"latest":"25.1.1","next":"25.2.0-beta0"}}