{"_id":"@atgraphite/web3-plugin","_rev":"7-cab431241355c1e9428e7147cf4bf324","name":"@atgraphite/web3-plugin","dist-tags":{"latest":"1.1.1"},"versions":{"1.1.0":{"name":"@atgraphite/web3-plugin","version":"1.1.0","keywords":["graphite","crypto","wallet","web"],"author":"","license":"MIT","_id":"@atgraphite/web3-plugin@1.1.0","maintainers":[{"name":"at_graphite","email":"support@atgraphite.com"}],"dist":{"shasum":"0bf9fa8e18af8cb6bc2a5f37a9ecec52784e59b1","tarball":"https://registry.npmjs.org/@atgraphite/web3-plugin/-/web3-plugin-1.1.0.tgz","fileCount":89,"integrity":"sha512-FqQsivO/VzfyUYeeK2Cz1g8DEVBfUWszYMNA+Ccz0eCARgIHmg4d0oxdh7X8i4gV0Ta3zn5s9I0mwxuqVtRfkg==","signatures":[{"sig":"MEQCIFcu5UQ+JG9eEf9S81N0sikH3dPA+PTZ/HGsXv42B8XKAiBV7yNEWYs2fLIDZTGXHgM6Y5K+EfASsk0RQ2AWbGkxWQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":130465},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"2bcd11a82e1569aa2c2897492df07ef53feb710f","scripts":{"test":"jest --updateSnapshot","build":"tsc --build ./tsconfig.json","prepare":"npm run build"},"_npmUser":{"name":"at_graphite","email":"support@atgraphite.com"},"_npmVersion":"10.8.2","description":"A plugin for working with the Graphite transactions.","directories":{},"_nodeVersion":"18.20.5","dependencies":{"web3":"^4.16.0","crypto-js":"^4.2.0","@ethereumjs/rlp":"^5.0.2","@types/crypto-js":"^4.2.2","web3-eth-accounts":"^4.3.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/web3-plugin_1.1.0_1733843624510_0.01347359627354372","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@atgraphite/web3-plugin","version":"1.1.1","description":"A plugin for working with the Graphite transactions.","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc --build ./tsconfig.json","prepare":"npm run build","test":"jest --updateSnapshot"},"keywords":["graphite","crypto","wallet","web"],"author":"","license":"MIT","dependencies":{"web3":"^4.16.0","web3-eth-accounts":"^4.3.1","@ethereumjs/rlp":"^5.0.2","crypto-js":"^4.2.0","@types/crypto-js":"^4.2.2"},"_id":"@atgraphite/web3-plugin@1.1.1","gitHead":"212f19912499ab18adaac933e6025d6de1b7fd0a","_nodeVersion":"18.20.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-zhnTxRUvDHlNPIHpEufpqkdmqP+qWlB7RL/lG+EUBkeshT/wMKPXwWAD9nukHrWKcN+OhX5jBYJzcx/kDzKAWg==","shasum":"6801dad5dc6d2340daac874b90c521b446f0ff43","tarball":"https://registry.npmjs.org/@atgraphite/web3-plugin/-/web3-plugin-1.1.1.tgz","fileCount":84,"unpackedSize":126522,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLkolbdQ8YrD0kaVypeeDQTHl1g2GFlbCC4X1DeWWxVwIgFnLS7jfX1xFG+DsEPgryUvaSImEb1ybJ6zOi2IUs0qk="}]},"_npmUser":{"name":"at_graphite","email":"support@atgraphite.com"},"directories":{},"maintainers":[{"name":"at_graphite","email":"support@atgraphite.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/web3-plugin_1.1.1_1734041619878_0.9462580284724844"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-10T15:13:44.428Z","modified":"2024-12-12T22:13:40.270Z","1.0.0":"2024-12-09T21:18:03.649Z","1.0.1":"2024-12-09T21:23:27.336Z","1.0.2":"2024-12-09T21:26:05.502Z","1.0.3":"2024-12-09T21:29:15.369Z","1.1.0":"2024-12-10T15:13:44.666Z","1.1.1":"2024-12-12T22:13:40.076Z"},"license":"MIT","keywords":["graphite","crypto","wallet","web"],"description":"A plugin for working with the Graphite transactions.","maintainers":[{"name":"at_graphite","email":"support@atgraphite.com"}],"readme":"# @atgraphite/web3-plugin\n\nA plugin for working with the Graphite transactions.\n\n## Installation\n\n``` console\nnpm install @atgraphite/web3-plugin\n# or\nyarn add @atgraphite/web3-plugin\n```\n\n## Getting Started\n\nTo use this plugin simply import it, and add register it to your web3 instance.\n\n```js\nimport { GraphitePlugin } from \"@atgraphite/web3-plugin\";\n\nconst NODE_URL = 'node url';\nconst web3 = new Web3(NODE_URL)\nweb3.eth.accounts.wallet.add(privateKey)\nweb3.registerPlugin(new GraphitePlugin(web3))\n```\n\nAnd you're ready to go! \n\nThere are 2 types of nodes, normal and anonymous. Read more about them [here](https://docs.atgraphite.com/)\n\n## First time users\n\nAfter registering the plugin, you need to activate you account:\n\n```js\nawait web3.graphite.activateAccount()\n```\n\nwhich has a fee, more about that [here](https://docs.atgraphite.com/build-on-graphite/system-contracts/account-activation)\n\n\nTo check the fee amount, use:\n```js\nawait web3.graphite.getActivationFeeAmount()\n```\n\n## Interface\n\nThe following functions are accessible via web3.graphite.(*)\n```js\nasync getActivationFeeAmount()\nasync activateAccount()\nasync isActivated(address: string = this.getWalletAddress())\nasync getFilterLevel()\nasync setFilterLevel(newLevel: number)\nasync createKYCRequest(uuid: string, newLevel: number)\nasync getKycLevel(address: string = this.getWalletAddress())\nasync getLastKycRequest()\nasync repairLostKycRequest()\nasync cancelKycRequest()\nasync getKYCFee(level: number)\nasync sendTransaction(txData: TxData)\nasync patchFields(txData: TxData)\nasync getReputation(address: string = this.getWalletAddress())\ngetWalletAddress()\ngetWalletPrivateKey()\ngetWallet()\nasync getEpAddress()\n```\n\n## Dev installation\n\nDownload the `@atgraphite/web3-plugin` repository. Type the following commands into the command prompt:\n\n```console\n$ cd @atgraphite/web3-plugin\n$ npm i\n$ npm run build\n$ npm link \n```\n\nGo to a chosen project and add the @atgraphite/web3-plugin as a local dependency:\n\n```console\n$ cd another-project\n$ npm link '@atgraphite/web3-plugin'\n```","readmeFilename":"README.md"}