{"_id":"@aalu1418/sponsored-erc721","_rev":"1-9d174f5c22c367d2e89d3668fe2e55e9","name":"@aalu1418/sponsored-erc721","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@aalu1418/sponsored-erc721","version":"0.0.1","main":"index.js","license":"MIT","dependencies":{"dotenv":"^8.2.0","js-conflux-sdk":"^1.0.1"},"description":"Wrapped package for interacting with NFTs on Conflux Network","devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/Conflux-Network-Global/sponsored-erc721/tree/main/javascript"},"keywords":["javascript","conflux","nft","blockchain"],"author":"","_id":"@aalu1418/sponsored-erc721@0.0.1","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-APUx8qOBLDMkuzQiaqMAWkMzRMMi0Bp49QEtS0F2Q8Q6gIW3DhpOfMJtIUVgq22gmdxPAuflcwHdSBLBOXeLwA==","shasum":"a1d83a2538dda8d225901d99375ec1ac0f657adf","tarball":"https://registry.npmjs.org/@aalu1418/sponsored-erc721/-/sponsored-erc721-0.0.1.tgz","fileCount":4,"unpackedSize":10699,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqcMNCRA9TVsSAnZWagAAM2AP/RDO9jcsJP8OdYvsQ2Q7\np6S/jQLy4k8PHgjxlClMB+KWk3SvESZUSxh6OxbxleMeMCV5fFodgsMd4pQF\nKBVoZ52JRll54KUV23K1bA19Ajn8wYxWULp89MKZD3BduXXz4EbMSGC7oL5e\nHzt7il8mmuH0AOWHa5C7zM6iQBwPUSf0Pc1TBg4UYo0BmCBrM2Hhgwp6jaX1\n0JYgL/uDMlciZzSSaB5v3PYTsvyKaojc7RQXxLwxeB1ugPaAh0NmqZRENcq+\nREz84egX7AE211Vmekg9/6SSYtHvNPjqTUkxY2akZvcTEzarV0Jxt9FThS++\nO4l6RUx5eediGYQEGwBPD+5YTwwmGcxM4c/YcFae+xFEsKv06j1QQxBGHEJw\ny9Yt0WxKG6Hpt9FFFtfk5YxRJVvIpgMZx1qybKGhQYBGuBwT0wrIOuPzpnZP\ntPJG03qWQ+STtPj7ADQYgihrrdlQANuFCtdK1b17ZQAvJCgyyAJ8Aqj3P+JP\nirf+Sy5ltJQpKyAlkPYwcI/qCw8gnpnU5S03lOiigSsgvzqrg0vU7qKSne6G\nEOfwysw/VPrqyfMjM2TjQLZWu3xRS7Jj2dc7dM7KjQc8VvaO/5HbO4VvUQ9T\nZQD+HCDSjrDM181NRfwiRzm3EZN0U48KXndnUX39rS70gCwGDwvkaLT11Iw7\nbC1b\r\n=K06f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7PjUkqtCVDJo5+Fg8B9sNveqKKHNECtYcCvceMr8FtwIhAIBq5Iu47zfzqfrjOyXc+1LscQMnhBxiMwSyggxjIarT"}]},"_npmUser":{"name":"aalu1418","email":"aalu1418@gmail.com"},"directories":{},"maintainers":[{"name":"aalu1418","email":"aalu1418@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sponsored-erc721_0.0.1_1604961037445_0.3832071989615533"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-09T22:30:37.412Z","0.0.1":"2020-11-09T22:30:37.567Z","modified":"2022-04-04T10:55:05.394Z"},"maintainers":[{"name":"aalu1418","email":"aalu1418@gmail.com"}],"description":"Wrapped package for interacting with NFTs on Conflux Network","keywords":["javascript","conflux","nft","blockchain"],"repository":{"type":"git","url":"https://github.com/Conflux-Network-Global/sponsored-erc721/tree/main/javascript"},"license":"MIT","readme":"# Sponsored ERC-721\n\nPackage for interacting with sponsored NFTs on Conflux network\n\n## Setup Instructions\n```\nnpm install @aalu1418/sponsored-erc721\n```\n\nFor full functionality make sure to also deploy corresponding contracts described here: https://github.com/Conflux-Network-Global/sponsored-erc721\n\n## Functionality\nRequires a `.env` file in the working directory.\n```\nPRIVATE_KEY=<conflux private key>\n```\n\n### Commands\n\n```javascript\n//initialize connection\n//input: conflux network endpoint, NFT address\n//output: nft object\nconst nft = new NFT(\"http://test.confluxrpc.org\", \"0x8aa092e0660c59eab456efdbd39ae8d158e9a95b\");\n\n//mint NFT to user address\n//input: user address, NFT id\n//output: conflux network transaction hash\nconst tx = await nft.mint(\"0x18e33e342b0f3fFE0b0193950FE9F2e0378a81Ee\", 1);\nconsole.log(\"Mint TX hash:\", tx.transactionHash);\n\n//get NFT assets for specific user address\n//input: address\n//output: array of NFT ids\nconst list = await nft.getAssets(\"0x18e33e342b0f3fFE0b0193950FE9F2e0378a81Ee\")\nconsole.log(\"Assets:\", list);\n```\n","readmeFilename":"README.md"}