{"_id":"@blockfrost/blockfrost-cardano-cli","_rev":"13-9b921c5e19e813481d678c67b0aff75a","name":"@blockfrost/blockfrost-cardano-cli","dist-tags":{"alfa":"0.0.1-alfa.2","latest":"1.0.0","beta":"1.0.0-beta.5"},"versions":{"0.0.1-alfa.1":{"name":"@blockfrost/blockfrost-cardano-cli","description":"Drop-in(ish) replacement for cardano-cli powered by Blockfrost","version":"0.0.1-alfa.1","author":{"name":"blockfrost.io"},"bin":{"bcc":"bin/run","blockfrost-cardano-cli":"bin/run"},"bugs":{"url":"https://github.com/blockfrost/blockfrost-cardano-cli/issues"},"dependencies":{"@blockfrost/blockfrost-js":"3.0.0-beta.10","@oclif/core":"1.0.4","@oclif/plugin-help":"^5","bech32":"^2.0.0","bignumber.js":"^9.0.1","cli-ux":"^5.6.4","safe-stable-stringify":"^2.2.0","stdout-stderr":"^0.1.13","tslib":"^1"},"devDependencies":{"@types/jest":"^27.0.3","@types/node":"^14","@typescript-eslint/eslint-plugin":"^5.4.0","@typescript-eslint/parser":"^5.4.0","eslint":"^7.32.0","eslint-config-oclif":"^4.0.0","eslint-config-oclif-typescript":"^1.0.2","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-unicorn":"^38.0.1","globby":"^10","jest":"^27.3.1","nock":"^13.2.1","oclif":"2.0.0-main.10","prettier":"^2.4.1","ts-jest":"^27.0.7","ts-node":"^10.4.0","typescript":"4.4.4"},"engines":{"node":">=14.0.0"},"homepage":"https://github.com/blockfrost/blockfrost-cardano-cli","keywords":["blockfrost","cardano","cardano-cli","blockchain"],"license":"Apache-2.0","main":"lib/index.js","oclif":{"commands":"./lib/commands","bin":"bcc","plugins":["@oclif/plugin-help"],"topicSeparator":" ","topics":{"query":{"description":"Node query commands"},"transaction":{"description":"Transaction commands"}},"macos":{"identifier":"io.blockfrost.cardanocli"}},"repository":{"type":"git","url":"git+https://github.com/blockfrost/blockfrost-cardano-cli.git"},"scripts":{"build":"rm -rf lib && tsc -b","postpack":"rm -f oclif.manifest.json","posttest":"eslint . --ext .ts --config .eslintrc","prepack":"yarn build && oclif manifest && oclif readme","test":"jest","lint":"eslint . --ext .ts","type-check":"tsc -p tsconfig.types.json","version":"oclif readme && git add README.md"},"types":"lib/index.d.ts","packageManager":"yarn@3.1.0","gitHead":"de5798a97100502d41ada0fa04f5e15267fdb3a8","_id":"@blockfrost/blockfrost-cardano-cli@0.0.1-alfa.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-Oi8lMB8p3AbmcoIkmSLKRfRLmHZ9T1a2QW+jtqeE9MP20JCvzyVbLdUWkRx3OOB1AEpf+mHWjcKX4sMvIRKXeQ==","shasum":"c6d4b76d66fb295821990b9bac83b4081af7d25e","tarball":"https://registry.npmjs.org/@blockfrost/blockfrost-cardano-cli/-/blockfrost-cardano-cli-0.0.1-alfa.1.tgz","fileCount":68,"unpackedSize":134553,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhp0MHCRA9TVsSAnZWagAAN8IP/AsYNBS0wB6lgvx3d0S3\nmsmMadqvnCRGlRRQdrldSWPfbJEy62ovTsl8gsgAojV50CYBUokohqQkrM2t\nOg8t63Nx7Faeopsnws4oTifIsnXk/b1dSlgdMvktbblmY/06ALD722rm9RTN\nybayWp3Mc06Btt+Keyat7EpxNYu7fEDir+mG8s2vhUVqj/qnWAMgeD152BoQ\nx5PUIyUUNp5wDo6LgPjAi0Jd/IY3UVkqTsdfJC0+0aBthHCexrI9i4bOC66z\nPi1ovCRb33/i4wBDI9c4YAZaQ54ouknSyEGp2RGpjz7cmyXBpvBtO4DMsd7A\nxEEuuGBqN8JIOzFy9stJtR2UULd475AqU9llbiLMFa3PFmMCR5oytIs0yPNO\n9KRskHuUHxD4nk/LOT82fIo9RTqSGe/mVlU/8z70YsRVQCRW+btzKkjVmM3D\n6EtTuqYY/Y7LeGPnfVSSeDUhr8TUNli3F906LG8Nep7yxOm5+C0fqEVNa2ZB\nhTWpbF+DG9JNJYJI/J6H5o6q5I1bvkr17u29qWe7DH7/9zpq7tRdQ+vk0Jp4\n/eqc8UN2oOKoQF+ukYHfa2REZLpezGN7HX4sEhbycej7RURuLYkowpJL5B/v\nvI6aG/XpFqRTXLuniOnFEoVH1jfHFLAcSCtev7YTlx7vPLfS7r50lY8K5BPX\njZGD\r\n=HmRz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDytMFQCkYkH5uY9yH1Qb5JjO1E2yRjmXQAoFv+D//noAIgL7hUSOlHiUbwaeWohRIbYEUCSysGIJNEspQ2spJ+KT8="}]},"_npmUser":{"name":"slowbackspace","email":"slowbackspace@gmail.com"},"directories":{},"maintainers":[{"name":"slowbackspace","email":"slowbackspace@gmail.com"},{"name":"blockfrost.io","email":"accounts@blockfrost.io"},{"name":"vladimirvolek","email":"volek.vladimir@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blockfrost-cardano-cli_0.0.1-alfa.1_1638351623545_0.46547451062816947"},"_hasShrinkwrap":false},"0.0.1-alfa.2":{"name":"@blockfrost/blockfrost-cardano-cli","description":"Drop-in(ish) replacement for cardano-cli powered by Blockfrost","version":"0.0.1-alfa.2","author":{"name":"blockfrost.io"},"bin":{"bcc":"bin/run","blockfrost-cardano-cli":"bin/run"},"bugs":{"url":"https://github.com/blockfrost/blockfrost-cardano-cli/issues"},"dependencies":{"@blockfrost/blockfrost-js":"3.0.0-beta.10","@oclif/core":"1.0.4","@oclif/plugin-help":"^5","bech32":"^2.0.0","bignumber.js":"^9.0.1","cli-ux":"^5.6.4","safe-stable-stringify":"^2.2.0","stdout-stderr":"^0.1.13","tslib":"^1"},"devDependencies":{"@types/jest":"^27.0.3","@types/node":"^14","@typescript-eslint/eslint-plugin":"^5.4.0","@typescript-eslint/parser":"^5.4.0","eslint":"^7.32.0","eslint-config-oclif":"^4.0.0","eslint-config-oclif-typescript":"^1.0.2","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-unicorn":"^38.0.1","globby":"^10","jest":"^27.3.1","nock":"^13.2.1","oclif":"2.0.0-main.10","prettier":"^2.4.1","ts-jest":"^27.0.7","ts-node":"^10.4.0","typescript":"4.4.4"},"engines":{"node":">=14.0.0"},"homepage":"https://github.com/blockfrost/blockfrost-cardano-cli","keywords":["blockfrost","cardano","cardano-cli","blockchain"],"license":"Apache-2.0","main":"lib/index.js","oclif":{"commands":"./lib/commands","bin":"bcc","plugins":["@oclif/plugin-help"],"topicSeparator":" ","topics":{"query":{"description":"Node query commands"},"transaction":{"description":"Transaction commands"}},"macos":{"identifier":"io.blockfrost.cardanocli"}},"repository":{"type":"git","url":"git+https://github.com/blockfrost/blockfrost-cardano-cli.git"},"scripts":{"build":"rm -rf lib && tsc -b","postpack":"rm -f oclif.manifest.json","posttest":"eslint . --ext .ts --config .eslintrc","prepack":"yarn build && oclif manifest && oclif readme","test":"jest","lint":"eslint . --ext .ts","type-check":"tsc -p tsconfig.types.json","version":"oclif readme && git add README.md"},"types":"lib/index.d.ts","packageManager":"yarn@3.1.0","readme":"# Blockfrost Cardano CLI\n\nDrop-in(ish) replacement for cardano-cli. Query the blockchain without the need to spin up your own Cardano node. All powered by [Blockfrost API](https://blockfrost.io).\n\n## Installation\n\n### npm\n\nIf you have Node.js installed the fastest way to install the CLI is directly with npm. For instructions for installing Node.js please see [nodejs.org](https://nodejs.org/en/download/). Although the CLI should run on Node.js v14 just fine, we recommend v16 which is active LTS.\n\n```console\nnpm install -g @blockfrost/blockfrost-cardano-cli\n```\n\nAfter the installation is completed new commands `blockfrost-cardano-cli` and its shorter alias `bcc` should be available.\n\n### Docker\n\nBuild the docker container by running following command within the repository:\n\n```console\ndocker build . -t blockfrost-cardano-cli\n```\n\nThen can use `docker run` with `--env` flag to pass environment variables into a docker container:\n\n```console\ndocker run --env BLOCKFROST_PROJECT_ID_MAINNET=<PROJECT_ID> blockfrost-cardano-cli --help\n```\n\n## Setup\n\nIn order to use Blockfrost Cardano CLI you first need generate project token(s) on [Blockfrost.io](https://blockfrost.io).\n\nThen set following environment variables:\n\n- `BLOCKFROST_PROJECT_ID_MAINNET` - Mainnet token that will be used if you don't specify `--testnet` flag\n- `BLOCKFROST_PROJECT_ID_TESTNET` - Testnet token that will be used when `--testnet` flag is specified\n\nWe recommend setting both of these variables as it allows you to seamlessly switch between mainnet and testnet network while using the CLI.\n\n## Usage\n\n```console\n$ bcc <COMMAND> [--testnet | --testnet-magic 1097911063] [--out-file FILE] [--help]\n```\n\n### Commands\n\n#### `bcc query pool-params --stake-pool-id POOLID`\n\nList parameters of specified pool\n\n```console\n$ bcc query pool-params --stake-pool-id pool1y6chk7x7fup4ms9leesdr57r4qy9cwxuee0msan72x976a6u0nc --testnet\n\n{\n    \"poolParams\": {\n        \"publicKey\": \"26b17b78de4f035dc0bfce60d1d3c3a8085c38dcce5fb8767e518bed\",\n        \"cost\": 340000000,\n        \"metadata\": {\n            \"hash\": \"514e56dacc4f556ebc1d307473d0cf15d4cf0dc27169870e46a811625f09262e\",\n            \"url\": \"https://stakenuts.com/testnet.json\"\n        },\n        \"vrf\": \"db61b20aeb616dbc39ca36194e7a54d5cef5464c6e6d0d420cfa551f7dc43d64\",\n        \"owners\": [\n            \"13cf55d175ea848b87deb3e914febd7e028e2bf6534475d52fb9c3d0\"\n        ],\n        \"pledge\": 100000000000,\n        \"rewardAccount\": {\n            \"network\": \"Testnet\",\n            \"credential\": {\n                \"key hash\": \"13cf55d175ea848b87deb3e914febd7e028e2bf6534475d52fb9c3d0\"\n            }\n        },\n        \"margin\": 0.05,\n        \"relays\": [\n            {\n                \"single host name\": {\n                    \"port\": 3001,\n                    \"dnsName\": \"relays.testnet.stakenuts.com\"\n                }\n            }\n        ]\n    },\n    \"futurePoolParams\": null,\n    \"retiring\": null\n}\n```\n\n#### `bcc query protocol-parameters`\n\n```console\n$ bcc query protocol-parameters --testnet\n\n{\n    \"txFeePerByte\": 44,\n    \"minUTxOValue\": 34482,\n    \"decentralization\": 0,\n    \"utxoCostPerWord\": 34482,\n    \"stakePoolDeposit\": 500000000,\n    \"poolRetireMaxEpoch\": 18,\n    \"extraPraosEntropy\": null,\n    \"collateralPercentage\": 150,\n    \"stakePoolTargetNum\": 500,\n    \"maxBlockBodySize\": 73728,\n    \"minPoolCost\": 340000000,\n    \"maxTxSize\": 16384,\n    \"treasuryCut\": 0.2,\n    \"maxBlockExecutionUnits\": {\n        \"memory\": 50000000,\n        \"steps\": 40000000000\n    },\n    \"maxCollateralInputs\": 3,\n    \"maxValueSize\": 5000,\n    \"maxBlockHeaderSize\": 1100,\n    \"maxTxExecutionUnits\": {\n        \"memory\": 11250000,\n        \"steps\": 10000000000\n    },\n    \"costModels\": {},\n    \"protocolVersion\": {\n        \"minor\": 0,\n        \"major\": 6\n    },\n    \"txFeeFixed\": 155381,\n    \"stakeAddressDeposit\": 2000000,\n    \"monetaryExpansion\": 0.003,\n    \"poolPledgeInfluence\": 0.3,\n    \"executionUnitPrices\": {\n        \"priceSteps\": 0.0000721,\n        \"priceMemory\": 0.0577\n    }\n}\n```\n\n#### `bcc query tip`\n\nGet the current tip\n\n```console\n$ bcc query tip --testnet\n\n{\n    \"epoch\": 171,\n    \"hash\": \"d91bbfb72158eed4949663abbc20ce70dcc1a5c4d8855b6db46f6cd9c061dce5\",\n    \"slot\": 43922944,\n    \"block\": 3115492,\n    \"era\": \"Alonzo\",\n    \"syncProgress\": \"100.00\"\n}\n```\n\n#### `bcc query stake-distribution`\n\nList of pools sorted by pool ID (in hex).\n\n```console\n$ bcc query stake-distribution --testnet\n\n PoolId                                                   Stake frac\n ──────────────────────────────────────────────────────── ──────────\n pool1qqyjr9pcrv97gwrueunug829fs5znw6p2wxft3fvqkgu5f4qlrg 6.246e-3\n pool1qqfnw2fwajdnam7xsqhhrje5cgd8jcltzfrx655rd23eqlxjfef 2.983e-6\n pool1qquwwu6680fr72y4779r2kpc7mxtch8rp2uhuqcc7v9p6q4f7ph 2.178e-7\n pool1qptl80vq84xm28pt3t2lhpfzqag28csjhktxz5k6a74n260clmt 9.643e-8\n pool1qzlk4mdgauljhk9eq4m6jmxtjyyeyjgjj0wk7vfmvwxrx22ljgs 6.213e-3\n pool1qrfa3jrqptfj0kg5pef7fup6ta70pdf7e7vjcgpxtrtsvxxf7ze 2.957e-10\n pool1qrazx9r2jtepdefa7h830az933vexudt9rpn0t2vky95k5k97my 1.245e-4\n ...\n```\n\n#### `bcc query stake-address-info --address`\n\nGet the current delegations and reward balance filtered by stake address.\n\n```console\n$ bcc query stake-address-info --address stake_test1uqvjsz7a3xm7ylpzgdhvg29gd9686ss9kztxeaanwp9nreqq74692 --testnet\n\n[\n    {\n        \"address\": \"stake_test1uqvjsz7a3xm7ylpzgdhvg29gd9686ss9kztxeaanwp9nreqq74692\",\n        \"rewardAccountBalance\": 0,\n        \"delegation\": null\n    }\n]\n```\n\n#### `bcc transaction submit --tx-file FILE`\n\n```console\n$ bcc transaction submit --tx-file /tmp/mytx --testnet\n\nTransaction successfully submitted.\n```\n\n## Cardano CLI compatibility\n\nOutput of following commands should be compatible with `cardano-cli` (1.31.0) for all practical purposes. It is possible we have missed few things. If you encounter any problem while replacing cardano-cli with blockfrost-cardano-cli please open an issue.\n\n- `bcc query`\n  - `pool-params --stake-pool-id`\n  - `protocol-parameters`\n  - `tip`\n  - `stake-distribution`\n  - `stake-address-info --address`\n  - `utxo --address`\n- `bcc transaction`\n  - `submit --tx-file`\n\nAdditionally, all commands support `--out-file FILE`, `--testnet` or `--testnet-magic 1097911063`.\n","readmeFilename":"README.md","gitHead":"86a61a76296ec0405f2483e47a627a75cfff5705","_id":"@blockfrost/blockfrost-cardano-cli@0.0.1-alfa.2","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-DpNOAkfVMmc+orMrZzHq5+b88NV2XQkq+LNA3eicansf5CbVRHEgqNfHEh2vJof2HZqmXkOkHzaiFnN2fJOs9A==","shasum":"bfd21a1627c133f4876ef92978f6e5307f87c891","tarball":"https://registry.npmjs.org/@blockfrost/blockfrost-cardano-cli/-/blockfrost-cardano-cli-0.0.1-alfa.2.tgz","fileCount":68,"unpackedSize":140184,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhp1ssCRA9TVsSAnZWagAAp7YP/jsZLt7E+wPoNhpZWFmi\nse/F2z6TI+aLHFcarNoEGDaYZurHynLsvTTyNAte4slMd39jBJUgy5RMwSNE\nf43d633tEUjQ5XVybYV386hI+y6j8gevm4k7C76px063JjjwDuvSthGR6awJ\ngJHXiJZgZHNiPumUCGhg74CRqYdoey0jyzHLqQzV/HIBd3aAlD2Qw4RiigZ5\nuduf3/GgcxCBF79BtqYFCaNNRcFGHcJ5zDXVWCcIaUDHolUJb/L2sg3vRxz3\nFpPeHnhZUU57+OCo1VIn1XWBrRdLcRFC6erbP33V/w+akguJp1U86LhJgXCA\nk3Pe9KHBPTXE21u4pEgf3sNmK4CpFB64KWDPScdoQKhDG7syLj8ipnBk1dL3\n9H9sjfZCDf82MXYen3qJf3lMW4Nd6u/yi3yh3hirOn7Y3LbCK5FCGw9/pZWk\n+1nxO/MOUDDGOpkH25ZFpYuKJMaMW8LyA0ILgRCtTTZjvrXYMpdAKrpqYxbx\nVmAHx9v4fug/7WkkwKdKVrIoFsow3RwRX4Vt8hS9oJdoD/fQw0fRKwBEGQcE\n981CTW2ywaRvQS/DpfnKVVOgdU2AXgjjfXFdBYtF+dF1wTc/iOtzw7lptW0O\ngSKA0aNZ9n8jPE7JXA1rqyq5uAgSuYOSH5Q6J4hZyqPoH/R9Qy06qjuJdISs\nl9/M\r\n=lOL2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbw+aCu/dDWXRxyWSKPubKR7vDgU0xYANcv1XrCIH6dwIgNKI8UTphT4/ivYD8SPR0vybEJC47iO9PZN2zOzeISjQ="}]},"_npmUser":{"name":"slowbackspace","email":"slowbackspace@gmail.com"},"directories":{},"maintainers":[{"name":"slowbackspace","email":"slowbackspace@gmail.com"},{"name":"blockfrost.io","email":"accounts@blockfrost.io"},{"name":"vladimirvolek","email":"volek.vladimir@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blockfrost-cardano-cli_0.0.1-alfa.2_1638357804048_0.572499886209763"},"_hasShrinkwrap":false},"0.0.1-alfa.3":{"name":"@blockfrost/blockfrost-cardano-cli","description":"Drop-in(ish) replacement for cardano-cli powered by Blockfrost","version":"0.0.1-alfa.3","author":{"name":"blockfrost.io"},"bin":{"bcc":"bin/run","blockfrost-cardano-cli":"bin/run"},"bugs":{"url":"https://github.com/blockfrost/blockfrost-cardano-cli/issues"},"dependencies":{"@blockfrost/blockfrost-js":"3.0.0-beta.10","@oclif/core":"1.0.4","@oclif/plugin-help":"^5","bech32":"^2.0.0","bignumber.js":"^9.0.1","cli-ux":"^5.6.4","safe-stable-stringify":"^2.2.0","stdout-stderr":"^0.1.13","tslib":"^1"},"devDependencies":{"@types/jest":"^27.0.3","@types/node":"^14","@typescript-eslint/eslint-plugin":"^5.4.0","@typescript-eslint/parser":"^5.4.0","eslint":"^7.32.0","eslint-config-oclif":"^4.0.0","eslint-config-oclif-typescript":"^1.0.2","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-unicorn":"^38.0.1","globby":"^10","jest":"^27.3.1","nock":"^13.2.1","oclif":"2.0.0-main.10","prettier":"^2.4.1","ts-jest":"^27.0.7","ts-node":"^10.4.0","typescript":"4.4.4"},"engines":{"node":">=14.0.0"},"homepage":"https://github.com/blockfrost/blockfrost-cardano-cli","keywords":["blockfrost","cardano","cardano-cli","blockchain"],"license":"Apache-2.0","main":"lib/index.js","oclif":{"commands":"./lib/commands","bin":"bcc","plugins":["@oclif/plugin-help"],"topicSeparator":" ","topics":{"query":{"description":"Node query commands"},"transaction":{"description":"Transaction commands"}},"macos":{"identifier":"io.blockfrost.cardanocli"}},"repository":{"type":"git","url":"git+https://github.com/blockfrost/blockfrost-cardano-cli.git"},"scripts":{"build":"rm -rf lib && tsc -b","postpack":"rm -f oclif.manifest.json","posttest":"eslint . --ext .ts --config .eslintrc","prepack":"yarn build && oclif manifest && oclif readme","test":"jest","lint":"eslint . --ext .ts","type-check":"tsc -p tsconfig.types.json","version":"oclif readme && git add README.md"},"types":"lib/index.d.ts","packageManager":"yarn@3.1.0","gitHead":"829c8f057da417b73a279ddb019700e580c7850f","_id":"@blockfrost/blockfrost-cardano-cli@0.0.1-alfa.3","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-z+FSE35BK3gKUQYtZjAsRv31jPjqgdqd8YoTm1txatyOI/Wvq1NEpz9x/iqBVhMxzoEUxZm4Tnd7lFPlwJTqkA==","shasum":"f7954569d9f2a0fcdd4bb53116bdf0278eafce26","tarball":"https://registry.npmjs.org/@blockfrost/blockfrost-cardano-cli/-/blockfrost-cardano-cli-0.0.1-alfa.3.tgz","fileCount":68,"unpackedSize":140184,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhp3BKCRA9TVsSAnZWagAAgIMP/jUw71Ow+hygVZEk1FBx\nNN8USCpBqp01v7vaXCf5iEInslxXTh43AydQXGiD0uhzpcGV2fXXZMeDCfMg\nZoQc5zSuIhe6CBYxH2tiSOIhY+WGvPX6X5Y4D5X/efoMzM9aPOxtyc5eS1kH\nLyneV7oieXZxQqgjM7YqVAH/l1MC0wgFBZM6IEYiDXsU02w4I9ogp5MLUPgv\nU5WUHpJUviUI+PjxsA53C74PI/ON9f+T9CS10qCajaBAqoAab8HzSfycznNC\nNFt7Vt+QsDKGPBG3185Fp0FJMXbNfyyiHqH7e5Frowby1UGTXB8K6r0ofYkg\n+BGsN2xx1Lg1n6b8BboGJbNRUUrLjUuat2R9vk35voNiJHJQGKnF69jFcaXH\nPnwCPDJ1J8T7BtqVI6HIWhP3jUagacHGZWMPNNh/wtIE+XyWVrIQxS2HTMwu\nLZPnD5bouQcZUWiyLe5KrshiZK0i7qP1WGX5NcCBinUvKdBhEV91/IMw7B8/\nMqRfktEJL68PeQkdOt8Hi6SkoWOMUxJXBRjsobWcv4vU3FMFCNsAGjPEOLGH\nX/UZ07CqQJegjRh8YZugFJ5x1ogWfNDDMuKIexvNhkFQcm7rjSAbe4UHzYPT\nIYp9QF3THXmevkdZ+b5cvcyXxmC/+wMKtO4IFZKR+4XvkJp8YvXsehHXkoZs\n3pR2\r\n=zo6V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFVdqul6tsTFbuhqqBtbaviArVNj8yyLksD37pr7l9kdAiBpac56qassBrYKxEWYbRs70BGzaNkk9SN3B/68MqmrVg=="}]},"_npmUser":{"name":"slowbackspace","email":"slowbackspace@gmail.com"},"directories":{},"maintainers":[{"name":"slowbackspace","email":"slowbackspace@gmail.com"},{"name":"blockfrost.io","email":"accounts@blockfrost.io"},{"name":"vladimirvolek","email":"volek.vladimir@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blockfrost-cardano-cli_0.0.1-alfa.3_1638363210485_0.34702398194087736"},"_hasShrinkwrap":false},"0.0.1-alfa.4":{"name":"@blockfrost/blockfrost-cardano-cli","description":"Drop-in(ish) replacement for cardano-cli powered by Blockfrost","version":"0.0.1-alfa.4","author":{"name":"blockfrost.io"},"bin":{"bcc":"bin/run","blockfrost-cardano-cli":"bin/run"},"bugs":{"url":"https://github.com/blockfrost/blockfrost-cardano-cli/issues"},"dependencies":{"@blockfrost/blockfrost-js":"3.0.3-beta.3","@oclif/core":"1.0.7","@oclif/plugin-help":"^5","bech32":"^2.0.0","bignumber.js":"^9.0.1","cli-ux":"^5.6.5","safe-stable-stringify":"^2.3.0","stdout-stderr":"^0.1.13"},"devDependencies":{"@types/jest":"^27.0.3","@types/node":"^14","@typescript-eslint/eslint-plugin":"^5.5.0","@typescript-eslint/parser":"^5.5.0","eslint":"^7.32.0","eslint-config-oclif":"^4.0.0","eslint-config-oclif-typescript":"^1.0.2","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-unicorn":"^39.0.0","jest":"^27.4.3","make-coverage-badge":"^1.2.0","nock":"^13.2.1","npm-run-all":"^4.1.5","oclif":"2.0.0-main.11","prettier":"^2.5.0","ts-jest":"^27.0.7","ts-node":"^10.4.0","typescript":"4.4.4"},"engines":{"node":">=14.0.0"},"homepage":"https://github.com/blockfrost/blockfrost-cardano-cli","keywords":["blockfrost","cardano","cardano-cli","blockchain"],"license":"Apache-2.0","main":"lib/index.js","oclif":{"commands":"./lib/commands","bin":"bcc","plugins":["@oclif/plugin-help"],"topicSeparator":" ","topics":{"query":{"description":"Node query commands"},"transaction":{"description":"Transaction commands"}},"macos":{"identifier":"io.blockfrost.cardanocli"}},"repository":{"type":"git","url":"git+https://github.com/blockfrost/blockfrost-cardano-cli.git"},"scripts":{"build":"rm -rf lib && tsc -b","postpack":"rm -f oclif.manifest.json","posttest":"eslint . --ext .ts --config .eslintrc","prepack":"yarn build && oclif manifest && oclif readme","test":"yarn run-s 'test:*'","test:unit":"jest","test:badges":"make-coverage-badge --output-path ./docs/badge-coverage.svg","lint":"eslint . --ext .ts","type-check":"tsc -p tsconfig.types.json","version":"oclif readme && git add README.md"},"types":"lib/index.d.ts","packageManager":"yarn@3.1.0","gitHead":"0c737b8af5885ac605c1f32ef3d106586e3f4f44","_id":"@blockfrost/blockfrost-cardano-cli@0.0.1-alfa.4","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-ileA88GP3V6O++3DFOkcd1TpBshVh+MXCKhLr89H0sKOSXTepqjYgVACTzcAOj34R8sxZD0Rq6UbDE1vXN+UNg==","shasum":"b60ae3b1c335a4dd79b7cf0427af05c9f5b0e241","tarball":"https://registry.npmjs.org/@blockfrost/blockfrost-cardano-cli/-/blockfrost-cardano-cli-0.0.1-alfa.4.tgz","fileCount":72,"unpackedSize":382412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhs7p0CRA9TVsSAnZWagAAne4P/jBTks5pWqtmseoEyRMC\napTW1g1xzyTQTsOCJtSPfvmAvnyNFzNFTbLguRYOvNyYXW8D7HwVAmUgVEiQ\nFg+Ed2xXyzOeun4BrFQqE4dkihFvuNCgoqmlyaM+XTSPF1sHigMo72jjENBL\n/k9vo7zPcuzJ5K3V2ib7dWkL6wGLYNCgy1puoH7aQS7hmlQ9WMRD+5hC0J1Q\ng/WldznkC2optVrIpmC3E/hk6l32OoXEh6LpmB9kcFV+JZs3HZkdpxuxIse2\nulOutLoXVxvQcUQPxnRCk9Yt3WS6xOjMd44a9pjVtdJ+6p8DfWOrq9+h1dfG\nXVvZU+aQzSF13yL3ZpJU+qFlrVsAg1C4eeslDM7616sBgasESfRJKAu0TpHi\nLdm3adKq315UBkOPYV1J8fe8fqqoDzlnSH8dhny4P8WGG1rD3R2soUkho978\nXqNrhx8EqFIPE4G27ur/mfhdUrX/vSrtkaCHZPmEDnRxW1g3pXftwPzD1xUu\nNUV4JPmIR1WwJ4O0n0qVbbSzD6FF6gYOmHqtvJfRNyDZ0ugTRlwfUjcu3oeu\nKagtsdG95l3b6O9J56dHZORmnjT3sp6qDnPNEtclaMkviMS24z9GriOHseWY\nhRHV4TrmniJuYVYusc3xHzbLUZuBGAnEI9bB1be4YmD9ZxMB1KMHL7eOa/S9\nAApM\r\n=L676\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHc4kXCd66hd6WroSN6kfkukYiNDFN/NoLlpi3rPB8yPAiBHmblBahvwxEcaZhsfp1t+Gn0t8JFB0GR03bpddc2xOQ=="}]},"_npmUser":{"name":"slowbackspace","email":"slowbackspace@gmail.com"},"directories":{},"maintainers":[{"name":"slowbackspace","email":"slowbackspace@gmail.com"},{"name":"blockfrost.io","email":"accounts@blockfrost.io"},{"name":"vladimirvolek","email":"volek.vladimir@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blockfrost-cardano-cli_0.0.1-alfa.4_1639168628267_0.9599947799514041"},"_hasShrinkwrap":false},"0.0.1-beta.1":{"name":"@blockfrost/blockfrost-cardano-cli","description":"Drop-in(ish) replacement for cardano-cli powered by Blockfrost","version":"0.0.1-beta.1","author":{"name":"blockfrost.io"},"bin":{"bcc":"bin/run","blockfrost-cardano-cli":"bin/run"},"bugs":{"url":"https://github.com/blockfrost/blockfrost-cardano-cli/issues"},"dependencies":{"@blockfrost/blockfrost-js":"3.0.3-beta.3","@oclif/core":"1.0.10","@oclif/plugin-help":"^5","bech32":"^2.0.0","bignumber.js":"^9.0.2","cli-ux":"^6.0.6","safe-stable-stringify":"^2.3.1"},"devDependencies":{"@types/jest":"^27.0.3","@types/node":"^14","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/parser":"^5.7.0","eslint":"^7.32.0","eslint-config-oclif":"^4.0.0","eslint-config-oclif-typescript":"^1.0.2","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-unicorn":"^39.0.0","jest":"^27.4.5","make-coverage-badge":"^1.2.0","nock":"^13.2.1","npm-run-all":"^4.1.5","oclif":"2.0.1","prettier":"^2.5.1","stdout-stderr":"^0.1.13","ts-jest":"^27.1.1","ts-node":"^10.4.0","typescript":"4.4.4"},"engines":{"node":">=14.0.0"},"homepage":"https://github.com/blockfrost/blockfrost-cardano-cli","keywords":["blockfrost","cardano","cardano-cli","blockchain"],"license":"Apache-2.0","main":"lib/index.js","oclif":{"commands":"./lib/commands","bin":"bcc","plugins":["@oclif/plugin-help"],"topicSeparator":" ","topics":{"query":{"description":"Node query commands"},"transaction":{"description":"Transaction commands"}},"macos":{"identifier":"io.blockfrost.cardanocli"}},"repository":{"type":"git","url":"git+https://github.com/blockfrost/blockfrost-cardano-cli.git"},"scripts":{"build":"rm -rf lib && tsc -b","postpack":"rm -f oclif.manifest.json","posttest":"eslint . --ext .ts --config .eslintrc","prepack":"yarn build && oclif manifest && oclif readme","test":"yarn run-s 'test:*'","test:unit":"jest","test:badges":"make-coverage-badge --output-path ./docs/badge-coverage.svg","lint":"eslint . --ext .ts","type-check":"tsc -p tsconfig.types.json","version":"oclif readme && git add README.md"},"types":"lib/index.d.ts","packageManager":"yarn@3.1.0","gitHead":"25b1dd412a3538841eb1e4f20d9cdbc8c365ecc4","_id":"@blockfrost/blockfrost-cardano-cli@0.0.1-beta.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-jBHErVQGIKJMnr5ViENj8N1sALi5VWoQl6sSy2XWuOIJMajGKfqHoEK2jLL/D3a1EjK2VLqhGU2t5Txm78gjQg==","shasum":"e18e8360112c4d2fc6ca06215469d54ec47af0e7","tarball":"https://registry.npmjs.org/@blockfrost/blockfrost-cardano-cli/-/blockfrost-cardano-cli-0.0.1-beta.1.tgz","fileCount":72,"unpackedSize":384204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhyYdZCRA9TVsSAnZWagAAohgP/0Op0jtqnWd8GzTqXTHi\nWjJRPEOLeknRiPKWLx80J0An5YvIGL+JBtTQqg1aawJ+6ZTaK1LGIHhiDHsu\nGhfXHn63ypUZtH+1VMp8I2Fthf2QymZuFzGiP66PHCLhK8uZR4pupU04k62h\nFyjRhoFUGVD92rG1yY9lL1SIvBTxs6jLHi5Z+vvbSS5PmGi1N/tPPg+olHvj\nvYRNsRVTSeH0nK6VYIMalGqgvpRuYx2Qr2sHMyJB5u5Wdi5ORbDPgnQhjmis\nRlP0EuyVTAh6+YaiMYaCJzefyQ5V8krJqHdewIngToPvHY/6wwz4kjC7h+04\nI3HOSs63PkEraMw+1GGMbL2QoOWuKWgKOwXqfzeaD2KC9ELiP1mpm/epdcvQ\nyDIBPAvJljd8dVFtl8LnhyLjv95Acsrss7snpTDypbSNqAgICYLcLsLciEO2\n7Kl4PUTV2qdSlVThq7GfqlPIJHS7fwhH9VKg2f2zWObGKxzcpUQYU0VDMket\nNXvaJ8ip1D0UififOg8tkuK7EfWr1ch+WKKnLk5Azq9wYHoKfiKTtVqEc/BL\nQx1vhzjvHak1pU2aqK1DzSrkuoEQb3crl/KxJoqqklZgU1mBY7vQyrSsSTE6\naohPWfaIBi4yd/uP9V7WpNVRHTZl47BHn/CFLfqvMscABOLilzZLXVT6o9vK\nsWro\r\n=PuiF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdLTJnO0LFsCyzQgerB+Rkg4bqoj5LgL6z6aUncAwq8gIhAJJsWFTRBpT6b0avVVcS8JdozLecymFVVXBS2w7YK4yQ"}]},"_npmUser":{"name":"slowbackspace","email":"slowbackspace@gmail.com"},"directories":{},"maintainers":[{"name":"slowbackspace","email":"slowbackspace@gmail.com"},{"name":"blockfrost.io","email":"accounts@blockfrost.io"},{"name":"vladimirvolek","email":"volek.vladimir@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blockfrost-cardano-cli_0.0.1-beta.1_1640597336967_0.820810772349001"},"_hasShrinkwrap":false},"0.0.1":{"name":"@blockfrost/blockfrost-cardano-cli","description":"Drop-in(ish) replacement for cardano-cli powered by Blockfrost","version":"0.0.1","author":{"name":"blockfrost.io"},"bin":{"bcc":"bin/run","blockfrost-cardano-cli":"bin/run"},"bugs":{"url":"https://github.com/blockfrost/blockfrost-cardano-cli/issues"},"dependencies":{"@blockfrost/blockfrost-js":"4.0.0","@oclif/core":"1.0.10","@oclif/plugin-help":"^5","bech32":"^2.0.0","bignumber.js":"^9.0.2","cli-ux":"^6.0.6","safe-stable-stringify":"^2.3.1"},"devDependencies":{"@types/jest":"^27.0.3","@types/node":"^14","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/parser":"^5.7.0","eslint":"^7.32.0","eslint-config-oclif":"^4.0.0","eslint-config-oclif-typescript":"^1.0.2","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-unicorn":"^39.0.0","jest":"^27.4.5","make-coverage-badge":"^1.2.0","nock":"^13.2.1","npm-run-all":"^4.1.5","oclif":"2.0.1","prettier":"^2.5.1","stdout-stderr":"^0.1.13","ts-jest":"^27.1.1","ts-node":"^10.4.0","typescript":"4.4.4"},"engines":{"node":">=14.0.0"},"homepage":"https://github.com/blockfrost/blockfrost-cardano-cli","keywords":["blockfrost","cardano","cardano-cli","blockchain"],"license":"Apache-2.0","main":"lib/index.js","oclif":{"commands":"./lib/commands","bin":"bcc","plugins":["@oclif/plugin-help"],"topicSeparator":" ","topics":{"query":{"description":"Node query commands"},"transaction":{"description":"Transaction commands"}},"macos":{"identifier":"io.blockfrost.cardanocli"}},"repository":{"type":"git","url":"git+https://github.com/blockfrost/blockfrost-cardano-cli.git"},"scripts":{"build":"rm -rf lib && tsc -b","postpack":"rm -f oclif.manifest.json","posttest":"eslint . --ext .ts --config .eslintrc","prepack":"yarn build && oclif manifest && oclif readme","test":"yarn run-s 'test:*'","test:unit":"jest","test:badges":"make-coverage-badge --output-path ./docs/badge-coverage.svg","lint":"eslint . --ext .ts","type-check":"tsc -p tsconfig.types.json","version":"oclif readme && git add README.md"},"types":"lib/index.d.ts","packageManager":"yarn@3.1.0","gitHead":"9dadb40c28db659b26c5844d184c0e8ee8fae789","_id":"@blockfrost/blockfrost-cardano-cli@0.0.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-A64ph9qDxTS7OKY8gol8YoOoxFvBHg9FH7DUhgTdQf4KZWZUAJMDSTpnYmM6jFlhGTS6hH2+XcW0nzeVdXImWg==","shasum":"1d88c4032dd9ab38b80299df0d660645e830f974","tarball":"https://registry.npmjs.org/@blockfrost/blockfrost-cardano-cli/-/blockfrost-cardano-cli-0.0.1.tgz","fileCount":72,"unpackedSize":384183,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1vTICRA9TVsSAnZWagAAJvEP/iyjkt3cENsBgZTOv6fo\nCkde4l5XquTDyUytuZOlhqZFUenbkzjWh1ZibWbW2YW2Aiwy9BOTnKfQq6gh\nAJP94e1L3Jk8MLSRTKsgagVBX6zFVqCM3toP9hbwi4ldXQKsXsrDY22e4FBQ\nFWWxKGRJOUvf0hkb5VfIZGft1JiOR86GoGWtqBNgI0qnkkWTbcFzuIxoCNkG\nES2PnAEKBBVt4XZ10RR5TfPl6FJ7FiZOCroMsOgU8+tmjcSPR9PpZ7EyfuAR\nsP8mYaluBwUEBbVOGEltu44cs1ioFZsufNlHDCENg+vs5vi8qtKW6TMyJWCe\nkV9S7mC266bXtr/dgwGzIF5zAkUjjI+ISiUz3zMoA/BTWNSDMbvdv0yoiI7S\nAV/vuumsKHmxgm6O+ofVsGAN6y82nCHbA75X9bo0uXuc3dMyfybxwptXs812\n2jxwOlnN6vkSBNbbFyEthwkvmHxBQNpZFRZ5/mlC4JGkfOmlUFVuVoM/5gib\nGvClxzoBwUSIRSqqGgTB/vv4YLE9mAy0JORt0E5/OjuxTVWVFqm3abOm2DSB\nwf1pcYtOcHifQU0Q5Jg/1kFFO13FnrFMUDgQ0Olk0qhxqW3unDXLX707E9Ra\nsTimvMZV6gbRWMLi2KKZ9K5Pvnf2zjVD0gR2y8uiGH5gYdoGEdEid7oAe+Nj\noX5g\r\n=0OoZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkK4rigecR02J2CzEL3PsRzEfQDJ2aruMcI0DY9k1dYAIgda0lPChZbmyKS2nVlFuqzaaJgqBmNVVPex4fYB8ImLg="}]},"_npmUser":{"name":"slowbackspace","email":"slowbackspace@gmail.com"},"directories":{},"maintainers":[{"name":"slowbackspace","email":"slowbackspace@gmail.com"},{"name":"blockfrost.io","email":"accounts@blockfrost.io"},{"name":"vladimirvolek","email":"volek.vladimir@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blockfrost-cardano-cli_0.0.1_1641477320157_0.22291065411415278"},"_hasShrinkwrap":false},"0.0.2":{"name":"@blockfrost/blockfrost-cardano-cli","description":"Drop-in(ish) replacement for cardano-cli powered by Blockfrost","version":"0.0.2","author":{"name":"blockfrost.io"},"bin":{"bcc":"bin/run","blockfrost-cardano-cli":"bin/run"},"bugs":{"url":"https://github.com/blockfrost/blockfrost-cardano-cli/issues"},"dependencies":{"@blockfrost/blockfrost-js":"4.0.0","@oclif/core":"1.0.10","@oclif/plugin-help":"^5","bech32":"^2.0.0","bignumber.js":"^9.0.2","cli-ux":"^6.0.6","safe-stable-stringify":"^2.3.1"},"devDependencies":{"@types/jest":"^27.0.3","@types/node":"^14","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/parser":"^5.7.0","eslint":"^7.32.0","eslint-config-oclif":"^4.0.0","eslint-config-oclif-typescript":"^1.0.2","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-unicorn":"^39.0.0","jest":"^27.4.5","make-coverage-badge":"^1.2.0","nock":"^13.2.1","npm-run-all":"^4.1.5","oclif":"2.0.1","prettier":"^2.5.1","stdout-stderr":"^0.1.13","ts-jest":"^27.1.1","ts-node":"^10.4.0","typescript":"4.4.4"},"engines":{"node":">=14.0.0"},"homepage":"https://github.com/blockfrost/blockfrost-cardano-cli","keywords":["blockfrost","cardano","cardano-cli","blockchain"],"license":"Apache-2.0","main":"lib/index.js","oclif":{"commands":"./lib/commands","bin":"bcc","plugins":["@oclif/plugin-help"],"topicSeparator":" ","topics":{"query":{"description":"Node query commands"},"transaction":{"description":"Transaction commands"}},"macos":{"identifier":"io.blockfrost.cardanocli"}},"repository":{"type":"git","url":"git+https://github.com/blockfrost/blockfrost-cardano-cli.git"},"scripts":{"build":"rm -rf lib && tsc -b","postpack":"rm -f oclif.manifest.json","posttest":"eslint . --ext .ts --config .eslintrc","prepack":"yarn build && oclif manifest && oclif readme","test":"yarn run-s 'test:*'","test:unit":"jest","test:badges":"make-coverage-badge --output-path ./docs/badge-coverage.svg","lint":"eslint . --ext .ts","type-check":"tsc -p tsconfig.types.json","version":"oclif readme && git add README.md"},"types":"lib/index.d.ts","packageManager":"yarn@3.1.0","gitHead":"4e93f9a4677be581ab1ea9b69163ab3e441f531f","_id":"@blockfrost/blockfrost-cardano-cli@0.0.2","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-X1wahvC0rcaRClr0rV3e3OS6odoQzJXvEBHtYSDbLAM0P1YIVSZlxu/ix5mIx+SfjcwQ1cZ3iS6+QjvGkHTTdA==","shasum":"8f8219f90ed00f49d2d313d3313c3b2a17db0f09","tarball":"https://registry.npmjs.org/@blockfrost/blockfrost-cardano-cli/-/blockfrost-cardano-cli-0.0.2.tgz","fileCount":72,"unpackedSize":385742,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3buICRA9TVsSAnZWagAAXdAQAItSHLohPY66Yiv1pRCI\nCgAeUSN3tmRizVDsvoG73qPAUp9STjraXGEG9/626F2sJtG27EPn+9cig7TA\n/mNL/dmbCItrHzhofqWjjzJY12joV3BKq8kg/HD7kVwGWZI3GOP+vlZTv8PO\newfFGb8EWEnsHF7rM3TLHv13WejznUQ3LQhVZDWOh1e7aXCM50Ng1Wk0QtJe\nIZCwYtKV5yG5pILTC5IyN4qQORXSHpYxAgN4gbGZYxo7WW6jNTD3FawnM+TL\nkrL1p58CtXfTOCN6qrU4+jiY3H89NVzBe5plu+sfeHt2IM5xKpeo13rMGcwp\nMSlh+cMYsPVz5OAE/CFLbfPX/cBtp8IL650c3eyF1CjFWLGFq5HsmWUOUqW4\noSDrZJu49+0B7FMGELeLtSBIVClQpU1NfTqNRUKGl8UCY+jwewI6oNEd+Ssm\nUBkQhw5A6JCNo1JsxagsFVOb/G4NLNsV9TGWrUrNdT2RzcQDB6D3qfcWWeF1\nwH/uPak5rR/on0eHI/2E3CFHouvnVJ0rBxnpMCSN2DmMSAVUBFoa0jemQ6J6\npfn9HRARavlHwLIi7hyLllMOYGYraFChNz5ePHhOkCIeVKnRAiHrxQXuh6A3\nNy+zp/jaLxdDVZ9fZwD8o+wMZRHViQJgzSbPCMvqJZdj3r65Ommo6MNSxkzT\n6ZCv\r\n=uMem\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdoN3bpxxLGK9Y++ktiFVzM5w2I9eqmAUkJTCRmqIJNgIhAN+BVjo595FAwG64azaNWKFZu5oyVr+7EDtObnt0qrLC"}]},"_npmUser":{"name":"slowbackspace","email":"slowbackspace@gmail.com"},"directories":{},"maintainers":[{"name":"slowbackspace","email":"slowbackspace@gmail.com"},{"name":"blockfrost.io","email":"accounts@blockfrost.io"},{"name":"vladimirvolek","email":"volek.vladimir@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blockfrost-cardano-cli_0.0.2_1641921416476_0.6030121258417698"},"_hasShrinkwrap":false},"1.0.0-beta.1":{"name":"@blockfrost/blockfrost-cardano-cli","description":"Drop-in(ish) replacement for cardano-cli powered by Blockfrost","version":"1.0.0-beta.1","author":{"name":"blockfrost.io"},"bin":{"bcc":"bin/run","blockfrost-cardano-cli":"bin/run"},"bugs":{"url":"https://github.com/blockfrost/blockfrost-cardano-cli/issues"},"dependencies":{"@blockfrost/blockfrost-js":"^5.0.0-beta.1","@oclif/core":"^1.14.2","@oclif/plugin-help":"^5.1.12","bech32":"^2.0.0","bignumber.js":"^9.1.0","cli-ux":"^6.0.9","safe-stable-stringify":"^2.3.1"},"devDependencies":{"@types/jest":"^28.1.7","@types/node":"^16","@typescript-eslint/eslint-plugin":"^5.33.1","@typescript-eslint/parser":"^5.33.1","eslint":"^8.22.0","eslint-config-oclif":"^4.0.0","eslint-config-oclif-typescript":"^1.0.2","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-unicorn":"^43.0.2","jest":"^28.1.3","make-coverage-badge":"^1.2.0","nock":"^13.2.9","npm-run-all":"^4.1.5","oclif":"^3.1.2","prettier":"^2.7.1","stdout-stderr":"^0.1.13","ts-jest":"^28.0.8","ts-node":"^10.9.1","typescript":"4.7.4"},"engines":{"node":">=14.0.0"},"homepage":"https://github.com/blockfrost/blockfrost-cardano-cli","keywords":["blockfrost","cardano","cardano-cli","blockchain"],"license":"Apache-2.0","main":"lib/index.js","oclif":{"commands":"./lib/commands","bin":"bcc","plugins":["@oclif/plugin-help"],"topicSeparator":" ","topics":{"query":{"description":"Node query commands"},"transaction":{"description":"Transaction commands"}},"macos":{"identifier":"io.blockfrost.cardanocli"}},"repository":{"type":"git","url":"git+https://github.com/blockfrost/blockfrost-cardano-cli.git"},"scripts":{"build":"rm -rf lib && tsc -b","postpack":"rm -f oclif.manifest.json","posttest":"eslint . --ext .ts --config .eslintrc","prepack":"yarn build && oclif manifest && oclif readme","test":"yarn run-s 'test:*'","test:unit":"jest","test:badges":"make-coverage-badge --output-path ./docs/badge-coverage.svg","lint":"eslint . --ext .ts","type-check":"tsc -p tsconfig.types.json","version":"oclif readme && git add README.md"},"types":"lib/index.d.ts","packageManager":"yarn@3.2.2","readme":"![master build ci](https://github.com/blockfrost/blockfrost-cardano-cli/actions/workflows/build.yml/badge.svg?branch=master) [![npm version](https://badge.fury.io/js/%40blockfrost%2Fblockfrost-cardano-cli.svg)](https://badge.fury.io/js/%40blockfrost%2Fblockfrost-cardano-cli) ![downloads](https://img.shields.io/npm/dy/@blockfrost/blockfrost-cardano-cli) <img src=\"https://github.com/blockfrost/blockfrost-cardano-cli/blob/master/docs/badge-coverage.svg\" /> <a href=\"https://fivebinaries.com/\"><img src=\"https://img.shields.io/badge/made%20by-Five%20Binaries-darkviolet.svg?style=flat-square\" /></a>\n\n<img src=\"https://blockfrost.io/images/logo.svg\" width=\"250\" align=\"right\" height=\"90\" style=\"margin-bottom: -50px\">\n\n# Blockfrost Cardano CLI\n\n<br>\n<p align=\"center\">Drop-in(ish) replacement for cardano-cli.<br />Query the blockchain without the need to spin up your own Cardano node. All powered by <a href=\"https://blockfrost.io\">Blockfrost API</a>.</p>\n<p align=\"center\">\n  <a href=\"#installation\">Installation</a> •\n  <a href=\"#setup\">Setup</a> •\n  <a href=\"#commands\">Commands</a> •\n  <a href=\"#cardano-cli-compatibility\">Cardano CLI compatibility</a>\n</p>\n<br/>\n\n## Installation\n\n### npm\n\nIf you have Node.js installed the fastest way to install the CLI is directly with npm. For instructions for installing Node.js please see [nodejs.org](https://nodejs.org/en/download/). Although the CLI should run on Node.js v14 just fine, we recommend v16 which is active LTS.\n\n```console\nnpm install -g @blockfrost/blockfrost-cardano-cli\n```\n\nAfter the installation is completed new commands `blockfrost-cardano-cli` and its shorter alias `bcc` should be available.\n\n### Docker\n\nBuild the docker container by running following command within the repository:\n\n```console\ndocker build . -t blockfrost-cardano-cli --no-cache\n```\n\nThen run `docker run` with `--env` flag to pass environment variables into a docker container:\n\n```console\ndocker run --env BLOCKFROST_PROJECT_ID_MAINNET=<PROJECT_ID> blockfrost-cardano-cli --help\n```\n\n## Setup\n\nIn order to use Blockfrost Cardano CLI you first need generate project token(s) on [Blockfrost.io](https://blockfrost.io).\n\nThen set following environment variables:\n\n- `BLOCKFROST_PROJECT_ID_MAINNET` - Mainnet token that will be used if you don't specify `--testnet` flag\n- `BLOCKFROST_PROJECT_ID_TESTNET` - Testnet token that will be used when `--testnet` or `--testnet-magic 1097911063` flag is specified (legacy Cardano Testnet network)\n- `BLOCKFROST_PROJECT_ID_PREPROD` - Testnet token that will be used when `--testnet-magic 1` flag is specified (Cardano Preprod network)\n- `BLOCKFROST_PROJECT_ID_PREVIEW` - Testnet token that will be used when `--testnet-magic 2` flag is specified (Cardano Preview network)\n\nWe recommend setting both of these variables as it allows you to seamlessly switch between mainnet and testnet network while using the CLI.\n\n## Usage\n\n```console\n$ bcc <COMMAND> [--testnet | --testnet-magic 1 | --testnet-magic 2 | --testnet-magic 1097911063] [--out-file FILE] [--help]\n```\n\n### Commands\n\n#### `bcc query tip`\n\nGet the current tip\n\n```console\n$ bcc query tip --testnet\n\n{\n    \"epoch\": 171,\n    \"hash\": \"d91bbfb72158eed4949663abbc20ce70dcc1a5c4d8855b6db46f6cd9c061dce5\",\n    \"slot\": 43922944,\n    \"block\": 3115492,\n    \"era\": \"Alonzo\",\n    \"syncProgress\": \"100.00\"\n}\n```\n\n#### `bcc query utxo --address`\n\nGet the current UTXO set filtered by an address.\n\n```console\n$ bcc query utxo --address addr1q9cn7sh5tgxj5xazsnj7pqfn2nrltnqzh268arnp5a273av8q0pkxxvsh4v5jc4lwz5ccdxh892g73ns65xj5vvqsa3s93g77p\n\n TxHash                                                           TxIx   Amount\n ──────────────────────────────────────────────────────────────── ────── ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n 61d47e568b1502064906e977aae848c7aec9a76f97e7d11ad5d752e95c438011 0      1379280 lovelace + 1 e5a2bcc51466942a9db1da62471a1b682bde3abcebafee2c7fb1e378.415254494643544d4f4f4e32353437\n ac1d8802a4e100d90ce59fb4e4573f1c7884a65197ff39810a88eb0b07de3aa6 0      30000000 lovelace\n 69818d49963ffafe8a287ec270d05ba89493de33ddf7b5b9bcb07e97802a0f28 1      5573009 lovelace\n fba1526c49684722199b102bffd5b4a66ea1d490605532753fa24e12af925722 0      5000000 lovelace\n```\n\n#### `bcc query stake-address-info --address`\n\nGet the current delegations and reward balance filtered by stake address.\n\n```console\n$ bcc query stake-address-info --address stake_test1uqvjsz7a3xm7ylpzgdhvg29gd9686ss9kztxeaanwp9nreqq74692 --testnet\n\n[\n    {\n        \"address\": \"stake_test1uqvjsz7a3xm7ylpzgdhvg29gd9686ss9kztxeaanwp9nreqq74692\",\n        \"rewardAccountBalance\": 0,\n        \"delegation\": null\n    }\n]\n```\n\n#### `bcc transaction submit --tx-file FILE`\n\n```console\n$ bcc transaction submit --tx-file /tmp/mytx --testnet\n\nTransaction successfully submitted.\n```\n\n#### `bcc query pool-params --stake-pool-id POOLID`\n\nList parameters of specified pool\n\n```console\n$ bcc query pool-params --stake-pool-id pool1y6chk7x7fup4ms9leesdr57r4qy9cwxuee0msan72x976a6u0nc --testnet\n\n{\n    \"poolParams\": {\n        \"publicKey\": \"26b17b78de4f035dc0bfce60d1d3c3a8085c38dcce5fb8767e518bed\",\n        \"cost\": 340000000,\n        \"metadata\": {\n            \"hash\": \"514e56dacc4f556ebc1d307473d0cf15d4cf0dc27169870e46a811625f09262e\",\n            \"url\": \"https://stakenuts.com/testnet.json\"\n        },\n        \"vrf\": \"db61b20aeb616dbc39ca36194e7a54d5cef5464c6e6d0d420cfa551f7dc43d64\",\n        \"owners\": [\n            \"13cf55d175ea848b87deb3e914febd7e028e2bf6534475d52fb9c3d0\"\n        ],\n        \"pledge\": 100000000000,\n        \"rewardAccount\": {\n            \"network\": \"Testnet\",\n            \"credential\": {\n                \"key hash\": \"13cf55d175ea848b87deb3e914febd7e028e2bf6534475d52fb9c3d0\"\n            }\n        },\n        \"margin\": 0.05,\n        \"relays\": [\n            {\n                \"single host name\": {\n                    \"port\": 3001,\n                    \"dnsName\": \"relays.testnet.stakenuts.com\"\n                }\n            }\n        ]\n    },\n    \"futurePoolParams\": null,\n    \"retiring\": null\n}\n```\n\n#### `bcc query protocol-parameters`\n\n```console\n$ bcc query protocol-parameters --testnet\n\n{\n    \"txFeePerByte\": 44,\n    \"minUTxOValue\": 34482,\n    \"decentralization\": 0,\n    \"utxoCostPerWord\": 34482,\n    \"stakePoolDeposit\": 500000000,\n    \"poolRetireMaxEpoch\": 18,\n    \"extraPraosEntropy\": null,\n    \"collateralPercentage\": 150,\n    \"stakePoolTargetNum\": 500,\n    \"maxBlockBodySize\": 73728,\n    \"minPoolCost\": 340000000,\n    \"maxTxSize\": 16384,\n    \"treasuryCut\": 0.2,\n    \"maxBlockExecutionUnits\": {\n        \"memory\": 50000000,\n        \"steps\": 40000000000\n    },\n    \"maxCollateralInputs\": 3,\n    \"maxValueSize\": 5000,\n    \"maxBlockHeaderSize\": 1100,\n    \"maxTxExecutionUnits\": {\n        \"memory\": 11250000,\n        \"steps\": 10000000000\n    },\n    \"costModels\": {},\n    \"protocolVersion\": {\n        \"minor\": 0,\n        \"major\": 6\n    },\n    \"txFeeFixed\": 155381,\n    \"stakeAddressDeposit\": 2000000,\n    \"monetaryExpansion\": 0.003,\n    \"poolPledgeInfluence\": 0.3,\n    \"executionUnitPrices\": {\n        \"priceSteps\": 0.0000721,\n        \"priceMemory\": 0.0577\n    }\n}\n```\n\n#### `bcc query stake-distribution`\n\nGet aggregated stake distribution sorted by pool ID (in hex).\n\n```console\n$ bcc query stake-distribution --testnet\n\n PoolId                                                   Stake frac\n ──────────────────────────────────────────────────────── ──────────\n pool1qqyjr9pcrv97gwrueunug829fs5znw6p2wxft3fvqkgu5f4qlrg 6.246e-3\n pool1qqfnw2fwajdnam7xsqhhrje5cgd8jcltzfrx655rd23eqlxjfef 2.983e-6\n pool1qquwwu6680fr72y4779r2kpc7mxtch8rp2uhuqcc7v9p6q4f7ph 2.178e-7\n pool1qptl80vq84xm28pt3t2lhpfzqag28csjhktxz5k6a74n260clmt 9.643e-8\n pool1qzlk4mdgauljhk9eq4m6jmxtjyyeyjgjj0wk7vfmvwxrx22ljgs 6.213e-3\n pool1qrfa3jrqptfj0kg5pef7fup6ta70pdf7e7vjcgpxtrtsvxxf7ze 2.957e-10\n pool1qrazx9r2jtepdefa7h830az933vexudt9rpn0t2vky95k5k97my 1.245e-4\n ...\n```\n\n## Cardano CLI compatibility\n\nWe have ported just those calls for which you would need to run your own `cardano-node`. Other calls, which do not require the `cardano-node`, such as key generation and signing etc., have not been ported. For these calls, you still have to use `cardano-cli`.\n\nOutput of following commands should be compatible with `cardano-cli` (1.31.0) for all practical purposes. It is possible we have missed few things. If you encounter any problem while replacing cardano-cli with blockfrost-cardano-cli please open an issue.\n\n- `bcc query`\n  - `pool-params --stake-pool-id`\n  - `protocol-parameters`\n  - `tip`\n  - `stake-distribution`\n  - `stake-address-info --address`\n  - `utxo --address`\n- `bcc transaction`\n  - `submit --tx-file`\n\nAdditionally, all commands support `--out-file FILE`, `--mainnet`, `--testnet` or `--testnet-magic <1097911063 | 1 | 2>`.\n","readmeFilename":"README.md","gitHead":"f58ba19f2979522b9a29e9805cd4260c863ca651","_id":"@blockfrost/blockfrost-cardano-cli@1.0.0-beta.1","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-jYgSyO7dnpAZhmp7Odr8nt1RNJ4WaAn/xDGaCYFLTrX7MHOy6wVlmtj+KWr5gk+8/FL4qN2/IOxJRiPZy4m5/A==","shasum":"4ac70ce5549a68dcb6034e0f32ee7d7b36070aff","tarball":"https://registry.npmjs.org/@blockfrost/blockfrost-cardano-cli/-/blockfrost-cardano-cli-1.0.0-beta.1.tgz","fileCount":72,"unpackedSize":387192,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH2Rn0B1yoOgjwZrrw3l12bRQPwBpDE41zcQPPyKnQWuAiEAh24IdB5QT73DDMtydgbSyxVoeDYOrwb3FNgtZeKaeps="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCd9YACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmraZw//TPs0kJRIELocPLHF0c3BJdNGEVfA40ayMRxNHTf7SKi8pMq4\r\n3Jdh/vZvWc2ksjiRFaUwogYCfQ2bm7LfUhy1hTOjxbeaMDYVH6KOxungML4Z\r\nSGBv88b57tJF6/ZzzaowusyHNpAB9aT7BtDmzCdsER4RaTEPMfEamo0gR0YU\r\npmEoiZKWT5jZiVPv7pX+WByjFPHt9EoSK9RxcAvpbt/Xcs6YVkHujf8ZxNUG\r\nvPDi8lsHA7P0QGvLqgPl8uJWA2LUUrcKXz1A8dtUcO9nHQQ6LMbvgwcVcHeI\r\n9ZdXiZ+9dYTOZrUluI+wuyvTs0VJaSPqbm4jcC/ZJnSuFvmJCOnaI2+Y7IIN\r\nC5LXGDo0We5Znrv0ec52fTzDLFTSBqi0Y6sZ4b1eYanHmC96aUO0o2Wbo5S8\r\npYK51FRzTysT9acoWoqnjbBLlkOXuvpuha0c3IJ+VNSgqkjfybiQKJSTo74M\r\n9B3wDbTflgXrOee9ElJbjLUZANs33voUdmq8cUmM+4eEN8RkRrugfSKTzVOv\r\nVT1zALqYWU5arCYW2+4ph43aYWm8giH1FcGgWttJ6dk88Vy8dqMK1XKb7WVe\r\n5LjwfC2ayNp04A4Az3NYagCMI/ykn6PEnK0kT1/xA4Hi/5nDYV3nosD41q9Q\r\nNrPYf+gjU93AY+Bq5x5CyEbSMzgKRsu99Nk=\r\n=8MqP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"slowbackspace","email":"slowbackspace@gmail.com"},"directories":{},"maintainers":[{"name":"slowbackspace","email":"slowbackspace@gmail.com"},{"name":"blockfrost.io","email":"accounts@blockfrost.io"},{"name":"vladimirvolek","email":"volek.vladimir@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blockfrost-cardano-cli_1.0.0-beta.1_1661591383968_0.15314915802668527"},"_hasShrinkwrap":false},"1.0.0-beta.2":{"name":"@blockfrost/blockfrost-cardano-cli","description":"Drop-in(ish) replacement for cardano-cli powered by Blockfrost","version":"1.0.0-beta.2","author":{"name":"blockfrost.io"},"bin":{"bcc":"bin/run","blockfrost-cardano-cli":"bin/run"},"bugs":{"url":"https://github.com/blockfrost/blockfrost-cardano-cli/issues"},"dependencies":{"@blockfrost/blockfrost-js":"^5.0.0-beta.1","@oclif/core":"^1.14.2","@oclif/plugin-help":"^5.1.12","bech32":"^2.0.0","bignumber.js":"^9.1.0","cli-ux":"^6.0.9","safe-stable-stringify":"^2.3.1"},"devDependencies":{"@types/jest":"^28.1.7","@types/node":"^16","@typescript-eslint/eslint-plugin":"^5.33.1","@typescript-eslint/parser":"^5.33.1","eslint":"^8.22.0","eslint-config-oclif":"^4.0.0","eslint-config-oclif-typescript":"^1.0.2","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-unicorn":"^43.0.2","jest":"^28.1.3","make-coverage-badge":"^1.2.0","nock":"^13.2.9","npm-run-all":"^4.1.5","oclif":"^3.1.2","prettier":"^2.7.1","stdout-stderr":"^0.1.13","ts-jest":"^28.0.8","ts-node":"^10.9.1","typescript":"4.7.4"},"engines":{"node":">=14.0.0"},"homepage":"https://github.com/blockfrost/blockfrost-cardano-cli","keywords":["blockfrost","cardano","cardano-cli","blockchain"],"license":"Apache-2.0","main":"lib/index.js","oclif":{"commands":"./lib/commands","bin":"bcc","plugins":["@oclif/plugin-help"],"topicSeparator":" ","topics":{"query":{"description":"Node query commands"},"transaction":{"description":"Transaction commands"}},"macos":{"identifier":"io.blockfrost.cardanocli"}},"repository":{"type":"git","url":"git+https://github.com/blockfrost/blockfrost-cardano-cli.git"},"scripts":{"build":"rm -rf lib && tsc -b","dev":"./bin/dev","postpack":"rm -f oclif.manifest.json","posttest":"eslint . --ext .ts --config .eslintrc","prepack":"yarn build && oclif manifest && oclif readme","test":"yarn run-s 'test:*'","test:unit":"jest","test:badges":"make-coverage-badge --output-path ./docs/badge-coverage.svg","lint":"eslint . --ext .ts","type-check":"tsc -p tsconfig.types.json","version":"oclif readme && git add README.md"},"types":"lib/index.d.ts","packageManager":"yarn@3.2.2","readme":"![master build ci](https://github.com/blockfrost/blockfrost-cardano-cli/actions/workflows/build.yml/badge.svg?branch=master) [![npm version](https://badge.fury.io/js/%40blockfrost%2Fblockfrost-cardano-cli.svg)](https://badge.fury.io/js/%40blockfrost%2Fblockfrost-cardano-cli) ![downloads](https://img.shields.io/npm/dy/@blockfrost/blockfrost-cardano-cli) <img src=\"https://github.com/blockfrost/blockfrost-cardano-cli/blob/master/docs/badge-coverage.svg\" /> <a href=\"https://fivebinaries.com/\"><img src=\"https://img.shields.io/badge/made%20by-Five%20Binaries-darkviolet.svg?style=flat-square\" /></a>\n\n<img src=\"https://blockfrost.io/images/logo.svg\" width=\"250\" align=\"right\" height=\"90\" style=\"margin-bottom: -50px\">\n\n# Blockfrost Cardano CLI\n\n<br>\n<p align=\"center\">Drop-in(ish) replacement for cardano-cli.<br />Query the blockchain without the need to spin up your own Cardano node. All powered by <a href=\"https://blockfrost.io\">Blockfrost API</a>.</p>\n<p align=\"center\">\n  <a href=\"#installation\">Installation</a> •\n  <a href=\"#setup\">Setup</a> •\n  <a href=\"#commands\">Commands</a> •\n  <a href=\"#cardano-cli-compatibility\">Cardano CLI compatibility</a>\n</p>\n<br/>\n\n## Installation\n\n### npm\n\nIf you have Node.js installed the fastest way to install the CLI is directly with npm. For instructions for installing Node.js please see [nodejs.org](https://nodejs.org/en/download/). Although the CLI should run on Node.js v14 just fine, we recommend v16 which is active LTS.\n\n```console\nnpm install -g @blockfrost/blockfrost-cardano-cli\n```\n\nAfter the installation is completed new commands `blockfrost-cardano-cli` and its shorter alias `bcc` should be available.\n\n### Docker\n\nBuild the docker container by running following command within the repository:\n\n```console\ndocker build . -t blockfrost-cardano-cli --no-cache\n```\n\nThen run `docker run` with `--env` flag to pass environment variables into a docker container:\n\n```console\ndocker run --env BLOCKFROST_PROJECT_ID_MAINNET=<PROJECT_ID> blockfrost-cardano-cli --help\n```\n\n## Setup\n\nIn order to use Blockfrost Cardano CLI you first need generate project token(s) on [Blockfrost.io](https://blockfrost.io).\n\nThen set following environment variables:\n\n- `BLOCKFROST_PROJECT_ID_MAINNET` - Mainnet token that will be used if you don't specify `--testnet` flag\n- `BLOCKFROST_PROJECT_ID_TESTNET` - Testnet token that will be used when `--testnet` or `--testnet-magic 1097911063` flag is specified (legacy Cardano Testnet network)\n- `BLOCKFROST_PROJECT_ID_PREPROD` - Testnet token that will be used when `--testnet-magic 1` flag is specified (Cardano Preprod network)\n- `BLOCKFROST_PROJECT_ID_PREVIEW` - Testnet token that will be used when `--testnet-magic 2` flag is specified (Cardano Preview network)\n\nWe recommend setting both of these variables as it allows you to seamlessly switch between mainnet and testnet network while using the CLI.\n\n## Usage\n\n```console\n$ bcc <COMMAND> [--testnet | --testnet-magic 1 | --testnet-magic 2 | --testnet-magic 1097911063] [--out-file FILE] [--help]\n```\n\n### Commands\n\n#### `bcc query tip`\n\nGet the current tip\n\n```console\n$ bcc query tip --testnet\n\n{\n    \"epoch\": 171,\n    \"hash\": \"d91bbfb72158eed4949663abbc20ce70dcc1a5c4d8855b6db46f6cd9c061dce5\",\n    \"slot\": 43922944,\n    \"block\": 3115492,\n    \"era\": \"Alonzo\",\n    \"syncProgress\": \"100.00\"\n}\n```\n\n#### `bcc query utxo --address`\n\nGet the current UTXO set filtered by an address.\n\n```console\n$ bcc query utxo --address addr1q9cn7sh5tgxj5xazsnj7pqfn2nrltnqzh268arnp5a273av8q0pkxxvsh4v5jc4lwz5ccdxh892g73ns65xj5vvqsa3s93g77p\n\n TxHash                                                           TxIx   Amount\n ──────────────────────────────────────────────────────────────── ────── ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n 61d47e568b1502064906e977aae848c7aec9a76f97e7d11ad5d752e95c438011 0      1379280 lovelace + 1 e5a2bcc51466942a9db1da62471a1b682bde3abcebafee2c7fb1e378.415254494643544d4f4f4e32353437\n ac1d8802a4e100d90ce59fb4e4573f1c7884a65197ff39810a88eb0b07de3aa6 0      30000000 lovelace\n 69818d49963ffafe8a287ec270d05ba89493de33ddf7b5b9bcb07e97802a0f28 1      5573009 lovelace\n fba1526c49684722199b102bffd5b4a66ea1d490605532753fa24e12af925722 0      5000000 lovelace\n```\n\n#### `bcc query stake-address-info --address`\n\nGet the current delegations and reward balance filtered by stake address.\n\n```console\n$ bcc query stake-address-info --address stake_test1uqvjsz7a3xm7ylpzgdhvg29gd9686ss9kztxeaanwp9nreqq74692 --testnet\n\n[\n    {\n        \"address\": \"stake_test1uqvjsz7a3xm7ylpzgdhvg29gd9686ss9kztxeaanwp9nreqq74692\",\n        \"rewardAccountBalance\": 0,\n        \"delegation\": null\n    }\n]\n```\n\n#### `bcc transaction submit --tx-file FILE`\n\n```console\n$ bcc transaction submit --tx-file /tmp/mytx --testnet\n\nTransaction successfully submitted.\n```\n\n#### `bcc query pool-params --stake-pool-id POOLID`\n\nList parameters of specified pool\n\n```console\n$ bcc query pool-params --stake-pool-id pool1y6chk7x7fup4ms9leesdr57r4qy9cwxuee0msan72x976a6u0nc --testnet\n\n{\n    \"poolParams\": {\n        \"publicKey\": \"26b17b78de4f035dc0bfce60d1d3c3a8085c38dcce5fb8767e518bed\",\n        \"cost\": 340000000,\n        \"metadata\": {\n            \"hash\": \"514e56dacc4f556ebc1d307473d0cf15d4cf0dc27169870e46a811625f09262e\",\n            \"url\": \"https://stakenuts.com/testnet.json\"\n        },\n        \"vrf\": \"db61b20aeb616dbc39ca36194e7a54d5cef5464c6e6d0d420cfa551f7dc43d64\",\n        \"owners\": [\n            \"13cf55d175ea848b87deb3e914febd7e028e2bf6534475d52fb9c3d0\"\n        ],\n        \"pledge\": 100000000000,\n        \"rewardAccount\": {\n            \"network\": \"Testnet\",\n            \"credential\": {\n                \"key hash\": \"13cf55d175ea848b87deb3e914febd7e028e2bf6534475d52fb9c3d0\"\n            }\n        },\n        \"margin\": 0.05,\n        \"relays\": [\n            {\n                \"single host name\": {\n                    \"port\": 3001,\n                    \"dnsName\": \"relays.testnet.stakenuts.com\"\n                }\n            }\n        ]\n    },\n    \"futurePoolParams\": null,\n    \"retiring\": null\n}\n```\n\n#### `bcc query protocol-parameters`\n\n```console\n$ bcc query protocol-parameters --testnet\n\n{\n    \"txFeePerByte\": 44,\n    \"minUTxOValue\": 34482,\n    \"decentralization\": 0,\n    \"utxoCostPerWord\": 34482,\n    \"stakePoolDeposit\": 500000000,\n    \"poolRetireMaxEpoch\": 18,\n    \"extraPraosEntropy\": null,\n    \"collateralPercentage\": 150,\n    \"stakePoolTargetNum\": 500,\n    \"maxBlockBodySize\": 73728,\n    \"minPoolCost\": 340000000,\n    \"maxTxSize\": 16384,\n    \"treasuryCut\": 0.2,\n    \"maxBlockExecutionUnits\": {\n        \"memory\": 50000000,\n        \"steps\": 40000000000\n    },\n    \"maxCollateralInputs\": 3,\n    \"maxValueSize\": 5000,\n    \"maxBlockHeaderSize\": 1100,\n    \"maxTxExecutionUnits\": {\n        \"memory\": 11250000,\n        \"steps\": 10000000000\n    },\n    \"costModels\": {},\n    \"protocolVersion\": {\n        \"minor\": 0,\n        \"major\": 6\n    },\n    \"txFeeFixed\": 155381,\n    \"stakeAddressDeposit\": 2000000,\n    \"monetaryExpansion\": 0.003,\n    \"poolPledgeInfluence\": 0.3,\n    \"executionUnitPrices\": {\n        \"priceSteps\": 0.0000721,\n        \"priceMemory\": 0.0577\n    }\n}\n```\n\n#### `bcc query stake-distribution`\n\nGet aggregated stake distribution sorted by pool ID (in hex).\n\n```console\n$ bcc query stake-distribution --testnet\n\n PoolId                                                   Stake frac\n ──────────────────────────────────────────────────────── ──────────\n pool1qqyjr9pcrv97gwrueunug829fs5znw6p2wxft3fvqkgu5f4qlrg 6.246e-3\n pool1qqfnw2fwajdnam7xsqhhrje5cgd8jcltzfrx655rd23eqlxjfef 2.983e-6\n pool1qquwwu6680fr72y4779r2kpc7mxtch8rp2uhuqcc7v9p6q4f7ph 2.178e-7\n pool1qptl80vq84xm28pt3t2lhpfzqag28csjhktxz5k6a74n260clmt 9.643e-8\n pool1qzlk4mdgauljhk9eq4m6jmxtjyyeyjgjj0wk7vfmvwxrx22ljgs 6.213e-3\n pool1qrfa3jrqptfj0kg5pef7fup6ta70pdf7e7vjcgpxtrtsvxxf7ze 2.957e-10\n pool1qrazx9r2jtepdefa7h830az933vexudt9rpn0t2vky95k5k97my 1.245e-4\n ...\n```\n\n## Cardano CLI compatibility\n\nWe have ported just those calls for which you would need to run your own `cardano-node`. Other calls, which do not require the `cardano-node`, such as key generation and signing etc., have not been ported. For these calls, you still have to use `cardano-cli`.\n\nOutput of following commands should be compatible with `cardano-cli` (1.31.0) for all practical purposes. It is possible we have missed few things. If you encounter any problem while replacing cardano-cli with blockfrost-cardano-cli please open an issue.\n\n- `bcc query`\n  - `pool-params --stake-pool-id`\n  - `protocol-parameters`\n  - `tip`\n  - `stake-distribution`\n  - `stake-address-info --address`\n  - `utxo --address`\n- `bcc transaction`\n  - `submit --tx-file`\n\nAdditionally, all commands support `--out-file FILE`, `--mainnet`, `--testnet` or `--testnet-magic <1097911063 | 1 | 2>`.\n","readmeFilename":"README.md","gitHead":"eb163a78524ab15c8e53822d4548593079b04d3e","_id":"@blockfrost/blockfrost-cardano-cli@1.0.0-beta.2","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-1SeHuSu5HmuEA0m93C2NQBggHM5Pq7eplAsnIsvFYlsXyvwODkaPqJJD1+C8E/Y+Moa/DpAnCP82bgiSjVrd7Q==","shasum":"dece2d81b3ed30e2e08981c56eb99bbc16e52777","tarball":"https://registry.npmjs.org/@blockfrost/blockfrost-cardano-cli/-/blockfrost-cardano-cli-1.0.0-beta.2.tgz","fileCount":72,"unpackedSize":387415,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDAcd9jkaL08xJWMXKyfHgzszuQpPVg4R0D0GHn3KGYdAiEA3IDkIEliJK4jDpiNdqNYxr/2ehga+7rMAXVPlkwL0XA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCeQ8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq6Jg//fQScJ3UxRUPZTfVBaAsHwds8uhfwRV9bvfytofimLEc1bsA3\r\nVBgjD6mDWQBF48/6yuM+oRP0ICJWIjyYAEt2b+z02AN5nr/9Es8xfoqA+cyV\r\nE3aTRzTzON9Nuz7mkFB8VZMiQmDTEt7Ys3dOSnZKfCG2OOdeORx3nm6OyIMy\r\nrcXs5x/1/AyLPlNZqeiZK9yiUJI3wQZYcxDxEdQkdbRLS0fgxS2A+Xb/1Lfc\r\nlr85lA1/pH67S6zMtjKuJH26ZG19Yg9h6o2zXyK0a85IQTpqptI453ylYpxi\r\naHhKFzymT7cAiuvVHxI3MFACDKjn2sGfkKYrQEayONR3OsTu38lLvfn5A3/V\r\n5nkAzLBnxLzBEONpQQQU5YcE6L05B5OfMkSMrmkANOzL8T+VT9qHwJLc5ZA7\r\nRbM/h28zBK2LNP28fDA4kvQ7VOgUJm1cFGvPQaP8N0p+n8+3tyKV7+724xp6\r\nQVFYEYsYGQeKkpBdwnOXwU54e7NiJZMCyUpVWc6dvrG1H9ePAWMuDCuzoYeQ\r\nMFXZEnboW7JQldQ96/Q96v45QjJRVH0WK/uEBZ0oYK40gGaJ/c/NYTfYg+uk\r\n1GfiaO+8L7enuLDr2s5fDNK+QJoeHVGIwDIJ8MujDq24cDMnWCJABWcLBPP0\r\nv62ZQBx7ZG6AmwT0Wx2WSRU+dbDc8vHsATc=\r\n=sN8k\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"slowbackspace","email":"slowbackspace@gmail.com"},"directories":{},"maintainers":[{"name":"slowbackspace","email":"slowbackspace@gmail.com"},{"name":"blockfrost.io","email":"accounts@blockfrost.io"},{"name":"vladimirvolek","email":"volek.vladimir@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blockfrost-cardano-cli_1.0.0-beta.2_1661592636087_0.8134074545765289"},"_hasShrinkwrap":false},"1.0.0-beta.3":{"name":"@blockfrost/blockfrost-cardano-cli","description":"Drop-in(ish) replacement for cardano-cli powered by Blockfrost","version":"1.0.0-beta.3","author":{"name":"blockfrost.io"},"bin":{"bcc":"bin/run","blockfrost-cardano-cli":"bin/run"},"bugs":{"url":"https://github.com/blockfrost/blockfrost-cardano-cli/issues"},"dependencies":{"@blockfrost/blockfrost-js":"^5.0.0-beta.1","@oclif/core":"^1.14.2","@oclif/plugin-help":"^5.1.12","bech32":"^2.0.0","bignumber.js":"^9.1.0","cli-ux":"^6.0.9","safe-stable-stringify":"^2.3.1"},"devDependencies":{"@types/jest":"^28.1.7","@types/node":"^16","@typescript-eslint/eslint-plugin":"^5.33.1","@typescript-eslint/parser":"^5.33.1","eslint":"^8.22.0","eslint-config-oclif":"^4.0.0","eslint-config-oclif-typescript":"^1.0.2","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-unicorn":"^43.0.2","jest":"^28.1.3","make-coverage-badge":"^1.2.0","nock":"^13.2.9","npm-run-all":"^4.1.5","oclif":"^3.1.2","prettier":"^2.7.1","stdout-stderr":"^0.1.13","ts-jest":"^28.0.8","ts-node":"^10.9.1","typescript":"4.7.4"},"engines":{"node":">=14.0.0"},"homepage":"https://github.com/blockfrost/blockfrost-cardano-cli","keywords":["blockfrost","cardano","cardano-cli","blockchain"],"license":"Apache-2.0","main":"lib/index.js","oclif":{"commands":"./lib/commands","hooks":{"command_not_found":"./lib/hooks/cardano-cli"},"bin":"bcc","plugins":["@oclif/plugin-help"],"topicSeparator":" ","topics":{"query":{"description":"Node query commands"},"transaction":{"description":"Transaction commands"}},"macos":{"identifier":"io.blockfrost.cardanocli"}},"repository":{"type":"git","url":"git+https://github.com/blockfrost/blockfrost-cardano-cli.git"},"scripts":{"build":"rm -rf lib && tsc -b","dev":"./bin/dev","postpack":"rm -f oclif.manifest.json","posttest":"eslint . --ext .ts --config .eslintrc","prepack":"yarn build && oclif manifest && oclif readme","test":"yarn run-s 'test:*'","test:unit":"jest","test:badges":"make-coverage-badge --output-path ./docs/badge-coverage.svg","lint":"eslint . --ext .ts","type-check":"tsc -p tsconfig.types.json","version":"oclif readme && git add README.md"},"types":"lib/index.d.ts","packageManager":"yarn@3.2.2","readme":"![master build ci](https://github.com/blockfrost/blockfrost-cardano-cli/actions/workflows/build.yml/badge.svg?branch=master) [![npm version](https://badge.fury.io/js/%40blockfrost%2Fblockfrost-cardano-cli.svg)](https://badge.fury.io/js/%40blockfrost%2Fblockfrost-cardano-cli) ![downloads](https://img.shields.io/npm/dy/@blockfrost/blockfrost-cardano-cli) <img src=\"https://github.com/blockfrost/blockfrost-cardano-cli/blob/master/docs/badge-coverage.svg\" /> <a href=\"https://fivebinaries.com/\"><img src=\"https://img.shields.io/badge/made%20by-Five%20Binaries-darkviolet.svg?style=flat-square\" /></a>\n\n<img src=\"https://blockfrost.io/images/logo.svg\" width=\"250\" align=\"right\" height=\"90\" style=\"margin-bottom: -50px\">\n\n# Blockfrost Cardano CLI\n\n<br>\n<p align=\"center\">Drop-in(ish) replacement for cardano-cli.<br />Query the blockchain without the need to spin up your own Cardano node. All powered by <a href=\"https://blockfrost.io\">Blockfrost API</a>.</p>\n<p align=\"center\">\n  <a href=\"#installation\">Installation</a> •\n  <a href=\"#setup\">Setup</a> •\n  <a href=\"#commands\">Commands</a> •\n  <a href=\"#cardano-cli-compatibility\">Cardano CLI compatibility</a>\n</p>\n<br/>\n\n## Installation\n\n### npm\n\nIf you have Node.js installed the fastest way to install the CLI is directly with npm. For instructions for installing Node.js please see [nodejs.org](https://nodejs.org/en/download/). Although the CLI should run on Node.js v14 just fine, we recommend v16 which is active LTS.\n\n```console\nnpm install -g @blockfrost/blockfrost-cardano-cli\n```\n\nAfter the installation is completed new commands `blockfrost-cardano-cli` and its shorter alias `bcc` should be available.\n\n### Docker\n\nBuild the docker container by running following command within the repository:\n\n```console\ndocker build . -t blockfrost-cardano-cli --no-cache\n```\n\nThen run `docker run` with `--env` flag to pass environment variables into a docker container:\n\n```console\ndocker run --env BLOCKFROST_PROJECT_ID_MAINNET=<PROJECT_ID> blockfrost-cardano-cli --help\n```\n\n## Setup\n\nIn order to use Blockfrost Cardano CLI you first need generate project token(s) on [Blockfrost.io](https://blockfrost.io).\n\nThen set following environment variables:\n\n- `BLOCKFROST_PROJECT_ID_MAINNET` - Mainnet token that will be used if you don't specify `--testnet` flag\n- `BLOCKFROST_PROJECT_ID_TESTNET` - Testnet token that will be used when `--testnet` or `--testnet-magic 1097911063` flag is specified (legacy Cardano Testnet network)\n- `BLOCKFROST_PROJECT_ID_PREPROD` - Testnet token that will be used when `--testnet-magic 1` flag is specified (Cardano Preprod network)\n- `BLOCKFROST_PROJECT_ID_PREVIEW` - Testnet token that will be used when `--testnet-magic 2` flag is specified (Cardano Preview network)\n\nWe recommend setting both of these variables as it allows you to seamlessly switch between mainnet and testnet network while using the CLI.\n\n## Usage\n\n```console\n$ bcc <COMMAND> [--testnet | --testnet-magic 1 | --testnet-magic 2 | --testnet-magic 1097911063] [--out-file FILE] [--help]\n```\n\n### Commands\n\n#### `bcc query tip`\n\nGet the current tip\n\n```console\n$ bcc query tip --testnet\n\n{\n    \"epoch\": 171,\n    \"hash\": \"d91bbfb72158eed4949663abbc20ce70dcc1a5c4d8855b6db46f6cd9c061dce5\",\n    \"slot\": 43922944,\n    \"block\": 3115492,\n    \"era\": \"Alonzo\",\n    \"syncProgress\": \"100.00\"\n}\n```\n\n#### `bcc query utxo --address`\n\nGet the current UTXO set filtered by an address.\n\n```console\n$ bcc query utxo --address addr1q9cn7sh5tgxj5xazsnj7pqfn2nrltnqzh268arnp5a273av8q0pkxxvsh4v5jc4lwz5ccdxh892g73ns65xj5vvqsa3s93g77p\n\n TxHash                                                           TxIx   Amount\n ──────────────────────────────────────────────────────────────── ────── ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n 61d47e568b1502064906e977aae848c7aec9a76f97e7d11ad5d752e95c438011 0      1379280 lovelace + 1 e5a2bcc51466942a9db1da62471a1b682bde3abcebafee2c7fb1e378.415254494643544d4f4f4e32353437\n ac1d8802a4e100d90ce59fb4e4573f1c7884a65197ff39810a88eb0b07de3aa6 0      30000000 lovelace\n 69818d49963ffafe8a287ec270d05ba89493de33ddf7b5b9bcb07e97802a0f28 1      5573009 lovelace\n fba1526c49684722199b102bffd5b4a66ea1d490605532753fa24e12af925722 0      5000000 lovelace\n```\n\n#### `bcc query stake-address-info --address`\n\nGet the current delegations and reward balance filtered by stake address.\n\n```console\n$ bcc query stake-address-info --address stake_test1uqvjsz7a3xm7ylpzgdhvg29gd9686ss9kztxeaanwp9nreqq74692 --testnet\n\n[\n    {\n        \"address\": \"stake_test1uqvjsz7a3xm7ylpzgdhvg29gd9686ss9kztxeaanwp9nreqq74692\",\n        \"rewardAccountBalance\": 0,\n        \"delegation\": null\n    }\n]\n```\n\n#### `bcc transaction submit --tx-file FILE`\n\n```console\n$ bcc transaction submit --tx-file /tmp/mytx --testnet\n\nTransaction successfully submitted.\n```\n\n#### `bcc query pool-params --stake-pool-id POOLID`\n\nList parameters of specified pool\n\n```console\n$ bcc query pool-params --stake-pool-id pool1y6chk7x7fup4ms9leesdr57r4qy9cwxuee0msan72x976a6u0nc --testnet\n\n{\n    \"poolParams\": {\n        \"publicKey\": \"26b17b78de4f035dc0bfce60d1d3c3a8085c38dcce5fb8767e518bed\",\n        \"cost\": 340000000,\n        \"metadata\": {\n            \"hash\": \"514e56dacc4f556ebc1d307473d0cf15d4cf0dc27169870e46a811625f09262e\",\n            \"url\": \"https://stakenuts.com/testnet.json\"\n        },\n        \"vrf\": \"db61b20aeb616dbc39ca36194e7a54d5cef5464c6e6d0d420cfa551f7dc43d64\",\n        \"owners\": [\n            \"13cf55d175ea848b87deb3e914febd7e028e2bf6534475d52fb9c3d0\"\n        ],\n        \"pledge\": 100000000000,\n        \"rewardAccount\": {\n            \"network\": \"Testnet\",\n            \"credential\": {\n                \"key hash\": \"13cf55d175ea848b87deb3e914febd7e028e2bf6534475d52fb9c3d0\"\n            }\n        },\n        \"margin\": 0.05,\n        \"relays\": [\n            {\n                \"single host name\": {\n                    \"port\": 3001,\n                    \"dnsName\": \"relays.testnet.stakenuts.com\"\n                }\n            }\n        ]\n    },\n    \"futurePoolParams\": null,\n    \"retiring\": null\n}\n```\n\n#### `bcc query protocol-parameters`\n\n```console\n$ bcc query protocol-parameters --testnet\n\n{\n    \"txFeePerByte\": 44,\n    \"minUTxOValue\": 34482,\n    \"decentralization\": 0,\n    \"utxoCostPerWord\": 34482,\n    \"stakePoolDeposit\": 500000000,\n    \"poolRetireMaxEpoch\": 18,\n    \"extraPraosEntropy\": null,\n    \"collateralPercentage\": 150,\n    \"stakePoolTargetNum\": 500,\n    \"maxBlockBodySize\": 73728,\n    \"minPoolCost\": 340000000,\n    \"maxTxSize\": 16384,\n    \"treasuryCut\": 0.2,\n    \"maxBlockExecutionUnits\": {\n        \"memory\": 50000000,\n        \"steps\": 40000000000\n    },\n    \"maxCollateralInputs\": 3,\n    \"maxValueSize\": 5000,\n    \"maxBlockHeaderSize\": 1100,\n    \"maxTxExecutionUnits\": {\n        \"memory\": 11250000,\n        \"steps\": 10000000000\n    },\n    \"costModels\": {},\n    \"protocolVersion\": {\n        \"minor\": 0,\n        \"major\": 6\n    },\n    \"txFeeFixed\": 155381,\n    \"stakeAddressDeposit\": 2000000,\n    \"monetaryExpansion\": 0.003,\n    \"poolPledgeInfluence\": 0.3,\n    \"executionUnitPrices\": {\n        \"priceSteps\": 0.0000721,\n        \"priceMemory\": 0.0577\n    }\n}\n```\n\n#### `bcc query stake-distribution`\n\nGet aggregated stake distribution sorted by pool ID (in hex).\n\n```console\n$ bcc query stake-distribution --testnet\n\n PoolId                                                   Stake frac\n ──────────────────────────────────────────────────────── ──────────\n pool1qqyjr9pcrv97gwrueunug829fs5znw6p2wxft3fvqkgu5f4qlrg 6.246e-3\n pool1qqfnw2fwajdnam7xsqhhrje5cgd8jcltzfrx655rd23eqlxjfef 2.983e-6\n pool1qquwwu6680fr72y4779r2kpc7mxtch8rp2uhuqcc7v9p6q4f7ph 2.178e-7\n pool1qptl80vq84xm28pt3t2lhpfzqag28csjhktxz5k6a74n260clmt 9.643e-8\n pool1qzlk4mdgauljhk9eq4m6jmxtjyyeyjgjj0wk7vfmvwxrx22ljgs 6.213e-3\n pool1qrfa3jrqptfj0kg5pef7fup6ta70pdf7e7vjcgpxtrtsvxxf7ze 2.957e-10\n pool1qrazx9r2jtepdefa7h830az933vexudt9rpn0t2vky95k5k97my 1.245e-4\n ...\n```\n\n## Cardano CLI compatibility\n\nWe have ported just those calls for which you would need to run your own `cardano-node`. Other calls, which do not require the `cardano-node`, such as key generation and signing etc., have not been ported. For these calls, you still have to use `cardano-cli`.\n\nOutput of following commands should be compatible with `cardano-cli` (1.31.0) for all practical purposes. It is possible we have missed few things. If you encounter any problem while replacing cardano-cli with blockfrost-cardano-cli please open an issue.\n\n- `bcc query`\n  - `pool-params --stake-pool-id`\n  - `protocol-parameters`\n  - `tip`\n  - `stake-distribution`\n  - `stake-address-info --address`\n  - `utxo --address`\n- `bcc transaction`\n  - `submit --tx-file`\n\nAdditionally, all commands support `--out-file FILE`, `--mainnet`, `--testnet` or `--testnet-magic <1097911063 | 1 | 2>`.\n\n## Development\n\n`bcc` command won't work correctly while running from within repository. During development use the following\n\n```console\n$ ./bin/dev\n```\n\nor\n\n```console\n$ yarn dev\n```\n","readmeFilename":"README.md","gitHead":"6c0eaa169de3c06163ed64556bda15753976a5b8","_id":"@blockfrost/blockfrost-cardano-cli@1.0.0-beta.3","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-Mzbtwb0IwpqHdJDXIkVHZ7Xlgrqf8r4Is1kVIjAFtiYkpPoILYqxi9Wrs2vZ5PvX33PxcgT3kZBCVrc7y5j3cQ==","shasum":"edb9920bdae097356b2c3d5f787086544d8877d9","tarball":"https://registry.npmjs.org/@blockfrost/blockfrost-cardano-cli/-/blockfrost-cardano-cli-1.0.0-beta.3.tgz","fileCount":74,"unpackedSize":389651,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9joabNNWBVJr7mgo+2Cdl5GROk9b2ZgSos+Mj2dwkbgIgUuMtFTXV7LsAtd/OiP7fa7qfVnH5b1v2BI0pbwypIs0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjC3tYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpVZxAAmN7imi0cOlYMUWiKYSPuRd4SiIolEWScEso+XfRdP0Ysm5Nh\r\nkzieXwpzKGgEpo8+fZx+RHMs1bxaFs1d9yePaFKoERoBwVcmIegf9vTC+wmg\r\nZWnZAqP6Annudna6PyIX12hiGZv2Jn+R9VV7OJCvhdiJmOlFPb+m5aOBFQHi\r\neBF6CcAUjad5RMOTsHCOq3d0nJt5aJXqzkNlgBVRjK6SN5NkL2yrTbFpfyG4\r\nPJL/Qs+gId34U5aocPMgwSTFuagZ3Vj7JpCbWeDt3sI79Ngm4SlMpxj4LC1b\r\n9hu+xwxElTzhEjgYsab5zL+AqHWo/DwEwf9iaWKCM9cIFX+fA9bkqSbAJxyS\r\niD6AK9tmISFH17p6lNdbDd7n18xm+kvgJg+Ecp2+zn0qFhAMbei2qtNeMCVE\r\nPREqMCuzcZBJPQCUKTwne1Th6kq3Iuox9w/gTzPKIP9sjbWZdxK76aeOaXqI\r\nXo2Ocj7QjSEwRWWUWogX4KRNP6QirEaUBTXysuC36Tc2ENHeJVpYB/GLZh2g\r\nwf/tHp/quMXWHRORdrMO/YqC8L/nElfM6kPNT792YW1z40hm3NInkpkLxqFa\r\n3rOBYdgci3y3wWWM6Z2Tegv1z2HZ2M4LOn/+ScAxYeXsMCWAFhV9EeGL0Ky5\r\nlHsE2krc+5wADDuj+7cqflexWWRE8uSAfo4=\r\n=j11l\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"slowbackspace","email":"slowbackspace@gmail.com"},"directories":{},"maintainers":[{"name":"slowbackspace","email":"slowbackspace@gmail.com"},{"name":"blockfrost.io","email":"accounts@blockfrost.io"},{"name":"vladimirvolek","email":"volek.vladimir@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blockfrost-cardano-cli_1.0.0-beta.3_1661696856523_0.6259955984711465"},"_hasShrinkwrap":false},"1.0.0-beta.4":{"name":"@blockfrost/blockfrost-cardano-cli","description":"Drop-in(ish) replacement for cardano-cli powered by Blockfrost","version":"1.0.0-beta.4","author":{"name":"blockfrost.io"},"bin":{"bcc":"bin/run","blockfrost-cardano-cli":"bin/run"},"bugs":{"url":"https://github.com/blockfrost/blockfrost-cardano-cli/issues"},"dependencies":{"@blockfrost/blockfrost-js":"^5.0.0-beta.1","@oclif/core":"^1.14.2","@oclif/plugin-help":"^5.1.12","bech32":"^2.0.0","bignumber.js":"^9.1.0","cli-ux":"^6.0.9","safe-stable-stringify":"^2.3.1"},"devDependencies":{"@types/jest":"^28.1.7","@types/node":"^16","@typescript-eslint/eslint-plugin":"^5.33.1","@typescript-eslint/parser":"^5.33.1","eslint":"^8.22.0","eslint-config-oclif":"^4.0.0","eslint-config-oclif-typescript":"^1.0.2","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-unicorn":"^43.0.2","jest":"^28.1.3","make-coverage-badge":"^1.2.0","nock":"^13.2.9","npm-run-all":"^4.1.5","oclif":"^3.1.2","prettier":"^2.7.1","stdout-stderr":"^0.1.13","ts-jest":"^28.0.8","ts-node":"^10.9.1","typescript":"4.7.4"},"engines":{"node":">=14.0.0"},"homepage":"https://github.com/blockfrost/blockfrost-cardano-cli","keywords":["blockfrost","cardano","cardano-cli","blockchain"],"license":"Apache-2.0","main":"lib/index.js","oclif":{"commands":"./lib/commands","hooks":{"command_not_found":"./lib/hooks/cardano-cli"},"bin":"bcc","plugins":["@oclif/plugin-help"],"topicSeparator":" ","topics":{"query":{"description":"Node query commands"},"transaction":{"description":"Transaction commands"}},"macos":{"identifier":"io.blockfrost.cardanocli"}},"repository":{"type":"git","url":"git+https://github.com/blockfrost/blockfrost-cardano-cli.git"},"scripts":{"build":"rm -rf lib && tsc -b","dev":"./bin/dev","postpack":"rm -f oclif.manifest.json","posttest":"eslint . --ext .ts --config .eslintrc","prepack":"yarn build && oclif manifest && oclif readme","test":"yarn run-s 'test:*'","test:unit":"jest","test:badges":"make-coverage-badge --output-path ./docs/badge-coverage.svg","lint":"eslint . --ext .ts","type-check":"tsc -p tsconfig.types.json","version":"oclif readme && git add README.md"},"types":"lib/index.d.ts","packageManager":"yarn@3.2.2","readme":"![master build ci](https://github.com/blockfrost/blockfrost-cardano-cli/actions/workflows/build.yml/badge.svg?branch=master) [![npm version](https://badge.fury.io/js/%40blockfrost%2Fblockfrost-cardano-cli.svg)](https://badge.fury.io/js/%40blockfrost%2Fblockfrost-cardano-cli) ![downloads](https://img.shields.io/npm/dy/@blockfrost/blockfrost-cardano-cli) <img src=\"https://github.com/blockfrost/blockfrost-cardano-cli/blob/master/docs/badge-coverage.svg\" /> <a href=\"https://fivebinaries.com/\"><img src=\"https://img.shields.io/badge/made%20by-Five%20Binaries-darkviolet.svg?style=flat-square\" /></a>\n\n<img src=\"https://blockfrost.io/images/logo.svg\" width=\"250\" align=\"right\" height=\"90\" style=\"margin-bottom: -50px\">\n\n# Blockfrost Cardano CLI\n\n<br>\n<p align=\"center\">Drop-in(ish) replacement for cardano-cli.<br />Query the blockchain without the need to spin up your own Cardano node. All powered by <a href=\"https://blockfrost.io\">Blockfrost API</a>.</p>\n<p align=\"center\">\n  <a href=\"#installation\">Installation</a> •\n  <a href=\"#setup\">Setup</a> •\n  <a href=\"#commands\">Commands</a> •\n  <a href=\"#cardano-cli-compatibility\">Cardano CLI compatibility</a>\n</p>\n<br/>\n\n## Installation\n\n### npm\n\nIf you have Node.js installed the fastest way to install the CLI is directly with npm. For instructions for installing Node.js please see [nodejs.org](https://nodejs.org/en/download/). Although the CLI should run on Node.js v14 just fine, we recommend v16 which is active LTS.\n\n```console\nnpm install -g @blockfrost/blockfrost-cardano-cli\n```\n\nAfter the installation is completed new commands `blockfrost-cardano-cli` and its shorter alias `bcc` should be available.\n\n### Docker\n\nBuild the docker container by running following command within the repository:\n\n```console\ndocker build . -t blockfrost-cardano-cli --no-cache\n```\n\nThen run `docker run` with `--env` flag to pass environment variables into a docker container:\n\n```console\ndocker run --env BLOCKFROST_PROJECT_ID_MAINNET=<PROJECT_ID> blockfrost-cardano-cli --help\n```\n\n## Setup\n\nIn order to use Blockfrost Cardano CLI you first need generate project token(s) on [Blockfrost.io](https://blockfrost.io).\n\nThen set following environment variables:\n\n- `BLOCKFROST_PROJECT_ID_MAINNET` - Mainnet token that will be used if you don't specify `--testnet` flag\n- `BLOCKFROST_PROJECT_ID_TESTNET` - Testnet token that will be used when `--testnet` or `--testnet-magic 1097911063` flag is specified (legacy Cardano Testnet network)\n- `BLOCKFROST_PROJECT_ID_PREPROD` - Testnet token that will be used when `--testnet-magic 1` flag is specified (Cardano Preprod network)\n- `BLOCKFROST_PROJECT_ID_PREVIEW` - Testnet token that will be used when `--testnet-magic 2` flag is specified (Cardano Preview network)\n\nWe recommend setting both of these variables as it allows you to seamlessly switch between mainnet and testnet network while using the CLI.\n\n## Usage\n\n```console\n$ bcc <COMMAND> [--testnet | --testnet-magic 1 | --testnet-magic 2 | --testnet-magic 1097911063] [--out-file FILE] [--help]\n```\n\n### Commands\n\n#### `bcc query tip`\n\nGet the current tip\n\n```console\n$ bcc query tip --testnet\n\n{\n    \"epoch\": 171,\n    \"hash\": \"d91bbfb72158eed4949663abbc20ce70dcc1a5c4d8855b6db46f6cd9c061dce5\",\n    \"slot\": 43922944,\n    \"block\": 3115492,\n    \"era\": \"Alonzo\",\n    \"syncProgress\": \"100.00\"\n}\n```\n\n#### `bcc query utxo --address`\n\nGet the current UTXO set filtered by an address.\n\n```console\n$ bcc query utxo --address addr1q9cn7sh5tgxj5xazsnj7pqfn2nrltnqzh268arnp5a273av8q0pkxxvsh4v5jc4lwz5ccdxh892g73ns65xj5vvqsa3s93g77p\n\n TxHash                                                           TxIx   Amount\n ──────────────────────────────────────────────────────────────── ────── ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n 61d47e568b1502064906e977aae848c7aec9a76f97e7d11ad5d752e95c438011 0      1379280 lovelace + 1 e5a2bcc51466942a9db1da62471a1b682bde3abcebafee2c7fb1e378.415254494643544d4f4f4e32353437\n ac1d8802a4e100d90ce59fb4e4573f1c7884a65197ff39810a88eb0b07de3aa6 0      30000000 lovelace\n 69818d49963ffafe8a287ec270d05ba89493de33ddf7b5b9bcb07e97802a0f28 1      5573009 lovelace\n fba1526c49684722199b102bffd5b4a66ea1d490605532753fa24e12af925722 0      5000000 lovelace\n```\n\n#### `bcc query stake-address-info --address`\n\nGet the current delegations and reward balance filtered by stake address.\n\n```console\n$ bcc query stake-address-info --address stake_test1uqvjsz7a3xm7ylpzgdhvg29gd9686ss9kztxeaanwp9nreqq74692 --testnet\n\n[\n    {\n        \"address\": \"stake_test1uqvjsz7a3xm7ylpzgdhvg29gd9686ss9kztxeaanwp9nreqq74692\",\n        \"rewardAccountBalance\": 0,\n        \"delegation\": null\n    }\n]\n```\n\n#### `bcc transaction submit --tx-file FILE`\n\n```console\n$ bcc transaction submit --tx-file /tmp/mytx --testnet\n\nTransaction successfully submitted.\n```\n\n#### `bcc query pool-params --stake-pool-id POOLID`\n\nList parameters of specified pool\n\n```console\n$ bcc query pool-params --stake-pool-id pool1y6chk7x7fup4ms9leesdr57r4qy9cwxuee0msan72x976a6u0nc --testnet\n\n{\n    \"poolParams\": {\n        \"publicKey\": \"26b17b78de4f035dc0bfce60d1d3c3a8085c38dcce5fb8767e518bed\",\n        \"cost\": 340000000,\n        \"metadata\": {\n            \"hash\": \"514e56dacc4f556ebc1d307473d0cf15d4cf0dc27169870e46a811625f09262e\",\n            \"url\": \"https://stakenuts.com/testnet.json\"\n        },\n        \"vrf\": \"db61b20aeb616dbc39ca36194e7a54d5cef5464c6e6d0d420cfa551f7dc43d64\",\n        \"owners\": [\n            \"13cf55d175ea848b87deb3e914febd7e028e2bf6534475d52fb9c3d0\"\n        ],\n        \"pledge\": 100000000000,\n        \"rewardAccount\": {\n            \"network\": \"Testnet\",\n            \"credential\": {\n                \"key hash\": \"13cf55d175ea848b87deb3e914febd7e028e2bf6534475d52fb9c3d0\"\n            }\n        },\n        \"margin\": 0.05,\n        \"relays\": [\n            {\n                \"single host name\": {\n                    \"port\": 3001,\n                    \"dnsName\": \"relays.testnet.stakenuts.com\"\n                }\n            }\n        ]\n    },\n    \"futurePoolParams\": null,\n    \"retiring\": null\n}\n```\n\n#### `bcc query protocol-parameters`\n\n```console\n$ bcc query protocol-parameters --testnet\n\n{\n    \"txFeePerByte\": 44,\n    \"minUTxOValue\": 34482,\n    \"decentralization\": 0,\n    \"utxoCostPerWord\": 34482,\n    \"stakePoolDeposit\": 500000000,\n    \"poolRetireMaxEpoch\": 18,\n    \"extraPraosEntropy\": null,\n    \"collateralPercentage\": 150,\n    \"stakePoolTargetNum\": 500,\n    \"maxBlockBodySize\": 73728,\n    \"minPoolCost\": 340000000,\n    \"maxTxSize\": 16384,\n    \"treasuryCut\": 0.2,\n    \"maxBlockExecutionUnits\": {\n        \"memory\": 50000000,\n        \"steps\": 40000000000\n    },\n    \"maxCollateralInputs\": 3,\n    \"maxValueSize\": 5000,\n    \"maxBlockHeaderSize\": 1100,\n    \"maxTxExecutionUnits\": {\n        \"memory\": 11250000,\n        \"steps\": 10000000000\n    },\n    \"costModels\": {},\n    \"protocolVersion\": {\n        \"minor\": 0,\n        \"major\": 6\n    },\n    \"txFeeFixed\": 155381,\n    \"stakeAddressDeposit\": 2000000,\n    \"monetaryExpansion\": 0.003,\n    \"poolPledgeInfluence\": 0.3,\n    \"executionUnitPrices\": {\n        \"priceSteps\": 0.0000721,\n        \"priceMemory\": 0.0577\n    }\n}\n```\n\n#### `bcc query stake-distribution`\n\nGet aggregated stake distribution sorted by pool ID (in hex).\n\n```console\n$ bcc query stake-distribution --testnet\n\n PoolId                                                   Stake frac\n ──────────────────────────────────────────────────────── ──────────\n pool1qqyjr9pcrv97gwrueunug829fs5znw6p2wxft3fvqkgu5f4qlrg 6.246e-3\n pool1qqfnw2fwajdnam7xsqhhrje5cgd8jcltzfrx655rd23eqlxjfef 2.983e-6\n pool1qquwwu6680fr72y4779r2kpc7mxtch8rp2uhuqcc7v9p6q4f7ph 2.178e-7\n pool1qptl80vq84xm28pt3t2lhpfzqag28csjhktxz5k6a74n260clmt 9.643e-8\n pool1qzlk4mdgauljhk9eq4m6jmxtjyyeyjgjj0wk7vfmvwxrx22ljgs 6.213e-3\n pool1qrfa3jrqptfj0kg5pef7fup6ta70pdf7e7vjcgpxtrtsvxxf7ze 2.957e-10\n pool1qrazx9r2jtepdefa7h830az933vexudt9rpn0t2vky95k5k97my 1.245e-4\n ...\n```\n\n## Cardano CLI compatibility\n\nWe have ported just those calls for which you would need to run your own `cardano-node`. Other calls, which do not require the `cardano-node`, such as key generation and signing etc., have not been ported. For these calls, you still have to use `cardano-cli`.\n\nOutput of following commands should be compatible with `cardano-cli` (1.31.0) for all practical purposes. It is possible we have missed few things. If you encounter any problem while replacing cardano-cli with blockfrost-cardano-cli please open an issue.\n\n- `bcc query`\n  - `pool-params --stake-pool-id`\n  - `protocol-parameters`\n  - `tip`\n  - `stake-distribution`\n  - `stake-address-info --address`\n  - `utxo --address`\n- `bcc transaction`\n  - `submit --tx-file`\n\nAdditionally, all commands support `--out-file FILE`, `--mainnet`, `--testnet` or `--testnet-magic <1097911063 | 1 | 2>`.\n\n## Development\n\n`bcc` command won't work correctly while running from within repository. During development use the following\n\n```console\n$ ./bin/dev\n```\n\nor\n\n```console\n$ yarn dev\n```\n","readmeFilename":"README.md","gitHead":"6c0eaa169de3c06163ed64556bda15753976a5b8","_id":"@blockfrost/blockfrost-cardano-cli@1.0.0-beta.4","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-rhV1Qow0Dr76KME0swID3ByG1KyfW0+hHiV/4PV6YjI316OOG2TYXxs9J7W7ZqT67BH4i/Z9jBpB7fEndRLJPg==","shasum":"1222862fa5546c6f33c3e730860820de03d98e68","tarball":"https://registry.npmjs.org/@blockfrost/blockfrost-cardano-cli/-/blockfrost-cardano-cli-1.0.0-beta.4.tgz","fileCount":74,"unpackedSize":389713,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGTqeRmNkaKnSBhfGMRJP9IS69Lzv/hZD0xj2bZ6Rz0eAiB5Yc26j97/jJWDXGu7Ai67BHDHJMgjrzCLOhRT9gNnag=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjC35cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5gg//URO6VSaO4AOJ0TZ/oyjpejsAhjkrZKJgYYjrFQZsaTsILac0\r\n9V4Lh2N0MJoBreUqQGNGQ5aDWELXIphCXLz+TgQ5/ER7NecgYyOPea1SsS5o\r\nO2Q0ok9GLdyMZhG7TviPsJtWkg7FKac7XFheeZlJqFHx7ElyTzcBRyEOJQWI\r\nOVHSWl8ppk0+qa94i4Ct8aSNQlp7iGnk83EFB2Zyq5oZK1SRLmGEZr0FdJ/T\r\nH+aczaY2+1jzd+G/lsm/yj6PkPdVdFZdOIYmfFjf9pUO9kIaiA0D7DKgDp1R\r\nlL0hcpjMNm5eGUiDKUFCW5EnyTuiMewOZkTvni6XQU+XOs086K0RlUfQSFob\r\nP0fgjcTzQLifz7fHRGg1/zBbyr/jQ1CplgYtAzpEg4uKbnkwytyarV1yRv80\r\ne6BoeFehUwrFNW8CvPS9T0MT9zXgUwpVLcdt06uQRqMsdcWXvDdcYCBU8b8U\r\nV5L9eddgFWvVbmAENPi9ImSZgjXGWiTqlGVdAFnfVrJEkmmTZiUY11MUw1Zu\r\nNv3Clr0yZoAwRfG+R5F52LOfOTrNLAwC9Y0ttbf74vArCakRWu7nCdWXZmWa\r\no+8rX8zlU+W0pnMvObAYZJ2W9rJFcJL6qKpPyCaRs2juh8TvoZI5zwUnWZEo\r\nUCGSCxTo/htmHMXCfEe0pwNXZJEKvNB5Ebc=\r\n=8PgF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"slowbackspace","email":"slowbackspace@gmail.com"},"directories":{},"maintainers":[{"name":"slowbackspace","email":"slowbackspace@gmail.com"},{"name":"blockfrost.io","email":"accounts@blockfrost.io"},{"name":"vladimirvolek","email":"volek.vladimir@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blockfrost-cardano-cli_1.0.0-beta.4_1661697628090_0.055578469144629716"},"_hasShrinkwrap":false},"1.0.0-beta.5":{"name":"@blockfrost/blockfrost-cardano-cli","description":"Drop-in(ish) replacement for cardano-cli powered by Blockfrost","version":"1.0.0-beta.5","author":{"name":"blockfrost.io"},"bin":{"bcc":"bin/run","blockfrost-cardano-cli":"bin/run"},"bugs":{"url":"https://github.com/blockfrost/blockfrost-cardano-cli/issues"},"dependencies":{"@blockfrost/blockfrost-js":"^5.0.0-beta.1","@oclif/core":"^1.14.2","@oclif/plugin-help":"^5.1.12","bech32":"^2.0.0","bignumber.js":"^9.1.0","cli-ux":"^6.0.9","safe-stable-stringify":"^2.3.1"},"devDependencies":{"@types/jest":"^28.1.7","@types/node":"^16","@typescript-eslint/eslint-plugin":"^5.33.1","@typescript-eslint/parser":"^5.33.1","eslint":"^8.22.0","eslint-config-oclif":"^4.0.0","eslint-config-oclif-typescript":"^1.0.2","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-unicorn":"^43.0.2","jest":"^28.1.3","make-coverage-badge":"^1.2.0","nock":"^13.2.9","npm-run-all":"^4.1.5","oclif":"^3.1.2","prettier":"^2.7.1","stdout-stderr":"^0.1.13","ts-jest":"^28.0.8","ts-node":"^10.9.1","typescript":"4.7.4"},"engines":{"node":">=14.0.0"},"homepage":"https://github.com/blockfrost/blockfrost-cardano-cli","keywords":["blockfrost","cardano","cardano-cli","blockchain"],"license":"Apache-2.0","main":"lib/index.js","oclif":{"commands":"./lib/commands","hooks":{"command_not_found":"./lib/hooks/cardano-cli"},"bin":"bcc","plugins":["@oclif/plugin-help"],"topicSeparator":" ","topics":{"query":{"description":"Node query commands"},"transaction":{"description":"Transaction commands"}},"macos":{"identifier":"io.blockfrost.cardanocli"}},"repository":{"type":"git","url":"git+https://github.com/blockfrost/blockfrost-cardano-cli.git"},"scripts":{"build":"rm -rf lib && tsc -b","dev":"./bin/dev","postpack":"rm -f oclif.manifest.json","posttest":"eslint . --ext .ts --config .eslintrc","prepack":"yarn build && oclif manifest && oclif readme","test":"yarn run-s 'test:*'","test:unit":"jest","test:badges":"make-coverage-badge --output-path ./docs/badge-coverage.svg","lint":"eslint . --ext .ts","type-check":"tsc -p tsconfig.types.json","version":"oclif readme && git add README.md"},"types":"lib/index.d.ts","packageManager":"yarn@3.2.2","readme":"![master build ci](https://github.com/blockfrost/blockfrost-cardano-cli/actions/workflows/build.yml/badge.svg?branch=master) [![npm version](https://badge.fury.io/js/%40blockfrost%2Fblockfrost-cardano-cli.svg)](https://badge.fury.io/js/%40blockfrost%2Fblockfrost-cardano-cli) ![downloads](https://img.shields.io/npm/dy/@blockfrost/blockfrost-cardano-cli) <img src=\"https://github.com/blockfrost/blockfrost-cardano-cli/blob/master/docs/badge-coverage.svg\" /> <a href=\"https://fivebinaries.com/\"><img src=\"https://img.shields.io/badge/made%20by-Five%20Binaries-darkviolet.svg?style=flat-square\" /></a>\n\n<img src=\"https://blockfrost.io/images/logo.svg\" width=\"250\" align=\"right\" height=\"90\" style=\"margin-bottom: -50px\">\n\n# Blockfrost Cardano CLI\n\n<br>\n<p align=\"center\">Drop-in(ish) replacement for cardano-cli.<br />Query the blockchain without the need to spin up your own Cardano node. All powered by <a href=\"https://blockfrost.io\">Blockfrost API</a>.</p>\n<p align=\"center\">\n  <a href=\"#installation\">Installation</a> •\n  <a href=\"#setup\">Setup</a> •\n  <a href=\"#commands\">Commands</a> •\n  <a href=\"#cardano-cli-compatibility\">Cardano CLI compatibility</a>\n</p>\n<br/>\n\n## Installation\n\n### npm\n\nIf you have Node.js installed the fastest way to install the CLI is directly with npm. For instructions for installing Node.js please see [nodejs.org](https://nodejs.org/en/download/). Although the CLI should run on Node.js v14 just fine, we recommend v16 which is active LTS.\n\n```console\nnpm install -g @blockfrost/blockfrost-cardano-cli\n```\n\nAfter the installation is completed new commands `blockfrost-cardano-cli` and its shorter alias `bcc` should be available.\n\n### Docker\n\nBuild the docker container by running following command within the repository:\n\n```console\ndocker build . -t blockfrost-cardano-cli --no-cache\n```\n\nThen run `docker run` with `--env` flag to pass environment variables into a docker container:\n\n```console\ndocker run --env BLOCKFROST_PROJECT_ID_MAINNET=<PROJECT_ID> blockfrost-cardano-cli --help\n```\n\n## Setup\n\nIn order to use Blockfrost Cardano CLI you first need generate project token(s) on [Blockfrost.io](https://blockfrost.io).\n\nThen set following environment variables:\n\n- `BLOCKFROST_PROJECT_ID_MAINNET` - Mainnet token that will be used if you don't specify `--testnet` flag\n- `BLOCKFROST_PROJECT_ID_TESTNET` - Testnet token that will be used when `--testnet` or `--testnet-magic 1097911063` flag is specified (legacy Cardano Testnet network)\n- `BLOCKFROST_PROJECT_ID_PREPROD` - Testnet token that will be used when `--testnet-magic 1` flag is specified (Cardano Preprod network)\n- `BLOCKFROST_PROJECT_ID_PREVIEW` - Testnet token that will be used when `--testnet-magic 2` flag is specified (Cardano Preview network)\n\nWe recommend setting both of these variables as it allows you to seamlessly switch between mainnet and testnet network while using the CLI.\n\n## Usage\n\n```console\n$ bcc <COMMAND> [--testnet | --testnet-magic 1 | --testnet-magic 2 | --testnet-magic 1097911063] [--out-file FILE] [--help]\n```\n\n### Commands\n\n#### `bcc query tip`\n\nGet the current tip\n\n```console\n$ bcc query tip --testnet\n\n{\n    \"epoch\": 171,\n    \"hash\": \"d91bbfb72158eed4949663abbc20ce70dcc1a5c4d8855b6db46f6cd9c061dce5\",\n    \"slot\": 43922944,\n    \"block\": 3115492,\n    \"era\": \"Alonzo\",\n    \"syncProgress\": \"100.00\"\n}\n```\n\n#### `bcc query utxo --address`\n\nGet the current UTXO set filtered by an address.\n\n```console\n$ bcc query utxo --address addr1q9cn7sh5tgxj5xazsnj7pqfn2nrltnqzh268arnp5a273av8q0pkxxvsh4v5jc4lwz5ccdxh892g73ns65xj5vvqsa3s93g77p\n\n TxHash                                                           TxIx   Amount\n ──────────────────────────────────────────────────────────────── ────── ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n 61d47e568b1502064906e977aae848c7aec9a76f97e7d11ad5d752e95c438011 0      1379280 lovelace + 1 e5a2bcc51466942a9db1da62471a1b682bde3abcebafee2c7fb1e378.415254494643544d4f4f4e32353437\n ac1d8802a4e100d90ce59fb4e4573f1c7884a65197ff39810a88eb0b07de3aa6 0      30000000 lovelace\n 69818d49963ffafe8a287ec270d05ba89493de33ddf7b5b9bcb07e97802a0f28 1      5573009 lovelace\n fba1526c49684722199b102bffd5b4a66ea1d490605532753fa24e12af925722 0      5000000 lovelace\n```\n\n#### `bcc query stake-address-info --address`\n\nGet the current delegations and reward balance filtered by stake address.\n\n```console\n$ bcc query stake-address-info --address stake_test1uqvjsz7a3xm7ylpzgdhvg29gd9686ss9kztxeaanwp9nreqq74692 --testnet\n\n[\n    {\n        \"address\": \"stake_test1uqvjsz7a3xm7ylpzgdhvg29gd9686ss9kztxeaanwp9nreqq74692\",\n        \"rewardAccountBalance\": 0,\n        \"delegation\": null\n    }\n]\n```\n\n#### `bcc transaction submit --tx-file FILE`\n\n```console\n$ bcc transaction submit --tx-file /tmp/mytx --testnet\n\nTransaction successfully submitted.\n```\n\n#### `bcc query pool-params --stake-pool-id POOLID`\n\nList parameters of specified pool\n\n```console\n$ bcc query pool-params --stake-pool-id pool1y6chk7x7fup4ms9leesdr57r4qy9cwxuee0msan72x976a6u0nc --testnet\n\n{\n    \"poolParams\": {\n        \"publicKey\": \"26b17b78de4f035dc0bfce60d1d3c3a8085c38dcce5fb8767e518bed\",\n        \"cost\": 340000000,\n        \"metadata\": {\n            \"hash\": \"514e56dacc4f556ebc1d307473d0cf15d4cf0dc27169870e46a811625f09262e\",\n            \"url\": \"https://stakenuts.com/testnet.json\"\n        },\n        \"vrf\": \"db61b20aeb616dbc39ca36194e7a54d5cef5464c6e6d0d420cfa551f7dc43d64\",\n        \"owners\": [\n            \"13cf55d175ea848b87deb3e914febd7e028e2bf6534475d52fb9c3d0\"\n        ],\n        \"pledge\": 100000000000,\n        \"rewardAccount\": {\n            \"network\": \"Testnet\",\n            \"credential\": {\n                \"key hash\": \"13cf55d175ea848b87deb3e914febd7e028e2bf6534475d52fb9c3d0\"\n            }\n        },\n        \"margin\": 0.05,\n        \"relays\": [\n            {\n                \"single host name\": {\n                    \"port\": 3001,\n                    \"dnsName\": \"relays.testnet.stakenuts.com\"\n                }\n            }\n        ]\n    },\n    \"futurePoolParams\": null,\n    \"retiring\": null\n}\n```\n\n#### `bcc query protocol-parameters`\n\n```console\n$ bcc query protocol-parameters --testnet\n\n{\n    \"txFeePerByte\": 44,\n    \"minUTxOValue\": 34482,\n    \"decentralization\": 0,\n    \"utxoCostPerWord\": 34482,\n    \"stakePoolDeposit\": 500000000,\n    \"poolRetireMaxEpoch\": 18,\n    \"extraPraosEntropy\": null,\n    \"collateralPercentage\": 150,\n    \"stakePoolTargetNum\": 500,\n    \"maxBlockBodySize\": 73728,\n    \"minPoolCost\": 340000000,\n    \"maxTxSize\": 16384,\n    \"treasuryCut\": 0.2,\n    \"maxBlockExecutionUnits\": {\n        \"memory\": 50000000,\n        \"steps\": 40000000000\n    },\n    \"maxCollateralInputs\": 3,\n    \"maxValueSize\": 5000,\n    \"maxBlockHeaderSize\": 1100,\n    \"maxTxExecutionUnits\": {\n        \"memory\": 11250000,\n        \"steps\": 10000000000\n    },\n    \"costModels\": {},\n    \"protocolVersion\": {\n        \"minor\": 0,\n        \"major\": 6\n    },\n    \"txFeeFixed\": 155381,\n    \"stakeAddressDeposit\": 2000000,\n    \"monetaryExpansion\": 0.003,\n    \"poolPledgeInfluence\": 0.3,\n    \"executionUnitPrices\": {\n        \"priceSteps\": 0.0000721,\n        \"priceMemory\": 0.0577\n    }\n}\n```\n\n#### `bcc query stake-distribution`\n\nGet aggregated stake distribution sorted by pool ID (in hex).\n\n```console\n$ bcc query stake-distribution --testnet\n\n PoolId                                                   Stake frac\n ──────────────────────────────────────────────────────── ──────────\n pool1qqyjr9pcrv97gwrueunug829fs5znw6p2wxft3fvqkgu5f4qlrg 6.246e-3\n pool1qqfnw2fwajdnam7xsqhhrje5cgd8jcltzfrx655rd23eqlxjfef 2.983e-6\n pool1qquwwu6680fr72y4779r2kpc7mxtch8rp2uhuqcc7v9p6q4f7ph 2.178e-7\n pool1qptl80vq84xm28pt3t2lhpfzqag28csjhktxz5k6a74n260clmt 9.643e-8\n pool1qzlk4mdgauljhk9eq4m6jmxtjyyeyjgjj0wk7vfmvwxrx22ljgs 6.213e-3\n pool1qrfa3jrqptfj0kg5pef7fup6ta70pdf7e7vjcgpxtrtsvxxf7ze 2.957e-10\n pool1qrazx9r2jtepdefa7h830az933vexudt9rpn0t2vky95k5k97my 1.245e-4\n ...\n```\n\n## Cardano CLI compatibility\n\nWe have ported just those calls for which you would need to run your own `cardano-node`. Other calls, which do not require the `cardano-node`, such as key generation and signing etc., have not been ported. For these calls, you still have to use `cardano-cli`.\n\nOutput of following commands should be compatible with `cardano-cli` (1.31.0) for all practical purposes. It is possible we have missed few things. If you encounter any problem while replacing cardano-cli with blockfrost-cardano-cli please open an issue.\n\n- `bcc query`\n  - `pool-params --stake-pool-id`\n  - `protocol-parameters`\n  - `tip`\n  - `stake-distribution`\n  - `stake-address-info --address`\n  - `utxo --address`\n- `bcc transaction`\n  - `submit --tx-file`\n\nAdditionally, all commands support `--out-file FILE`, `--mainnet`, `--testnet` or `--testnet-magic <1097911063 | 1 | 2>`.\n\n## Development\n\n`bcc` command won't work correctly while running from within repository. During development use the following\n\n```console\n$ ./bin/dev\n```\n\nor\n\n```console\n$ yarn dev\n```\n","readmeFilename":"README.md","gitHead":"6c0eaa169de3c06163ed64556bda15753976a5b8","_id":"@blockfrost/blockfrost-cardano-cli@1.0.0-beta.5","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-/bsxTU7lD0D8lwrkeKocDMsaWpfO0iI3n2CEdah1rWeMbaPp+tNGNDYOxNZOvQgBzG83zkqx6UaeA4Ds6mteyw==","shasum":"b75dfd47f173c74b22e1de2b988e4a71017c0bda","tarball":"https://registry.npmjs.org/@blockfrost/blockfrost-cardano-cli/-/blockfrost-cardano-cli-1.0.0-beta.5.tgz","fileCount":74,"unpackedSize":390833,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFHcLgpuE9HqGXUkeioe5bw3FQWqp1co9R59WXOg+8ArAiAYz9lOtEVtHDhA8ZoT1NVK07c/cczbWdT3vc5+KpUriQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjC4HgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmormA//QrhJxeXpfu1ir0pMf3HlWXEpOmKU7wwBrLw8+gaeWfWvuTsn\r\nK1eU25PKSgiYTeCOoUJKfrUHUZerSFuaiw4vhcyaOeHOTQGQfBd6xvlhFpee\r\nafCzFKVcPMCSCAR9PqrcCMQVUr8TCBBtVCWLZDKJH+1GWxC6pQ/8lebsfVS4\r\n47dZlOejwCS3HU2gn+WHyDdhd1j73HOAJgY3RJY5Lkj0T1YiqPZ5Xk2FjtIh\r\ngrpO06bJpGrtxvZH4s+xMLhmCK4DovGzXcQuOb64VouVslJAHicQMoFkz4IN\r\nVs/KohfckfyyzlYxrm/KM07cvBqKwJzJyjMKTeAqLql3dngVbPQQ3kJhRshN\r\ncqL8eqAwgghYyKCwaDqfRjiKlPT7bXomH0kPMUUTOKhnEs6okTWPeO8FHTaI\r\nSt9b78COvZSRsXVXYxfIHZDc71/xciLCQe0L4sycSeMOj/HRb9788xRFEMpA\r\nMNrnwplgQ+sOXN74b30xXR6iWbo1g3oQY84aaAwSLPreWtrBaszG8w1vubPx\r\nikmm7/QtM4mm5MJRIOTLhbCY1OSOEXINxDcZArFM58yz11AQl2PJPEIOmEHX\r\ndJF9en7HOpqf5PBp1MF6qyTyFcqPTAuMBrfJ7C/UwswXqxwM2HUQ9QaIF4B7\r\nrUYRv5vI8oc3UGJCvzwkgVfCt5qwEmoNN8Y=\r\n=dGyp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"slowbackspace","email":"slowbackspace@gmail.com"},"directories":{},"maintainers":[{"name":"slowbackspace","email":"slowbackspace@gmail.com"},{"name":"blockfrost.io","email":"accounts@blockfrost.io"},{"name":"vladimirvolek","email":"volek.vladimir@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blockfrost-cardano-cli_1.0.0-beta.5_1661698528433_0.6749318537676305"},"_hasShrinkwrap":false},"1.0.0":{"name":"@blockfrost/blockfrost-cardano-cli","description":"Drop-in(ish) replacement for cardano-cli powered by Blockfrost","version":"1.0.0","author":{"name":"blockfrost.io"},"bin":{"bcc":"bin/run","blockfrost-cardano-cli":"bin/run"},"bugs":{"url":"https://github.com/blockfrost/blockfrost-cardano-cli/issues"},"dependencies":{"@blockfrost/blockfrost-js":"^5.0.0-beta.1","@oclif/core":"^1.14.2","@oclif/plugin-help":"^5.1.12","bech32":"^2.0.0","bignumber.js":"^9.1.0","cli-ux":"^6.0.9","safe-stable-stringify":"^2.3.1"},"devDependencies":{"@types/jest":"^28.1.7","@types/node":"^16","@typescript-eslint/eslint-plugin":"^5.33.1","@typescript-eslint/parser":"^5.33.1","eslint":"^8.22.0","eslint-config-oclif":"^4.0.0","eslint-config-oclif-typescript":"^1.0.2","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-unicorn":"^43.0.2","jest":"^28.1.3","make-coverage-badge":"^1.2.0","nock":"^13.2.9","npm-run-all":"^4.1.5","oclif":"^3.1.2","prettier":"^2.7.1","stdout-stderr":"^0.1.13","ts-jest":"^28.0.8","ts-node":"^10.9.1","typescript":"4.7.4"},"engines":{"node":">=14.0.0"},"homepage":"https://github.com/blockfrost/blockfrost-cardano-cli","keywords":["blockfrost","cardano","cardano-cli","blockchain"],"license":"Apache-2.0","main":"lib/index.js","oclif":{"commands":"./lib/commands","hooks":{"command_not_found":"./lib/hooks/cardano-cli"},"bin":"bcc","plugins":["@oclif/plugin-help"],"topicSeparator":" ","topics":{"query":{"description":"Node query commands"},"transaction":{"description":"Transaction commands"}},"macos":{"identifier":"io.blockfrost.cardanocli"}},"repository":{"type":"git","url":"git+https://github.com/blockfrost/blockfrost-cardano-cli.git"},"scripts":{"build":"rm -rf lib && tsc -b","dev":"./bin/dev","postpack":"rm -f oclif.manifest.json","posttest":"eslint . --ext .ts --config .eslintrc","prepack":"yarn build && oclif manifest && oclif readme","test":"yarn run-s 'test:*'","test:unit":"jest","test:badges":"make-coverage-badge --output-path ./docs/badge-coverage.svg","lint":"eslint . --ext .ts","type-check":"tsc -p tsconfig.types.json","version":"oclif readme && git add README.md"},"types":"lib/index.d.ts","packageManager":"yarn@3.2.2","gitHead":"dc5b16e9c2723349186b1de1f259db00ee3178fd","_id":"@blockfrost/blockfrost-cardano-cli@1.0.0","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-oDPqNLKZIUjNS4XItjbWhbxcQvkuKOS+CGtvzCjud4pLaA1RUquJj6kdmGeuGMbQGv2xidlnTORNuVEsY37Ouw==","shasum":"80002a1af9fab5300506d4777e005db6527dfdef","tarball":"https://registry.npmjs.org/@blockfrost/blockfrost-cardano-cli/-/blockfrost-cardano-cli-1.0.0.tgz","fileCount":74,"unpackedSize":391210,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEPCvUt/+HMGq8wDv/dB156oZrRsub7INYQvAC3wKZI2AiAa584XGsOYAH3OjhL9ihxN3c3EdtkBA+Cwe2nMhjILXg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjD3o+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosGg/9FjX+obndKhv+VMfwY45jZnMSN7u6AwGUQ6H0boS5XMg/WS7J\r\nJ/nWhQr5Yoiez/xtJAAMMX9odBtN+CHBSKlOSwb0JgJ84k38CwyrhHzCdkMO\r\nuoYFpFZB/jE6USvTtTpuq4M7QOt3wHQBDHbZa6gA8zsZJZbvzDGjkNFobh35\r\ngSxDtW7I0zE7gNSJU8+gNIAWtXG03n09YgiHDni4EV8Xjj3n66EIKHmyAYpx\r\nRhsQifj9phyGYs2O/xZ8EqaaGevcI7b3ymg1EtMfCXQ2Yvrr1IeycxfulI+C\r\nzBim+EkOKzbdyKNnJLPslidsgoqMVAlt5tn64m4GxhmA1TSi1iWxva8wSzLt\r\nsM+lPtbFOYnO/ArWfcMmjY7UR8bXmd8kGKDN7y9VnwZgPm+sLE7ihhbJd4ck\r\nXX0eEkcyPTeHPTyVItF11rcw7m0KAWE17ZU+WS5DTjaeLv9Q8KsYsrZ0jLIM\r\ng/NWjaynoLuk1yD1q7zOcFKC4bMPYe/G1CeulJIuB8fUcab+d9NBKA5DoR0U\r\n4xdMnmpxG4mBPO5AnmWBQ51L4YAkrQSxHjCmIWLj996GTd/yxRvCfgw3TBxK\r\n2cel/8f1GTQMZ9LsEOLDvPlJCH1RkHsZ93pQAOH0koTM1LhwZL+evquxKopK\r\nYofvayhLtal/ITjcRPEOkQr+FeiuLNwuzdE=\r\n=s0rR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"slowbackspace","email":"slowbackspace@gmail.com"},"directories":{},"maintainers":[{"name":"slowbackspace","email":"slowbackspace@gmail.com"},{"name":"blockfrost.io","email":"accounts@blockfrost.io"},{"name":"vladimirvolek","email":"volek.vladimir@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blockfrost-cardano-cli_1.0.0_1661958717818_0.9717818537758722"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-01T09:40:23.473Z","0.0.1-alfa.1":"2021-12-01T09:40:23.694Z","modified":"2022-08-31T15:11:58.143Z","0.0.1-alfa.2":"2021-12-01T11:23:24.179Z","0.0.1-alfa.3":"2021-12-01T12:53:30.646Z","0.0.1-alfa.4":"2021-12-10T20:37:08.529Z","0.0.1-beta.1":"2021-12-27T09:28:57.203Z","0.0.1":"2022-01-06T13:55:20.360Z","0.0.2":"2022-01-11T17:16:56.668Z","1.0.0-beta.1":"2022-08-27T09:09:44.212Z","1.0.0-beta.2":"2022-08-27T09:30:36.326Z","1.0.0-beta.3":"2022-08-28T14:27:36.764Z","1.0.0-beta.4":"2022-08-28T14:40:28.333Z","1.0.0-beta.5":"2022-08-28T14:55:28.706Z","1.0.0":"2022-08-31T15:11:58.061Z"},"maintainers":[{"name":"slowbackspace","email":"slowbackspace@gmail.com"},{"name":"blockfrost.io","email":"accounts@blockfrost.io"},{"name":"vladimirvolek","email":"volek.vladimir@gmail.com"}],"description":"Drop-in(ish) replacement for cardano-cli powered by Blockfrost","homepage":"https://github.com/blockfrost/blockfrost-cardano-cli","keywords":["blockfrost","cardano","cardano-cli","blockchain"],"repository":{"type":"git","url":"git+https://github.com/blockfrost/blockfrost-cardano-cli.git"},"author":{"name":"blockfrost.io"},"bugs":{"url":"https://github.com/blockfrost/blockfrost-cardano-cli/issues"},"license":"Apache-2.0","readme":"![master build ci](https://github.com/blockfrost/blockfrost-cardano-cli/actions/workflows/build.yml/badge.svg?branch=master) [![npm version](https://badge.fury.io/js/%40blockfrost%2Fblockfrost-cardano-cli.svg)](https://badge.fury.io/js/%40blockfrost%2Fblockfrost-cardano-cli) ![downloads](https://img.shields.io/npm/dy/@blockfrost/blockfrost-cardano-cli) <img src=\"https://github.com/blockfrost/blockfrost-cardano-cli/blob/master/docs/badge-coverage.svg\" /> <a href=\"https://fivebinaries.com/\"><img src=\"https://img.shields.io/badge/made%20by-Five%20Binaries-darkviolet.svg?style=flat-square\" /></a>\n\n<img src=\"https://blockfrost.io/images/logo.svg\" width=\"250\" align=\"right\" height=\"90\" style=\"margin-bottom: -50px\">\n\n# Blockfrost Cardano CLI\n\n<br>\n<p align=\"center\">Drop-in(ish) replacement for cardano-cli.<br />Query the blockchain without the need to spin up your own Cardano node. All powered by <a href=\"https://blockfrost.io\">Blockfrost API</a>.</p>\n<p align=\"center\">\n  <a href=\"#installation\">Installation</a> •\n  <a href=\"#setup\">Setup</a> •\n  <a href=\"#commands\">Commands</a> •\n  <a href=\"#cardano-cli-compatibility\">Cardano CLI compatibility</a>\n</p>\n<br/>\n\n## Installation\n\n### npm\n\nIf you have Node.js installed the fastest way to install the CLI is directly with npm. For instructions for installing Node.js please see [nodejs.org](https://nodejs.org/en/download/). Although the CLI should run on Node.js v14 just fine, we recommend v16 which is active LTS.\n\n```console\nnpm install -g @blockfrost/blockfrost-cardano-cli\n```\n\nAfter the installation is completed new commands `blockfrost-cardano-cli` and its shorter alias `bcc` should be available.\n\n### Docker\n\nBuild the docker container by running following command within the repository:\n\n```console\ndocker build . -t blockfrost-cardano-cli --no-cache\n```\n\nThen run `docker run` with `--env` flag to pass environment variables into a docker container:\n\n```console\ndocker run --env BLOCKFROST_PROJECT_ID_MAINNET=<PROJECT_ID> blockfrost-cardano-cli --help\n```\n\n## Setup\n\nIn order to use Blockfrost Cardano CLI you first need generate project token(s) on [Blockfrost.io](https://blockfrost.io).\n\nThen set following environment variables:\n\n- `BLOCKFROST_PROJECT_ID_MAINNET` - Mainnet token that will be used if you don't specify `--testnet` flag\n- `BLOCKFROST_PROJECT_ID_TESTNET` - Testnet token that will be used when `--testnet` or `--testnet-magic 1097911063` flag is specified (legacy Cardano Testnet network)\n- `BLOCKFROST_PROJECT_ID_PREPROD` - Testnet token that will be used when `--testnet-magic 1` flag is specified (Cardano Preprod network)\n- `BLOCKFROST_PROJECT_ID_PREVIEW` - Testnet token that will be used when `--testnet-magic 2` flag is specified (Cardano Preview network)\n\nWe recommend setting both of these variables as it allows you to seamlessly switch between mainnet and testnet network while using the CLI.\n\n## Usage\n\n```console\n$ bcc <COMMAND> [--testnet | --testnet-magic 1 | --testnet-magic 2 | --testnet-magic 1097911063] [--out-file FILE] [--help]\n```\n\n### Commands\n\nIf you have `cardano-cli` in `PATH` environment variable it will be automatically detected and commands that are not directly supported by blockfrost-cardano-cli will be passed to cardano-cli.\n\n#### `bcc query tip`\n\nGet the current tip\n\n```console\n$ bcc query tip --testnet\n\n{\n    \"epoch\": 171,\n    \"hash\": \"d91bbfb72158eed4949663abbc20ce70dcc1a5c4d8855b6db46f6cd9c061dce5\",\n    \"slot\": 43922944,\n    \"block\": 3115492,\n    \"era\": \"Alonzo\",\n    \"syncProgress\": \"100.00\"\n}\n```\n\n#### `bcc query utxo --address`\n\nGet the current UTXO set filtered by an address.\n\n```console\n$ bcc query utxo --address addr1q9cn7sh5tgxj5xazsnj7pqfn2nrltnqzh268arnp5a273av8q0pkxxvsh4v5jc4lwz5ccdxh892g73ns65xj5vvqsa3s93g77p\n\n TxHash                                                           TxIx   Amount\n ──────────────────────────────────────────────────────────────── ────── ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n 61d47e568b1502064906e977aae848c7aec9a76f97e7d11ad5d752e95c438011 0      1379280 lovelace + 1 e5a2bcc51466942a9db1da62471a1b682bde3abcebafee2c7fb1e378.415254494643544d4f4f4e32353437\n ac1d8802a4e100d90ce59fb4e4573f1c7884a65197ff39810a88eb0b07de3aa6 0      30000000 lovelace\n 69818d49963ffafe8a287ec270d05ba89493de33ddf7b5b9bcb07e97802a0f28 1      5573009 lovelace\n fba1526c49684722199b102bffd5b4a66ea1d490605532753fa24e12af925722 0      5000000 lovelace\n```\n\n#### `bcc query stake-address-info --address`\n\nGet the current delegations and reward balance filtered by stake address.\n\n```console\n$ bcc query stake-address-info --address stake_test1uqvjsz7a3xm7ylpzgdhvg29gd9686ss9kztxeaanwp9nreqq74692 --testnet\n\n[\n    {\n        \"address\": \"stake_test1uqvjsz7a3xm7ylpzgdhvg29gd9686ss9kztxeaanwp9nreqq74692\",\n        \"rewardAccountBalance\": 0,\n        \"delegation\": null\n    }\n]\n```\n\n#### `bcc transaction submit --tx-file FILE`\n\n```console\n$ bcc transaction submit --tx-file /tmp/mytx --testnet\n\nTransaction successfully submitted.\n```\n\n#### `bcc query pool-params --stake-pool-id POOLID`\n\nList parameters of specified pool\n\n```console\n$ bcc query pool-params --stake-pool-id pool1y6chk7x7fup4ms9leesdr57r4qy9cwxuee0msan72x976a6u0nc --testnet\n\n{\n    \"poolParams\": {\n        \"publicKey\": \"26b17b78de4f035dc0bfce60d1d3c3a8085c38dcce5fb8767e518bed\",\n        \"cost\": 340000000,\n        \"metadata\": {\n            \"hash\": \"514e56dacc4f556ebc1d307473d0cf15d4cf0dc27169870e46a811625f09262e\",\n            \"url\": \"https://stakenuts.com/testnet.json\"\n        },\n        \"vrf\": \"db61b20aeb616dbc39ca36194e7a54d5cef5464c6e6d0d420cfa551f7dc43d64\",\n        \"owners\": [\n            \"13cf55d175ea848b87deb3e914febd7e028e2bf6534475d52fb9c3d0\"\n        ],\n        \"pledge\": 100000000000,\n        \"rewardAccount\": {\n            \"network\": \"Testnet\",\n            \"credential\": {\n                \"key hash\": \"13cf55d175ea848b87deb3e914febd7e028e2bf6534475d52fb9c3d0\"\n            }\n        },\n        \"margin\": 0.05,\n        \"relays\": [\n            {\n                \"single host name\": {\n                    \"port\": 3001,\n                    \"dnsName\": \"relays.testnet.stakenuts.com\"\n                }\n            }\n        ]\n    },\n    \"futurePoolParams\": null,\n    \"retiring\": null\n}\n```\n\n#### `bcc query protocol-parameters`\n\n```console\n$ bcc query protocol-parameters --testnet\n\n{\n    \"txFeePerByte\": 44,\n    \"minUTxOValue\": 34482,\n    \"decentralization\": 0,\n    \"utxoCostPerWord\": 34482,\n    \"stakePoolDeposit\": 500000000,\n    \"poolRetireMaxEpoch\": 18,\n    \"extraPraosEntropy\": null,\n    \"collateralPercentage\": 150,\n    \"stakePoolTargetNum\": 500,\n    \"maxBlockBodySize\": 73728,\n    \"minPoolCost\": 340000000,\n    \"maxTxSize\": 16384,\n    \"treasuryCut\": 0.2,\n    \"maxBlockExecutionUnits\": {\n        \"memory\": 50000000,\n        \"steps\": 40000000000\n    },\n    \"maxCollateralInputs\": 3,\n    \"maxValueSize\": 5000,\n    \"maxBlockHeaderSize\": 1100,\n    \"maxTxExecutionUnits\": {\n        \"memory\": 11250000,\n        \"steps\": 10000000000\n    },\n    \"costModels\": {},\n    \"protocolVersion\": {\n        \"minor\": 0,\n        \"major\": 6\n    },\n    \"txFeeFixed\": 155381,\n    \"stakeAddressDeposit\": 2000000,\n    \"monetaryExpansion\": 0.003,\n    \"poolPledgeInfluence\": 0.3,\n    \"executionUnitPrices\": {\n        \"priceSteps\": 0.0000721,\n        \"priceMemory\": 0.0577\n    }\n}\n```\n\n#### `bcc query stake-distribution`\n\nGet aggregated stake distribution sorted by pool ID (in hex).\n\n```console\n$ bcc query stake-distribution --testnet\n\n PoolId                                                   Stake frac\n ──────────────────────────────────────────────────────── ──────────\n pool1qqyjr9pcrv97gwrueunug829fs5znw6p2wxft3fvqkgu5f4qlrg 6.246e-3\n pool1qqfnw2fwajdnam7xsqhhrje5cgd8jcltzfrx655rd23eqlxjfef 2.983e-6\n pool1qquwwu6680fr72y4779r2kpc7mxtch8rp2uhuqcc7v9p6q4f7ph 2.178e-7\n pool1qptl80vq84xm28pt3t2lhpfzqag28csjhktxz5k6a74n260clmt 9.643e-8\n pool1qzlk4mdgauljhk9eq4m6jmxtjyyeyjgjj0wk7vfmvwxrx22ljgs 6.213e-3\n pool1qrfa3jrqptfj0kg5pef7fup6ta70pdf7e7vjcgpxtrtsvxxf7ze 2.957e-10\n pool1qrazx9r2jtepdefa7h830az933vexudt9rpn0t2vky95k5k97my 1.245e-4\n ...\n```\n\n## Cardano CLI compatibility\n\nWe have ported just those calls for which you would need to run your own `cardano-node`. Other calls, which do not require the `cardano-node`, such as key generation and signing etc., have not been ported. For these calls, you still need `cardano-cli` installed.\n\nIf you have `cardano-cli` in `PATH` environment variable it will be automatically detected and commands that are not directly supported by blockfrost-cardano-cli will be passed to cardano-cli.\n\nOutput of following commands should be compatible with `cardano-cli` (1.31.0) for all practical purposes. It is possible we have missed few things. If you encounter any problem while replacing cardano-cli with blockfrost-cardano-cli please open an issue.\n\n- `bcc query`\n  - `pool-params --stake-pool-id`\n  - `protocol-parameters`\n  - `tip`\n  - `stake-distribution`\n  - `stake-address-info --address`\n  - `utxo --address`\n- `bcc transaction`\n  - `submit --tx-file`\n\nAdditionally, all commands support `--out-file FILE`, `--mainnet`, `--testnet` or `--testnet-magic <1097911063 | 1 | 2>`.\n\n## Development\n\n`bcc` command won't work correctly while running from within repository. During development use the following\n\n```console\n$ ./bin/dev\n```\n\nor\n\n```console\n$ yarn dev\n```\n","readmeFilename":"README.md"}