{"_id":"@amax/amaxjs-api","name":"@amax/amaxjs-api","dist-tags":{"latest":"7.0.4"},"versions":{"7.0.4":{"name":"@amax/amaxjs-api","version":"7.0.4","description":"Application programming interface to EOS blockchain nodes.","main":"lib/index.js","scripts":{"test":"mocha --use_strict src/**/*.test.js","test_lib":"mocha --use_strict lib/*.test.js","coverage":"istanbul cover _mocha -- -R spec src/**/*.test.js","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","build":"npm run build_lib && npm run build_browser","build_lib":"rm -fr lib/* && babel --copy-files src --out-dir lib","build_browser":"mkdir -p lib && browserify -o lib/eos-api.js -s EosApi lib/index.js","build_browser_test":"npm run build && browserify -o dist/test.js lib/*.test.js","minimize":"uglifyjs lib/eos-api.js -o lib/eos-api.min.js --source-map --compress --mangle","helperDocs":"jsdoc2md src/exported-helpers.js src/process-args.js > docs/index.md","apiDocs":"./bin/api-docs.js > lib/api-jsdocs.js && jsdoc2md lib/api-jsdocs.js > docs/api.md","docs":"npm run apiDocs && npm run helperDocs","srisum":"npx srisum lib/eos-api.*","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/EOSIO/eosjs-api.git"},"keywords":["EOS","Blockchain","API"],"author":"","license":"MIT","bugs":{"url":"https://github.com/EOSIO/eosjs-api/issues"},"homepage":"https://github.com/EOSIO/eosjs-api#readme","devDependencies":{"babel-cli":"6.26.0","babel-core":"6.26.3","babel-preset-es2015":"6.24.1","bluebird":"3.5.0","browserify":"16.2.2","uglify-js":"3.4.5","coveralls":"^3.0.0","istanbul":"^0.4.5","jsdoc-to-markdown":"^4.0.1","mocha":"^5.2.0"},"dependencies":{"camel-case":"^3.0.0","isomorphic-fetch":"^2.2.1"},"babel":{"presets":["es2015"]},"_id":"@amax/amaxjs-api@7.0.4","_nodeVersion":"14.17.6","_npmVersion":"8.15.0","dist":{"integrity":"sha512-u4QsrqE0MRv7o7lGRcwdZTWHwxnp7nW2SxGqvgCmbQ6XhEgLG7ZUFPUUgA1meSQnB8dmEyxv9TjZdI9F+JtJqA==","shasum":"eaa0a0106474b898ccb8fa9a3f538c9564233fa7","tarball":"https://registry.npmjs.org/@amax/amaxjs-api/-/amaxjs-api-7.0.4.tgz","fileCount":17,"unpackedSize":133973,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEFyR5p3sGf6A0Wns6nlfwzgRGaYdwalDg7zTbf6UiGAIgIEE8aKHioeUh+taz8ZF73zMP3jqUrQB3ANNag22Gyb8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi50QEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoj3Q/+Pjp302OwHV70d6dyfnpGnGevq26iXb/vUF50LhsQPSyLjXap\r\nvC6EDVjvZqmfuLjPhbYkSiqRFY/f27FjdjQSN5rpjf7ZqtgTHuiM/PBbxJZt\r\ncY2K3dzrD2KIOG3/eUumS3RsjoaQq3y9Fr88NNrbBApTqA/XOSXi+XuLVGOa\r\n4ZqpnhhYFzeaCV4Ony5aEr7ja7rRUHS2s4FrRwIfQYbISVySAL3icqNYlz01\r\nccfmvu26XG1su8tB7yoqkN9AT5qrTis+kVHkZ8FH8tGEcwU/k83o4NHgQR+g\r\n8ZfgLUOD2tTBaR/V/eYEpQUpwaFHpm2pepCX6p275cOv6AH8fu4El75sdf9h\r\nDGH7ix+TsabbOuVrQtExizV5cl7lRKUjspwf9DLSxEgvN4jsGbhXO90VuDrx\r\nS/6liJpaMwDBKcPW0uW8wlFO7oXowZJHegQhtdfWfHZUZCThqArE4QuzUWEE\r\nM8wMUvJhaDknexnh1CPDp4a4NDd1Hsfvm+yBqxEbywqZBh4a4x/029Hy2Q0W\r\nXcayuIYeBC1NVo4cD1Pw33sElKAIwAIakru7o1xp4l5+9VhvRW3tHn4YJe8C\r\n0Yf+JjAZs+hhkAzngIP5wjoEgopZhQ8o9lATSO7f8lbG+gEciy8utXRibifT\r\n3GLz1pJpLGhImTq6BUJsN/LYO1B07SXyp3Y=\r\n=qUR4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"armoniametachain","email":"aplink2022@gmail.com"},"directories":{},"maintainers":[{"name":"armoniametachain","email":"aplink2022@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amaxjs-api_7.0.4_1659323395971_0.7844604556827899"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-01T03:09:55.926Z","7.0.4":"2022-08-01T03:09:56.170Z","modified":"2022-08-01T03:09:56.344Z"},"maintainers":[{"name":"armoniametachain","email":"aplink2022@gmail.com"}],"description":"Application programming interface to EOS blockchain nodes.","homepage":"https://github.com/EOSIO/eosjs-api#readme","keywords":["EOS","Blockchain","API"],"repository":{"type":"git","url":"git+https://github.com/EOSIO/eosjs-api.git"},"bugs":{"url":"https://github.com/EOSIO/eosjs-api/issues"},"license":"MIT","readme":"[![NPM](https://img.shields.io/npm/v/eosjs-api.svg)](https://www.npmjs.org/package/eosjs-api)\n\n# Eos API\n\nApplication programming interface to EOS blockchain nodes.  This is for\nread-only API calls.  If you need to sign transactions use\n[eosjs](https://github.com/eosio/eosjs) instead.\n\n# Include\n\n* Install with: `npm install eosjs-api`\n* Html script tag, see [releases](https://github.com/EOSIO/eosjs-api/releases) for the correct **version** and its matching script **integrity** hash.\n\n```html\n<html>\n<head>\n  <meta charset=\"utf-8\">\n  <!--\n  sha512-n3CgU6w9TJVf/pVIMHYhk3Gxv8lEQYjVrSSTLXvEBENLF+CQd1Kp0jxXj09yGUOkWerdv2mJlh1Mnz3aRfYqWw== lib/eos-api.js\n  sha512-Cj2FQb94MMtDPgHb1R1577pEMjYhc+P5pNgv1/QwoJD9ntuR9rnWlqJACS/xNniNK5cFS6Y6CpQlHWpzWUeEbw== lib/eos-api.min.js\n  sha512-4C6oDKarS8DaXO99o342USbeQwqW98qik+QSzVGfof939gUpIyRDCnbGIGQAIkLNpYZIV4XanmRy3wcis6UW8w== lib/eos-api.min.js.map\n  -->\n  <script src=\"https://cdn.jsdelivr.net/npm/eosjs-api@7.0.4/lib/eos-api.min.js\"\n    integrity=\"sha512-LLDsX/GdVZYA82k9TVz3zUxSjvaX8s5b1FJm64W51JGxLFKI2z+ljqYQtsUZIOxh9pSUqvLA5HCoxXqdRxusKw==\"\n    crossorigin=\"anonymous\"></script>\n\n</head>\n<body>\n  See console object: EosApi\n</body>\n</html>\n```\n\n## EosApi\n\nRun [nodeos](https://github.com/eosio/eos)\n\n* [API](./docs/api.md)\n* [Helper Functions](./docs/index.md)\n\n## Usage\n\n```javascript\nEosApi = require('eosjs-api') // Or EosApi = require('./src')\n\neos = EosApi() // // 127.0.0.1:8888\n\n// Any API call without a callback parameter will print documentation: description,\n// parameters, return value, and possible errors.  All methods and documentation\n// are created from JSON files in eosjs/json/api/v1..\neos.getInfo()\n\n// A Promise is returned if a callback is not provided.\neos.getInfo({}).then(result => console.log(result))\neos.getBlock(1).then(result => console.log(result))\n\n// For callbacks instead of Promises provide a callback\ncallback = (err, res) => {err ? console.error(err) : console.log(res)}\n\n// The server does not expect any parameters only the callback is needed\neos.getInfo(callback)\n\n// Parameters are added before the callback\neos.getBlock(1, callback)\n\n// Parameters can be an object\neos.getBlock({block_num_or_id: 1}, callback)\neos.getBlock({block_num_or_id: 1}).then(result => console.log(result))\n```\n\n## Configuration\n\n```js\nEosApi = require('eosjs-api') // Or EosApi = require('./src')\n\n// everything is optional\noptions = {\n  httpEndpoint: 'http://127.0.0.1:8888', // default, null for cold-storage\n  verbose: false, // API logging\n  logger: { // Default logging functions\n    log: config.verbose ? console.log : null,\n    error: config.verbose ? console.error : null\n  },\n  fetchConfiguration: {}\n}\n\neos = EosApi(options)\n```\n### options.logger example\n\nDuring testing, an error may be expected and checked as follows:\n\n```js\noptions.logger = {\n  error: err => {\n    assert.equal(err, 'expected error')\n    done()\n  }\n}\n```\n\n### options.fetchConfiguration example\n\n```js\noptions.fetchConfiguration = {\n  credentials: 'same-origin'\n}\n```\nEvery eosjs-api request will run [fetch](https://github.com/github/fetch#sending-cookies) with this configuration:\n```js\nfetch('https://example.com', {\n  credentials: 'same-origin'\n})\n```\n\n## Environment\n\nNode and browser (es2015)\n","readmeFilename":"README.md"}