{"_id":"@0gfoundation/0g-compute-ts-sdk","_rev":"12-c8c188b68d00b3ed7fd8be439ae91dc8","name":"@0gfoundation/0g-compute-ts-sdk","dist-tags":{"beta":"0.9.0-beta.0","latest":"0.9.0"},"versions":{"0.8.0":{"name":"@0gfoundation/0g-compute-ts-sdk","version":"0.8.0","keywords":[],"author":{"name":"0G Labs"},"license":"ISC","_id":"@0gfoundation/0g-compute-ts-sdk@0.8.0","maintainers":[{"name":"overi","email":"ibrahim.over@0g.ai"},{"name":"0g-jiahao","email":"jiahao@0g.ai"},{"name":"0g-xie","email":"xie@0g.ai"},{"name":"0g-peterzhang","email":"peter@0g.ai"}],"homepage":"https://github.com/0glabs/0g-serving-user-broker#readme","bugs":{"url":"https://github.com/0glabs/0g-serving-user-broker/issues"},"bin":{"0g-compute-cli":"cli.commonjs/cli/index.js"},"dist":{"shasum":"ada2f5d55e68a24b9c365b2977059af07aa9f991","tarball":"https://registry.npmjs.org/@0gfoundation/0g-compute-ts-sdk/-/0g-compute-ts-sdk-0.8.0.tgz","fileCount":1308,"integrity":"sha512-+keeuR+7xO9RlGoNkMx5JRt0W8ZYEz+j+GI+UNMqnqcC2allyCgtflZs+2gl2q1/G8a4Z3RhNvz3diTw2FQoIg==","signatures":[{"sig":"MEUCIQDvrNf0J5XfkoErudOPvkYjsz4rbg+4Yot0aVM0ywIWiAIgaEC5MGouUzMPTr0ArmEoWGnWIVMNp6u2oOI4Ci0gfSA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":62754987},"main":"./lib.commonjs/index.js","pnpm":{"overrides":{"qs@6":"6.14.2","ajv@6":"6.14.0","diff@7":"8.0.3","bn.js@4":"4.12.3","bn.js@5":"5.2.3","minimatch@3":"3.1.4","minimatch@5":"5.1.8","minimatch@9":"9.0.7","serialize-javascript":"7.0.3"}},"types":"./lib.esm/index.d.ts","module":"./lib.esm/index.mjs","browser":{"fs":false,"os":false,"path":false,"crypto":"crypto-browserify","stream":"stream-browserify"},"engines":{"node":">=20.0.0"},"exports":{"types":"./types/index.d.ts","import":"./lib.esm/index.mjs","require":"./lib.commonjs/index.js"},"gitHead":"937e7ce1343e7d4ca5f8328373c156a472a9a63a","scripts":{"lint":"eslint \"src.ts/**/*.ts\"","test":"mocha 'lib.commonjs/**/*.test.js'","build":"rm -rf dist lib.esm lib.commonjs types cli.commonjs && npm run build:sdk","clean":"rm -rf dist lib.esm lib.commonjs types cli.commonjs","format":"prettier --write \"src.ts/**/*.ts\"","gen-doc":"npx typedoc --tsconfig tsconfig.esm.json","prepare":"npm run build","test:all":"npm run test && npm run test:cli","test:cli":"mocha 'cli.commonjs/cli/__tests__/*.test.js' --timeout 60000","build:sdk":"tsc -b tsconfig.commonjs.json tsconfig.types.json tsconfig.cli.json && npx rollup -c rollup.config.mjs","build:with-ui":"npm run build:sdk && cd web-ui && pnpm install && pnpm build","prepublishOnly":"npm run build:with-ui","gen-contract-type":"typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/inference/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/inference/InferenceServing.sol/InferenceServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/fine-tuning/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/fine-tuning/FineTuningServing.sol/FineTuningServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/ledger/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/ledger/LedgerManager.sol/LedgerManager.json' && npm run format"},"_npmUser":{"name":"0g-jiahao","email":"jiahao@0g.ai"},"repository":{"url":"git+https://github.com/0glabs/0g-serving-user-broker.git","type":"git"},"_npmVersion":"10.9.2","description":"TS SDK for 0G Compute Network","directories":{"doc":"docs"},"_nodeVersion":"22.13.0","dependencies":{"util":"^0.12.5","axios":"^1.7.9","chalk":"^4.1.2","tslib":"^2.6.2","brotli":"^1.3.3","buffer":"^6.0.3","dotenv":"16.4.7","adm-zip":"^0.5.16","eciesjs":"^0.4.13","express":"5.1.0","prompts":"^2.4.2","commander":"^13.0.0","crypto-js":"^4.2.0","form-data":"^4.0.1","cli-table3":"^0.6.5","circomlibjs":"^0.1.6","update-notifier":"^7.3.1","crypto-browserify":"^3.12.1","stream-browserify":"^3.0.0","@ethersproject/bytes":"^5.7.0","@ethersproject/keccak256":"^5.7.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.7","mocha":"^10.2.0","sinon":"^19.0.2","eslint":"^9.30.1","openai":"^4.78.1","rollup":"^3.30.0","globals":"^16.3.0","js-sha3":"^0.9.1","ts-node":"^10.9.1","typedoc":"^0.26.10","typechain":"^8.3.1","uglify-js":"^3.17.4","@eslint/js":"^9.30.1","typescript":"^5.6.2","@types/chai":"^4.3.7","@types/node":"^20.5.9","@types/mocha":"^10.0.1","@types/sinon":"^17.0.4","@types/brotli":"^1.3.4","@types/adm-zip":"^0.5.7","@types/express":"^5.0.2","@types/prompts":"^2.4.9","@types/crypto-js":"^4.2.2","rollup-plugin-dts":"^6.1.1","typescript-eslint":"^8.36.0","@types/circomlibjs":"^0.1.6","@rollup/plugin-json":"^6.1.0","@typechain/ethers-v6":"^0.5.0","@types/update-notifier":"^6.0.8","@rollup/plugin-commonjs":"^28.0.1","@rollup/plugin-typescript":"^12.1.1","@rollup/plugin-node-resolve":"^15.3.0","rollup-plugin-polyfill-node":"^0.13.0"},"peerDependencies":{"ethers":"^6.13.1","crypto-js":"^4.2.0","circomlibjs":"^0.1.6","@types/crypto-js":"^4.2.2","@types/circomlibjs":"^0.1.6"},"_npmOperationalInternal":{"tmp":"tmp/0g-compute-ts-sdk_0.8.0_1777551846364_0.5875945810565353","host":"s3://npm-registry-packages-npm-production"}},"0.8.1":{"name":"@0gfoundation/0g-compute-ts-sdk","version":"0.8.1","keywords":[],"author":{"name":"0G Labs"},"license":"ISC","_id":"@0gfoundation/0g-compute-ts-sdk@0.8.1","maintainers":[{"name":"overi","email":"ibrahim.over@0g.ai"},{"name":"0g-jiahao","email":"jiahao@0g.ai"},{"name":"0g-will","email":"will.riches@0g.ai"},{"name":"0g-xie","email":"xie@0g.ai"},{"name":"0g-peterzhang","email":"peter@0g.ai"}],"homepage":"https://github.com/0glabs/0g-serving-user-broker#readme","bugs":{"url":"https://github.com/0glabs/0g-serving-user-broker/issues"},"bin":{"0g-compute-cli":"cli.commonjs/cli/index.js"},"dist":{"shasum":"f5f5b107ce5aba5a338a262c392df5ebecd763e3","tarball":"https://registry.npmjs.org/@0gfoundation/0g-compute-ts-sdk/-/0g-compute-ts-sdk-0.8.1.tgz","fileCount":1319,"integrity":"sha512-u0neTUjRJVGdnFKRlMqppi5VBw8nouCuQ5RLfT35dF/Ty0qorAdzs0xfOo2dlY4HPAF9xSVZ5auIlZwpQAC1Wg==","signatures":[{"sig":"MEYCIQDOvfSZ8WkFGuT0+x1BmIPGUuhrpHJYK3gDM035RlbOsQIhAMNakuuju2+6wjdyajIqJXh9VTjBoCJbdWhfC2LkX8fj","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":62876104},"main":"./lib.commonjs/index.js","pnpm":{"overrides":{"qs@6":"6.14.2","ajv@6":"6.14.0","diff@7":"8.0.3","bn.js@4":"4.12.3","bn.js@5":"5.2.3","minimatch@3":"3.1.4","minimatch@5":"5.1.8","minimatch@9":"9.0.7","serialize-javascript":"7.0.3"}},"types":"./lib.esm/index.d.ts","module":"./lib.esm/index.mjs","browser":{"fs":false,"os":false,"path":false,"crypto":"crypto-browserify","stream":"stream-browserify"},"engines":{"node":">=20.0.0"},"exports":{"types":"./types/index.d.ts","import":"./lib.esm/index.mjs","require":"./lib.commonjs/index.js"},"gitHead":"fd6ad395d95630e98d48229b34299164561b1d21","scripts":{"lint":"eslint \"src.ts/**/*.ts\"","test":"mocha 'lib.commonjs/**/*.test.js'","build":"rm -rf dist lib.esm lib.commonjs types cli.commonjs && npm run build:sdk","clean":"rm -rf dist lib.esm lib.commonjs types cli.commonjs","format":"prettier --write \"src.ts/**/*.ts\"","gen-doc":"npx typedoc --tsconfig tsconfig.esm.json","prepare":"npm run build","test:all":"npm run test && npm run test:cli","test:cli":"mocha 'cli.commonjs/cli/__tests__/*.test.js' --timeout 60000","build:sdk":"tsc -b tsconfig.commonjs.json tsconfig.types.json tsconfig.cli.json && npx rollup -c rollup.config.mjs","build:with-ui":"npm run build:sdk && cd web-ui && pnpm install && pnpm build","prepublishOnly":"npm run build:with-ui","gen-contract-type":"typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/inference/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/inference/InferenceServing.sol/InferenceServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/fine-tuning/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/fine-tuning/FineTuningServing.sol/FineTuningServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/ledger/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/ledger/LedgerManager.sol/LedgerManager.json' && npm run format"},"_npmUser":{"name":"0g-jiahao","email":"jiahao@0g.ai"},"repository":{"url":"git+https://github.com/0glabs/0g-serving-user-broker.git","type":"git"},"_npmVersion":"10.9.2","description":"TS SDK for 0G Compute Network","directories":{"doc":"docs"},"_nodeVersion":"22.13.0","dependencies":{"util":"^0.12.5","axios":"^1.7.9","chalk":"^4.1.2","tslib":"^2.6.2","brotli":"^1.3.3","buffer":"^6.0.3","dotenv":"16.4.7","adm-zip":"^0.5.16","eciesjs":"^0.4.13","express":"5.1.0","prompts":"^2.4.2","commander":"^13.0.0","crypto-js":"^4.2.0","form-data":"^4.0.1","cli-table3":"^0.6.5","circomlibjs":"^0.1.6","update-notifier":"^7.3.1","crypto-browserify":"^3.12.1","stream-browserify":"^3.0.0","@ethersproject/bytes":"^5.7.0","@ethersproject/keccak256":"^5.7.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.7","mocha":"^10.2.0","sinon":"^19.0.2","eslint":"^9.30.1","openai":"^4.78.1","rollup":"^3.30.0","globals":"^16.3.0","js-sha3":"^0.9.1","ts-node":"^10.9.1","typedoc":"^0.26.10","typechain":"^8.3.1","uglify-js":"^3.17.4","@eslint/js":"^9.30.1","typescript":"^5.6.2","@types/chai":"^4.3.7","@types/node":"^20.5.9","@types/mocha":"^10.0.1","@types/sinon":"^17.0.4","@types/brotli":"^1.3.4","@types/adm-zip":"^0.5.7","@types/express":"^5.0.2","@types/prompts":"^2.4.9","@types/crypto-js":"^4.2.2","rollup-plugin-dts":"^6.1.1","typescript-eslint":"^8.36.0","@types/circomlibjs":"^0.1.6","@rollup/plugin-json":"^6.1.0","@typechain/ethers-v6":"^0.5.0","@types/update-notifier":"^6.0.8","@rollup/plugin-commonjs":"^28.0.1","@rollup/plugin-typescript":"^12.1.1","@rollup/plugin-node-resolve":"^15.3.0","rollup-plugin-polyfill-node":"^0.13.0"},"peerDependencies":{"ethers":"^6.13.1","crypto-js":"^4.2.0","circomlibjs":"^0.1.6","@types/crypto-js":"^4.2.2","@types/circomlibjs":"^0.1.6"},"_npmOperationalInternal":{"tmp":"tmp/0g-compute-ts-sdk_0.8.1_1778147044276_0.8710128948785609","host":"s3://npm-registry-packages-npm-production"}},"0.8.2":{"name":"@0gfoundation/0g-compute-ts-sdk","version":"0.8.2","keywords":[],"author":{"name":"0G Labs"},"license":"ISC","_id":"@0gfoundation/0g-compute-ts-sdk@0.8.2","maintainers":[{"name":"overi","email":"ibrahim.over@0g.ai"},{"name":"0g-jiahao","email":"jiahao@0g.ai"},{"name":"0g-will","email":"will.riches@0g.ai"},{"name":"0g-xie","email":"xie@0g.ai"},{"name":"0g-peterzhang","email":"peter@0g.ai"}],"homepage":"https://github.com/0glabs/0g-serving-user-broker#readme","bugs":{"url":"https://github.com/0glabs/0g-serving-user-broker/issues"},"bin":{"0g-compute-cli":"cli.commonjs/cli/index.js"},"dist":{"shasum":"cdde996cf292d217b9d9f4977a97680f9cdc1010","tarball":"https://registry.npmjs.org/@0gfoundation/0g-compute-ts-sdk/-/0g-compute-ts-sdk-0.8.2.tgz","fileCount":1327,"integrity":"sha512-+zn9Q7bXHCqCWCY1ieltgUOBMYICjAqU4bVswOFMYaQ9BVYt8ihJrE3H61v4B8cV86TXNSpc9/zg/MFSXZyhrw==","signatures":[{"sig":"MEYCIQDvrUDFV5YVbX9UZN14UIKYU2hbnR2QAzX+cxjTodW4sQIhAIUkrt9xL7mtGhCwc0Ogvgx97w5taSRVs+BqexdtJlkp","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":62948866},"main":"./lib.commonjs/index.js","pnpm":{"overrides":{"qs@6":"6.14.2","ajv@6":"6.14.0","diff@7":"8.0.3","bn.js@4":"4.12.3","bn.js@5":"5.2.3","minimatch@3":"3.1.4","minimatch@5":"5.1.8","minimatch@9":"9.0.7","serialize-javascript":"7.0.3"}},"types":"./lib.esm/index.d.ts","module":"./lib.esm/index.mjs","browser":{"fs":false,"os":false,"path":false,"crypto":"crypto-browserify","stream":"stream-browserify"},"engines":{"node":">=20.0.0"},"exports":{"types":"./types/index.d.ts","import":"./lib.esm/index.mjs","require":"./lib.commonjs/index.js"},"gitHead":"8bcf61300a222b182393f71bd45c49213b74af9d","scripts":{"lint":"eslint \"src.ts/**/*.ts\"","test":"mocha 'lib.commonjs/**/*.test.js'","build":"rm -rf dist lib.esm lib.commonjs types cli.commonjs && npm run build:sdk","clean":"rm -rf dist lib.esm lib.commonjs types cli.commonjs","format":"prettier --write \"src.ts/**/*.ts\"","gen-doc":"npx typedoc --tsconfig tsconfig.esm.json","prepare":"npm run build","test:all":"npm run test && npm run test:cli","test:cli":"mocha 'cli.commonjs/cli/__tests__/*.test.js' --timeout 60000","build:sdk":"tsc -b tsconfig.commonjs.json tsconfig.types.json tsconfig.cli.json && npx rollup -c rollup.config.mjs","build:with-ui":"npm run build:sdk && cd web-ui && pnpm install && pnpm build","prepublishOnly":"npm run build:with-ui","gen-contract-type":"typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/inference/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/inference/InferenceServing.sol/InferenceServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/fine-tuning/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/fine-tuning/FineTuningServing.sol/FineTuningServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/ledger/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/ledger/LedgerManager.sol/LedgerManager.json' && npm run format"},"_npmUser":{"name":"0g-jiahao","email":"jiahao@0g.ai"},"repository":{"url":"git+https://github.com/0glabs/0g-serving-user-broker.git","type":"git"},"_npmVersion":"10.9.2","description":"TS SDK for 0G Compute Network","directories":{"doc":"docs"},"_nodeVersion":"22.13.0","dependencies":{"util":"^0.12.5","axios":"^1.7.9","chalk":"^4.1.2","tslib":"^2.6.2","brotli":"^1.3.3","buffer":"^6.0.3","dotenv":"16.4.7","adm-zip":"^0.5.16","eciesjs":"^0.4.13","express":"5.1.0","prompts":"^2.4.2","commander":"^13.0.0","crypto-js":"^4.2.0","form-data":"^4.0.1","cli-table3":"^0.6.5","circomlibjs":"^0.1.6","update-notifier":"^7.3.1","crypto-browserify":"^3.12.1","stream-browserify":"^3.0.0","@ethersproject/bytes":"^5.7.0","@ethersproject/keccak256":"^5.7.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.7","mocha":"^10.2.0","sinon":"^19.0.2","eslint":"^9.30.1","openai":"^4.78.1","rollup":"^3.30.0","globals":"^16.3.0","js-sha3":"^0.9.1","ts-node":"^10.9.1","typedoc":"^0.26.10","typechain":"^8.3.1","uglify-js":"^3.17.4","@eslint/js":"^9.30.1","typescript":"^5.6.2","@types/chai":"^4.3.7","@types/node":"^20.5.9","@types/mocha":"^10.0.1","@types/sinon":"^17.0.4","@types/brotli":"^1.3.4","@types/adm-zip":"^0.5.7","@types/express":"^5.0.2","@types/prompts":"^2.4.9","@types/crypto-js":"^4.2.2","rollup-plugin-dts":"^6.1.1","typescript-eslint":"^8.36.0","@types/circomlibjs":"^0.1.6","@rollup/plugin-json":"^6.1.0","@typechain/ethers-v6":"^0.5.0","@types/update-notifier":"^6.0.8","@rollup/plugin-commonjs":"^28.0.1","@rollup/plugin-typescript":"^12.1.1","@rollup/plugin-node-resolve":"^15.3.0","rollup-plugin-polyfill-node":"^0.13.0"},"peerDependencies":{"ethers":"^6.13.1","crypto-js":"^4.2.0","circomlibjs":"^0.1.6","@types/crypto-js":"^4.2.2","@types/circomlibjs":"^0.1.6"},"_npmOperationalInternal":{"tmp":"tmp/0g-compute-ts-sdk_0.8.2_1778242336056_0.26399830754369913","host":"s3://npm-registry-packages-npm-production"}},"0.8.3-beta.0":{"name":"@0gfoundation/0g-compute-ts-sdk","version":"0.8.3-beta.0","keywords":[],"author":{"name":"0G Labs"},"license":"ISC","_id":"@0gfoundation/0g-compute-ts-sdk@0.8.3-beta.0","maintainers":[{"name":"overi","email":"ibrahim.over@0g.ai"},{"name":"0g-jiahao","email":"jiahao@0g.ai"},{"name":"0g-will","email":"will.riches@0g.ai"},{"name":"0g-xie","email":"xie@0g.ai"},{"name":"0g-peterzhang","email":"peter@0g.ai"}],"homepage":"https://github.com/0glabs/0g-serving-user-broker#readme","bugs":{"url":"https://github.com/0glabs/0g-serving-user-broker/issues"},"bin":{"0g-compute-cli":"cli.commonjs/cli/index.js"},"dist":{"shasum":"816ef2f3fe96db9c32bbaae87f76d5775a6e1676","tarball":"https://registry.npmjs.org/@0gfoundation/0g-compute-ts-sdk/-/0g-compute-ts-sdk-0.8.3-beta.0.tgz","fileCount":1328,"integrity":"sha512-Gv8CsrpfQEQ2SB8QJQKIgVQIqtabxu8ATMW6f6I9dlS7YQyl/lwnFOGC/b5TGI4Y4MntjtEJZza9C257PNgjnw==","signatures":[{"sig":"MEQCIBnReHUny6E3O2hlMbNhkYfoIDn6umamor8HM55/ZitIAiACS2hdrNnBuhQLVtkuyLvmIGnBXnMMLJlIjoGK1QwR/w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":62953991},"main":"./lib.commonjs/index.js","pnpm":{"overrides":{"qs@6":"6.14.2","ajv@6":"6.14.0","diff@7":"8.0.3","bn.js@4":"4.12.3","bn.js@5":"5.2.3","minimatch@3":"3.1.4","minimatch@5":"5.1.8","minimatch@9":"9.0.7","serialize-javascript":"7.0.3"}},"types":"./lib.esm/index.d.ts","module":"./lib.esm/index.mjs","browser":{"fs":false,"os":false,"path":false,"crypto":"crypto-browserify","stream":"stream-browserify"},"engines":{"node":">=20.0.0"},"exports":{"types":"./types/index.d.ts","import":"./lib.esm/index.mjs","require":"./lib.commonjs/index.js"},"gitHead":"0c0a2f444e6210820888f30a9ab7b46857c82331","scripts":{"lint":"eslint \"src.ts/**/*.ts\"","test":"mocha 'lib.commonjs/**/*.test.js'","build":"rm -rf dist lib.esm lib.commonjs types cli.commonjs && npm run build:sdk","clean":"rm -rf dist lib.esm lib.commonjs types cli.commonjs","format":"prettier --write \"src.ts/**/*.ts\"","gen-doc":"npx typedoc --tsconfig tsconfig.esm.json","prepare":"npm run build","test:all":"npm run test && npm run test:cli","test:cli":"mocha 'cli.commonjs/cli/__tests__/*.test.js' --timeout 60000","build:sdk":"tsc -b tsconfig.commonjs.json tsconfig.types.json tsconfig.cli.json && npx rollup -c rollup.config.mjs","build:with-ui":"npm run build:sdk && cd web-ui && pnpm install && pnpm build","prepublishOnly":"npm run build:with-ui","gen-contract-type":"typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/inference/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/inference/InferenceServing.sol/InferenceServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/fine-tuning/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/fine-tuning/FineTuningServing.sol/FineTuningServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/ledger/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/ledger/LedgerManager.sol/LedgerManager.json' && npm run format"},"_npmUser":{"name":"0g-jiahao","email":"jiahao@0g.ai"},"repository":{"url":"git+https://github.com/0glabs/0g-serving-user-broker.git","type":"git"},"_npmVersion":"10.9.2","description":"TS SDK for 0G Compute Network","directories":{"doc":"docs"},"_nodeVersion":"22.13.0","dependencies":{"util":"^0.12.5","axios":"^1.7.9","chalk":"^4.1.2","tslib":"^2.6.2","brotli":"^1.3.3","buffer":"^6.0.3","dotenv":"16.4.7","adm-zip":"^0.5.16","eciesjs":"^0.4.13","express":"5.1.0","prompts":"^2.4.2","commander":"^13.0.0","crypto-js":"^4.2.0","form-data":"^4.0.1","cli-table3":"^0.6.5","circomlibjs":"^0.1.6","update-notifier":"^7.3.1","crypto-browserify":"^3.12.1","stream-browserify":"^3.0.0","@ethersproject/bytes":"^5.7.0","@ethersproject/keccak256":"^5.7.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.7","mocha":"^10.2.0","sinon":"^19.0.2","eslint":"^9.30.1","openai":"^4.78.1","rollup":"^3.30.0","globals":"^16.3.0","js-sha3":"^0.9.1","ts-node":"^10.9.1","typedoc":"^0.26.10","typechain":"^8.3.1","uglify-js":"^3.17.4","@eslint/js":"^9.30.1","typescript":"^5.6.2","@types/chai":"^4.3.7","@types/node":"^20.5.9","@types/mocha":"^10.0.1","@types/sinon":"^17.0.4","@types/brotli":"^1.3.4","@types/adm-zip":"^0.5.7","@types/express":"^5.0.2","@types/prompts":"^2.4.9","@types/crypto-js":"^4.2.2","rollup-plugin-dts":"^6.1.1","typescript-eslint":"^8.36.0","@types/circomlibjs":"^0.1.6","@rollup/plugin-json":"^6.1.0","@typechain/ethers-v6":"^0.5.0","@types/update-notifier":"^6.0.8","@rollup/plugin-commonjs":"^28.0.1","@rollup/plugin-typescript":"^12.1.1","@rollup/plugin-node-resolve":"^15.3.0","rollup-plugin-polyfill-node":"^0.13.0"},"peerDependencies":{"ethers":"^6.13.1","crypto-js":"^4.2.0","circomlibjs":"^0.1.6","@types/crypto-js":"^4.2.2","@types/circomlibjs":"^0.1.6"},"_npmOperationalInternal":{"tmp":"tmp/0g-compute-ts-sdk_0.8.3-beta.0_1778298633677_0.7318765978637429","host":"s3://npm-registry-packages-npm-production"}},"0.8.3-beta.1":{"name":"@0gfoundation/0g-compute-ts-sdk","version":"0.8.3-beta.1","keywords":[],"author":{"name":"0G Labs"},"license":"ISC","_id":"@0gfoundation/0g-compute-ts-sdk@0.8.3-beta.1","maintainers":[{"name":"overi","email":"ibrahim.over@0g.ai"},{"name":"0g-jiahao","email":"jiahao@0g.ai"},{"name":"0g-will","email":"will.riches@0g.ai"},{"name":"0g-xie","email":"xie@0g.ai"},{"name":"0g-peterzhang","email":"peter@0g.ai"}],"homepage":"https://github.com/0glabs/0g-serving-user-broker#readme","bugs":{"url":"https://github.com/0glabs/0g-serving-user-broker/issues"},"bin":{"0g-compute-cli":"cli.commonjs/cli/index.js"},"dist":{"shasum":"798292752e7926ba0cab10ddc4f3eb3bf655556c","tarball":"https://registry.npmjs.org/@0gfoundation/0g-compute-ts-sdk/-/0g-compute-ts-sdk-0.8.3-beta.1.tgz","fileCount":1332,"integrity":"sha512-rvfj9W74UhWKz2giMgmnapq/4fxsyZjc99fL3OVEpwBB7RQ+l2I5ku2T1M6IFlsw+ICHloaMpJwJ/CifZjBmwA==","signatures":[{"sig":"MEUCIH6okOVpJnOZAvuXYQaCNtPHdrcUfOe9dQOdrNg+thC/AiEAgVK9QwvL2yUvMlHX0jszmWb1qezr8NzxDsX7icvJMPc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":62969156},"main":"./lib.commonjs/index.js","pnpm":{"overrides":{"qs@6":"6.14.2","ajv@6":"6.14.0","diff@7":"8.0.3","bn.js@4":"4.12.3","bn.js@5":"5.2.3","minimatch@3":"3.1.4","minimatch@5":"5.1.8","minimatch@9":"9.0.7","serialize-javascript":"7.0.3"}},"types":"./lib.esm/index.d.ts","module":"./lib.esm/index.mjs","browser":{"fs":false,"os":false,"net":false,"tls":false,"path":false,"crypto":"crypto-browserify","stream":"stream-browserify","readline":false,"fs/promises":false,"child_process":false,"stream/promises":false},"engines":{"node":">=20.0.0"},"exports":{"types":"./types/index.d.ts","import":"./lib.esm/index.mjs","require":"./lib.commonjs/index.js"},"gitHead":"c0ffde81392039a86d06a9a05226240ff9e65d7d","scripts":{"lint":"eslint \"src.ts/**/*.ts\"","test":"mocha 'lib.commonjs/**/*.test.js'","build":"rm -rf dist lib.esm lib.commonjs types cli.commonjs && npm run build:sdk","clean":"rm -rf dist lib.esm lib.commonjs types cli.commonjs","format":"prettier --write \"src.ts/**/*.ts\"","gen-doc":"npx typedoc --tsconfig tsconfig.esm.json","prepare":"npm run build","test:all":"npm run test && npm run test:cli","test:cli":"mocha 'cli.commonjs/cli/__tests__/*.test.js' --timeout 60000","build:sdk":"tsc -b tsconfig.commonjs.json tsconfig.types.json tsconfig.cli.json && npx rollup -c rollup.config.mjs","build:with-ui":"npm run build:sdk && cd web-ui && pnpm install && pnpm build","prepublishOnly":"npm run build:with-ui","gen-contract-type":"typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/inference/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/inference/InferenceServing.sol/InferenceServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/fine-tuning/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/fine-tuning/FineTuningServing.sol/FineTuningServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/ledger/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/ledger/LedgerManager.sol/LedgerManager.json' && npm run format"},"_npmUser":{"name":"0g-jiahao","email":"jiahao@0g.ai"},"repository":{"url":"git+https://github.com/0glabs/0g-serving-user-broker.git","type":"git"},"_npmVersion":"10.9.2","description":"TS SDK for 0G Compute Network","directories":{"doc":"docs"},"_nodeVersion":"22.13.0","dependencies":{"util":"^0.12.5","axios":"^1.7.9","chalk":"^4.1.2","tslib":"^2.6.2","brotli":"^1.3.3","buffer":"^6.0.3","dotenv":"16.4.7","adm-zip":"^0.5.16","eciesjs":"^0.4.13","express":"5.1.0","prompts":"^2.4.2","commander":"^13.0.0","crypto-js":"^4.2.0","form-data":"^4.0.1","cli-table3":"^0.6.5","circomlibjs":"^0.1.6","update-notifier":"^7.3.1","crypto-browserify":"^3.12.1","stream-browserify":"^3.0.0","@ethersproject/bytes":"^5.7.0","@ethersproject/keccak256":"^5.7.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.7","mocha":"^10.2.0","sinon":"^19.0.2","eslint":"^9.30.1","openai":"^4.78.1","rollup":"^3.30.0","globals":"^16.3.0","js-sha3":"^0.9.1","ts-node":"^10.9.1","typedoc":"^0.26.10","typechain":"^8.3.1","uglify-js":"^3.17.4","@eslint/js":"^9.30.1","typescript":"^5.6.2","@types/chai":"^4.3.7","@types/node":"^20.5.9","@types/mocha":"^10.0.1","@types/sinon":"^17.0.4","@types/brotli":"^1.3.4","@types/adm-zip":"^0.5.7","@types/express":"^5.0.2","@types/prompts":"^2.4.9","@types/crypto-js":"^4.2.2","rollup-plugin-dts":"^6.1.1","typescript-eslint":"^8.36.0","@types/circomlibjs":"^0.1.6","@rollup/plugin-json":"^6.1.0","@typechain/ethers-v6":"^0.5.0","@types/update-notifier":"^6.0.8","@rollup/plugin-commonjs":"^28.0.1","@rollup/plugin-typescript":"^12.1.1","@rollup/plugin-node-resolve":"^15.3.0","rollup-plugin-polyfill-node":"^0.13.0"},"peerDependencies":{"ethers":"^6.13.1","crypto-js":"^4.2.0","circomlibjs":"^0.1.6","@types/crypto-js":"^4.2.2","@types/circomlibjs":"^0.1.6"},"_npmOperationalInternal":{"tmp":"tmp/0g-compute-ts-sdk_0.8.3-beta.1_1778338343901_0.8720944482953712","host":"s3://npm-registry-packages-npm-production"}},"0.8.3":{"name":"@0gfoundation/0g-compute-ts-sdk","version":"0.8.3","keywords":[],"author":{"name":"0G Labs"},"license":"ISC","_id":"@0gfoundation/0g-compute-ts-sdk@0.8.3","maintainers":[{"name":"overi","email":"ibrahim.over@0g.ai"},{"name":"0g-jiahao","email":"jiahao@0g.ai"},{"name":"0g-will","email":"will.riches@0g.ai"},{"name":"0g-xie","email":"xie@0g.ai"},{"name":"0g-peterzhang","email":"peter@0g.ai"}],"homepage":"https://github.com/0glabs/0g-serving-user-broker#readme","bugs":{"url":"https://github.com/0glabs/0g-serving-user-broker/issues"},"bin":{"0g-compute-cli":"cli.commonjs/cli/index.js"},"dist":{"shasum":"fc997767c5459690715e859b0ec68853e716e665","tarball":"https://registry.npmjs.org/@0gfoundation/0g-compute-ts-sdk/-/0g-compute-ts-sdk-0.8.3.tgz","fileCount":1332,"integrity":"sha512-d2a2/TcTwom7303EBzWWBEmTkB37wyoRM7qT0idLrgXN/rztAVdNTgQ2xFo+LRRIix5E4oRHs5CclAKavluoXg==","signatures":[{"sig":"MEQCIDK7jjHBzAQaQqgarOffd6ywt9D4EokWbYo5R2OOEndKAiAPS2z3W8uP8vuBeV3PIntOd6XnAO+Hy4Io5lzCePP9jA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":62969149},"main":"./lib.commonjs/index.js","pnpm":{"overrides":{"qs@6":"6.14.2","ajv@6":"6.14.0","diff@7":"8.0.3","bn.js@4":"4.12.3","bn.js@5":"5.2.3","minimatch@3":"3.1.4","minimatch@5":"5.1.8","minimatch@9":"9.0.7","serialize-javascript":"7.0.3"}},"types":"./lib.esm/index.d.ts","module":"./lib.esm/index.mjs","browser":{"fs":false,"os":false,"net":false,"tls":false,"path":false,"crypto":"crypto-browserify","stream":"stream-browserify","readline":false,"fs/promises":false,"child_process":false,"stream/promises":false},"engines":{"node":">=20.0.0"},"exports":{"types":"./types/index.d.ts","import":"./lib.esm/index.mjs","require":"./lib.commonjs/index.js"},"gitHead":"c0ffde81392039a86d06a9a05226240ff9e65d7d","scripts":{"lint":"eslint \"src.ts/**/*.ts\"","test":"mocha 'lib.commonjs/**/*.test.js'","build":"rm -rf dist lib.esm lib.commonjs types cli.commonjs && npm run build:sdk","clean":"rm -rf dist lib.esm lib.commonjs types cli.commonjs","format":"prettier --write \"src.ts/**/*.ts\"","gen-doc":"npx typedoc --tsconfig tsconfig.esm.json","prepare":"npm run build","test:all":"npm run test && npm run test:cli","test:cli":"mocha 'cli.commonjs/cli/__tests__/*.test.js' --timeout 60000","build:sdk":"tsc -b tsconfig.commonjs.json tsconfig.types.json tsconfig.cli.json && npx rollup -c rollup.config.mjs","build:with-ui":"npm run build:sdk && cd web-ui && pnpm install && pnpm build","prepublishOnly":"npm run build:with-ui","gen-contract-type":"typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/inference/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/inference/InferenceServing.sol/InferenceServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/fine-tuning/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/fine-tuning/FineTuningServing.sol/FineTuningServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/ledger/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/ledger/LedgerManager.sol/LedgerManager.json' && npm run format"},"_npmUser":{"name":"0g-jiahao","email":"jiahao@0g.ai"},"repository":{"url":"git+https://github.com/0glabs/0g-serving-user-broker.git","type":"git"},"_npmVersion":"10.9.2","description":"TS SDK for 0G Compute Network","directories":{"doc":"docs"},"_nodeVersion":"22.13.0","dependencies":{"util":"^0.12.5","axios":"^1.7.9","chalk":"^4.1.2","tslib":"^2.6.2","brotli":"^1.3.3","buffer":"^6.0.3","dotenv":"16.4.7","adm-zip":"^0.5.16","eciesjs":"^0.4.13","express":"5.1.0","prompts":"^2.4.2","commander":"^13.0.0","crypto-js":"^4.2.0","form-data":"^4.0.1","cli-table3":"^0.6.5","circomlibjs":"^0.1.6","update-notifier":"^7.3.1","crypto-browserify":"^3.12.1","stream-browserify":"^3.0.0","@ethersproject/bytes":"^5.7.0","@ethersproject/keccak256":"^5.7.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.7","mocha":"^10.2.0","sinon":"^19.0.2","eslint":"^9.30.1","openai":"^4.78.1","rollup":"^3.30.0","globals":"^16.3.0","js-sha3":"^0.9.1","ts-node":"^10.9.1","typedoc":"^0.26.10","typechain":"^8.3.1","uglify-js":"^3.17.4","@eslint/js":"^9.30.1","typescript":"^5.6.2","@types/chai":"^4.3.7","@types/node":"^20.5.9","@types/mocha":"^10.0.1","@types/sinon":"^17.0.4","@types/brotli":"^1.3.4","@types/adm-zip":"^0.5.7","@types/express":"^5.0.2","@types/prompts":"^2.4.9","@types/crypto-js":"^4.2.2","rollup-plugin-dts":"^6.1.1","typescript-eslint":"^8.36.0","@types/circomlibjs":"^0.1.6","@rollup/plugin-json":"^6.1.0","@typechain/ethers-v6":"^0.5.0","@types/update-notifier":"^6.0.8","@rollup/plugin-commonjs":"^28.0.1","@rollup/plugin-typescript":"^12.1.1","@rollup/plugin-node-resolve":"^15.3.0","rollup-plugin-polyfill-node":"^0.13.0"},"peerDependencies":{"ethers":"^6.13.1","crypto-js":"^4.2.0","circomlibjs":"^0.1.6","@types/crypto-js":"^4.2.2","@types/circomlibjs":"^0.1.6"},"_npmOperationalInternal":{"tmp":"tmp/0g-compute-ts-sdk_0.8.3_1778383619113_0.11728266769233286","host":"s3://npm-registry-packages-npm-production"}},"0.8.4":{"name":"@0gfoundation/0g-compute-ts-sdk","version":"0.8.4","keywords":[],"author":{"name":"0G Labs"},"license":"ISC","_id":"@0gfoundation/0g-compute-ts-sdk@0.8.4","maintainers":[{"name":"overi","email":"ibrahim.over@0g.ai"},{"name":"0g-jiahao","email":"jiahao@0g.ai"},{"name":"0g-will","email":"will.riches@0g.ai"},{"name":"0g-xie","email":"xie@0g.ai"},{"name":"0g-peterzhang","email":"peter@0g.ai"}],"homepage":"https://github.com/0glabs/0g-serving-user-broker#readme","bugs":{"url":"https://github.com/0glabs/0g-serving-user-broker/issues"},"bin":{"0g-compute-cli":"cli.commonjs/cli/index.js"},"dist":{"shasum":"667bf0ff324e59c6b17fc7f68cea46c0b3bedfc4","tarball":"https://registry.npmjs.org/@0gfoundation/0g-compute-ts-sdk/-/0g-compute-ts-sdk-0.8.4.tgz","fileCount":1343,"integrity":"sha512-73KtjKpAo/xkQCnFFkQVWUgpWyM5dqY6k3k+ylN7Mpqzqoqhm1fdQcUFg5loz524cbdrtS6DdRTameMMu4tm1Q==","signatures":[{"sig":"MEYCIQCtl/0WQSPsJVheYe+ymgFYvAL+rvyIW7bfNikui1GlpgIhAKP1TvPbjV6Wwah30gBa5ERihnnIeCfcvj8zG8b3iR78","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":63028210},"main":"./lib.commonjs/index.js","pnpm":{"overrides":{"qs@6":"6.14.2","ajv@6":"6.14.0","diff@7":"8.0.3","bn.js@4":"4.12.3","bn.js@5":"5.2.3","minimatch@3":"3.1.4","minimatch@5":"5.1.8","minimatch@9":"9.0.7","serialize-javascript":"7.0.3"}},"types":"./lib.esm/index.d.ts","module":"./lib.esm/index.mjs","browser":{"fs":false,"os":false,"net":false,"tls":false,"path":false,"crypto":"crypto-browserify","stream":"stream-browserify","readline":false,"fs/promises":false,"child_process":false,"stream/promises":false},"engines":{"node":">=20.0.0"},"exports":{"types":"./types/index.d.ts","import":"./lib.esm/index.mjs","require":"./lib.commonjs/index.js"},"gitHead":"23115b4537d86b08f7327e1ecefd3e0e0838c26f","scripts":{"lint":"eslint \"src.ts/**/*.ts\"","test":"mocha 'lib.commonjs/**/*.test.js'","build":"rm -rf dist lib.esm lib.commonjs types cli.commonjs && npm run build:sdk","clean":"rm -rf dist lib.esm lib.commonjs types cli.commonjs","format":"prettier --write \"src.ts/**/*.ts\"","gen-doc":"npx typedoc --tsconfig tsconfig.esm.json","prepare":"npm run build","test:all":"npm run test && npm run test:cli","test:cli":"mocha 'cli.commonjs/cli/__tests__/*.test.js' --timeout 60000","build:sdk":"tsc -b tsconfig.commonjs.json tsconfig.types.json tsconfig.cli.json && npx rollup -c rollup.config.mjs","build:with-ui":"npm run build:sdk && cd web-ui && pnpm install && pnpm build","prepublishOnly":"npm run build:with-ui","gen-contract-type":"typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/inference/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/inference/InferenceServing.sol/InferenceServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/fine-tuning/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/fine-tuning/FineTuningServing.sol/FineTuningServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/ledger/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/ledger/LedgerManager.sol/LedgerManager.json' && npm run format"},"_npmUser":{"name":"0g-jiahao","email":"jiahao@0g.ai"},"repository":{"url":"git+https://github.com/0glabs/0g-serving-user-broker.git","type":"git"},"_npmVersion":"10.9.2","description":"TS SDK for 0G Compute Network","directories":{"doc":"docs"},"_nodeVersion":"22.13.0","dependencies":{"util":"^0.12.5","axios":"^1.7.9","chalk":"^4.1.2","tslib":"^2.6.2","brotli":"^1.3.3","buffer":"^6.0.3","dotenv":"16.4.7","adm-zip":"^0.5.16","eciesjs":"^0.4.13","express":"5.1.0","prompts":"^2.4.2","commander":"^13.0.0","crypto-js":"^4.2.0","form-data":"^4.0.1","cli-table3":"^0.6.5","circomlibjs":"^0.1.6","update-notifier":"^7.3.1","crypto-browserify":"^3.12.1","stream-browserify":"^3.0.0","@ethersproject/bytes":"^5.7.0","@ethersproject/keccak256":"^5.7.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.7","mocha":"^10.2.0","sinon":"^19.0.2","eslint":"^9.30.1","openai":"^4.78.1","rollup":"^3.30.0","globals":"^16.3.0","js-sha3":"^0.9.1","ts-node":"^10.9.1","typedoc":"^0.26.10","typechain":"^8.3.1","uglify-js":"^3.17.4","@eslint/js":"^9.30.1","typescript":"^5.6.2","@types/chai":"^4.3.7","@types/node":"^20.5.9","@types/mocha":"^10.0.1","@types/sinon":"^17.0.4","@types/brotli":"^1.3.4","@types/adm-zip":"^0.5.7","@types/express":"^5.0.2","@types/prompts":"^2.4.9","@types/crypto-js":"^4.2.2","rollup-plugin-dts":"^6.1.1","typescript-eslint":"^8.36.0","@types/circomlibjs":"^0.1.6","@rollup/plugin-json":"^6.1.0","@typechain/ethers-v6":"^0.5.0","@types/update-notifier":"^6.0.8","@rollup/plugin-commonjs":"^28.0.1","@rollup/plugin-typescript":"^12.1.1","@rollup/plugin-node-resolve":"^15.3.0","rollup-plugin-polyfill-node":"^0.13.0"},"peerDependencies":{"ethers":"^6.13.1","crypto-js":"^4.2.0","circomlibjs":"^0.1.6","@types/crypto-js":"^4.2.2","@types/circomlibjs":"^0.1.6"},"_npmOperationalInternal":{"tmp":"tmp/0g-compute-ts-sdk_0.8.4_1781068915239_0.7169253933519741","host":"s3://npm-registry-packages-npm-production"}},"0.9.0-beta.0":{"name":"@0gfoundation/0g-compute-ts-sdk","version":"0.9.0-beta.0","keywords":[],"author":{"name":"0G Labs"},"license":"ISC","_id":"@0gfoundation/0g-compute-ts-sdk@0.9.0-beta.0","maintainers":[{"name":"overi","email":"ibrahim.over@0g.ai"},{"name":"0g-jiahao","email":"jiahao@0g.ai"},{"name":"0g-will","email":"will.riches@0g.ai"},{"name":"0g-xie","email":"xie@0g.ai"},{"name":"0g-peterzhang","email":"peter@0g.ai"}],"homepage":"https://github.com/0glabs/0g-serving-user-broker#readme","bugs":{"url":"https://github.com/0glabs/0g-serving-user-broker/issues"},"bin":{"0g-compute-cli":"cli.commonjs/cli/index.js"},"dist":{"shasum":"618e76ee1822da2f47dd45e8937191f9e132b996","tarball":"https://registry.npmjs.org/@0gfoundation/0g-compute-ts-sdk/-/0g-compute-ts-sdk-0.9.0-beta.0.tgz","fileCount":1343,"integrity":"sha512-fbsZmE5vsN5IaYblUYX1Pm7Q7acOKn51LyvS94YALJBuqzpU7MiVUyLF+RohnA4oKhsl4iN/qAO1dgoQrHGPPA==","signatures":[{"sig":"MEUCIQDmZzeuMJpB8KtYk0kKXx4DeF6NfCZ0KGNzyHqLTPJZ9AIgcXel9bToRqO4iMGqBBy8lY8NMAkoDEXLVFSh/QI92a4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":63121501},"main":"./lib.commonjs/index.js","pnpm":{"overrides":{"qs@6":"6.14.2","ajv@6":"6.14.0","diff@7":"8.0.3","bn.js@4":"4.12.3","bn.js@5":"5.2.3","minimatch@3":"3.1.4","minimatch@5":"5.1.8","minimatch@9":"9.0.7","serialize-javascript":"7.0.3"}},"types":"./lib.esm/index.d.ts","module":"./lib.esm/index.mjs","browser":{"fs":false,"os":false,"net":false,"tls":false,"path":false,"crypto":"crypto-browserify","stream":"stream-browserify","readline":false,"fs/promises":false,"child_process":false,"stream/promises":false},"engines":{"node":">=20.0.0"},"exports":{"types":"./types/index.d.ts","import":"./lib.esm/index.mjs","require":"./lib.commonjs/index.js"},"gitHead":"3cd576475823b65ae945cb4982a668c6314616d4","scripts":{"lint":"eslint \"src.ts/**/*.ts\"","test":"mocha 'lib.commonjs/**/*.test.js'","build":"rm -rf dist lib.esm lib.commonjs types cli.commonjs && npm run build:sdk","clean":"rm -rf dist lib.esm lib.commonjs types cli.commonjs","format":"prettier --write \"src.ts/**/*.ts\"","gen-doc":"npx typedoc --tsconfig tsconfig.esm.json","prepare":"npm run build","test:all":"npm run test && npm run test:cli","test:cli":"mocha 'cli.commonjs/cli/__tests__/*.test.js' --timeout 60000","build:sdk":"tsc -b tsconfig.commonjs.json tsconfig.types.json tsconfig.cli.json && npx rollup -c rollup.config.mjs","build:with-ui":"npm run build:sdk && cd web-ui && pnpm install && pnpm build","prepublishOnly":"npm run build:with-ui","gen-contract-type":"typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/inference/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/inference/InferenceServing.sol/InferenceServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/fine-tuning/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/fine-tuning/FineTuningServing.sol/FineTuningServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/ledger/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/ledger/LedgerManager.sol/LedgerManager.json' && npm run format"},"_npmUser":{"name":"0g-jiahao","email":"jiahao@0g.ai"},"repository":{"url":"git+https://github.com/0glabs/0g-serving-user-broker.git","type":"git"},"_npmVersion":"10.9.2","description":"TS SDK for 0G Compute Network","directories":{"doc":"docs"},"_nodeVersion":"22.13.0","dependencies":{"util":"^0.12.5","axios":"^1.7.9","chalk":"^4.1.2","tslib":"^2.6.2","brotli":"^1.3.3","buffer":"^6.0.3","dotenv":"16.4.7","adm-zip":"^0.5.16","eciesjs":"^0.4.13","express":"5.1.0","prompts":"^2.4.2","commander":"^13.0.0","crypto-js":"^4.2.0","form-data":"^4.0.1","cli-table3":"^0.6.5","circomlibjs":"^0.1.6","update-notifier":"^7.3.1","crypto-browserify":"^3.12.1","stream-browserify":"^3.0.0","@ethersproject/bytes":"^5.7.0","@ethersproject/keccak256":"^5.7.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.7","mocha":"^10.2.0","sinon":"^19.0.2","eslint":"^9.30.1","openai":"^4.78.1","rollup":"^3.30.0","globals":"^16.3.0","js-sha3":"^0.9.1","ts-node":"^10.9.1","typedoc":"^0.26.10","typechain":"^8.3.1","uglify-js":"^3.17.4","@eslint/js":"^9.30.1","typescript":"^5.6.2","@types/chai":"^4.3.7","@types/node":"^20.5.9","@types/mocha":"^10.0.1","@types/sinon":"^17.0.4","@types/brotli":"^1.3.4","@types/adm-zip":"^0.5.7","@types/express":"^5.0.2","@types/prompts":"^2.4.9","@types/crypto-js":"^4.2.2","rollup-plugin-dts":"^6.1.1","typescript-eslint":"^8.36.0","@types/circomlibjs":"^0.1.6","@rollup/plugin-json":"^6.1.0","@typechain/ethers-v6":"^0.5.0","@types/update-notifier":"^6.0.8","@rollup/plugin-commonjs":"^28.0.1","@rollup/plugin-typescript":"^12.1.1","@rollup/plugin-node-resolve":"^15.3.0","rollup-plugin-polyfill-node":"^0.13.0"},"peerDependencies":{"ethers":"^6.13.1","crypto-js":"^4.2.0","circomlibjs":"^0.1.6","@types/crypto-js":"^4.2.2","@types/circomlibjs":"^0.1.6"},"_npmOperationalInternal":{"tmp":"tmp/0g-compute-ts-sdk_0.9.0-beta.0_1781092766352_0.736698002979749","host":"s3://npm-registry-packages-npm-production"}},"0.9.0":{"name":"@0gfoundation/0g-compute-ts-sdk","version":"0.9.0","keywords":[],"author":{"name":"0G Labs"},"license":"ISC","_id":"@0gfoundation/0g-compute-ts-sdk@0.9.0","maintainers":[{"name":"overi","email":"ibrahim.over@0g.ai"},{"name":"0g-jiahao","email":"jiahao@0g.ai"},{"name":"0g-will","email":"will.riches@0g.ai"},{"name":"0g-xie","email":"xie@0g.ai"},{"name":"ymh357","email":"minghao.yu@0g.ai"},{"name":"0g-peterzhang","email":"peter@0g.ai"}],"homepage":"https://github.com/0glabs/0g-serving-user-broker#readme","bugs":{"url":"https://github.com/0glabs/0g-serving-user-broker/issues"},"bin":{"0g-compute-cli":"cli.commonjs/cli/index.js"},"dist":{"shasum":"40d36aeb9483ee5a9a5159945cb729ae1700575b","tarball":"https://registry.npmjs.org/@0gfoundation/0g-compute-ts-sdk/-/0g-compute-ts-sdk-0.9.0.tgz","fileCount":1351,"integrity":"sha512-mhfMY4PL9ir2sAgnOXx72ZcSxT3U+56C2WljfMDYLOElitknk/S67QYyz24tXlqq3/ueB6lcUUJOQHKlJbtxEw==","signatures":[{"sig":"MEUCIQD75Rv4WqjFZYrIlsCMpES5AmbfhywCDUBUzisCvIfiGAIgexEAAaY76cmry7MapJkr0mz7oLOSkN1I+8EiN0ZL2fw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":63140212},"main":"./lib.commonjs/index.js","pnpm":{"overrides":{"qs@6":"6.14.2","ajv@6":"6.14.0","diff@7":"8.0.3","bn.js@4":"4.12.3","bn.js@5":"5.2.3","minimatch@3":"3.1.4","minimatch@5":"5.1.8","minimatch@9":"9.0.7","serialize-javascript":"7.0.3"}},"types":"./lib.esm/index.d.ts","module":"./lib.esm/index.mjs","browser":{"fs":false,"os":false,"net":false,"tls":false,"path":false,"crypto":"crypto-browserify","stream":"stream-browserify","readline":false,"fs/promises":false,"child_process":false,"stream/promises":false},"engines":{"node":">=20.0.0"},"exports":{"types":"./types/index.d.ts","import":"./lib.esm/index.mjs","require":"./lib.commonjs/index.js"},"gitHead":"bff29131f953d5b08ad0c40eb805d8e00408df77","scripts":{"lint":"eslint \"src.ts/**/*.ts\"","test":"mocha 'lib.commonjs/**/*.test.js'","build":"rm -rf dist lib.esm lib.commonjs types cli.commonjs && npm run build:sdk","clean":"rm -rf dist lib.esm lib.commonjs types cli.commonjs","format":"prettier --write \"src.ts/**/*.ts\"","gen-doc":"npx typedoc --tsconfig tsconfig.esm.json","prepare":"npm run build","test:all":"npm run test && npm run test:cli","test:cli":"mocha 'cli.commonjs/cli/__tests__/*.test.js' --timeout 60000","build:sdk":"tsc -b tsconfig.commonjs.json tsconfig.types.json tsconfig.cli.json && npx rollup -c rollup.config.mjs","build:with-ui":"npm run build:sdk && cd web-ui && pnpm install && pnpm build","prepublishOnly":"npm run build:with-ui","gen-contract-type":"typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/inference/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/inference/InferenceServing.sol/InferenceServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/fine-tuning/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/fine-tuning/FineTuningServing.sol/FineTuningServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/ledger/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/ledger/LedgerManager.sol/LedgerManager.json' && npm run format"},"_npmUser":{"name":"0g-jiahao","email":"jiahao@0g.ai"},"repository":{"url":"git+https://github.com/0glabs/0g-serving-user-broker.git","type":"git"},"_npmVersion":"10.9.2","description":"TS SDK for 0G Compute Network","directories":{"doc":"docs"},"_nodeVersion":"22.13.0","dependencies":{"util":"^0.12.5","axios":"^1.7.9","chalk":"^4.1.2","tslib":"^2.6.2","brotli":"^1.3.3","buffer":"^6.0.3","dotenv":"16.4.7","adm-zip":"^0.5.16","eciesjs":"^0.4.13","express":"5.1.0","prompts":"^2.4.2","commander":"^13.0.0","crypto-js":"^4.2.0","form-data":"^4.0.1","cli-table3":"^0.6.5","circomlibjs":"^0.1.6","update-notifier":"^7.3.1","crypto-browserify":"^3.12.1","stream-browserify":"^3.0.0","@ethersproject/bytes":"^5.7.0","@ethersproject/keccak256":"^5.7.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.7","mocha":"^10.2.0","sinon":"^19.0.2","eslint":"^9.30.1","openai":"^4.78.1","rollup":"^3.30.0","globals":"^16.3.0","js-sha3":"^0.9.1","ts-node":"^10.9.1","typedoc":"^0.26.10","typechain":"^8.3.1","uglify-js":"^3.17.4","@eslint/js":"^9.30.1","typescript":"^5.6.2","@types/chai":"^4.3.7","@types/node":"^20.5.9","@types/mocha":"^10.0.1","@types/sinon":"^17.0.4","@types/brotli":"^1.3.4","@types/adm-zip":"^0.5.7","@types/express":"^5.0.2","@types/prompts":"^2.4.9","@types/crypto-js":"^4.2.2","rollup-plugin-dts":"^6.1.1","typescript-eslint":"^8.36.0","@types/circomlibjs":"^0.1.6","@rollup/plugin-json":"^6.1.0","@typechain/ethers-v6":"^0.5.0","@types/update-notifier":"^6.0.8","@rollup/plugin-commonjs":"^28.0.1","@rollup/plugin-typescript":"^12.1.1","@rollup/plugin-node-resolve":"^15.3.0","rollup-plugin-polyfill-node":"^0.13.0"},"peerDependencies":{"ethers":"^6.13.1","crypto-js":"^4.2.0","circomlibjs":"^0.1.6","@types/crypto-js":"^4.2.2","@types/circomlibjs":"^0.1.6"},"_npmOperationalInternal":{"tmp":"tmp/0g-compute-ts-sdk_0.9.0_1784289540072_0.592146664918662","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-04-30T12:24:06.262Z","modified":"2026-08-11T07:12:35.337Z","0.8.0":"2026-04-30T12:24:07.242Z","0.8.1":"2026-05-07T09:44:05.252Z","0.8.2":"2026-05-08T12:12:16.896Z","0.8.3-beta.0":"2026-05-09T03:50:34.542Z","0.8.3-beta.1":"2026-05-09T14:52:24.843Z","0.8.3":"2026-05-10T03:26:59.913Z","0.8.4":"2026-06-10T05:21:55.738Z","0.9.0-beta.0":"2026-06-10T11:59:26.901Z","0.9.0":"2026-07-17T11:59:00.543Z"},"bugs":{"url":"https://github.com/0glabs/0g-serving-user-broker/issues"},"author":{"name":"0G Labs"},"license":"ISC","homepage":"https://github.com/0glabs/0g-serving-user-broker#readme","keywords":[],"repository":{"url":"git+https://github.com/0glabs/0g-serving-user-broker.git","type":"git"},"description":"TS SDK for 0G Compute Network","maintainers":[{"email":"ibrahim.over@0g.ai","name":"overi"},{"email":"jiahao@0g.ai","name":"0g-jiahao"},{"email":"will.riches@0g.ai","name":"0g-will"},{"email":"xie@0g.ai","name":"0g-xie"},{"email":"minghao.yu@0g.ai","name":"ymh357"},{"email":"wei@0g.ai","name":"wilbertwu"},{"email":"peter@0g.ai","name":"0g-peterzhang"}],"readme":"# 0G Compute TS SDK\n\n> 📦 **Package renamed**: As of v0.8.0, this package is published as **`@0gfoundation/0g-compute-ts-sdk`**. The previous package name `@0glabs/0g-serving-broker` is now deprecated and re-exports this package; please update your dependency and imports.\n\nAccess compute resources from 0G Private Computer - a decentralized marketplace that connects developers with affordable, verifiable AI inference and fine-tuning services.\n\n## Features\n\n- **AI Inference**: Run LLMs, text-to-image, image editing, and speech-to-text models — with both sync and async modes\n- **Fine-tuning**: Customize models with your own data\n- **OpenAI Compatible**: Works with existing OpenAI SDK clients\n- **Web UI**: Built-in interface for easy service discovery and testing\n- **CLI Tools**: Command-line interface for automation\n\n## Requirements\n\n- Node.js >= 20.0.0\n- A wallet with 0G tokens\n\n## Installation\n\n```bash\n# Using pnpm (recommended)\npnpm add @0gfoundation/0g-compute-ts-sdk\n\n# Using npm\nnpm install @0gfoundation/0g-compute-ts-sdk\n\n# Using yarn\nyarn add @0gfoundation/0g-compute-ts-sdk\n\n# Install globally for CLI access\npnpm add @0gfoundation/0g-compute-ts-sdk -g\n```\n\n## Quick Start\n\n### Web UI\n\nThe fastest way to get started:\n\n```bash\n# Launch the Web UI\n0g-compute-cli ui start-web\n```\n\nOpen `http://localhost:3090` in your browser to:\n\n- Connect your wallet (MetaMask)\n- Browse available AI services\n- Chat with AI models directly\n- Get integration code examples\n\n### CLI\n\n```bash\n# Setup network\n0g-compute-cli setup-network\n\n# Login with your wallet\n0g-compute-cli login\n\n# Deposit funds\n0g-compute-cli deposit --amount 10\n\n# List available providers\n0g-compute-cli inference list-providers\n\n# Transfer funds to a provider\n0g-compute-cli transfer-fund --provider <PROVIDER_ADDRESS> --amount 5\n\n# Acknowledge provider before use\n0g-compute-cli inference acknowledge-provider --provider <PROVIDER_ADDRESS>\n\n# Get API secret for direct access\n0g-compute-cli inference get-secret --provider <PROVIDER_ADDRESS>\n\n# Generate API key with a specific token ID (0-254)\n0g-compute-cli inference get-secret --provider <PROVIDER_ADDRESS> --token-id 5\n```\n\n### SDK\n\n```typescript\nimport { ethers } from 'ethers'\nimport { createZGComputeNetworkBroker } from '@0gfoundation/0g-compute-ts-sdk'\n\n// Initialize\nconst provider = new ethers.JsonRpcProvider('https://evmrpc-testnet.0g.ai')\nconst wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider)\nconst broker = await createZGComputeNetworkBroker(wallet)\n\n// Discover services\nconst services = await broker.inference.listService()\n\n// Fund your account\nawait broker.ledger.depositFund(10)\n\n// Acknowledge provider\nawait broker.inference.acknowledgeProviderSigner(providerAddress)\n\n// Get service metadata. `model` here is the provider's DEFAULT model.\n// A provider may serve multiple models — see \"Multi-model providers\" below to\n// list them and select a specific one.\nconst { endpoint, model } =\n    await broker.inference.getServiceMetadata(providerAddress)\n\n// Generate auth headers\nconst headers = await broker.inference.getRequestHeaders(providerAddress)\n\n// Make request (OpenAI compatible)\nconst response = await fetch(`${endpoint}/chat/completions`, {\n    method: 'POST',\n    headers: { 'Content-Type': 'application/json', ...headers },\n    body: JSON.stringify({\n        model,\n        messages: [{ role: 'user', content: 'Hello!' }],\n    }),\n})\n\n// Or make async request (support images-generations and images-edits)\n\n// Async endpoints live under /v1/async instead of /v1/proxy\nconst asyncBase = endpoint.replace('/v1/proxy', '/v1/async')\nconst requestBody = {\n    model,\n    prompt: 'A cute baby sea otter',\n    n: 1,\n    size: '512x512',\n    response_format: 'b64_json',\n}\n\n// Step 1 — submit the job\nconst submitHeaders = await broker.inference.getRequestHeaders(\n    providerAddress,\n    JSON.stringify(requestBody)\n)\nconst submitRes = await fetch(`${asyncBase}/images/generations`, {\n    method: 'POST',\n    headers: { 'Content-Type': 'application/json', ...submitHeaders },\n    body: JSON.stringify(requestBody),\n})\n// 202 Accepted → { jobId: \"uuid\", status: \"pending\" }\nconst { jobId } = await submitRes.json()\n\n// Step 2 — poll until done\nlet job\ndo {\n    const retryAfter = job?.retryAfter ?? 5\n    await new Promise((r) => setTimeout(r, retryAfter * 1000))\n\n    const pollHeaders =\n        await broker.inference.getRequestHeaders(providerAddress)\n    const pollRes = await fetch(`${asyncBase}/jobs/${jobId}`, {\n        headers: pollHeaders,\n    })\n    const retryAfterHeader = pollRes.headers.get('Retry-After')\n    job = {\n        ...(await pollRes.json()),\n        retryAfter: retryAfterHeader ? Number(retryAfterHeader) : 5,\n    }\n} while (job.status === 'pending' || job.status === 'processing')\n\nif (job.status === 'failed') throw new Error(job.errorMessage)\n\n// job.data — raw provider response, e.g. { data: [{ b64_json: \"...\" }] }\n```\n\n### Multi-model providers\n\nA single provider can serve **multiple models** behind one address (each with\nits own pricing). `getServiceMetadata()` returns only the provider's *default*\nmodel; use `getProviderModels()` to discover the full catalog, then pass the\nchosen model id to `getServiceMetadata(addr, modelId)` (or set it as `model` in\nthe request body).\n\n```typescript\n// Discover the models a provider serves (live, from its /v1/models endpoint)\nconst catalog = await broker.inference.getProviderModels(providerAddress)\nif (catalog.multiModel) {\n    catalog.models.forEach((m) =>\n        console.log(m.id, m.canonical_id ?? '', m.type ?? '')\n    )\n}\n\n// Select a specific model (forwarded as-is; the provider validates it and bills that model's price)\nconst { endpoint, model } = await broker.inference.getServiceMetadata(\n    providerAddress,\n    'zai-org/GLM-5.1-FP8' // one of catalog.models[].id\n)\nconst headers = await broker.inference.getRequestHeaders(providerAddress)\nawait fetch(`${endpoint}/chat/completions`, {\n    method: 'POST',\n    headers: { 'Content-Type': 'application/json', ...headers },\n    body: JSON.stringify({\n        model, // the selected model\n        messages: [{ role: 'user', content: 'Hello!' }],\n    }),\n})\n```\n\nThe CLI mirrors this: `0g-compute-cli inference list-providers` marks multi-model\nproviders, and `0g-compute-cli inference get-models --provider <addr>` lists a\nprovider's models.\n\n## Direct API Access\n\nAfter obtaining a secret with `0g-compute-cli inference get-secret`, use any OpenAI-compatible client:\n\n```typescript\nimport OpenAI from 'openai'\n\nconst client = new OpenAI({\n    baseURL: `${serviceUrl}/v1/proxy`,\n    apiKey: 'app-sk-<YOUR_SECRET>',\n})\n\nconst completion = await client.chat.completions.create({\n    model: 'model-name',\n    messages: [{ role: 'user', content: 'Hello!' }],\n})\n```\n\n## Account Management\n\n0G Private Computer uses a two-tier account system:\n\n- **Main Account**: Where you deposit funds from your wallet\n- **Sub-Accounts**: Provider-specific accounts for service payments\n\n```bash\n# Check account balance\n0g-compute-cli get-account\n\n# Deposit to main account\n0g-compute-cli deposit --amount 10\n\n# Transfer to provider sub-account\n0g-compute-cli transfer-fund --provider <PROVIDER_ADDRESS> --amount 5\n\n# Request refund from sub-accounts (24-hour lock period)\n0g-compute-cli retrieve-fund\n\n# Withdraw to wallet\n0g-compute-cli refund --amount 5\n```\n\n## Fine-tuning\n\nCustomize AI models with your own data:\n\n```bash\n# List available providers\n0g-compute-cli fine-tuning list-providers\n\n# List available models\n0g-compute-cli fine-tuning list-models\n\n# Upload your dataset\n0g-compute-cli fine-tuning upload --data-path ./my-dataset\n\n# Create fine-tuning task\n0g-compute-cli fine-tuning create-task \\\n  --provider <PROVIDER_ADDRESS> \\\n  --model distilbert-base-uncased \\\n  --dataset <DATASET_ROOT_HASH> \\\n  --config-path ./config.json \\\n  --data-size <SIZE>\n\n# Monitor progress\n0g-compute-cli fine-tuning get-task --provider <PROVIDER_ADDRESS> --task <TASK_ID>\n\n# Download and decrypt result\n0g-compute-cli fine-tuning acknowledge-model --provider <PROVIDER_ADDRESS> --task-id <TASK_ID> --data-path ./model\n0g-compute-cli fine-tuning decrypt-model --provider <PROVIDER_ADDRESS> --task-id <TASK_ID> --encrypted-model ./model --output ./model.zip\n```\n\n## Provider Controller (For Service Providers)\n\nService providers can manage their deployed containers and configurations remotely using the controller CLI.\n\n### Setup\n\n```bash\n# Reset saved endpoint configuration\n0g-compute-cli controller reset-controller-endpoint\n```\n\n### Container Management\n\n```bash\n# View all container status\n0g-compute-cli controller status\n\n# Start/stop/restart specific containers\n0g-compute-cli controller start --container broker\n0g-compute-cli controller stop --container event\n0g-compute-cli controller restart --container ingress\n\n# Available containers: broker, event, ingress, prometheus-init, prometheus\n```\n\n### Configuration Management\n\nThe controller manages three types of configurations:\n\n| Type         | Description                         | Format                     |\n| ------------ | ----------------------------------- | -------------------------- |\n| `core`       | Broker + Event shared config        | YAML                       |\n| `ingress`    | Nginx ingress environment variables | JSON                       |\n| `prometheus` | Prometheus monitoring config        | YAML (auto base64 encoded) |\n\n```bash\n# Get configuration\n0g-compute-cli controller get-config --type core --output config.yaml\n0g-compute-cli controller get-config --type ingress\n0g-compute-cli controller get-config --type prometheus --decode  # decode base64\n\n# Update configuration\n# core: updates config AND restarts broker+event\n0g-compute-cli controller update-config --type core --config config.yaml\n\n# ingress: provide JSON file with env vars\n# Example env.json: {\"DOMAIN\": \"example.com\", \"PORT\": \"443\"}\n0g-compute-cli controller update-config --type ingress --config env.json\n\n# prometheus: provide YAML file (auto base64 encoded)\n0g-compute-cli controller update-config --type prometheus --config prometheus.yml\n```\n\n### Admin & Security Management\n\n```bash\n# Manage admin wallet whitelist\n0g-compute-cli controller list-admins\n0g-compute-cli controller add-admin --address 0x...\n0g-compute-cli controller remove-admin --address 0x...\n\n# Manage IP whitelist\n0g-compute-cli controller list-ips\n0g-compute-cli controller add-ip --ip 192.168.1.100\n0g-compute-cli controller add-ip --ip 10.0.0.0/8  # CIDR supported\n0g-compute-cli controller remove-ip --ip 192.168.1.100\n```\n\n### Image Management\n\n```bash\n# View current image info\n0g-compute-cli controller image-info\n\n# Pull latest image and recreate broker+event containers\n0g-compute-cli controller update-images\n```\n\n## Network Configuration\n\n| Network | RPC Endpoint                 |\n| ------- | ---------------------------- |\n| Testnet | https://evmrpc-testnet.0g.ai |\n| Mainnet | https://evmrpc.0g.ai         |\n\n## Browser Usage\n\nFor browser environments, you'll need polyfills for Node.js built-in modules:\n\n```bash\npnpm add -D vite-plugin-node-polyfills\n```\n\n```javascript\n// vite.config.js\nimport { nodePolyfills } from 'vite-plugin-node-polyfills'\n\nexport default {\n    plugins: [\n        nodePolyfills({\n            include: ['crypto', 'stream', 'util', 'buffer', 'process'],\n            globals: { Buffer: true, global: true, process: true },\n        }),\n    ],\n}\n```\n\n## Troubleshooting\n\n### Insufficient Balance\n\n```bash\n# Check which account needs funds\n0g-compute-cli get-account\n\n# Deposit to main account\n0g-compute-cli deposit --amount 10\n\n# Transfer to provider\n0g-compute-cli transfer-fund --provider <ADDRESS> --amount 5\n```\n\n### Provider Not Acknowledged\n\n```bash\n0g-compute-cli inference acknowledge-provider --provider <PROVIDER_ADDRESS>\n```\n\n### Web UI Port Conflict\n\n```bash\n0g-compute-cli ui start-web --port 3091\n```\n\n## Documentation\n\n- [0G Compute Network Overview](https://docs.0g.ai/developer-hub/building-on-0g/compute-network/overview)\n- [Inference Guide](https://docs.0g.ai/developer-hub/building-on-0g/compute-network/inference)\n- [Fine-tuning Guide](https://docs.0g.ai/developer-hub/building-on-0g/compute-network/fine-tuning)\n- [Account Management](https://docs.0g.ai/developer-hub/building-on-0g/compute-network/account-management)\n","readmeFilename":"README.md"}