{"_id":"@aidpproject/aidpcoin-history-list","_rev":"5-3f430492ae49f6a8fd6a1e4c576d248a","name":"@aidpproject/aidpcoin-history-list","dist-tags":{"latest":"1.2.9"},"versions":{"1.2.4":{"name":"@aidpproject/aidpcoin-history-list","version":"1.2.4","keywords":["Ravencoin"],"author":{"name":"Raven Rebels / Dick Henrik Larsson"},"license":"MIT","_id":"@aidpproject/aidpcoin-history-list@1.2.4","maintainers":[{"name":"loloadsl","email":"loloadsl@hotmail.fr"}],"homepage":"https://github.com/aidpproject/aidpcoin-history-list#readme","bugs":{"url":"https://github.com/aidpproject/aidpcoin-history-list/issues"},"dist":{"shasum":"c6f04cff9820a3f8fe2e348a6531127c4dbbfd49","tarball":"https://registry.npmjs.org/@aidpproject/aidpcoin-history-list/-/aidpcoin-history-list-1.2.4.tgz","fileCount":17,"integrity":"sha512-WnOsVWxcuYnq+EjgL5na23CqpA2R9j2HVUHMbLHBJHC9TtIEpkXBhQqKjcVc8R+mpQkOK0zG9W/gsNkc3svUUQ==","signatures":[{"sig":"MEYCIQD9vLG4wGQ7SDK79gKZpOJd9IgnsCSEvzbhiE+o6OetXAIhAN+PCVwsUPEdCZMD+HXU2TQrytgcLCHmoMtAd0stCvcW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46411},"main":"./dist/index.cjs","types":"dist/types.d.ts","module":"./dist/index.mjs","source":"index.ts","exports":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"gitHead":"0ba6e167c856855a82035831a43966dac9b37e08","private":false,"scripts":{"test":"jest test.js","build":"parcel build","watch":"parcel watch"},"_npmUser":{"name":"loloadsl","email":"loloadsl@hotmail.fr"},"repository":{"url":"git+https://github.com/aidpproject/aidpcoin-history-list.git","type":"git"},"_npmVersion":"10.2.4","description":"A human understandable list of in or outgoing transactions","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"devDependencies":{"jest":"29.4.1","parcel":"^2.9.3","typescript":"^4.9.4","@parcel/packager-ts":"^2.8.3","@parcel/transformer-typescript-types":"^2.8.3"},"_npmOperationalInternal":{"tmp":"tmp/aidpcoin-history-list_1.2.4_1709949086772_0.9572188255795113","host":"s3://npm-registry-packages"}},"1.2.5":{"name":"@aidpproject/aidpcoin-history-list","version":"1.2.5","keywords":["Ravencoin"],"author":{"name":"Raven Rebels / Dick Henrik Larsson"},"license":"MIT","_id":"@aidpproject/aidpcoin-history-list@1.2.5","maintainers":[{"name":"loloadsl","email":"loloadsl@hotmail.fr"}],"homepage":"https://github.com/aidpproject/aidpcoin-history-list#readme","bugs":{"url":"https://github.com/aidpproject/aidpcoin-history-list/issues"},"dist":{"shasum":"9c3ccde141bb7fc851c2a0068621d9c862c81668","tarball":"https://registry.npmjs.org/@aidpproject/aidpcoin-history-list/-/aidpcoin-history-list-1.2.5.tgz","fileCount":17,"integrity":"sha512-pDLeAmhpYqKD8eyKESzmPNNdSN9K7wos1w4uV9xOSwl+FywT2KDhaFv/iocRnTLc8xph47xFe5dkrgAaBbf+AA==","signatures":[{"sig":"MEUCIF1mDA2zi++QlIbwE8f36/lDQ82iENJx+SXFpX64RKf8AiEA+85uiA2wluLwEw2hdzr0YzbfsAwWyUvkKvEG2IYjpNw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46411},"main":"./dist/index.cjs","types":"dist/types.d.ts","module":"./dist/index.mjs","source":"index.ts","exports":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"gitHead":"0ba6e167c856855a82035831a43966dac9b37e08","private":false,"scripts":{"test":"jest test.js","build":"parcel build","watch":"parcel watch"},"_npmUser":{"name":"loloadsl","email":"loloadsl@hotmail.fr"},"repository":{"url":"git+https://github.com/aidpproject/aidpcoin-history-list.git","type":"git"},"_npmVersion":"10.2.4","description":"A human understandable list of in or outgoing transactions","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"devDependencies":{"jest":"29.4.1","parcel":"^2.9.3","typescript":"^4.9.4","@parcel/packager-ts":"^2.8.3","@parcel/transformer-typescript-types":"^2.8.3"},"_npmOperationalInternal":{"tmp":"tmp/aidpcoin-history-list_1.2.5_1709993640680_0.9968936011523553","host":"s3://npm-registry-packages"}},"1.2.6":{"name":"@aidpproject/aidpcoin-history-list","version":"1.2.6","keywords":["Ravencoin"],"author":{"name":"Raven Rebels / Dick Henrik Larsson"},"license":"MIT","_id":"@aidpproject/aidpcoin-history-list@1.2.6","maintainers":[{"name":"loloadsl","email":"loloadsl@hotmail.fr"}],"homepage":"https://github.com/aidpproject/aidpcoin-history-list#readme","bugs":{"url":"https://github.com/aidpproject/aidpcoin-history-list/issues"},"dist":{"shasum":"1287cb0236f4148f5b88430f46923b31f71da185","tarball":"https://registry.npmjs.org/@aidpproject/aidpcoin-history-list/-/aidpcoin-history-list-1.2.6.tgz","fileCount":17,"integrity":"sha512-wHUffe8gpoxa3EVBWMTymYQVLhqVlY1zm7N/7Og/Idq2ibmPpqnAGrCjJvN8dy6E8SllOVWOI1+GoYMqlgBpvQ==","signatures":[{"sig":"MEUCICEq2FUoYT25OHpB50OY/tY6hp29Bppb6F12XAbpEIzjAiEA686WSixZS8AMZQzUeNARZ77GrwOKZSfaIQDSRKUaJHI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46411},"main":"./dist/index.cjs","types":"dist/types.d.ts","module":"./dist/index.mjs","source":"index.ts","exports":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"gitHead":"0ba6e167c856855a82035831a43966dac9b37e08","private":false,"scripts":{"test":"jest test.js","build":"parcel build","watch":"parcel watch"},"_npmUser":{"name":"loloadsl","email":"loloadsl@hotmail.fr"},"repository":{"url":"git+https://github.com/aidpproject/aidpcoin-history-list.git","type":"git"},"_npmVersion":"10.2.4","description":"A human understandable list of in or outgoing transactions","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"devDependencies":{"jest":"29.4.1","parcel":"^2.9.3","typescript":"^4.9.4","@parcel/packager-ts":"^2.8.3","@parcel/transformer-typescript-types":"^2.8.3"},"_npmOperationalInternal":{"tmp":"tmp/aidpcoin-history-list_1.2.6_1710034929070_0.27594310512575326","host":"s3://npm-registry-packages"}},"1.2.7":{"name":"@aidpproject/aidpcoin-history-list","version":"1.2.7","keywords":["Aidpcoin"],"author":{"name":"Raven Rebels / Dick Henrik Larsson"},"license":"MIT","_id":"@aidpproject/aidpcoin-history-list@1.2.7","maintainers":[{"name":"loloadsl","email":"loloadsl@hotmail.fr"}],"homepage":"https://github.com/aidpproject/aidpcoin-history-list#readme","bugs":{"url":"https://github.com/aidpproject/aidpcoin-history-list/issues"},"dist":{"shasum":"c8b4e871112f20f5b608ed63d4709719b7aa6b5a","tarball":"https://registry.npmjs.org/@aidpproject/aidpcoin-history-list/-/aidpcoin-history-list-1.2.7.tgz","fileCount":17,"integrity":"sha512-3eil1oLwquA0U0slAafNeDqQS5aX/I6V+R8jNKlpGUKTBeS4pInOjYLkHy/ExMeS9oPqjmbYG+HZ30BITbUF7A==","signatures":[{"sig":"MEQCIAybSmTvpxrNy3tnvidCksnobxJ/HkAjTHFYxNwGoe6XAiAAlzVcqj6trOUawMvgwwZ7sM5OW7qkzL2e/944BSDvew==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46410},"main":"./dist/index.cjs","types":"dist/types.d.ts","module":"./dist/index.mjs","source":"index.ts","exports":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"gitHead":"0ba6e167c856855a82035831a43966dac9b37e08","private":false,"scripts":{"test":"jest test.js","build":"parcel build","watch":"parcel watch"},"_npmUser":{"name":"loloadsl","email":"loloadsl@hotmail.fr"},"repository":{"url":"git+https://github.com/aidpproject/aidpcoin-history-list.git","type":"git"},"_npmVersion":"10.2.4","description":"A human understandable list of in or outgoing transactions","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"devDependencies":{"jest":"29.4.1","parcel":"^2.9.3","typescript":"^4.9.4","@parcel/packager-ts":"^2.8.3","@parcel/transformer-typescript-types":"^2.8.3"},"_npmOperationalInternal":{"tmp":"tmp/aidpcoin-history-list_1.2.7_1710102022738_0.9339546361324444","host":"s3://npm-registry-packages"}},"1.2.8":{"name":"@aidpproject/aidpcoin-history-list","version":"1.2.8","keywords":["Aidpcoin"],"author":{"name":"Raven Rebels / Dick Henrik Larsson"},"license":"MIT","_id":"@aidpproject/aidpcoin-history-list@1.2.8","maintainers":[{"name":"loloadsl","email":"loloadsl@hotmail.fr"}],"homepage":"https://github.com/aidpproject/aidpcoin-history-list#readme","bugs":{"url":"https://github.com/aidpproject/aidpcoin-history-list/issues"},"dist":{"shasum":"9efaf6a0175586d37a1ad66227735664d1ac928e","tarball":"https://registry.npmjs.org/@aidpproject/aidpcoin-history-list/-/aidpcoin-history-list-1.2.8.tgz","fileCount":17,"integrity":"sha512-NUlquOrZCHI56mbCTsXnml5w2T3PVmGMQzCBL05ra16D1TyIXSmIpizLSbwHG6RawsswiZLnxe607hjdJqQlJw==","signatures":[{"sig":"MEUCICBp/j0iX0ueB/pLSnBQuTiZ9j64E55KSzw8IJJDdb74AiEA4+vLma7SsFGy7NI3ZDXU/04pdf1srK6bPTesLEVnfxc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46330},"main":"./dist/index.cjs","types":"dist/types.d.ts","module":"./dist/index.mjs","source":"index.ts","exports":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"gitHead":"27a564ac979fcabc36cbe8716700816d13ebda32","scripts":{"test":"jest test.js","build":"parcel build","watch":"parcel watch"},"_npmUser":{"name":"loloadsl","email":"loloadsl@hotmail.fr"},"repository":{"url":"git+https://github.com/aidpproject/aidpcoin-history-list.git","type":"git"},"_npmVersion":"10.7.0","description":"A human understandable list of in or outgoing transactions","directories":{},"_nodeVersion":"18.20.4","_hasShrinkwrap":false,"devDependencies":{"jest":"29.4.1","parcel":"^2.9.3","typescript":"^4.9.4","@parcel/packager-ts":"^2.8.3","@parcel/transformer-typescript-types":"^2.8.3"},"_npmOperationalInternal":{"tmp":"tmp/aidpcoin-history-list_1.2.8_1726327668403_0.035642034737117356","host":"s3://npm-registry-packages"}},"1.2.9":{"name":"@aidpproject/aidpcoin-history-list","version":"1.2.9","description":"A human understandable list of in or outgoing transactions","source":"index.ts","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"dist/types.d.ts","exports":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"scripts":{"build":"parcel build","watch":"parcel watch","test":"jest test.js"},"repository":{"type":"git","url":"git+https://github.com/aidpproject/aidpcoin-history-list.git"},"keywords":["Ravencoin"],"author":{"name":"Raven Rebels / Dick Henrik Larsson"},"license":"MIT","bugs":{"url":"https://github.com/aidpproject/aidpcoin-history-list/issues"},"devDependencies":{"@parcel/packager-ts":"^2.8.3","@parcel/transformer-typescript-types":"^2.8.3","jest":"29.4.1","parcel":"^2.9.3","typescript":"^4.9.4"},"homepage":"https://github.com/aidpproject/aidpcoin-history-list#readme","_id":"@aidpproject/aidpcoin-history-list@1.2.9","gitHead":"58c31cef8c749af75c3a9c1fcf441e796f35f260","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-si2AG8RdHzumF4RmNYMA3zRXhGRlea9PfZdK6lXcWkPpYhU5xs63JgeUngupm2Zo7DLqh6wL4AF2wOzAe/FWsA==","shasum":"be639a62e37ceb3263b7488f0d18bc34aa3fc065","tarball":"https://registry.npmjs.org/@aidpproject/aidpcoin-history-list/-/aidpcoin-history-list-1.2.9.tgz","fileCount":17,"unpackedSize":46388,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHUh4NnqdIucznuRBAusF8N8pSfNP+B/wke6AL/HVOR3AiBBiFw8KhgG7SDLLbJzDohCUQWMi6f+xsiXb19MqtJrbg=="}]},"_npmUser":{"name":"loloadsl","email":"loloadsl@hotmail.fr"},"directories":{},"maintainers":[{"name":"loloadsl","email":"loloadsl@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aidpcoin-history-list_1.2.9_1726405191665_0.46425537234109293"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-09T01:51:26.648Z","modified":"2024-09-15T12:59:52.070Z","1.2.4":"2024-03-09T01:51:26.942Z","1.2.5":"2024-03-09T14:14:00.841Z","1.2.6":"2024-03-10T01:42:09.272Z","1.2.7":"2024-03-10T20:20:22.904Z","1.2.8":"2024-09-14T15:27:48.617Z","1.2.9":"2024-09-15T12:59:51.858Z"},"bugs":{"url":"https://github.com/aidpproject/aidpcoin-history-list/issues"},"author":{"name":"Raven Rebels / Dick Henrik Larsson"},"license":"MIT","homepage":"https://github.com/aidpproject/aidpcoin-history-list#readme","keywords":["Ravencoin"],"repository":{"type":"git","url":"git+https://github.com/aidpproject/aidpcoin-history-list.git"},"description":"A human understandable list of in or outgoing transactions","maintainers":[{"name":"loloadsl","email":"loloadsl@hotmail.fr"}],"readme":"# aidpcoin-history-list\n\nA human understandable list of in or outgoing transactions\n\n## What do we mean by human understandable?\n\nExample.\nAlice transfer one LEMONADE token to Bob.\nNow Alice expects her history to show that she sent one LEMONADE token to Bob.\n\nTechnically, a transaction has been broadcasted on the network.\nThat transaction typically contains\n\n- One or more unspent transaction outputs (UTXOs) to cover the miner fee, Alice needs to pay some AIDP to send an asset.\n- One or more UTXOs for the LEMONADE transfer, like input 20 LEMONADE, output one to BOB and 19 back to a change address.\n\n## Install\n\n`npm install @aidpproject/aidpcoin-history-list`\n\n## How to use\n\nAs a developer, you have to ask a Aidpcoin node for the address deltas (getaddressdelta).\nThe address deltas represents everything that has come in and out from your addresses.\n\n`  import {getHistory } from \"@aidpproject/aidpcoin-history-list\";`\n\nOK so you invoke the method getHistory with deltas as argument.\n`const history = getHistory(deltas);`\n`history` is a list.\nEach item in the list represents a transaction in or out of the wallet (list of addresses).\nAn item in the history list has an `assets` property.\n`assets`is a list with objects of type {assetName, value, satoshis}\nFor example\n\n```\n\"assets\": [\n      { \"assetName\": \"LEMONADE\", \"satoshis\": 1000000000, \"value\": 10 }\n    ]\n```\n\n### Example user received 5 AIDP\n\n```\n {\n    \"isSent\": false,\n    \"fee\": 0,\n    \"assets\": [{ \"assetName\": \"AIDP\", \"satoshis\": 500000000, \"value\": 5 }],\n    \"blockHeight\": 914584,\n    \"transactionId\": \"4729236e883325878665a3d5bb989de3a65341f3c6d7a43b4ce58522773f2548\"\n  }\n```\n\n### Example user sent 1 LEMONADE token\n\n```\n {\n  \"assets\": [\n    { \"assetName\": \"LEMONADE\", \"satoshis\": -100000000, \"value\": -1 }\n  ],\n  \"blockHeight\": 914603,\n  \"transactionId\": \"1c776b263ad75d46f25d19b5330882fad020a46e220799877b982ff2c259a3be\",\n  \"isSent\": true,\n  \"fee\": 0\n}\n```\n\nUnfortunately, it looks like the user intentionally sent 0.01 AIDP, that is not true, that was the transaction fee.\nThis will be fixed in a later version\n\n## Example how to use\n\nCheckout example.js\n\n```\nconst { getHistory } = require(\"../aidpcoin-history-list\"); //Replace with  @aidpproject/aidpcoin-history-list\nconst aliceDeltas = require(\"./example/alice_deltas_after_sending.json\");\n\nconst history = getHistory(aliceDeltas);\nconst stuff = [];\nfor (let item of history) {\n  item.assets.map((asset) => {\n    asset.transactionId = item.transactionId.substring(0, 10) + \"..\";\n    stuff.push(asset);\n  });\n}\nconsole.table(stuff);\n\n```\n\n![image](https://user-images.githubusercontent.com/9694984/215324239-95632d7f-447b-424d-8cbf-c16cf2533b49.png)\n","readmeFilename":"README.md"}