{"_id":"@aioha/magi","_rev":"7-acb0a41c7157ac8e72ab54838556eb52","name":"@aioha/magi","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.1":{"name":"@aioha/magi","version":"0.0.1","keywords":["magi","hive"],"author":{"name":"techcoderx"},"license":"MIT","_id":"@aioha/magi@0.0.1","maintainers":[{"name":"techcoderx","email":"npmpkgs@techcoderx.com"}],"homepage":"https://github.com/aioha-hive/magi-js","bugs":{"url":"https://github.com/aioha-hive/magi-js/issues"},"dist":{"shasum":"48bec0e6adf1360e0bcf97aeb4a756e65fa85ae0","tarball":"https://registry.npmjs.org/@aioha/magi/-/magi-0.0.1.tgz","fileCount":118,"integrity":"sha512-X3Tl9cRbb0+frOnHzrK0zDNNcuULyfxrkLH7P8Tmmy2cZk/SbwzLnN98BQMLhYVQMUKL2d1LLsigc8xxAN6fvg==","signatures":[{"sig":"MEYCIQDnfgZSYa9BbzYoRdI1jtn7qGLbWCaCP1sp9HHfj1BQIgIhAOLrr3gEE+8KxwiLRIrKALIXpfSWO6eomsoo2hIhHlcS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":478141},"main":"build/index.js","_from":"file:aioha-magi-0.0.1.tgz","types":"build/index.d.ts","scripts":{"test":"vitest","build":"tsc","clean":"rm -rf dist/* build/*","webpack":"webpack","prepublish":"pnpm run clean && pnpm run build && pnpm run webpack"},"_npmUser":{"name":"techcoderx","email":"npmpkgs@techcoderx.com"},"_resolved":"/private/var/folders/4k/c2bh71lj5yl46624214xzpv40000gn/T/56d531865fd0dee46ddb36e3d5284776/aioha-magi-0.0.1.tgz","_integrity":"sha512-X3Tl9cRbb0+frOnHzrK0zDNNcuULyfxrkLH7P8Tmmy2cZk/SbwzLnN98BQMLhYVQMUKL2d1LLsigc8xxAN6fvg==","repository":{"url":"git+https://github.com/aioha-hive/magi-js.git"},"_npmVersion":"10.9.2","description":"TypeScript library for Magi network","directories":{},"_nodeVersion":"22.15.0","dependencies":{"@ipld/dag-cbor":"^9.2.5","@ipld/dag-json":"^10.2.5","dag-jose-utils":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"viem":"^2.44.1","vitest":"^4.0.16","webpack":"^5.104.1","ts-loader":"^9.5.4","webpack-cli":"^6.0.1","@aioha/aioha":"^1.8.2","webpack-bundle-analyzer":"^5.2.0"},"peerDependencies":{"viem":"2.x","@aioha/aioha":"^1.8.2"},"_npmOperationalInternal":{"tmp":"tmp/magi_0.0.1_1771167485535_0.8196003329406594","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@aioha/magi","version":"0.0.2","keywords":["magi","hive"],"author":{"name":"techcoderx"},"license":"MIT","_id":"@aioha/magi@0.0.2","maintainers":[{"name":"techcoderx","email":"npmpkgs@techcoderx.com"}],"homepage":"https://github.com/aioha-hive/magi-js","bugs":{"url":"https://github.com/aioha-hive/magi-js/issues"},"dist":{"shasum":"5fe12a537a25e09f1dff667acdbe84573582bff0","tarball":"https://registry.npmjs.org/@aioha/magi/-/magi-0.0.2.tgz","fileCount":134,"integrity":"sha512-wr8inJOQ2e4GzAWDZ5R5Eah0Qwiot3/2Pb+SIIzFR64b2FsMtrQpz7iJKD5ozLQGwybbswK1osf/n/hw1USwFQ==","signatures":[{"sig":"MEUCIQCHMPVqehYP3x4sqRiSWrqmVIsGeAGk0VNpMrOFAn8j6QIgHWHrDp56hKYK+FNt4lrpwfRC7DS7w/ZHYaIoXgOTW84=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":465855},"main":"build/index.js","_from":"file:aioha-magi-0.0.2.tgz","types":"build/index.d.ts","scripts":{"test":"vitest","build":"tsc","clean":"rm -rf dist/* build/*","webpack":"webpack","prepublish":"pnpm run clean && pnpm run build && pnpm run webpack"},"_npmUser":{"name":"techcoderx","email":"npmpkgs@techcoderx.com"},"_resolved":"/private/var/folders/4k/c2bh71lj5yl46624214xzpv40000gn/T/9dbc28371701a7742dc5bce528e7a316/aioha-magi-0.0.2.tgz","_integrity":"sha512-wr8inJOQ2e4GzAWDZ5R5Eah0Qwiot3/2Pb+SIIzFR64b2FsMtrQpz7iJKD5ozLQGwybbswK1osf/n/hw1USwFQ==","repository":{"url":"git+https://github.com/aioha-hive/magi-js.git"},"_npmVersion":"10.9.2","description":"TypeScript library for Magi network","directories":{},"_nodeVersion":"22.15.0","dependencies":{"multiformats":"^13.4.2"},"_hasShrinkwrap":false,"devDependencies":{"viem":"^2.44.1","vitest":"^4.0.16","webpack":"^5.104.1","ts-loader":"^9.5.4","webpack-cli":"^6.0.1","@aioha/aioha":"^1.8.2","webpack-bundle-analyzer":"^5.2.0"},"peerDependencies":{"viem":"2.x","@aioha/aioha":"^1.8.2"},"_npmOperationalInternal":{"tmp":"tmp/magi_0.0.2_1772984644075_0.22070012125782235","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@aioha/magi","version":"0.0.3","keywords":["magi","hive"],"author":{"name":"techcoderx"},"license":"MIT","_id":"@aioha/magi@0.0.3","maintainers":[{"name":"techcoderx","email":"npmpkgs@techcoderx.com"}],"homepage":"https://github.com/aioha-hive/magi-js","bugs":{"url":"https://github.com/aioha-hive/magi-js/issues"},"dist":{"shasum":"915e5deaae77bc6059b7a22533ec7caa0833749c","tarball":"https://registry.npmjs.org/@aioha/magi/-/magi-0.0.3.tgz","fileCount":134,"integrity":"sha512-+OW0gj5H6QvqXjEU1K+0i2jGP0A4plX8J0aIK6JXa7SECNLe27KV3CcbE8o0qhoySVQ2yBgUr4lJPN0c8cC0Pw==","signatures":[{"sig":"MEQCIBfftNZbpIB3TtBP+ZZI2xq3gTbZYrJOHonVMJyso0iCAiBFkEMhA2ypYT06f/wL2Vw8vD2tf1Mhyi7GLVtuG4U45Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":465887},"main":"build/index.js","_from":"file:aioha-magi-0.0.3.tgz","types":"build/index.d.ts","scripts":{"test":"vitest","build":"tsc","clean":"rm -rf dist/* build/*","webpack":"webpack","prepublish":"pnpm run clean && pnpm run build && pnpm run webpack"},"_npmUser":{"name":"techcoderx","email":"npmpkgs@techcoderx.com"},"_resolved":"/private/var/folders/4k/c2bh71lj5yl46624214xzpv40000gn/T/30025a181c87dc601ae5af4c0e4ece5b/aioha-magi-0.0.3.tgz","_integrity":"sha512-+OW0gj5H6QvqXjEU1K+0i2jGP0A4plX8J0aIK6JXa7SECNLe27KV3CcbE8o0qhoySVQ2yBgUr4lJPN0c8cC0Pw==","repository":{"url":"git+https://github.com/aioha-hive/magi-js.git"},"_npmVersion":"10.9.2","description":"TypeScript library for Magi network","directories":{},"_nodeVersion":"22.15.0","dependencies":{"multiformats":"^13.4.2"},"_hasShrinkwrap":false,"devDependencies":{"viem":"^2.47.6","vitest":"^4.0.16","webpack":"^5.104.1","ts-loader":"^9.5.4","webpack-cli":"^6.0.1","@aioha/aioha":"^1.8.2","webpack-bundle-analyzer":"^5.2.0"},"peerDependencies":{"viem":"2.x","@aioha/aioha":"^1.8.2"},"_npmOperationalInternal":{"tmp":"tmp/magi_0.0.3_1774253828593_0.6896830498888946","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@aioha/magi","version":"0.0.4","keywords":["magi","hive"],"author":{"name":"techcoderx"},"license":"MIT","_id":"@aioha/magi@0.0.4","maintainers":[{"name":"techcoderx","email":"npmpkgs@techcoderx.com"}],"homepage":"https://github.com/aioha-hive/magi-js","bugs":{"url":"https://github.com/aioha-hive/magi-js/issues"},"dist":{"shasum":"8805161ecbb6fb03c83e34eb8367d8d9cce92f4b","tarball":"https://registry.npmjs.org/@aioha/magi/-/magi-0.0.4.tgz","fileCount":134,"integrity":"sha512-Fu85yBmRUvl6llIN2M51B7gBAR3YA8vd7oxbPeEw09SlrinXLkHzIvh5G1a/tKjv5muCib/ggUhjf11tWbCUnA==","signatures":[{"sig":"MEUCIBFOiZH6P4dS471/6EhBMbQwT7PNsgIvgFjcpXpOfuPLAiEAufXbBIvXWhpEc1XNwp26pCunBZEnstQhjx6Ol00eTLA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":467580},"main":"build/index.js","_from":"file:aioha-magi-0.0.4.tgz","types":"build/index.d.ts","scripts":{"test":"vitest","build":"tsc","clean":"rm -rf dist/* build/*","webpack":"webpack","prepublish":"pnpm run clean && pnpm run build && pnpm run webpack"},"_npmUser":{"name":"techcoderx","email":"npmpkgs@techcoderx.com"},"_resolved":"/private/var/folders/4k/c2bh71lj5yl46624214xzpv40000gn/T/70031fb2b8d3949267ab058df62c33da/aioha-magi-0.0.4.tgz","_integrity":"sha512-Fu85yBmRUvl6llIN2M51B7gBAR3YA8vd7oxbPeEw09SlrinXLkHzIvh5G1a/tKjv5muCib/ggUhjf11tWbCUnA==","repository":{"url":"git+https://github.com/aioha-hive/magi-js.git"},"_npmVersion":"10.9.2","description":"TypeScript library for Magi network","directories":{},"_nodeVersion":"22.15.0","dependencies":{"multiformats":"^13.4.2"},"_hasShrinkwrap":false,"devDependencies":{"viem":"^2.47.6","vitest":"^4.0.16","webpack":"^5.104.1","ts-loader":"^9.5.4","webpack-cli":"^6.0.1","@aioha/aioha":"^1.8.2","webpack-bundle-analyzer":"^5.2.0"},"peerDependencies":{"viem":"2.x","@aioha/aioha":"^1.8.2"},"_npmOperationalInternal":{"tmp":"tmp/magi_0.0.4_1775894624662_0.8551130512823764","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@aioha/magi","version":"0.0.5","keywords":["magi","hive"],"author":{"name":"techcoderx"},"license":"MIT","_id":"@aioha/magi@0.0.5","maintainers":[{"name":"techcoderx","email":"npmpkgs@techcoderx.com"}],"homepage":"https://github.com/aioha-hive/magi-js","bugs":{"url":"https://github.com/aioha-hive/magi-js/issues"},"dist":{"shasum":"d8b98ad44aa46205796f8eb4f672242bb099871a","tarball":"https://registry.npmjs.org/@aioha/magi/-/magi-0.0.5.tgz","fileCount":138,"integrity":"sha512-EGpw3+hSMpZ02U5vjNNe9u4XbUPf+LE0s3nx1uN/z+sWDYq/I96afBYUV5jxRrLhfBj1rKk5JPTMMX/g4POmQg==","signatures":[{"sig":"MEUCIFhVdqUKt/1nu02GlOAQY50RoBcBrT0XSqJCVI4FgzA5AiEAyfHXFNx8k0Ns+Vr96eiJBZt3IZsyrKVUfnFw0zy47FY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":478761},"main":"build/index.js","_from":"file:aioha-magi-0.0.5.tgz","types":"build/index.d.ts","scripts":{"test":"vitest","build":"tsc","clean":"rm -rf dist/* build/*","webpack":"webpack","prepublish":"pnpm run clean && pnpm run build && pnpm run webpack"},"_npmUser":{"name":"techcoderx","email":"npmpkgs@techcoderx.com"},"_resolved":"/private/var/folders/4k/c2bh71lj5yl46624214xzpv40000gn/T/7a6ac36c507eb45b064e5b8bf3b1d564/aioha-magi-0.0.5.tgz","_integrity":"sha512-EGpw3+hSMpZ02U5vjNNe9u4XbUPf+LE0s3nx1uN/z+sWDYq/I96afBYUV5jxRrLhfBj1rKk5JPTMMX/g4POmQg==","repository":{"url":"git+https://github.com/aioha-hive/magi-js.git"},"_npmVersion":"10.9.2","description":"TypeScript library for Magi network","directories":{},"_nodeVersion":"22.15.0","dependencies":{"multiformats":"^13.4.2"},"_hasShrinkwrap":false,"devDependencies":{"viem":"^2.47.6","vitest":"^4.0.16","webpack":"^5.104.1","ts-loader":"^9.5.4","webpack-cli":"^6.0.1","@aioha/aioha":"^1.8.2","webpack-bundle-analyzer":"^5.2.0"},"peerDependencies":{"viem":"2.x","@aioha/aioha":"^1.8.2"},"_npmOperationalInternal":{"tmp":"tmp/magi_0.0.5_1776410749405_0.6736890001219074","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@aioha/magi","version":"0.0.6","keywords":["magi","hive"],"author":{"name":"techcoderx"},"license":"MIT","_id":"@aioha/magi@0.0.6","maintainers":[{"name":"techcoderx","email":"npmpkgs@techcoderx.com"}],"homepage":"https://github.com/aioha-hive/magi-js","bugs":{"url":"https://github.com/aioha-hive/magi-js/issues"},"dist":{"shasum":"9e25da798200052c946ecd02540e9cb5e1f8fc0b","tarball":"https://registry.npmjs.org/@aioha/magi/-/magi-0.0.6.tgz","fileCount":142,"integrity":"sha512-g4X59jyaXSpw4+BL/ZkjM2/L/AwcMLc0g7R5FiQT7V+U5PqQICUOnkoJExVKNn8GM+7/VUpZ2gWoDWQecLhbkg==","signatures":[{"sig":"MEYCIQCGNW00M8gSkud9iI2CiW1vPhPBA8e5WSgUeCHI3jAsRAIhAKjEH+2GmrTGQAtWz0S6YPC1z1ZykNVGjfDzzn/1s5QG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":487643},"main":"build/index.js","_from":"file:aioha-magi-0.0.6.tgz","types":"build/index.d.ts","scripts":{"test":"vitest","build":"tsc","clean":"rm -rf dist/* build/*","webpack":"webpack","prepublish":"pnpm run clean && pnpm run build && pnpm run webpack"},"_npmUser":{"name":"techcoderx","email":"npmpkgs@techcoderx.com"},"_resolved":"/private/var/folders/4k/c2bh71lj5yl46624214xzpv40000gn/T/8e2eebde97419c0d87b148e86a7f6123/aioha-magi-0.0.6.tgz","_integrity":"sha512-g4X59jyaXSpw4+BL/ZkjM2/L/AwcMLc0g7R5FiQT7V+U5PqQICUOnkoJExVKNn8GM+7/VUpZ2gWoDWQecLhbkg==","repository":{"url":"git+https://github.com/aioha-hive/magi-js.git"},"_npmVersion":"10.9.2","description":"TypeScript library for Magi network","directories":{},"_nodeVersion":"22.15.0","dependencies":{"multiformats":"^13.4.2"},"_hasShrinkwrap":false,"devDependencies":{"viem":"^2.47.6","vitest":"^4.0.16","webpack":"^5.104.1","ts-loader":"^9.5.4","webpack-cli":"^6.0.1","@aioha/aioha":"^1.8.2","webpack-bundle-analyzer":"^5.2.0"},"peerDependencies":{"viem":"2.x","@aioha/aioha":"^1.8.2"},"_npmOperationalInternal":{"tmp":"tmp/magi_0.0.6_1776520409384_0.40559700834295764","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@aioha/magi","version":"0.0.7","description":"TypeScript library for Magi network","main":"build/index.js","types":"build/index.d.ts","keywords":["magi","hive"],"author":{"name":"techcoderx"},"license":"MIT","homepage":"https://github.com/aioha-hive/magi-js","repository":{"url":"git+https://github.com/aioha-hive/magi-js.git"},"bugs":{"url":"https://github.com/aioha-hive/magi-js/issues"},"dependencies":{"multiformats":"^13.4.2"},"devDependencies":{"@aioha/aioha":"^1.8.2","ts-loader":"^9.5.4","viem":"^2.47.6","vitest":"^4.0.16","webpack":"^5.104.1","webpack-bundle-analyzer":"^5.2.0","webpack-cli":"^6.0.1"},"peerDependencies":{"@aioha/aioha":"^1.8.2","viem":"2.x"},"scripts":{"build":"tsc","webpack":"webpack","clean":"rm -rf dist/* build/*","prepublish":"pnpm run clean && pnpm run build && pnpm run webpack","test":"vitest"},"_id":"@aioha/magi@0.0.7","_integrity":"sha512-NOh5oyWsFokYTqGh1tJnEd6xQg+RT0N46pSGwmXNOxAwQRLv2oENEXzFvjLB65q49ov5LL+FSqyUHsMcrrgI9w==","_resolved":"/private/var/folders/4k/c2bh71lj5yl46624214xzpv40000gn/T/f4b445c8940661b82d118be879f1c093/aioha-magi-0.0.7.tgz","_from":"file:aioha-magi-0.0.7.tgz","_nodeVersion":"22.15.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-NOh5oyWsFokYTqGh1tJnEd6xQg+RT0N46pSGwmXNOxAwQRLv2oENEXzFvjLB65q49ov5LL+FSqyUHsMcrrgI9w==","shasum":"13b895c9ff2670c4811de01229ebed70ea194079","tarball":"https://registry.npmjs.org/@aioha/magi/-/magi-0.0.7.tgz","fileCount":142,"unpackedSize":488136,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDhKrDMGOIROn0wT3GaP1UNqoSFSrubrkkgtsAXxUaJCgIhAM41sU1l4YK+sWPNoAfyYdttcM+Znnsm8+ec2zKNRIvP"}]},"_npmUser":{"name":"techcoderx","email":"npmpkgs@techcoderx.com"},"directories":{},"maintainers":[{"name":"techcoderx","email":"npmpkgs@techcoderx.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/magi_0.0.7_1776521658498_0.5317761095780567"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-15T14:58:05.438Z","modified":"2026-04-18T14:14:18.767Z","0.0.1":"2026-02-15T14:58:05.699Z","0.0.2":"2026-03-08T15:44:04.259Z","0.0.3":"2026-03-23T08:17:08.784Z","0.0.4":"2026-04-11T08:03:44.832Z","0.0.5":"2026-04-17T07:25:49.582Z","0.0.6":"2026-04-18T13:53:29.524Z","0.0.7":"2026-04-18T14:14:18.633Z"},"bugs":{"url":"https://github.com/aioha-hive/magi-js/issues"},"author":{"name":"techcoderx"},"license":"MIT","homepage":"https://github.com/aioha-hive/magi-js","keywords":["magi","hive"],"repository":{"url":"git+https://github.com/aioha-hive/magi-js.git"},"description":"TypeScript library for Magi network","maintainers":[{"name":"techcoderx","email":"npmpkgs@techcoderx.com"}],"readme":"# Magi JS\n\nJavaScript library for interacting with the [Magi network](https://magi.eco).\n\n## Supported Wallet Types\n\n* Hive (through [Aioha](https://aioha.dev))\n* Ethereum (through [Viem](https://viem.sh))\n\n## Installation\n\n```sh\npnpm i @aioha/magi @aioha/aioha viem\n```\n\n## Usage Example\n\n```js\nimport { Magi, Wallet, Asset } from '@aioha/magi'\nimport { createWalletClient, http } from 'viem'\nimport { initAioha } from '@aioha/aioha'\n\nconst magi = new Magi()\n\n// Set options\nmagi.setApi('https://magi-test.techcoderx.com/api/v1/graphql', [])\nmagi.setNetId('vsc-testnet')\n\n// Ethereum wallet\nconst viemClient = createWalletClient({\n  account: '0x2540009A1027e5c6aa0274db4fEF2622aC2B200C',\n  transport: http('http://127.0.0.1:1248')\n})\nmagi.setViem(viemClient)\n\n// Hive wallet\nconst aioha = initAioha()\nmagi.setAioha(aioha)\n\n// Set wallet type to use\nmagi.setWallet(Wallet.Ethereum)\n\n// Transfer 1 HBD\nconst xfer = await magi.transfer('did:pkh:eip155:1:0xrecipient', 1, Asset.hbd, '')\n\n// Call contract\nconst dumpEnv = await magi.call('vsc1contractid', 'method', 'payload', 200, [])\n\n// Sign and broadcast multi-op transaction\nconst call = await magi.signAndBroadcastTx([\n  {\n    type: 'call',\n    payload: {\n      contract_id: 'vsc1BX9RbKJYAqSSZZzrGeBWyBZkG3ojTVPRoo',\n      action: 'dumpEnv',\n      payload: '',\n      rc_limit: 300,\n      intents: []\n    }\n  }\n])\n```\n\n## Build\n\n```sh\npnpm run prepublish\n```\n","readmeFilename":"README.md"}