{"_id":"@althea-net/provider","_rev":"3-3ea6b77c317c5eadbee36b6da04db5ad","name":"@althea-net/provider","dist-tags":{"latest":"1.0.1"},"versions":{"0.3.1":{"name":"@althea-net/provider","description":"Simple provider to query the Althea-L1 rest api.","version":"0.3.1","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","type":"module","scripts":{"postinstall":"shx mkdir -p dist && link-module-alias","build":"tsc --build tsconfig.build.json && link-module-alias","build:watch":"tsc --build -w tsconfig.build.json && link-module-alias","clean":"tsc --build tsconfig.build.json --clean  && shx rm -rf coverage *.log junit.xml dist && jest --clearCache","test":"jest","test:unit":"jest test/unit","test:integration":"jest test/unit","test:watch":"jest --watch","test:ci":"jest --coverage --ci --reporters='jest-junit'","coverage":"jest --coverage","dev":"ts-node-dev -r tsconfig-paths/register src/index.ts","start":"node dist/index.js"},"dependencies":{"link-module-alias":"^1.2.0","shx":"^0.3.4"},"devDependencies":{"@types/node":"^17.0.21"},"gitHead":"7cf9f03495eebd28c9aa21ec972a761a9965e565","publishConfig":{"access":"public"},"_id":"@althea-net/provider@0.3.1","dist":{"shasum":"cf446e194fe90547a040b63c4325b65a9154f75b","integrity":"sha512-Mdv6RMsX4f9efSSLWKGwH3qQPUo5Q0BdacCRgBCStcOfoOO/yKIbrs2A+k02qtjQ8IfTIUyE0rBILheyx4YUxA==","tarball":"https://registry.npmjs.org/@althea-net/provider/-/provider-0.3.1.tgz","fileCount":42,"unpackedSize":29081,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAuGRJxBdMWZddpDIwsPsAMInxsl1fLfsEMdJ0F/2wcHAiEAtn5h7oPV3CFR0Tu2Ptfbyai/IamlqHHc4Lj/ILsijYo="}]},"_npmUser":{"name":"christian-althea","email":"christian@althea.systems"},"directories":{},"maintainers":[{"name":"christian-althea","email":"christian@althea.systems"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/provider_0.3.1_1689352065168_0.3142111895424686"},"_hasShrinkwrap":false},"0.5.0":{"name":"@althea-net/provider","description":"Simple provider to query the Althea-L1 rest api.","version":"0.5.0","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","type":"module","scripts":{"postinstall":"shx mkdir -p dist && link-module-alias","build":"tsc --build tsconfig.build.json && link-module-alias","build:watch":"tsc --build -w tsconfig.build.json && link-module-alias","clean":"tsc --build tsconfig.build.json --clean  && shx rm -rf coverage *.log junit.xml dist && jest --clearCache","test":"jest","test:unit":"jest test/unit","test:integration":"jest test/unit","test:watch":"jest --watch","test:ci":"jest --coverage --ci --reporters='jest-junit'","coverage":"jest --coverage","dev":"ts-node-dev -r tsconfig-paths/register src/index.ts","start":"node dist/index.js"},"dependencies":{"link-module-alias":"^1.2.0","shx":"^0.3.4"},"devDependencies":{"@types/node":"^17.0.21"},"gitHead":"7cf9f03495eebd28c9aa21ec972a761a9965e565","publishConfig":{"access":"public"},"_id":"@althea-net/provider@0.5.0","dist":{"shasum":"c7414255951aa72375116dd9d76b44602af1d12b","integrity":"sha512-uTTnFjrbrOc5SvsxC3Hos5p+jiFEEm3LeHPCj8dJIrWZQLHv1OoD3dMc7n31p7Vl4b6k8C91KLOJDeUfbho3Nw==","tarball":"https://registry.npmjs.org/@althea-net/provider/-/provider-0.5.0.tgz","fileCount":42,"unpackedSize":29016,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICqKs/7EbOM2MAA6kY4scItRwBzxe8Wprak9wA8mCwiGAiEA1xCaYC94Ogjz9Sy+J0UK+YoMBahc2kTa+/wpa8vKJHA="}]},"_npmUser":{"name":"christian-althea","email":"christian@althea.systems"},"directories":{},"maintainers":[{"name":"christian-althea","email":"christian@althea.systems"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/provider_0.5.0_1690922160308_0.6699415590651183"},"_hasShrinkwrap":false},"0.5.1":{"name":"@althea-net/provider","description":"Simple provider to query the Althea-L1 rest api.","version":"0.5.1","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","type":"module","scripts":{"postinstall":"shx mkdir -p dist && link-module-alias","build":"tsc --build tsconfig.build.json && link-module-alias","build:watch":"tsc --build -w tsconfig.build.json && link-module-alias","clean":"tsc --build tsconfig.build.json --clean  && shx rm -rf coverage *.log junit.xml dist && jest --clearCache","test":"jest","test:unit":"jest test/unit","test:integration":"jest test/unit","test:watch":"jest --watch","test:ci":"jest --coverage --ci --reporters='jest-junit'","coverage":"jest --coverage","dev":"ts-node-dev -r tsconfig-paths/register src/index.ts","start":"node dist/index.js"},"dependencies":{"link-module-alias":"^1.2.0","shx":"^0.3.4"},"devDependencies":{"@types/node":"^17.0.21"},"gitHead":"7cf9f03495eebd28c9aa21ec972a761a9965e565","publishConfig":{"access":"public"},"_id":"@althea-net/provider@0.5.1","dist":{"shasum":"95caf5b12607b76a8fe49f01e58457c43d7f09b9","integrity":"sha512-ciSu2kGcBOJ56XRwRExfKyN0airceMrgs193PmbzaGLo4QTph4as8+hBxLvSsupfTdcyYQtOLbjFPPs70fvS/g==","tarball":"https://registry.npmjs.org/@althea-net/provider/-/provider-0.5.1.tgz","fileCount":42,"unpackedSize":29020,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCas6zq+Gjz8X0iALkigEqaZCwC7HvdzbGouCcfoAx8aQIgI9pVyxxkC+qLH6a2uOmoArtv/jNRTs4TW44HtNZGEZk="}]},"_npmUser":{"name":"christian-althea","email":"christian@althea.systems"},"directories":{},"maintainers":[{"name":"christian-althea","email":"christian@althea.systems"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/provider_0.5.1_1690923426521_0.2751431015340031"},"_hasShrinkwrap":false},"1.0.1":{"name":"@althea-net/provider","description":"Simple provider to query the Althea-L1 rest api.","version":"1.0.1","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","type":"module","scripts":{"postinstall":"shx mkdir -p dist && link-module-alias","build":"tsc --build tsconfig.build.json && link-module-alias","build:watch":"tsc --build -w tsconfig.build.json && link-module-alias","clean":"tsc --build tsconfig.build.json --clean  && shx rm -rf coverage *.log junit.xml dist && jest --clearCache","test":"jest","test:unit":"jest test/unit","test:integration":"jest test/unit","test:watch":"jest --watch","test:ci":"jest --coverage --ci --reporters='jest-junit'","coverage":"jest --coverage","dev":"ts-node-dev -r tsconfig-paths/register src/index.ts","start":"node dist/index.js"},"dependencies":{"link-module-alias":"^1.2.0","shx":"^0.3.4"},"devDependencies":{"@types/node":"^17.0.21"},"gitHead":"7cf9f03495eebd28c9aa21ec972a761a9965e565","publishConfig":{"access":"public"},"_id":"@althea-net/provider@1.0.1","dist":{"shasum":"e2f8ef107b2157b2b3fd02c87a6188d9a538dce6","integrity":"sha512-9ltbqr5YjY3XSJR7hjXBWf//y+LNGQee6zicr6XuvH7uxq1pkAVo9+/8m+1Y4ZK1D3/K/CcK1om79f/t1SvKHQ==","tarball":"https://registry.npmjs.org/@althea-net/provider/-/provider-1.0.1.tgz","fileCount":42,"unpackedSize":30037,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1G0W/zRi0EYab9AGYlzj8Q8hGZTHcE27DKIvMUZxT5QIhAPZU+v+YC/VoEO/XAzljNztk+wl0sfGrG7DN/kpCMwl+"}]},"_npmUser":{"name":"christian-althea","email":"christian@althea.systems"},"directories":{},"maintainers":[{"name":"christian-althea","email":"christian@althea.systems"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/provider_1.0.1_1692725195495_0.7055700915804679"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-14T16:27:45.095Z","0.3.1":"2023-07-14T16:27:45.397Z","modified":"2023-08-22T17:26:35.839Z","0.5.0":"2023-08-01T20:36:00.462Z","0.5.1":"2023-08-01T20:57:06.701Z","1.0.1":"2023-08-22T17:26:35.643Z"},"maintainers":[{"name":"christian-althea","email":"christian@althea.systems"}],"description":"Simple provider to query the Althea-L1 rest api.","license":"MIT","readme":"# Provider\n\nSimple provider to query the Althea-L1 rest api.\n\n## Querying an Account for Sequence and Account Number\n\n```ts\nconst restOptions = {\n    method: 'GET',\n    headers: { 'Content-Type': 'application/json'},\n    // mode: 'no-cors', // This option will break the request in a confusing way when cors support is available\n}\n// Note that the node will return a 400 status code if the account does not exist.\nqueryEndpoint = `https://althea.zone:1317${generateEndpointAccount(account)}`;\nconst res = await fetch(\n    queryEndpoint,\n    restOptions,\n).json()\n```\n\n## Broadcasting a signed Tx\n```js\n    const postOptions = {\n        method: 'POST',\n        headers: { 'Content-Type': 'application/json' },\n        // Broadcast Mode Block waits for the Tx to be included in a block, may timeout\n        body: generatePostBodyBroadcast(signedTx, BroadcastMode.Block),\n    }\n\n    const broadcastEndpoint = `https://althea.zone:1317${generateEndpointBroadcast}`\n\n    const broadcastPost = await fetch(\n        broadcastEndpoint,\n        postOptions,\n    )\n\n    const res = await broadcastPost.json()\n\n    // Result may contain the Tx execution response, including the events log\n```\n","readmeFilename":"README.md"}