{"_id":"1dex-js-sdk","_rev":"17-dedea7cb2c594ff66ba4275fbca72358","name":"1dex-js-sdk","dist-tags":{"latest":"1.0.16"},"versions":{"1.0.0":{"name":"1dex-js-sdk","version":"1.0.0","keywords":[],"author":{"name":"1DEX Inc."},"license":"MIT","_id":"1dex-js-sdk@1.0.0","maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"dist":{"shasum":"ec549076f51d8aa81a02e1504b3e4fc3944801c5","tarball":"https://registry.npmjs.org/1dex-js-sdk/-/1dex-js-sdk-1.0.0.tgz","fileCount":7,"integrity":"sha512-rb0imtS2Snuhty5OQqIhy5cb2M8CWnR3CYAZlovajxaNUDcJpCFLpEfMPg5ZpGsuq7onCaIADqwf3HUCpjh3tg==","signatures":[{"sig":"MEUCIQCOPpWz0i6mIn5KVM5MMOygUsHItMQtgqUGOo7CnjFHGAIgHU5Qxbw78ttRjSdgZZkXvImkXtsX1bIgtG/hqOXfPhQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":175970},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"gitHead":"d5a06c5868a518795899624337ee0f09203c269f","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"1dex","email":"cdex008@hotmail.com"},"_npmVersion":"10.9.0","description":"1DEX JavaScript SDK","directories":{},"_nodeVersion":"22.11.0","dependencies":{"axios":"^1.8.3","bignumber.js":"^9.1.2","@wharfkit/antelope":"^1.0.13"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.37.0","typescript":"^5.8.2","rollup-plugin-dts":"^6.2.1","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/1dex-js-sdk_1.0.0_1743844944997_0.2729588016064266","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"1dex-js-sdk","version":"1.0.1","keywords":[],"author":{"name":"1DEX Inc."},"license":"MIT","_id":"1dex-js-sdk@1.0.1","maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"dist":{"shasum":"ece1d4fecad8cbea09c1537cf2760c28f3d3adba","tarball":"https://registry.npmjs.org/1dex-js-sdk/-/1dex-js-sdk-1.0.1.tgz","fileCount":7,"integrity":"sha512-WLigYL3rs8TDnHsz08pF/c4uuFQjecClbBglzbOBByQJ2d9ZXH2HO6qybpE5nda6acMBEewaLGketZ09ObELDg==","signatures":[{"sig":"MEUCIA6X7vGH7VXabjzGtfrxticnTrVtdSv5P+mxnCg0yPLFAiEAndsenfDPEgNPHD7O/9b0QxZ0W+5Duq2wGy6R7JI8JSA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":182036},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"gitHead":"30c79b74734190ff86f776d70a2aebffdee40709","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"1dex","email":"cdex008@hotmail.com"},"_npmVersion":"10.9.0","description":"1DEX JavaScript SDK","directories":{},"_nodeVersion":"22.11.0","dependencies":{"uuid":"^11.1.0","axios":"^1.8.3","bignumber.js":"^9.1.2","@wharfkit/antelope":"^1.0.13"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.37.0","typescript":"^5.8.2","rollup-plugin-dts":"^6.2.1","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/1dex-js-sdk_1.0.1_1743927373298_0.6026085521344986","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"1dex-js-sdk","version":"1.0.2","keywords":[],"author":{"name":"1DEX Inc."},"license":"MIT","_id":"1dex-js-sdk@1.0.2","maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"dist":{"shasum":"fc8d44fd9eed3aadd0afdb093d86cb21c91fcfc0","tarball":"https://registry.npmjs.org/1dex-js-sdk/-/1dex-js-sdk-1.0.2.tgz","fileCount":7,"integrity":"sha512-a7jKFkgpss3gKiprSknCNpeoViF3IxbEtVb2VtxpgwymGfuazhPdc5Eex/q2E4kwpFrsr3ofoZu6Wk5e1VK90g==","signatures":[{"sig":"MEYCIQDGQk2N2R86Y7DfFTmEWoLDrjHf9PEjmLuTYlPVgme2DAIhAIs+FyRiraOuuobsa9uqbAFV8dR35kz8mL6KpzERJxJB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":182326},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"gitHead":"f9dfcf51f7b9f5c073d02b823907b6e8c68840f7","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"1dex","email":"cdex008@hotmail.com"},"_npmVersion":"10.9.0","description":"1DEX JavaScript SDK","directories":{},"_nodeVersion":"22.11.0","dependencies":{"uuid":"^11.1.0","axios":"^1.8.3","bignumber.js":"^9.1.2","@wharfkit/antelope":"^1.0.13"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.37.0","typescript":"^5.8.2","rollup-plugin-dts":"^6.2.1","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/1dex-js-sdk_1.0.2_1743939906216_0.926060608609893","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"1dex-js-sdk","version":"1.0.3","keywords":[],"author":{"name":"1DEX Inc."},"license":"MIT","_id":"1dex-js-sdk@1.0.3","maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"dist":{"shasum":"60f930d3077bd2d73562e626391d102953337da8","tarball":"https://registry.npmjs.org/1dex-js-sdk/-/1dex-js-sdk-1.0.3.tgz","fileCount":7,"integrity":"sha512-ndYy6wQfYZ/JN6BB4lTP1qez9S+SlwQEOLvDKWCbCgLRo4ebicrPx+6fwVsJ3vgckOfEtrfwJXnwQYM+wgEZxQ==","signatures":[{"sig":"MEQCIQCV+ohctQ2m4PzInhSOUamgc/q/Wpk3vkZkHohXBIt4FwIfa90DVa1wCWe7uaqwFMGn60k8DsVM04rjD2oYHAF9Gg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":182330},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"gitHead":"d6892a606ab50f6e0eafb1ddfb354da29b3da75e","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"1dex","email":"cdex008@hotmail.com"},"_npmVersion":"10.9.0","description":"1DEX JavaScript SDK","directories":{},"_nodeVersion":"22.11.0","dependencies":{"uuid":"^11.1.0","axios":"^1.8.3","bignumber.js":"^9.1.2","@wharfkit/antelope":"^1.0.13"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.37.0","typescript":"^5.8.2","rollup-plugin-dts":"^6.2.1","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/1dex-js-sdk_1.0.3_1743951502821_0.8169256760087922","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"1dex-js-sdk","version":"1.0.4","keywords":[],"author":{"name":"1DEX Inc."},"license":"MIT","_id":"1dex-js-sdk@1.0.4","maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"dist":{"shasum":"4e75bbd7e2eb7e5bcc633891a93230b8d4a67f4f","tarball":"https://registry.npmjs.org/1dex-js-sdk/-/1dex-js-sdk-1.0.4.tgz","fileCount":7,"integrity":"sha512-dAWVZQDdDZ3VN2lzQ5OATlGtC6bz6E3xDtpssJAr67zI+yXfCapSaUuS+diSPnv+fUpj0WXmqemGg/VjDP6/dw==","signatures":[{"sig":"MEUCIAWyIXeRUy9ma5o3/LmyjhLJvIzQ2tlrdoLdayuUPzyqAiEAmg0LYJN0b1e9v/rmVLa0Tx4xdq8hi3br82RYxagpHTQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":182392},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"gitHead":"665ce89782ba70c70f877fa0df2a3e6a61ca5b6d","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"1dex","email":"cdex008@hotmail.com"},"_npmVersion":"10.9.0","description":"1DEX JavaScript SDK","directories":{},"_nodeVersion":"22.11.0","dependencies":{"uuid":"^11.1.0","axios":"^1.8.3","bignumber.js":"^9.1.2","@wharfkit/antelope":"^1.0.13"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.37.0","typescript":"^5.8.2","rollup-plugin-dts":"^6.2.1","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/1dex-js-sdk_1.0.4_1744015824032_0.012466765584507433","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"1dex-js-sdk","version":"1.0.5","keywords":[],"author":{"name":"1DEX Inc."},"license":"MIT","_id":"1dex-js-sdk@1.0.5","maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"dist":{"shasum":"5018ba607c4e5e846d6dd79e9192f3f7905289b5","tarball":"https://registry.npmjs.org/1dex-js-sdk/-/1dex-js-sdk-1.0.5.tgz","fileCount":7,"integrity":"sha512-Lf+WvvkHPg8b51IPLJaYE2YBC1hNawbby6eg41UGhzMh5zWT3E1ECCR+JzeLmRLefPuUC2ZOyPBfRK3Nh3oXvQ==","signatures":[{"sig":"MEYCIQCY6BlWxew14P4+WNglIjiHk5E2V5OBrwyj8YqQlUrBpQIhAMKum1sMfWLy2i8XEw2jqeZmW9BJlJNMYu5VzkLB0yoX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":197006},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"gitHead":"0675695a1a39feab5b4705168da002e175ef7407","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"1dex","email":"cdex008@hotmail.com"},"_npmVersion":"10.9.0","description":"1DEX JavaScript SDK","directories":{},"_nodeVersion":"22.11.0","dependencies":{"uuid":"^11.1.0","axios":"^1.8.3","bignumber.js":"^9.1.2","@wharfkit/antelope":"^1.0.13"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.37.0","typescript":"^5.8.2","rollup-plugin-dts":"^6.2.1","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/1dex-js-sdk_1.0.5_1744085188555_0.8513931049702828","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"1dex-js-sdk","version":"1.0.6","keywords":[],"author":{"name":"1DEX Inc."},"license":"MIT","_id":"1dex-js-sdk@1.0.6","maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"dist":{"shasum":"80c91219971ebd9d278a18bbae170d2b3828b675","tarball":"https://registry.npmjs.org/1dex-js-sdk/-/1dex-js-sdk-1.0.6.tgz","fileCount":7,"integrity":"sha512-NMjaGTMQWIC4n7L75glGiOQUzlVb3gk+wgc1DDUqoGEhnMn7feJ8+BIJ7NBaoyCVJRTERjXvWehmo4J6SG+m1g==","signatures":[{"sig":"MEUCIQDZ9Ygy05s8kamFwEoegcJUsf/iWUBPHRVVEQVohnSjDgIgRHBXf9oE8awKUC7Ufr7g94F86F1xNMY6VsXwyHuIn+Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":197152},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"gitHead":"9a49500e26ef1fcad30662951099f517f5fc628e","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"1dex","email":"cdex008@hotmail.com"},"_npmVersion":"10.9.0","description":"1DEX JavaScript SDK","directories":{},"_nodeVersion":"22.11.0","dependencies":{"uuid":"^11.1.0","axios":"^1.8.3","bignumber.js":"^9.1.2","@wharfkit/antelope":"^1.0.13"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.37.0","typescript":"^5.8.2","rollup-plugin-dts":"^6.2.1","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/1dex-js-sdk_1.0.6_1744091809938_0.8978469456260398","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"1dex-js-sdk","version":"1.0.7","keywords":[],"author":{"name":"1DEX Inc."},"license":"MIT","_id":"1dex-js-sdk@1.0.7","maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"dist":{"shasum":"9d77fc273564905f8853709aae8d0c451fef8beb","tarball":"https://registry.npmjs.org/1dex-js-sdk/-/1dex-js-sdk-1.0.7.tgz","fileCount":7,"integrity":"sha512-CfmZDZ2iYOHdI8YegrjJVZwLCq9oCWe5cN9pTVngACUVVb6rIDGxVExKy34VkBJ/zho037Sp8tPFH4705KO0mA==","signatures":[{"sig":"MEYCIQCH8OebYnBg07IOVCBzwTI4z9NHEH+jfI4flJQcvIBqJAIhAPXYCYp7HaLZbKz29TJG9tR/bOqGMVmV+Sb1w8fO9bSU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":201986},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"gitHead":"b4d8758bf92f254e9d708790326d39f074018822","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"1dex","email":"cdex008@hotmail.com"},"_npmVersion":"10.9.0","description":"1DEX JavaScript SDK","directories":{},"_nodeVersion":"22.11.0","dependencies":{"uuid":"^11.1.0","axios":"^1.8.3","bignumber.js":"^9.1.2","@wharfkit/antelope":"^1.0.13"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.37.0","typescript":"^5.8.2","rollup-plugin-dts":"^6.2.1","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/1dex-js-sdk_1.0.7_1744092765934_0.6645385798209491","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"1dex-js-sdk","version":"1.0.8","keywords":[],"author":{"name":"1DEX Inc."},"license":"MIT","_id":"1dex-js-sdk@1.0.8","maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"dist":{"shasum":"aa59cb6e75382e219114cf6f75676913527a6ad8","tarball":"https://registry.npmjs.org/1dex-js-sdk/-/1dex-js-sdk-1.0.8.tgz","fileCount":7,"integrity":"sha512-Wt+l4b1FsbSXOpE2RgS35ec3TrVC4dUeTvd8HURvIB+E6vQ4FfSFli/M0JIciRbFS1dHzCj4FoSkg2ME0T98XA==","signatures":[{"sig":"MEUCIFzAYdtD5jMcrCEYvHxPoWCR7V1JldPaY1057A8Jv2RaAiEA+dvazDTs0f8NS4nFX6J71Im5aYddfvgz3jy9FZb89J8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":201990},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"gitHead":"09839d7662f26d4a3cecf9c068f2bc2fa312f7a6","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"1dex","email":"cdex008@hotmail.com"},"_npmVersion":"10.9.0","description":"1DEX JavaScript SDK","directories":{},"_nodeVersion":"22.11.0","dependencies":{"uuid":"^11.1.0","axios":"^1.8.3","bignumber.js":"^9.1.2","@wharfkit/antelope":"^1.0.13"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.37.0","typescript":"^5.8.2","rollup-plugin-dts":"^6.2.1","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/1dex-js-sdk_1.0.8_1744276670974_0.4014017641879266","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"1dex-js-sdk","version":"1.0.9","keywords":[],"author":{"name":"1DEX Inc."},"license":"MIT","_id":"1dex-js-sdk@1.0.9","maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"dist":{"shasum":"c2714716b1798d66b900e81efc4cf75e0c6bf35a","tarball":"https://registry.npmjs.org/1dex-js-sdk/-/1dex-js-sdk-1.0.9.tgz","fileCount":7,"integrity":"sha512-tmQNzu4A20JDeMr+fMdNeb+TqjrqNOE2JT+2NypsP3Cwyg5ZJvjay7+mvuShbYkTtBJY30CQHtOo4zmEUv7u3g==","signatures":[{"sig":"MEUCIQDaBt1sZjDHbYnhRHoj10YBVsz6DbPMdtKl+O3fVydw+QIgS1pSOqCnLTR4gynoMcfozrUWHoRHfKIF+JFE6qFO7Vk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":552479},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"gitHead":"ca663de970d6acc46886976705b78adbc163ce07","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"1dex","email":"cdex008@hotmail.com"},"_npmVersion":"10.9.0","description":"1DEX JavaScript SDK","directories":{},"_nodeVersion":"22.11.0","dependencies":{"uuid":"^11.1.0","axios":"^1.8.3","bignumber.js":"^9.1.2","@wharfkit/antelope":"^1.0.13"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.37.0","typescript":"^5.8.2","rollup-plugin-dts":"^6.2.1","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/1dex-js-sdk_1.0.9_1744878650347_0.9105320858067649","host":"s3://npm-registry-packages-npm-production"}},"1.0.10":{"name":"1dex-js-sdk","version":"1.0.10","keywords":[],"author":{"name":"1DEX Inc."},"license":"MIT","_id":"1dex-js-sdk@1.0.10","maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"dist":{"shasum":"f881e315e10e5e0eac95b5db639a26bcad2bf0d3","tarball":"https://registry.npmjs.org/1dex-js-sdk/-/1dex-js-sdk-1.0.10.tgz","fileCount":7,"integrity":"sha512-3lNnfx6V+vn4KF8pGKS86bEARhiajcW359FvKeGygRNn3FoOsajDJJNk00iJwEB2vtveWyoWvMmtvh9Wy7CJvQ==","signatures":[{"sig":"MEQCIE4AqCFOLF3flr8nXCm/OjSZAvv+bt4aAJ8wGuaf5jOUAiBEPKYscySGIA1E8jmXkq8nP8HQRVx48EJ19QIZF8mEtA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":553843},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"gitHead":"cf53d0b84415eeda453b6744ceabb3fae9c4b06d","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"1dex","email":"cdex008@hotmail.com"},"_npmVersion":"10.9.0","description":"1DEX JavaScript SDK","directories":{},"_nodeVersion":"22.11.0","dependencies":{"uuid":"^11.1.0","axios":"^1.8.3","bignumber.js":"^9.1.2","@wharfkit/antelope":"^1.0.13"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.37.0","typescript":"^5.8.2","rollup-plugin-dts":"^6.2.1","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/1dex-js-sdk_1.0.10_1744881271024_0.3798589081471717","host":"s3://npm-registry-packages-npm-production"}},"1.0.11":{"name":"1dex-js-sdk","version":"1.0.11","keywords":[],"author":{"name":"1DEX Inc."},"license":"MIT","_id":"1dex-js-sdk@1.0.11","maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"dist":{"shasum":"5566b83234df5370444c4a398f9d816d5e1ba049","tarball":"https://registry.npmjs.org/1dex-js-sdk/-/1dex-js-sdk-1.0.11.tgz","fileCount":7,"integrity":"sha512-DkZe7aIY8chrXQ5XEZ134bTotqHuPIoT+z3RwBHpryxeilcwdalbudbLVjaq903bKm1k26zRgq89MlUc9zWVXg==","signatures":[{"sig":"MEUCIEljyN2U2JckiiB7y8YpK9CFyd9ee07v7iL+LgEujMLEAiEAvIPpjFBzrQW2aYv5VFxeTiiX9VHdz+AP/u+7DJDefTQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":557639},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"gitHead":"f13c372a38c2d456bce6de68f07b9578ca6abdeb","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"1dex","email":"cdex008@hotmail.com"},"_npmVersion":"10.9.0","description":"1DEX JavaScript SDK","directories":{},"_nodeVersion":"22.11.0","dependencies":{"uuid":"^11.1.0","axios":"^1.8.3","bignumber.js":"^9.1.2","@wharfkit/antelope":"^1.0.13"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.37.0","typescript":"^5.8.2","rollup-plugin-dts":"^6.2.1","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/1dex-js-sdk_1.0.11_1744882926604_0.3073935241418273","host":"s3://npm-registry-packages-npm-production"}},"1.0.12":{"name":"1dex-js-sdk","version":"1.0.12","keywords":[],"author":{"name":"1DEX Inc."},"license":"MIT","_id":"1dex-js-sdk@1.0.12","maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"dist":{"shasum":"fad35093692171be1e16146ebcebde6c3891a6ce","tarball":"https://registry.npmjs.org/1dex-js-sdk/-/1dex-js-sdk-1.0.12.tgz","fileCount":7,"integrity":"sha512-HNhVjsirgsGe3YQVkr8SwwztruUYlouT6nBgsL1U0OHf6WMZcIPmsXshVe3HMT5qrJcPAf+h+JIizNm5Wqd0DA==","signatures":[{"sig":"MEUCIQCVtuHSuVlaI5+reGrM3tB4+IkVHxoj9jlsdMy2CwP/ugIgJ2OY2nJTfmu1iODFxqzfL1BODBheK6EqsLQ34pV3nzg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":554258},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"gitHead":"013edf499a8461335b647edfc3239c1c9ca6f72e","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"1dex","email":"cdex008@hotmail.com"},"_npmVersion":"10.9.0","description":"1DEX JavaScript SDK","directories":{},"_nodeVersion":"22.11.0","dependencies":{"uuid":"^11.1.0","axios":"^1.8.3","bignumber.js":"^9.1.2","@wharfkit/antelope":"^1.0.13"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.37.0","typescript":"^5.8.2","rollup-plugin-dts":"^6.2.1","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/1dex-js-sdk_1.0.12_1746179917694_0.2448924978745355","host":"s3://npm-registry-packages-npm-production"}},"1.0.13":{"name":"1dex-js-sdk","version":"1.0.13","keywords":[],"author":{"name":"1DEX Inc."},"license":"MIT","_id":"1dex-js-sdk@1.0.13","maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"dist":{"shasum":"9da78103aeca9be48afabd85b25fcecc14b9fec2","tarball":"https://registry.npmjs.org/1dex-js-sdk/-/1dex-js-sdk-1.0.13.tgz","fileCount":7,"integrity":"sha512-UNqPNOBZGZkwDN3CLVo+2bk51mR4ERAylTi0flfTZT7RfoVRgqAURGvlVamGTlkTbURq3DdI++iSePMOuoOlAA==","signatures":[{"sig":"MEYCIQDPNu8s2fM122gLAsVuWM9scEu+bL+gIl6UBjvL/C7KDgIhAJySy2DmeXIaKXFtjVjLDB/Yp4ai/iQrAWpbB9vtlTCE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":568820},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"gitHead":"8cb2fbc743bb5aee974478d7c9896134293302e2","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"1dex","actor":{"name":"1dex","type":"user","email":"cdex008@hotmail.com"},"email":"cdex008@hotmail.com"},"_npmVersion":"10.9.2","description":"1DEX JavaScript SDK","directories":{},"_nodeVersion":"22.16.0","dependencies":{"uuid":"^11.1.0","axios":"^1.8.3","bignumber.js":"^9.1.2","@wharfkit/antelope":"^1.0.13"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.37.0","typescript":"^5.8.2","rollup-plugin-dts":"^6.2.1","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/1dex-js-sdk_1.0.13_1750320643547_0.3888032470750795","host":"s3://npm-registry-packages-npm-production"}},"1.0.14":{"name":"1dex-js-sdk","version":"1.0.14","keywords":[],"author":{"name":"1DEX Inc."},"license":"MIT","_id":"1dex-js-sdk@1.0.14","maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"dist":{"shasum":"bcbe521ef32497527986ad17387c8102bffdebc3","tarball":"https://registry.npmjs.org/1dex-js-sdk/-/1dex-js-sdk-1.0.14.tgz","fileCount":7,"integrity":"sha512-2jR1IcxNuKH9u8GIGapRi83WLhYaArkEqDxG2MjMxn6szP8GrPaOew6Bz7DPc52scrOWseH4Woma5A2QODIwmw==","signatures":[{"sig":"MEUCIE5BS41t6FP6iLDcj+P6349Ny/u50olo9Ekun/a0oCsTAiEAw/P4uuzJGlrYYf8DiRu9OfWUYKMBLcE1wysh+NTR8jk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":591757},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"gitHead":"bd61bcb398c7318223d58c6702338e70d960fa80","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"1dex","actor":{"name":"1dex","type":"user","email":"cdex008@hotmail.com"},"email":"cdex008@hotmail.com"},"_npmVersion":"10.9.0","description":"1DEX JavaScript SDK","directories":{},"_nodeVersion":"22.11.0","dependencies":{"uuid":"^11.1.0","axios":"^1.8.3","bignumber.js":"^9.1.2","@wharfkit/antelope":"^1.0.13"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.37.0","typescript":"^5.8.2","rollup-plugin-dts":"^6.2.1","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/1dex-js-sdk_1.0.14_1750403057677_0.641070091859633","host":"s3://npm-registry-packages-npm-production"}},"1.0.15":{"name":"1dex-js-sdk","version":"1.0.15","keywords":[],"author":{"name":"1DEX Inc."},"license":"MIT","_id":"1dex-js-sdk@1.0.15","maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"dist":{"shasum":"0328e42b2cfb5e5a111f6f19502becd2daf86d13","tarball":"https://registry.npmjs.org/1dex-js-sdk/-/1dex-js-sdk-1.0.15.tgz","fileCount":7,"integrity":"sha512-IebHnEB6se8KtT3h0kH8rwsMpUqVtoYAeZEVfVqIxC0DRjoAhwf5F3v6AGV0UtBBFJe9tKAY4myBuA7nmo+yIw==","signatures":[{"sig":"MEQCIAg98Nz2nb0T4GuXIR8xOuFVBz380RUqr3JqZOXa/07mAiBY0aKMas/E4+sN1zV4pBowv60Xx8NkqaCcvb8MmuilRQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":608606},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"gitHead":"839d2ea7082baaf7ca98c769643b782d50ca8570","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"1dex","email":"cdex008@hotmail.com"},"_npmVersion":"10.9.0","description":"1DEX JavaScript SDK","directories":{},"_nodeVersion":"22.11.0","dependencies":{"axios":"^1.8.3","bignumber.js":"^9.1.2","@wharfkit/antelope":"^1.0.13"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.37.0","typescript":"^5.8.2","rollup-plugin-dts":"^6.2.1","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/1dex-js-sdk_1.0.15_1759040595853_0.4333496871697242","host":"s3://npm-registry-packages-npm-production"}},"1.0.16":{"name":"1dex-js-sdk","version":"1.0.16","description":"1DEX JavaScript SDK","main":"dist/index.cjs.js","module":"dist/index.esm.js","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.esm.js","require":"./dist/index.cjs.js","types":"./dist/index.d.ts"}},"scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"keywords":[],"author":{"name":"1DEX Inc."},"license":"MIT","dependencies":{"@wharfkit/antelope":"^1.0.13","axios":"^1.8.3","bignumber.js":"^9.1.2"},"devDependencies":{"@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-node-resolve":"^16.0.1","@rollup/plugin-typescript":"^12.1.2","rollup":"^4.37.0","rollup-plugin-dts":"^6.2.1","typescript":"^5.8.2"},"_id":"1dex-js-sdk@1.0.16","gitHead":"c60cd76ac475119acc0423e63b7e2b279076ad43","_nodeVersion":"22.11.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-OSKuWUwS/yYkB6UOsyvyebjO4uw27qAAbH/GmnexEdsiRHX9mXr8GRaz0Acmk58/0a0Nhr8mT/4dGL+UX3m1cw==","shasum":"6dc5f2b1806d576b8501eb2664e1183319163269","tarball":"https://registry.npmjs.org/1dex-js-sdk/-/1dex-js-sdk-1.0.16.tgz","fileCount":7,"unpackedSize":610419,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCC9mwCcV9eWCzv59c2K+tu3+JIxJgOBnsjgrH9GnrBIQIgSl3xpclUFKIPWmEqSMLTBvoViDeAt5OF3i7DEhhBR9Y="}]},"_npmUser":{"name":"1dex","email":"cdex008@hotmail.com"},"directories":{},"maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/1dex-js-sdk_1.0.16_1759153890509_0.6469142678201552"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-05T09:22:24.996Z","modified":"2025-09-29T13:51:30.869Z","1.0.0":"2025-04-05T09:22:25.210Z","1.0.1":"2025-04-06T08:16:13.512Z","1.0.2":"2025-04-06T11:45:06.417Z","1.0.3":"2025-04-06T14:58:23.028Z","1.0.4":"2025-04-07T08:50:24.555Z","1.0.5":"2025-04-08T04:06:28.745Z","1.0.6":"2025-04-08T05:56:50.125Z","1.0.7":"2025-04-08T06:12:46.125Z","1.0.8":"2025-04-10T09:17:51.164Z","1.0.9":"2025-04-17T08:30:50.579Z","1.0.10":"2025-04-17T09:14:31.199Z","1.0.11":"2025-04-17T09:42:06.777Z","1.0.12":"2025-05-02T09:58:37.981Z","1.0.13":"2025-06-19T08:10:43.952Z","1.0.14":"2025-06-20T07:04:17.859Z","1.0.15":"2025-09-28T06:23:16.040Z","1.0.16":"2025-09-29T13:51:30.697Z"},"author":{"name":"1DEX Inc."},"license":"MIT","keywords":[],"description":"1DEX JavaScript SDK","maintainers":[{"name":"1dex","email":"cdex008@hotmail.com"}],"readme":"## 1DEX JavaScript SDK\r\n\r\nA powerful JavaScript SDK for integrating with the 1DEX decentralized exchange platform, providing seamless access to trading functionality and market data.\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install 1dex-js-sdk\r\n```\r\n\r\n## Getting Started\r\n\r\n### Initializing the SDK\r\n\r\n```typescript\r\nimport { DexKit, ETradeSide, EOrderType } from \"1dex-js-sdk\";\r\n\r\n// Create a new DexKit instance\r\nconst dexKit = new DexKit({\r\n  apiKey: \"YOUR_API_KEY\",\r\n  secretKey: \"YOUR_SECRET_KEY\",\r\n  enableProxy: false, // Optional, defaults to true\r\n  apiClientConfig: {\r\n    baseUrl: \"https://api-v1.example.com\", // Optional, defaults to 'https://api-v1.1dex.com'\r\n  },\r\n  blockchainRpcClientConfig: {\r\n    chainID: \"YOUR_CHAIN_ID\", // Optional, defaults to 'aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906'\r\n    rpcUrl: \"https://rpc.example.com\", // Optional, defaults to 'https://spring-rpc.1dex.com'\r\n  },\r\n  devMode: false, // Optional, if set to true, it will output debug information of certain methods in the console\r\n});\r\n\r\n// Initialize the DexKit instance\r\nawait dexKit.initialize();\r\n```\r\n\r\n## DexKit Interface\r\n\r\nThe DexKit class provides methods for trading operations on 1DEX.\r\n\r\n### Core Methods\r\n\r\n#### `initialize()`\r\n\r\nInitializes the DexKit instance by fetching system metadata, account information, and pool data.\r\n\r\n```typescript\r\nawait dexKit.initialize();\r\n```\r\n\r\n#### `initializeWithProvidedConfig(config)`\r\n\r\nInitializes the DexKit instance using the provided configuration instead of getting it from the server.\r\n\r\n**All parameters are optional.**\r\n\r\n```typescript\r\ndexKit.initializeWithProvidedConfig({\r\n  appContract: \"app_contract\", // app.1dex\r\n  accountContract: \"account_contract\", // Your main account name\r\n  pools: [\r\n    {\r\n      id: 1,\r\n      baseToken: \"TOKEN1\",\r\n      quoteToken: \"TOKEN2\",\r\n      baseTokenContract: \"token1.contract\",\r\n      quoteTokenContract: \"token2.contract\",\r\n      baseTokenDecimals: 4,\r\n      quoteTokenDecimals: 4,\r\n      pricePrecision: 4,\r\n    },\r\n  ],\r\n  proxyAccount: {\r\n    name: \"proxy.account\",\r\n    permission: \"active\",\r\n  },\r\n  account: {\r\n    name: \"user.account\", // Your sub-account name\r\n    permission: \"trader\", // Your sub-account permission\r\n  },\r\n});\r\n```\r\n\r\n#### `placeLimitOrder(params)`\r\n\r\nPlaces a limit order on the specified pool.\r\n\r\nIf it is a **buy order**, the amount is the quantity of **quote coin**, if it is a **sell order**, the amount is the quantity of **base coin**.\r\n\r\nFor example, there is a BTC/USDT trading pair. If it is a buy order, 'amount = 80000' means '80000 USDT', if it is a sell order, 'amount = 1' means '1 BTC'.\r\n\r\nNote: the amount will be **rounded up** to the precision unit, which means that if you enter **10.00001 EOS**, it will be formatted as **10.0001 EOS**, so it is recommended to enter the amount according to the token decimals.\r\n\r\n```typescript\r\nconst { txID, clientOrderID } = await dexKit.placeLimitOrder({\r\n  poolID: 1,\r\n  side: ETradeSide.BUY, // or ETradeSide.SELL\r\n  orderType: EOrderType.NO_RESTRICTION, // or EOrderType.IMMEDIATE_OR_CANCEL || EOrderType.FILL_OR_KILL || EOrderType.POST_ONLY\r\n  amount: \"10.0000\", // if 'buy', amount is quote coin quantity; if 'sell', amount is base coin quantity\r\n  price: \"0.5000\",\r\n  clientOrderID: \"your defined client order id\", // optional\r\n});\r\n```\r\n\r\n#### `placeMarketOrder(params)`\r\n\r\nPlaces a market order on the specified pool.\r\n\r\nIf it is a **buy order**, the amount is the quantity of **quote coin**, if it is a **sell order**, the amount is the quantity of **base coin**.\r\n\r\nFor example, there is a BTC/USDT trading pair. If it is a buy order, 'amount = 80000' means '80000 USDT', if it is a sell order, 'amount = 1' means '1 BTC'.\r\n\r\nNote: the amount will be **rounded up** to the precision unit, which means that if you enter **10.00001 EOS**, it will be formatted as **10.0001 EOS**, so it is recommended to enter the amount according to the token decimals.\r\n\r\n```typescript\r\nconst { txID, clientOrderID } = await dexKit.placeMarketOrder({\r\n  poolID: 1,\r\n  side: ETradeSide.BUY, // or ETradeSide.SELL\r\n  amount: \"10.0000\", // if 'buy', amount is quote coin quantity; if 'sell', amount is base coin quantity\r\n  clientOrderID: \"your defined client order id\", // optional\r\n});\r\n```\r\n\r\n#### `cancelOrder(params)`\r\n\r\nCancels an existing order.\r\n\r\n```typescript\r\nconst txID = await dexKit.cancelOrder({\r\n  poolID: 1,\r\n  orderID: 1,\r\n  side: ETradeSide.BUY, // or ETradeSide.SELL\r\n});\r\n```\r\n\r\n#### `cancelOrderByCid(cid)`\r\n\r\nCancels an existing order by client order id.\r\n\r\nClient order id will be returned by `placeMarketOrder` and `placeLimitOrder`.\r\n\r\n```typescript\r\nconst txID = await dexKit.cancelOrderByCid(cid);\r\n```\r\n\r\n#### `batchCancelOrders(params)`\r\n\r\nCancels multiple open orders at once.\r\n\r\n```typescript\r\nconst txID = await dexKit.batchCancelOrders({\r\n  poolID: 1, // optional\r\n  side: ETradeSide.SELL, // optional, ETradeSide.SELL or ETradeSide.BUY\r\n  limit: 100, // optional, default is 500\r\n});\r\n```\r\n\r\n### Resource Management\r\n\r\n#### `getAccountResources(account)`\r\n\r\nGets the account resources including CPU, NET, and RAM information.\r\n\r\nIf name is empty, the default sub-account's name obtained during initialization is used.\r\n\r\n```typescript\r\nconst resources = await dexKit.getAccountResources(\"name\");\r\n// Returns:\r\n// {\r\n//   cpuMax: string,\r\n//   cpuAvailable: string,\r\n//   netMax: string,\r\n//   netAvailable: string,\r\n//   ramQuota: string,\r\n//   ramUsed: string\r\n// }\r\n```\r\n\r\n#### `powerup(params)`\r\n\r\nPowers up the account with CPU and NET resources.\r\n\r\n```typescript\r\nconst txID = await dexKit.powerup({\r\n  netEOS: 100000, // optional\r\n  cpuEOS: 1000000000, // optional\r\n  maxPayment: 100000, // optional\r\n  days: 1, // optional, defaults to 1 day\r\n});\r\n```\r\n\r\n### Constructor Options\r\n\r\nWhen creating a new DexKit instance, you can provide various configuration options:\r\n\r\n```typescript\r\nconst dexKit = new DexKit({\r\n  apiKey: \"your-api-key\",\r\n  secretKey: \"your-secret-key\",\r\n  enableProxy: true, // optional, defaults to true\r\n  devMode: false, // optional, defaults to false\r\n  apiClientConfig: {\r\n    // HTTP API client configuration\r\n    baseUrl: \"https://api-v1.example.com\", // optional\r\n    timeout: 30000, // optional\r\n    headers: {\r\n      [\"key\"]: \"value\",\r\n    }, // optional\r\n  },\r\n  blockchainRpcClientConfig: {\r\n    // Blockchain RPC client configuration\r\n    chainID: \"aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906\", // optional\r\n    rpcUrl: \"https://spring-rpc.1dex.com\", // optional\r\n  },\r\n  powerupConfig: {\r\n    // Powerup payer account\r\n    payer: \"powerup.account\", // optional\r\n    permission: \"active\", // optional\r\n    privateKey: \"powerup-private-key\", // optional\r\n  },\r\n});\r\n```\r\n\r\n## HTTP API Client\r\n\r\nThe DexKit instance exposes an `httpApiClient` property that provides access to various API endpoints for retrieving market data and account information.\r\n\r\n### Account and Balance\r\n\r\n#### `getAccount()`\r\n\r\nRetrieves account information.\r\n\r\n```typescript\r\nconst account = await dexKit.httpApiClient.getAccount();\r\n```\r\n\r\n#### `getBalance()`\r\n\r\nRetrieves the user's balance information.\r\n\r\n```typescript\r\nconst balance = await dexKit.httpApiClient.getBalance();\r\n```\r\n\r\n### Market Data\r\n\r\n#### `getAllPools(params?)`\r\n\r\nRetrieves all available trading pools.\r\n\r\n```typescript\r\n// Get all pools\r\nconst allPools = await dexKit.httpApiClient.getAllPools();\r\n\r\n// Get pools filtered by base or quote coin\r\nconst filteredPools = await dexKit.httpApiClient.getAllPools({\r\n  baseCoin: \"EOS\",\r\n  quoteCoin: \"USDT\",\r\n});\r\n```\r\n\r\n#### `getPoolInfo(symbolOrPoolID)`\r\n\r\nRetrieves detailed information about a specific pool.\r\n\r\n```typescript\r\n// Get pool by ID\r\nconst poolInfo = await dexKit.httpApiClient.getPoolInfo(1);\r\n```\r\n\r\n#### `getDepth(params)`\r\n\r\nRetrieves order book depth data for a specific pool.\r\n\r\n```typescript\r\nconst depth = await dexKit.httpApiClient.getDepth({\r\n  id: 1,\r\n  precision: 0.001,\r\n  limit: 20, // Optional\r\n});\r\n```\r\n\r\n#### `getKline(params)`\r\n\r\nRetrieves kline/candlestick data for a specific pool.\r\n\r\n```typescript\r\nconst klineData = await dexKit.httpApiClient.getKline({\r\n  poolID: 1,\r\n  period: \"1h\", // Options: '1min', '5min', '15min', '30min', '1h', '4h', '1d', '1w', '1M'\r\n  startTime: 1609459200, // Optional: Unix timestamp in seconds\r\n  endTime: 1609545600, // Optional: Unix timestamp in seconds\r\n});\r\n```\r\n\r\n#### `getLatestTrades(params)`\r\n\r\nRetrieves the latest trades for a specific pool.\r\n\r\n```typescript\r\nconst latestTrades = await dexKit.httpApiClient.getLatestTrades({\r\n  poolID: 1,\r\n  limit: 20, // Optional\r\n});\r\n```\r\n\r\n### Order Management\r\n\r\n#### `getOpenOrders(params)`\r\n\r\nRetrieves open (active) orders.\r\n\r\n```typescript\r\nconst openOrders = await dexKit.httpApiClient.getOpenOrders({\r\n  poolID: 1,\r\n  side: \"buy\", // Optional: 'buy' or 'sell'\r\n});\r\n```\r\n\r\n#### `getOrderHistory(params)`\r\n\r\nRetrieves order history.\r\n\r\n```typescript\r\nconst orderHistory = await dexKit.httpApiClient.getOrderHistory({\r\n  poolID: 1,\r\n  side: \"buy\", // Optional: 'buy' or 'sell'\r\n  type: \"limit\", // Optional: 'limit' or 'market'\r\n  status: \"full_filled\", // Optional: 'canceled', 'full_filled', 'partially_filled'\r\n});\r\n```\r\n\r\n#### `getOrderDetail(params)`\r\n\r\nRetrieves detailed information about a specific order.\r\n\r\n```typescript\r\nconst orderDetail = await dexKit.httpApiClient.getOrderDetail({\r\n  poolID: 1,\r\n  orderID: 1,\r\n  side: \"buy\", // Required: 'buy' or 'sell'\r\n});\r\n```\r\n\r\n#### `getOrderDetailByCid(cid)`\r\n\r\nRetrieves detailed information about a specific order by client order id.\r\n\r\n```typescript\r\nconst orderDetail = await dexKit.httpApiClient.getOrderDetailByCid(cid);\r\n```\r\n\r\n### Token Information\r\n\r\n#### `getSupportedTokens()`\r\n\r\nRetrieves all supported tokens.\r\n\r\n```typescript\r\nconst tokens = await dexKit.httpApiClient.getSupportedTokens();\r\n```\r\n\r\n#### `getTokenInfo(token)`\r\n\r\nRetrieves detailed information about a specific token.\r\n\r\n```typescript\r\nconst tokenInfo = await dexKit.httpApiClient.getTokenInfo(\"EOS\");\r\n```\r\n\r\n## Complete Trading Example\r\n\r\n```typescript\r\nimport { DexKit, ETradeSide, EOrderType } from \"1dex-js-sdk\";\r\n\r\nasync function tradingExample() {\r\n  // Initialize SDK\r\n  const dexKit = new DexKit({\r\n    apiKey: \"YOUR_API_KEY\",\r\n    secretKey: \"YOUR_SECRET_KEY\",\r\n    apiClientConfig: {\r\n      baseUrl: \"https://api-v1.example.com\", // Optional\r\n    },\r\n    blockchainRpcClientConfig: {\r\n      chainID: \"YOUR_CHAIN_ID\", // Default: 'aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906'\r\n      rpcUrl: \"https://rpc.example.com\", // Default: 'https://spring-rpc.1dex.com'\r\n    },\r\n  });\r\n\r\n  await dexKit.initialize();\r\n\r\n  // Get available pools\r\n  const pools = await dexKit.httpApiClient.getAllPools();\r\n  const poolID = pools[0].pool_id;\r\n\r\n  // Check market depth\r\n  const depth = await dexKit.httpApiClient.getDepth({\r\n    id: poolID,\r\n    precision: 0.001,\r\n  });\r\n\r\n  // Place a limit buy order\r\n  const txID = await dexKit.placeLimitOrder({\r\n    poolID,\r\n    side: ETradeSide.BUY,\r\n    orderType: EOrderType.NO_RESTRICTION,\r\n    amount: \"10.0000\",\r\n    price: depth.bids[0][0], // Using the best bid price\r\n  });\r\n\r\n  console.log(`Order placed with transaction ID: ${txID}`);\r\n\r\n  // Check open orders\r\n  const openOrders = await dexKit.httpApiClient.getOpenOrders({\r\n    poolID,\r\n    side: \"buy\",\r\n  });\r\n\r\n  if (openOrders.length > 0) {\r\n    // Cancel the first open order\r\n    const orderID = openOrders[0].order_id;\r\n\r\n    const cancelTxID = await dexKit.cancelOrder({\r\n      poolID,\r\n      orderID,\r\n      side: ETradeSide.BUY,\r\n    });\r\n\r\n    console.log(`Order cancelled with transaction ID: ${cancelTxID}`);\r\n  }\r\n}\r\n\r\ntradingExample().catch(console.error);\r\n```\r\n\r\n## Powerup Example\r\n\r\n```typescript\r\nimport { DexKit } from \"1dex-js-sdk\";\r\n\r\nconst dexKit = new DexKit({\r\n  apiKey: \"\",\r\n  secretKey: \"\",\r\n  enableProxy: false,\r\n  powerupConfig: {\r\n    payer: \"\",\r\n    permission: \"\",\r\n    privateKey: \"\",\r\n  },\r\n});\r\n\r\nconst MAX_RETRY_COUNT = 3; // 3 times\r\nconst CHECK_INTERVAL = 1000; // 1 second\r\nconst POWERUP_AVAILABLE_RATE = 0.1; // 10%\r\n\r\nconst powerupExample = async () => {\r\n  await dexKit.initialize();\r\n\r\n  const checkAndPowerup = async () => {\r\n    let retryCount = 0;\r\n\r\n    const tryPowerup = async () => {\r\n      try {\r\n        await dexKit.powerup();\r\n        console.log(\"Powerup successful\");\r\n        return true;\r\n      } catch (error) {\r\n        console.error(`Powerup attempt ${retryCount + 1} failed:`, error);\r\n        return false;\r\n      }\r\n    };\r\n\r\n    while (true) {\r\n      try {\r\n        const resources = await dexKit.getAccountResources();\r\n\r\n        const cpuAvailable = parseFloat(resources.cpuAvailable);\r\n        const cpuMax = parseFloat(resources.cpuMax);\r\n        const netAvailable = parseFloat(resources.netAvailable);\r\n        const netMax = parseFloat(resources.netMax);\r\n\r\n        console.log(\r\n          `Current resources - CPU: ${((cpuAvailable / cpuMax) * 100).toFixed(\r\n            2\r\n          )}%, NET: ${((netAvailable / netMax) * 100).toFixed(2)}%`\r\n        );\r\n\r\n        if (cpuMax === 0 || netMax === 0) {\r\n          retryCount = 0;\r\n          while (retryCount < MAX_RETRY_COUNT) {\r\n            const result = await tryPowerup();\r\n            if (result) break;\r\n            retryCount++;\r\n            if (retryCount < MAX_RETRY_COUNT) {\r\n              await new Promise((resolve) => setTimeout(resolve, 1000)); // Wait 1s before retry\r\n            }\r\n          }\r\n        } else {\r\n          const cpuRate = cpuAvailable / cpuMax;\r\n          const netRate = netAvailable / netMax;\r\n\r\n          if (\r\n            cpuRate < POWERUP_AVAILABLE_RATE ||\r\n            netRate < POWERUP_AVAILABLE_RATE\r\n          ) {\r\n            retryCount = 0;\r\n            while (retryCount < MAX_RETRY_COUNT) {\r\n              const result = await tryPowerup();\r\n              if (result) break;\r\n              retryCount++;\r\n              if (retryCount < MAX_RETRY_COUNT) {\r\n                await new Promise((resolve) => setTimeout(resolve, 1000)); // Wait 1s before retry\r\n              }\r\n            }\r\n          }\r\n        }\r\n      } catch (error) {\r\n        console.error(\"Error checking resources:\", error);\r\n      }\r\n\r\n      // Wait for the next check interval\r\n      await new Promise((resolve) => setTimeout(resolve, CHECK_INTERVAL));\r\n    }\r\n  };\r\n\r\n  // Start the continuous monitoring\r\n  await checkAndPowerup();\r\n};\r\n\r\npowerupExample();\r\n```\r\n\r\n## Error Handling\r\n\r\nThe SDK uses standardized error handling. Errors thrown by the SDK include detailed information about what went wrong. It's recommended to use try-catch blocks when interacting with the SDK:\r\n\r\n```typescript\r\ntry {\r\n  await dexKit.placeLimitOrder({\r\n    poolID: 1,\r\n    side: ETradeSide.BUY,\r\n    orderType: EOrderType.NO_RESTRICTION,\r\n    amount: \"10.0000\",\r\n    price: \"0.5000\",\r\n  });\r\n} catch (error) {\r\n  console.error(\"Error placing order:\", error.message);\r\n}\r\n```\r\n\r\n## License\r\n\r\n[License Information]\r\n","readmeFilename":"README.md"}