{"_id":"@alexwg2015/tronlistener","_rev":"4-1dc3078c61a9d04e003a6555078a10f2","name":"@alexwg2015/tronlistener","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@alexwg2015/tronlistener","version":"1.0.0","description":"A Trc20 Listener for Tron Chain.","main":"dist/index.js","scripts":{"build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/Alex-Wong-HK/tron-listener.git"},"keywords":["Tron","Web3","BlockChain","Listener"],"author":{"name":"Alex-Wong-HK"},"license":"ISC","bugs":{"url":"https://github.com/Alex-Wong-HK/tron-listener/issues"},"dependencies":{"axios":"^1.6.7","tronweb":"^4.0.1"},"devDependencies":{"@types/lodash":"^4.14.202","@types/node":"^20.11.23","typescript":"^5.3.3","@tsconfig/recommended":"^1.0.1"},"homepage":"https://github.com/Alex-Wong-HK/tron-listener#readme","types":"./dist/index.d.ts","_id":"@alexwg2015/tronlistener@1.0.0","_nodeVersion":"20.1.0","_npmVersion":"9.6.4","dist":{"integrity":"sha512-nicvGMQDnwCtTcxjaLTYtcb+cg2HmK0SGriI2D4grlqG7UgU/rMfVEeloorzfMAiBaeSB5fz9lMbd4srsIwvEQ==","shasum":"b68837ca4938ee0aff059282a069a24af6ce3e7c","tarball":"https://registry.npmjs.org/@alexwg2015/tronlistener/-/tronlistener-1.0.0.tgz","fileCount":13,"unpackedSize":8916,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICguEYysk0OrAjZNyF75sFJTg2rcnIUyA1QpCFMHg4QQAiAb5op4S0iXAhbgnmsA2lHTmX00NEl08BJ64vpHasuzTA=="}]},"_npmUser":{"name":"alexwg2015","email":"alexwg2015@gmail.com"},"directories":{},"maintainers":[{"name":"alexwg2015","email":"alexwg2015@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tronlistener_1.0.0_1709524979977_0.1606010636323485"},"_hasShrinkwrap":false},"1.0.1":{"name":"@alexwg2015/tronlistener","version":"1.0.1","description":"A Trc20 Listener for Tron Chain.","main":"dist/index.js","scripts":{"build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/Alex-Wong-HK/tron-listener.git"},"keywords":["Tron","Web3","BlockChain","Listener"],"author":{"name":"Alex-Wong-HK"},"license":"ISC","bugs":{"url":"https://github.com/Alex-Wong-HK/tron-listener/issues"},"dependencies":{"axios":"^1.6.7","tronweb":"^4.0.1"},"devDependencies":{"@types/lodash":"^4.14.202","@types/node":"^20.11.23","typescript":"^5.3.3","@tsconfig/recommended":"^1.0.1"},"homepage":"https://github.com/Alex-Wong-HK/tron-listener#readme","types":"./dist/index.d.ts","gitHead":"d6f5c8a53af3efc72df7756b3caee3a187534fe4","_id":"@alexwg2015/tronlistener@1.0.1","_nodeVersion":"20.1.0","_npmVersion":"9.6.4","dist":{"integrity":"sha512-BsjZ7ekBmfag13/66ZM0ytBY5C5NlLfYspzBAE+RePfhMFT92ll2WxF4WNN9PlnVQ+dM2PqeWo6nM06j3RP0qw==","shasum":"d6ed9ef828ab9fde737aff16b46a8f2f140b7fcd","tarball":"https://registry.npmjs.org/@alexwg2015/tronlistener/-/tronlistener-1.0.1.tgz","fileCount":14,"unpackedSize":9981,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiwiE3kdl4eDONGztBADf269Ag75wzwH2GFI+C2+jhkwIgf7FxSyao3XXJTYEC5fR7CT+wiiaA3AMMMYv1DCJ2Ze8="}]},"_npmUser":{"name":"alexwg2015","email":"alexwg2015@gmail.com"},"directories":{},"maintainers":[{"name":"alexwg2015","email":"alexwg2015@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tronlistener_1.0.1_1709525451900_0.6331356226293157"},"_hasShrinkwrap":false},"1.0.2":{"name":"@alexwg2015/tronlistener","version":"1.0.2","description":"A Trc20 Listener for Tron Chain.","main":"dist/index.js","scripts":{"build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/Alex-Wong-HK/tron-listener.git"},"keywords":["Tron","Web3","BlockChain","Listener"],"author":{"name":"Alex-Wong-HK"},"license":"ISC","bugs":{"url":"https://github.com/Alex-Wong-HK/tron-listener/issues"},"dependencies":{"axios":"^1.6.7","tronweb":"^4.0.1"},"devDependencies":{"@types/lodash":"^4.14.202","@types/node":"^20.11.23","typescript":"^5.3.3","@tsconfig/recommended":"^1.0.1"},"homepage":"https://github.com/Alex-Wong-HK/tron-listener#readme","types":"./dist/index.d.ts","gitHead":"d6f5c8a53af3efc72df7756b3caee3a187534fe4","_id":"@alexwg2015/tronlistener@1.0.2","_nodeVersion":"20.1.0","_npmVersion":"9.6.4","dist":{"integrity":"sha512-F68UHF3+WiOQ0r0Gv316DGUijg/M5JnTNqmO7BQYFXokfTVb7tkdONq7IDSiB2ljolZtcsO7Kk65Y/jvmx3CLg==","shasum":"938e08a976f6c8fe2d7211b2d651564fa0ba3509","tarball":"https://registry.npmjs.org/@alexwg2015/tronlistener/-/tronlistener-1.0.2.tgz","fileCount":14,"unpackedSize":9981,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBjOAe6RQrVUrrTb1cCADSX0vXb/tDVKTLvCgc4V9ybhAiAxmd+ZTLxTQRVuaTGrhfIJurf1nR6BudcVaFYN6L/3tg=="}]},"_npmUser":{"name":"alexwg2015","email":"alexwg2015@gmail.com"},"directories":{},"maintainers":[{"name":"alexwg2015","email":"alexwg2015@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tronlistener_1.0.2_1709525705020_0.8306854844450058"},"_hasShrinkwrap":false},"1.0.3":{"name":"@alexwg2015/tronlistener","version":"1.0.3","description":"A Trc20 Listener for Tron Chain.","main":"dist/index.js","scripts":{"build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/Alex-Wong-HK/tron-listener.git"},"keywords":["Tron","Web3","BlockChain","Listener"],"author":{"name":"Alex-Wong-HK"},"license":"ISC","bugs":{"url":"https://github.com/Alex-Wong-HK/tron-listener/issues"},"dependencies":{"axios":"^1.6.7","tronweb":"^4.0.1"},"devDependencies":{"@types/lodash":"^4.14.202","@types/node":"^20.11.23","typescript":"^5.3.3","@tsconfig/recommended":"^1.0.1"},"homepage":"https://github.com/Alex-Wong-HK/tron-listener#readme","types":"./dist/index.d.ts","gitHead":"213734d3a46be815a32502e6ea3d02e147ffa1ee","_id":"@alexwg2015/tronlistener@1.0.3","_nodeVersion":"20.1.0","_npmVersion":"9.6.4","dist":{"integrity":"sha512-BzxwKYdHXtGBM+sppklJWuZ/w+NJeVjzlVrcWzGMAO19Gu7F+WmeA/kkCUdlwBF9jJBOmuZI3PNPIOVubHYORQ==","shasum":"724ba9e66286a1c2f26edeee3d87ac9dd9969286","tarball":"https://registry.npmjs.org/@alexwg2015/tronlistener/-/tronlistener-1.0.3.tgz","fileCount":15,"unpackedSize":10103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA7/Fyk8es2uhrSwfFoqagNnrYWPjqTKUaIXMg9koIXWAiEAzZTXvzWSo8chtmSe8Q04g/88TlPTxKMXgZtsZ84WPg8="}]},"_npmUser":{"name":"alexwg2015","email":"alexwg2015@gmail.com"},"directories":{},"maintainers":[{"name":"alexwg2015","email":"alexwg2015@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tronlistener_1.0.3_1709826913533_0.2615711330843098"},"_hasShrinkwrap":false},"1.0.4":{"name":"@alexwg2015/tronlistener","version":"1.0.4","description":"A Trc20 Listener for Tron Chain.","main":"dist/index.js","scripts":{"build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/Alex-Wong-HK/tron-listener.git"},"keywords":["Tron","Web3","BlockChain","Listener"],"author":{"name":"Alex-Wong-HK"},"license":"ISC","bugs":{"url":"https://github.com/Alex-Wong-HK/tron-listener/issues"},"dependencies":{"@alexwg2015/bip44-wallet":"^1.0.3","humpback-weboo":"^1.0.10","mp2heel":"^1.0.8","axios":"^1.6.7","tronweb":"^4.0.1"},"devDependencies":{"@tsconfig/recommended":"^1.0.1","@types/lodash":"^4.14.202","@types/node":"^20.11.23","typescript":"^5.3.3"},"homepage":"https://github.com/Alex-Wong-HK/tron-listener#readme","types":"./dist/index.d.ts","gitHead":"c9d614105d5b6e6d4dbcd753dd61a2961ed914a1","_id":"@alexwg2015/tronlistener@1.0.4","_nodeVersion":"18.16.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-T1S/3aHPg+JSbaxbkOn4DrTtnccFxKiJQXMbY6Jf0YSirowpH8dS7Cpjx1FD6XV5OxfEIndHTM00o+003Y2x3g==","shasum":"61daab65f7445ff7efb131a62b9cae1e72ebfd31","tarball":"https://registry.npmjs.org/@alexwg2015/tronlistener/-/tronlistener-1.0.4.tgz","fileCount":14,"unpackedSize":10077,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpVlL97G3XdAcIgRF2HtSZYoNPP7pa+2CyMSpeEtu5RQIhAJFBg9uXJcBl+FFP0j75Bl2UjWro1O56Y2ioiHFt0/o4"}]},"_npmUser":{"name":"alexwg2015","email":"alexwg2015@gmail.com"},"directories":{},"maintainers":[{"name":"alexwg2015","email":"alexwg2015@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tronlistener_1.0.4_1710140369887_0.11048031439637795"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-04T04:02:59.821Z","1.0.0":"2024-03-04T04:03:00.148Z","modified":"2024-03-11T06:59:30.733Z","1.0.1":"2024-03-04T04:10:52.056Z","1.0.2":"2024-03-04T04:15:05.183Z","1.0.3":"2024-03-07T15:55:13.724Z","1.0.4":"2024-03-11T06:59:30.033Z"},"maintainers":[{"name":"alexwg2015","email":"alexwg2015@gmail.com"}],"description":"A Trc20 Listener for Tron Chain.","homepage":"https://github.com/Alex-Wong-HK/tron-listener#readme","keywords":["Tron","Web3","BlockChain","Listener"],"repository":{"type":"git","url":"git+https://github.com/Alex-Wong-HK/tron-listener.git"},"author":{"name":"Alex-Wong-HK"},"bugs":{"url":"https://github.com/Alex-Wong-HK/tron-listener/issues"},"license":"ISC","readme":"### Trc20 Transfer Event Listener \n\nExample Callback\n```\nfunction exampleCallback(data:ICallbackPayload){\n    console.group(\"New event received\");\n    console.log(\"- Event Name:\", data.event);\n    console.log(\"- Transaction:\", data.transaction);\n    console.log(\"- Result:\",`From : ${data.from}, To :${data.to}, value: ${data.value}`);\n    console.groupEnd();\n}\n```\n\nExample Listener\n```\n    const tronWebConfig:ITronWebConfig={\n        fullHost:\"https://api.trongrid.io\",\n        apiKey:\"****b926-****-4253-****-ddd72ace****\",\n        privateKey:'****99d289c29b505189c3ec0b****d2b2b06731f52e4b5b4b9a46ae53******'\n    }\n    const trc20ContractAddress = \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\"; //USDT\n    await trc20TransferListener(trc20ContractAddress, tronWebConfig, exampleCallback)\n```\n\nExample getTransitionByBlockNumber\n```\n    const trc20ContractAddress = \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\"; //USDT\n    const blockNumber = 59520090\n    const event = 'Transfer'\n    await getTransitionByBlockNumber(trc20ContractAddress,blockNumber,event,exampleCallback)\n```\n","readmeFilename":"README.md"}