{"_id":"@bitkub-chain/sdk.js","_rev":"8-9ef199dd276eb377ab1a43d2780d3a05","name":"@bitkub-chain/sdk.js","dist-tags":{"latest":"1.0.1"},"versions":{"0.1.0":{"name":"@bitkub-chain/sdk.js","version":"0.1.0","author":"","license":"BBT","_id":"@bitkub-chain/sdk.js@0.1.0","maintainers":[{"name":"moonshot-isman","email":"isman.isman@bitkub.com"}],"dist":{"shasum":"33f2c0ac1a58c8307b7fe5b84c1902982ec3699a","tarball":"https://registry.npmjs.org/@bitkub-chain/sdk.js/-/sdk.js-0.1.0.tgz","fileCount":37,"integrity":"sha512-KxPaFKkX5/T9mECy0Lxvw/XmjiJTZOBvzYVjtNzwhYblimKvOWk8BBKRCdxtLDEZ+vVyxRsl8J/ERsjAE4rcaA==","signatures":[{"sig":"MEQCIGOFOSKSNDDomWyVj+i4wIuJerogTQ1GxkfGVo6zL7asAiB1qTzx01g8DBw72yKgf24mBhYNQUN7iV2vPmFsSuTVrg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56699},"types":"./lib.types/index.d.ts","module":"./lib.esm/index.js","engines":{"node":">=16"},"gitHead":"ca377f05b0f180b2ffed450892e2ea94491abc2f","scripts":{"fl":"pnpm run format && pnpm run lint","lint":"eslint \"src/**/*.{ts,tsx,js,jsx}\"","build":"npm run clean && npm run build-tsc && npm run build-types && npm run minify-js","clean":"rm -rf lib.esm lib.types","format":"prettier --config .prettierrc --write \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\" && prettier --config .prettierrc --check \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"","gen-doc":"pnpm typedoc src/**/*.ts","build-tsc":"tsc --project tsconfig.esm.json","minify-js":"find lib.esm -maxdepth 30 -iname \"*.js\" -exec pnpm terser --compress --mangle --comments=false --ecma=2022 --passes=3 -o {} -- {} \\;","build-types":"tsc --project tsconfig.types.json","postversion":"git push --tags"},"_npmUser":{"name":"moonshot-isman","email":"isman.isman@bitkub.com"},"_npmVersion":"10.8.1","description":"**BitkubChainSDK** is a JavaScript library designed for developers to interact with the Bitkub Chain blockchain network. It offers various methods for managing user authentication, retrieving user information, and executing transactions on the blockchain.","directories":{},"_nodeVersion":"20.16.0","dependencies":{"axios":"^1.7.2","buffer":"^6.0.3","ethers":"^6.13.1","url-join":"^5.0.0","jwt-decode":"^4.0.0","async-mutex":"^0.5.0","axios-case-converter":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.6.0","terser":"^5.31.2","globals":"^15.8.0","typedoc":"^0.26.4","prettier":"^3.3.2","@eslint/js":"^9.6.0","typescript":"^5.5.3","@types/node":"^20.14.10","@eslint/eslintrc":"^3.1.0","eslint-plugin-tsdoc":"^0.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.15.0","eslint-plugin-unused-imports":"^4.0.0","@typescript-eslint/eslint-plugin":"^7.15.0","prettier-plugin-organize-imports":"^4.0.0","@trivago/prettier-plugin-sort-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk.js_0.1.0_1724056582112_0.9149287599628817","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@bitkub-chain/sdk.js","version":"0.1.1","author":"","license":"BBT","_id":"@bitkub-chain/sdk.js@0.1.1","maintainers":[{"name":"moonshot-isman","email":"isman.isman@bitkub.com"}],"dist":{"shasum":"847704be49d2b30983b1f70537787ca1a8198725","tarball":"https://registry.npmjs.org/@bitkub-chain/sdk.js/-/sdk.js-0.1.1.tgz","fileCount":37,"integrity":"sha512-pfgvGO4CUIl1ht0C5j3RzEjaket1snJDlgqfbouRpZpAr5RfkYPvL3UE5/LmUCEMCwCRV/gHfO4CuKdsPKntOw==","signatures":[{"sig":"MEUCIQDHrrchrkq0oik49csSHiLrQti8dMYhWMwZwmK7MHqFKwIgBXkesMA2n20XLn65cuowOLKTU785pq/9YC6j9zAqb1M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56711},"types":"./lib.types/index.d.ts","module":"./lib.esm/index.js","engines":{"node":">=16"},"gitHead":"cdac9e6740e0a4a63d3f04bc94b19c0987f23438","scripts":{"fl":"pnpm run format && pnpm run lint","lint":"eslint \"src/**/*.{ts,tsx,js,jsx}\"","build":"npm run clean && npm run build-tsc && npm run build-types && npm run minify-js","clean":"rm -rf lib.esm lib.types","format":"prettier --config .prettierrc --write \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\" && prettier --config .prettierrc --check \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"","gen-doc":"pnpm typedoc src/**/*.ts","build-tsc":"tsc --project tsconfig.esm.json","minify-js":"find lib.esm -maxdepth 30 -iname \"*.js\" -exec pnpm terser --compress --mangle --comments=false --ecma=2022 --passes=3 -o {} -- {} \\;","build-types":"tsc --project tsconfig.types.json","postversion":"git push --tags"},"_npmUser":{"name":"moonshot-isman","email":"isman.isman@bitkub.com"},"_npmVersion":"10.8.1","description":"**BitkubChainSDK** is a JavaScript library designed for developers to interact with the Bitkub Chain blockchain network. It offers various methods for managing user authentication, retrieving user information, and executing transactions on the blockchain.","directories":{},"_nodeVersion":"20.16.0","dependencies":{"axios":"^1.7.2","buffer":"^6.0.3","ethers":"^6.13.1","url-join":"^5.0.0","jwt-decode":"^4.0.0","async-mutex":"^0.5.0","axios-case-converter":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.6.0","terser":"^5.31.2","globals":"^15.8.0","typedoc":"^0.26.4","prettier":"^3.3.2","@eslint/js":"^9.6.0","typescript":"^5.5.3","@types/node":"^20.14.10","@eslint/eslintrc":"^3.1.0","eslint-plugin-tsdoc":"^0.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.15.0","eslint-plugin-unused-imports":"^4.0.0","@typescript-eslint/eslint-plugin":"^7.15.0","prettier-plugin-organize-imports":"^4.0.0","@trivago/prettier-plugin-sort-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk.js_0.1.1_1724057249838_0.3134638679765436","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@bitkub-chain/sdk.js","version":"0.1.2","author":"","license":"BBT","_id":"@bitkub-chain/sdk.js@0.1.2","maintainers":[{"name":"moonshot-isman","email":"isman.isman@bitkub.com"}],"dist":{"shasum":"fa694301ebe82ede86703a362f2b27b21283781a","tarball":"https://registry.npmjs.org/@bitkub-chain/sdk.js/-/sdk.js-0.1.2.tgz","fileCount":37,"integrity":"sha512-l0/xKr1wzwi04GI6DEMXmxPOLokFmzMUbSHNnxL10NaAgyV1NIZ7Cqt4nPpATFjDQ22B5t86njG58T8PgiWtlA==","signatures":[{"sig":"MEYCIQDRSkmLoCPqRpbdsJOtsGZt9Zrury5ue+zR/kRPhD1LMwIhAJE62YJCJAJqxAX7qZyQxi9m7IgswSqAaFclQqjNfU8P","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58844},"types":"./lib.types/index.d.ts","module":"./lib.esm/index.js","engines":{"node":">=16"},"gitHead":"fb6f9bff346031062ca6132e1f3418c0fd4816b9","scripts":{"fl":"pnpm run format && pnpm run lint","lint":"eslint \"src/**/*.{ts,tsx,js,jsx}\"","build":"npm run clean && npm run build-tsc && npm run build-types && npm run minify-js","clean":"rm -rf lib.esm lib.types","format":"prettier --config .prettierrc --write \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\" && prettier --config .prettierrc --check \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"","gen-doc":"pnpm typedoc src/**/*.ts","build-tsc":"tsc --project tsconfig.esm.json","minify-js":"find lib.esm -maxdepth 30 -iname \"*.js\" -exec pnpm terser --compress --mangle --comments=false --ecma=2022 --passes=3 -o {} -- {} \\;","build-types":"tsc --project tsconfig.types.json","postversion":"git push --tags"},"_npmUser":{"name":"moonshot-isman","email":"isman.isman@bitkub.com"},"_npmVersion":"10.8.1","description":"**BitkubChainSDK** is a JavaScript library designed for developers to interact with the Bitkub Chain blockchain network. It offers various methods for managing user authentication, retrieving user information, and executing transactions on the blockchain.","directories":{},"_nodeVersion":"20.16.0","dependencies":{"axios":"^1.7.2","buffer":"^6.0.3","ethers":"^6.13.1","url-join":"^5.0.0","jwt-decode":"^4.0.0","async-mutex":"^0.5.0","axios-case-converter":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.6.0","terser":"^5.31.2","globals":"^15.8.0","typedoc":"^0.26.4","prettier":"^3.3.2","@eslint/js":"^9.6.0","typescript":"^5.5.3","@types/node":"^20.14.10","@eslint/eslintrc":"^3.1.0","eslint-plugin-tsdoc":"^0.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.15.0","eslint-plugin-unused-imports":"^4.0.0","@typescript-eslint/eslint-plugin":"^7.15.0","prettier-plugin-organize-imports":"^4.0.0","@trivago/prettier-plugin-sort-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk.js_0.1.2_1724071371768_0.556570234227503","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"@bitkub-chain/sdk.js","version":"0.1.3","author":"","license":"BBT","_id":"@bitkub-chain/sdk.js@0.1.3","maintainers":[{"name":"moonshot-isman","email":"isman.isman@bitkub.com"}],"dist":{"shasum":"ee7bb087f4009a9538f78cf7cdba526672d3555f","tarball":"https://registry.npmjs.org/@bitkub-chain/sdk.js/-/sdk.js-0.1.3.tgz","fileCount":37,"integrity":"sha512-JfbT3KHw+AotWkrOjMpk7W9B5j7HKNVW03DF4aNdrzfzyXPyOJ+jgsG0Nhf0IY4CZyVXJwsO2kb697I8rKHxNg==","signatures":[{"sig":"MEQCIH6ppjlhsc6qN0snJC4o60OGrTiWdrp+t1F8VKyk5/X/AiBufSYgKnZUxU+SBbbqn8Bpc1iHRgE5Af8H1gAyZ/sHXg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58848},"types":"./lib.types/index.d.ts","module":"./lib.esm/index.js","engines":{"node":">=16"},"gitHead":"a91580fde10e6582c67f33ba36e6955f967a2f75","scripts":{"fl":"pnpm run format && pnpm run lint","lint":"eslint \"src/**/*.{ts,tsx,js,jsx}\"","build":"npm run clean && npm run build-tsc && npm run build-types && npm run minify-js","clean":"rm -rf lib.esm lib.types","format":"prettier --config .prettierrc --write \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\" && prettier --config .prettierrc --check \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"","gen-doc":"pnpm typedoc src/**/*.ts","build-tsc":"tsc --project tsconfig.esm.json","minify-js":"find lib.esm -maxdepth 30 -iname \"*.js\" -exec pnpm terser --compress --mangle --comments=false --ecma=2022 --passes=3 -o {} -- {} \\;","build-types":"tsc --project tsconfig.types.json","postversion":"git push --tags"},"_npmUser":{"name":"moonshot-isman","email":"isman.isman@bitkub.com"},"_npmVersion":"10.8.1","description":"**BitkubNextSDK** is a JavaScript library designed for developers to interact with the Bitkub Chain blockchain network. It offers various methods for managing user authentication, retrieving user information, and executing transactions on the blockchain.","directories":{},"_nodeVersion":"20.16.0","dependencies":{"axios":"^1.7.2","buffer":"^6.0.3","ethers":"^6.13.1","url-join":"^5.0.0","jwt-decode":"^4.0.0","async-mutex":"^0.5.0","axios-case-converter":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.6.0","terser":"^5.31.2","globals":"^15.8.0","typedoc":"^0.26.4","prettier":"^3.3.2","@eslint/js":"^9.6.0","typescript":"^5.5.3","@types/node":"^20.14.10","@eslint/eslintrc":"^3.1.0","eslint-plugin-tsdoc":"^0.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.15.0","eslint-plugin-unused-imports":"^4.0.0","@typescript-eslint/eslint-plugin":"^7.15.0","prettier-plugin-organize-imports":"^4.0.0","@trivago/prettier-plugin-sort-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk.js_0.1.3_1724155285395_0.9318049715090271","host":"s3://npm-registry-packages"}},"0.1.4":{"name":"@bitkub-chain/sdk.js","version":"0.1.4","author":"","license":"BBT","_id":"@bitkub-chain/sdk.js@0.1.4","maintainers":[{"name":"moonshot-isman","email":"isman.isman@bitkub.com"}],"dist":{"shasum":"4e13a0aab8ba561ae4f896b049bda85eaceddb93","tarball":"https://registry.npmjs.org/@bitkub-chain/sdk.js/-/sdk.js-0.1.4.tgz","fileCount":37,"integrity":"sha512-w6CuIuuikgCK/rmKCZDxnuHxl6xG9vqeBx78MlpgaXaph4KsB39YeGDIqbERJYF+lIUC/PqOpBKlNFlTz+dX1g==","signatures":[{"sig":"MEUCIQDtTXd8vt3oUAB2muzTIV+pF0eNe75fy9JuCwQHHN7XXAIgbiKVD2SsLgSSHj5UIgG0wi20fSH289Xx3hwSimJXAEk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58848},"types":"./lib.types/index.d.ts","module":"./lib.esm/index.js","engines":{"node":">=16"},"gitHead":"b7880f162e625fd7b562d342478b24c4ab69aee8","scripts":{"fl":"pnpm run format && pnpm run lint","lint":"eslint \"src/**/*.{ts,tsx,js,jsx}\"","build":"npm run clean && npm run build-tsc && npm run build-types && npm run minify-js","clean":"rm -rf lib.esm lib.types","format":"prettier --config .prettierrc --write \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\" && prettier --config .prettierrc --check \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"","gen-doc":"pnpm typedoc src/**/*.ts","build-tsc":"tsc --project tsconfig.esm.json","minify-js":"find lib.esm -maxdepth 30 -iname \"*.js\" -exec pnpm terser --compress --mangle --comments=false --ecma=2022 --passes=3 -o {} -- {} \\;","build-types":"tsc --project tsconfig.types.json","postversion":"git push --tags"},"_npmUser":{"name":"moonshot-isman","email":"isman.isman@bitkub.com"},"_npmVersion":"10.8.1","description":"**BitkubNextSDK** is a JavaScript library designed for developers to interact with the Bitkub Chain blockchain network. It offers various methods for managing user authentication, retrieving user information, and executing transactions on the blockchain.","directories":{},"_nodeVersion":"20.16.0","dependencies":{"axios":"^1.7.2","buffer":"^6.0.3","ethers":"^6.13.1","url-join":"^5.0.0","jwt-decode":"^4.0.0","async-mutex":"^0.5.0","axios-case-converter":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.6.0","terser":"^5.31.2","globals":"^15.8.0","typedoc":"^0.26.4","prettier":"^3.3.2","@eslint/js":"^9.6.0","typescript":"^5.5.3","@types/node":"^20.14.10","@eslint/eslintrc":"^3.1.0","eslint-plugin-tsdoc":"^0.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.15.0","eslint-plugin-unused-imports":"^4.0.0","@typescript-eslint/eslint-plugin":"^7.15.0","prettier-plugin-organize-imports":"^4.0.0","@trivago/prettier-plugin-sort-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk.js_0.1.4_1724239500838_0.6335851275432185","host":"s3://npm-registry-packages"}},"0.1.5":{"name":"@bitkub-chain/sdk.js","version":"0.1.5","author":"","license":"BBT","_id":"@bitkub-chain/sdk.js@0.1.5","maintainers":[{"name":"moonshot-isman","email":"isman.isman@bitkub.com"}],"dist":{"shasum":"c946391f10114e7b054dee4e37d282eb145905c1","tarball":"https://registry.npmjs.org/@bitkub-chain/sdk.js/-/sdk.js-0.1.5.tgz","fileCount":37,"integrity":"sha512-bs4p1omYrUwWnhImhg6xcPz4OH+Wj1yEp0o3rdiIN2/UM9EWygUu1KHfyffW1Og4KlkBPULuc+oh9V3rW9h6rA==","signatures":[{"sig":"MEQCIF/QBN7t6vrKa6+CrQ+GLOgIoSbt7YKgBqxq0gF+jxZsAiBikbb9rV2QktlIHHCOzi+lnoQ2G8pM+qLRr7Xv4ZbRHw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62779},"types":"./lib.types/index.d.ts","module":"./lib.esm/index.js","engines":{"node":">=16"},"gitHead":"9ac6a26ec8772a7f9e6a2861546e1a54e395d87c","scripts":{"fl":"pnpm run format && pnpm run lint","lint":"eslint \"src/**/*.{ts,tsx,js,jsx}\"","build":"npm run clean && npm run build-tsc && npm run build-types && npm run minify-js","clean":"rm -rf lib.esm lib.types","format":"prettier --config .prettierrc --write \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\" && prettier --config .prettierrc --check \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"","gen-doc":"pnpm typedoc src/**/*.ts","build-tsc":"tsc --project tsconfig.esm.json","minify-js":"find lib.esm -maxdepth 30 -iname \"*.js\" -exec pnpm terser --compress --mangle --comments=false --ecma=2022 --passes=3 -o {} -- {} \\;","build-types":"tsc --project tsconfig.types.json","postversion":"git push --tags"},"_npmUser":{"name":"moonshot-isman","email":"isman.isman@bitkub.com"},"_npmVersion":"10.8.2","description":"**BitkubNextSDK** is a JavaScript library designed for developers to interact with the Bitkub Chain blockchain network. It offers various methods for managing user authentication, retrieving user information, and executing transactions on the blockchain.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"axios":"^1.7.2","buffer":"^6.0.3","ethers":"^6.13.1","url-join":"^5.0.0","jwt-decode":"^4.0.0","async-mutex":"^0.5.0","axios-case-converter":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.6.0","terser":"^5.31.2","globals":"^15.8.0","typedoc":"^0.26.4","prettier":"^3.3.2","@eslint/js":"^9.6.0","typescript":"^5.5.3","@types/node":"^20.14.10","@eslint/eslintrc":"^3.1.0","eslint-plugin-tsdoc":"^0.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.15.0","eslint-plugin-unused-imports":"^4.0.0","@typescript-eslint/eslint-plugin":"^7.15.0","prettier-plugin-organize-imports":"^4.0.0","@trivago/prettier-plugin-sort-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk.js_0.1.5_1724661291999_0.5683021871143799","host":"s3://npm-registry-packages"}},"0.1.6":{"name":"@bitkub-chain/sdk.js","version":"0.1.6","author":"","license":"BBT","_id":"@bitkub-chain/sdk.js@0.1.6","maintainers":[{"name":"moonshot-isman","email":"isman.isman@bitkub.com"}],"dist":{"shasum":"d44270dd582d4881dbe01e83e1c44fc09ce72a1e","tarball":"https://registry.npmjs.org/@bitkub-chain/sdk.js/-/sdk.js-0.1.6.tgz","fileCount":37,"integrity":"sha512-mr34Tx26sYjOmGCOsI1ZdqkTvdk+wN5SzwtdBFLet6e+AtQ+LOV98Em5yMtPcaGrxOzIYakKG61kfduH+LYACw==","signatures":[{"sig":"MEUCIQDzJpyv8+iYLkA6ycuBdUXz9bat1wAO8mZhQqR+eVjHZgIgLrme1Se5v9iyJC1H5qVGUjG42dieCYbfNLjNT0EqHk0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":66521},"types":"./lib.types/index.d.ts","module":"./lib.esm/index.js","engines":{"node":">=16"},"gitHead":"c2505cf93ce334c182b258370da84e2c85237e06","scripts":{"fl":"pnpm run format && pnpm run lint","lint":"eslint \"src/**/*.{ts,tsx,js,jsx}\"","build":"npm run clean && npm run build-tsc && npm run build-types && npm run minify-js","clean":"rm -rf lib.esm lib.types","format":"prettier --config .prettierrc --write \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\" && prettier --config .prettierrc --check \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"","gen-doc":"pnpm typedoc src/**/*.ts","build-tsc":"tsc --project tsconfig.esm.json","minify-js":"find lib.esm -maxdepth 30 -iname \"*.js\" -exec pnpm terser --compress --mangle --comments=false --ecma=2022 --passes=3 -o {} -- {} \\;","build-types":"tsc --project tsconfig.types.json","postversion":"git push --tags"},"_npmUser":{"name":"moonshot-isman","email":"isman.isman@bitkub.com"},"_npmVersion":"10.8.2","description":"**BitkubNextSDK** is a JavaScript library designed for developers to interact with the Bitkub Chain blockchain network. It offers various methods for managing user authentication, retrieving user information, and executing transactions on the blockchain.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"axios":"^1.7.2","buffer":"^6.0.3","ethers":"^6.13.1","url-join":"^5.0.0","jwt-decode":"^4.0.0","async-mutex":"^0.5.0","axios-case-converter":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.6.0","terser":"^5.31.2","globals":"^15.8.0","typedoc":"^0.26.4","prettier":"^3.3.2","@eslint/js":"^9.6.0","typescript":"^5.5.3","@types/node":"^20.14.10","@eslint/eslintrc":"^3.1.0","eslint-plugin-tsdoc":"^0.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.15.0","eslint-plugin-unused-imports":"^4.0.0","@typescript-eslint/eslint-plugin":"^7.15.0","prettier-plugin-organize-imports":"^4.0.0","@trivago/prettier-plugin-sort-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk.js_0.1.6_1725273417886_0.8336084657218463","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@bitkub-chain/sdk.js","version":"1.0.0","author":"","license":"BBT","_id":"@bitkub-chain/sdk.js@1.0.0","maintainers":[{"name":"moonshot-isman","email":"isman.isman@bitkub.com"}],"dist":{"shasum":"d7784537801e37a3de99052b9a3ea3668c9c5c7e","tarball":"https://registry.npmjs.org/@bitkub-chain/sdk.js/-/sdk.js-1.0.0.tgz","fileCount":39,"integrity":"sha512-4rVwMqqTdQNglZX2lBAYxijy6DFvh9bDjWbSaRibUgva89VMSvxjrnGL12qbR+mzRMP4wbCeYdE3kPjXj3Pe6w==","signatures":[{"sig":"MEYCIQCQ5wFV2SvXEhM3YAAh4ZEoj5rByW2eCg1X4JnHgZ6ThgIhAIp8OaSrJKbGfM39ICcsg518YrnpnwjvhK12noiAILff","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":68913},"types":"./lib.types/index.d.ts","module":"./lib.esm/index.js","engines":{"node":">=16"},"gitHead":"ec62b7ba180a64f3336a009afd30b95d9569c8ff","scripts":{"fl":"pnpm run format && pnpm run lint","lint":"eslint \"src/**/*.{ts,tsx,js,jsx}\"","build":"npm run clean && npm run build-tsc && npm run build-types && npm run minify-js","clean":"rm -rf lib.esm lib.types","format":"prettier --config .prettierrc --write \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\" && prettier --config .prettierrc --check \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"","gen-doc":"pnpm typedoc src/**/*.ts","build-tsc":"tsc --project tsconfig.esm.json","minify-js":"find lib.esm -maxdepth 30 -iname \"*.js\" -exec pnpm terser --compress --mangle --comments=false --ecma=2022 --passes=3 -o {} -- {} \\;","build-types":"tsc --project tsconfig.types.json","postversion":"git push --tags"},"_npmUser":{"name":"moonshot-isman","email":"isman.isman@bitkub.com"},"_npmVersion":"10.8.2","description":"**BitkubNextSDK** is a JavaScript library designed for developers to interact with the Bitkub Chain blockchain network. It offers various methods for managing user authentication, retrieving user information, and executing transactions on the blockchain.","directories":{},"_nodeVersion":"20.18.2","dependencies":{"axios":"^1.7.2","buffer":"^6.0.3","ethers":"^6.13.1","url-join":"^5.0.0","jwt-decode":"^4.0.0","async-mutex":"^0.5.0","axios-case-converter":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.6.0","terser":"^5.31.2","globals":"^15.8.0","typedoc":"^0.26.4","prettier":"^3.3.2","@eslint/js":"^9.6.0","typescript":"^5.5.3","@types/node":"^20.14.10","@eslint/eslintrc":"^3.1.0","eslint-plugin-tsdoc":"^0.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.15.0","eslint-plugin-unused-imports":"^4.0.0","@typescript-eslint/eslint-plugin":"^7.15.0","prettier-plugin-organize-imports":"^4.0.0","@trivago/prettier-plugin-sort-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk.js_1.0.0_1738322212802_0.532501670188859","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@bitkub-chain/sdk.js","version":"1.0.1","description":"**BitkubNextSDK** is a JavaScript library designed for developers to interact with the Bitkub Chain blockchain network. It offers various methods for managing user authentication, retrieving user information, and executing transactions on the blockchain.","module":"./lib.esm/index.js","types":"./lib.types/index.d.ts","scripts":{"format":"prettier --config .prettierrc --write \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\" && prettier --config .prettierrc --check \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"","lint":"eslint \"src/**/*.{ts,tsx,js,jsx}\"","fl":"pnpm run format && pnpm run lint","gen-doc":"pnpm typedoc src/**/*.ts","build":"npm run clean && npm run build-tsc && npm run build-types && npm run minify-js","clean":"rm -rf lib.esm lib.types","build-tsc":"tsc --project tsconfig.esm.json","build-types":"tsc --project tsconfig.types.json","minify-js":"find lib.esm -maxdepth 30 -iname \"*.js\" -exec pnpm terser --compress --mangle --comments=false --ecma=2022 --passes=3 -o {} -- {} \\;","postversion":"git push --tags"},"engines":{"node":">=16"},"author":"","license":"BBT","devDependencies":{"@eslint/eslintrc":"^3.1.0","@eslint/js":"^9.6.0","@trivago/prettier-plugin-sort-imports":"^4.3.0","@types/node":"^20.14.10","@typescript-eslint/eslint-plugin":"^7.15.0","@typescript-eslint/parser":"^7.15.0","eslint":"^9.6.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-tsdoc":"^0.3.0","eslint-plugin-unused-imports":"^4.0.0","globals":"^15.8.0","prettier":"^3.3.2","prettier-plugin-organize-imports":"^4.0.0","terser":"^5.31.2","typedoc":"^0.26.4","typescript":"^5.5.3"},"dependencies":{"async-mutex":"^0.5.0","axios":"^1.7.2","axios-case-converter":"^1.1.1","buffer":"^6.0.3","ethers":"^6.13.1","jwt-decode":"^4.0.0","url-join":"^5.0.0"},"_id":"@bitkub-chain/sdk.js@1.0.1","gitHead":"7cf12538178e194bb908da181108d16dff3aacff","_nodeVersion":"20.18.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-QnnPFA0z8WlAHi3sIfUmh+0TX/2vJ6jtL+6/UBhYtUMosZihZBI0dQn/CmUtJwFstISkOW8txZgJ1YsBHho/cQ==","shasum":"899c36fc22b354d338e92dcf13bbbf5935f96fc1","tarball":"https://registry.npmjs.org/@bitkub-chain/sdk.js/-/sdk.js-1.0.1.tgz","fileCount":39,"unpackedSize":69051,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIC5Xh8yShd5xYf3x27jBUJWjKCbzBfPk22O6eelK5Xs+AiBVsrEa8Im23+tjxe4Y+o6CE4Rgxp5BOrZYIPHsFJmhuQ=="}]},"_npmUser":{"name":"moonshot-isman","email":"isman.isman@bitkub.com"},"directories":{},"maintainers":[{"name":"moonshot-isman","email":"isman.isman@bitkub.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk.js_1.0.1_1738325703251_0.45619652148079437"},"_hasShrinkwrap":false}},"time":{"created":"2024-08-19T08:36:21.981Z","modified":"2025-01-31T12:15:03.639Z","0.1.0":"2024-08-19T08:36:22.305Z","0.1.1":"2024-08-19T08:47:29.968Z","0.1.2":"2024-08-19T12:42:51.996Z","0.1.3":"2024-08-20T12:01:25.599Z","0.1.4":"2024-08-21T11:25:01.083Z","0.1.5":"2024-08-26T08:34:52.153Z","0.1.6":"2024-09-02T10:36:58.095Z","1.0.0":"2025-01-31T11:16:52.992Z","1.0.1":"2025-01-31T12:15:03.436Z"},"license":"BBT","description":"**BitkubNextSDK** is a JavaScript library designed for developers to interact with the Bitkub Chain blockchain network. It offers various methods for managing user authentication, retrieving user information, and executing transactions on the blockchain.","maintainers":[{"name":"moonshot-isman","email":"isman.isman@bitkub.com"}],"readme":"# BitkubNextSDK\n\n**BitkubNextSDK** is a JavaScript library designed for developers to interact with the Bitkub Chain blockchain network. It offers various methods for managing user authentication, retrieving user information, and executing transactions on the blockchain.\n\n## ⚙️ Installation\n\nTo install the BitkubNextSDK, use npm, pnpm, or yarn:\n\n```bash\nnpm install @bitkub-chain/sdk.js\n```\n\nor\n\n```bash\npnpm install @bitkub-chain/sdk.js\n```\n\nor\n\n```bash\nyarn add @bitkub-chain/sdk.js\n```\n\n---\n\n## 📝 Initialization\n\nTo initialize the SDK, use the initializeSDK function:\nYou can generate `clientID` and `projectID` in [Bitkub Chain Playground](https://playground.bitkubchain.com/)\n\nCreate `lib/bitkubchain-sdk/index.ts` at root project to initialze SDK\n\n```Javascript\nimport { initializeSDK, Network } from '@bitkub-chain/sdk.js';\n\nconst clientID = 'your-client-id';\nconst projectID = 'your-project-id';\nconst network = Network.BKC_TESTNET; // or Network.BKC_MAINNET will comming soon\nconst initOpts = {\n  /**\n   * @default '/oauth/callback'\n   */\n  loginRedirectPath: '/oauth/callback',\n};\n\nconst sdk = initializeSDK(clientID, projectID, network, initOpts);\n```\n\n---\n\n## 🔐 Authentication\n\nFirst of all, to login with Bitkub NEXT, you have to set up Oauth first:\nIt is the path on the client application’s URL where the authorization server will redirect the user after they have granted or denied access.\n\n1. Create `/oauth/callback` page\n\n```Javascript\nimport { useEffect } from 'react'\nimport { sdk } from '@lib/bitkubchain-sdk'\n\nexport default function Page() {\n  useEffect(() => {\n    const code = new URLSearchParams(window.location.search).get('code')\n    if (code) {\n      exchange(code)\n    }\n  }, [])\n\n  const exchange = async (code: string) => {\n    await sdk.exchangeAuthorizationCode(code)\n    window.close()\n  }\n\n  return (\n    <div>\n      <h2>Callback Page</h2>\n      <p>Exchanging code for tokens...</p>\n    </div>\n  )\n}\n```\n\n2. Navigate to the [Bitkub Chain Playground](https://playground.bitkubchain.com/) and locate the Edit Client ID section to set up your redirect URIs.\n\n<b>Example:</b>\n\n- <b>Default Redirect URI:</b> If you haven’t specified a `loginRedirectPath`, the default redirect URI will be `/oauth/callback.` You should configure it as follows:\n\n```Javascript\nhttp://localhost:3000/oauth/callback // For Development Purpose\nhttps://your-application-domain-here.com/oauth/callback\n```\n\n- <b>Custom Redirect URI:</b> If you have specified a custom `loginRedirectPath`, update your redirect URI to match this path:\n\n```Javascript\nhttp://localhost:3000/your-custom-loginRedirectPath // For Development Purpose\nhttps://your-application-domain-here.com/your-custom-loginRedirectPath\n```\n\n🎉 Now you should be able to login with BitkubNext. 🎉\n\n---\n\n#### Login\n\nTo open a BitkubNext login window:\n\n```Javascript\nawait sdk.loginWithBitkubNext();\n```\n\n---\n\n#### Logout\n\nTo log out the user:\n\n```Javascript\nawait sdk.logout();\n```\n\n---\n\n#### Exchange Authorization Code\n\nTo exchange the authorization code for access and refresh tokens:\n\n```Javascript\nconst code = 'authorizationCode';\nawait sdk.exchangeAuthorizationCode(code);\n```\n\n---\n\n#### User Information\n\nGet User Info\nTo fetch the user's information:\n\n```Javascript\nconst userInfo = await sdk.getUserInfo();\n```\n\n##### Example Response\n\n```Javascript\nconst userInfo = {\n    id: \"64c30c0468b02b001c7629a4\",\n    clientId: \"65bc5c4560686a001bda94dc\",\n    email: \"test@bitkubnextsdk.com\",\n    phone: \"+66123456789\",\n    status: \"ACTIVE\",\n    walletAddress: \"0x1234567890abcdef1234567890abcdef12345678\",\n}\n```\n\n---\n\n#### Get User Wallet Address\n\nTo fetch the user's wallet address:\n\n```Javascript\nconst walletAddress = await sdk.getUserWalletAddress();\n// 0x1234567890abcdef1234567890abcdef12345678\n```\n\n---\n\n#### Get User Telephone Number\n\nTo fetch the user's telephone number:\n\n```Javascript\nconst tel = await sdk.getUserTel();\n// +661234567890\n```\n\n---\n\n#### Get User Email\n\nTo fetch the user's email address:\n\n```Javascript\nconst email = await sdk.getUserEmail();\n// test@bitkubnextsdk.com\n```\n\n---\n\n#### Get User ID\n\nTo fetch the user's ID:\n\n```Javascript\nconst userID = await sdk.getUserID();\n// 65c30c0469a02b001c7629b1\n```\n\n---\n\n## 💰 Balances\n\n| Property     | Description                           | Type         | Example                                      |\n| ------------ | ------------------------------------- | ------------ | -------------------------------------------- |\n| tokenAddress | The address of the token contract     | string       | `0x67eBD850304c70d983B2d1b93ea79c7CD6c3F6b5` |\n| tokenID      | The ID of the specific token or asset | BigNumberish | 1                                            |\n\n#### Get Native Balance\n\n📌 If the network is `Network.BKC_MAINNET` or `Network.BKC_TESTNET`, [`KKUB`](https://testnet.bkcscan.com/token/0x1BbE34CF9fd2E0669deEE34c68282ec1e6c44ab0) balance will be returned.\nOtherwise, the native currency of the network will be returned.\n\n```Javascript\nconst balance = await sdk.getBalanceNative();\n// 1000000000000000000\n```\n\n> #### 💡 How to get KKUB\n>\n> 1. KKUB Contract Address in `Network.BKC_TESTNET`: [0x1BbE34CF9fd2E0669deEE34c68282ec1e6c44ab0](https://testnet.bkcscan.com/address/0x1BbE34CF9fd2E0669deEE34c68282ec1e6c44ab0)\n> 2. Request KUB Native coin from Faucet [Here](https://faucet.bitkubchain.com/)\n> 3. Wrap KUB Native coin using `deposit` method [Here](https://testnet.bkcscan.com/address/0x1BbE34CF9fd2E0669deEE34c68282ec1e6c44ab0?tab=write_contract#d0e30db0)\n\n#### Get ERC-20 Token Balance\n\nTo fetch an ERC-20 token's balance (in Wei):\n\n```Javascript\nconst balance = await sdk.getBalance20(tokenAddress);\n// 1000000000000000000\n```\n\n#### Get ERC-721 Token Balance\n\nTo fetch an ERC-721 token's balance:\n\n```Javascript\nconst balance = await sdk.getBalance721(tokenAddress);\n// 10\n```\n\n#### Get ERC-1155 Token Balance\n\nTo fetch an ERC-1155 token's balance:\n\n```Javascript\nconst balance = await sdk.getBalance1155(tokenAddress, tokenID);\n// 10\n```\n\n## 📤 Transactions\n\n##### Property\n\n| Property            | Description                                   | Type         | Example                                                              |\n| ------------------- | --------------------------------------------- | ------------ | -------------------------------------------------------------------- |\n| tokenAddress        | The address of the token contract             | string       | `0x67eBD850304c70d983B2d1b93ea79c7CD6c3F6b5`                         |\n| toAddress           | The address of the recipient                  | string       | `0x1234567890abcdef1234567890abcdef12345678`                         |\n| amount              | The amount of tokens to be transferred in wei | BigNumberish | 1 Ether = `1000000000000000000`                                      |\n| tokenID             | The ID of the specific token or asset         | BigNumberish | 1                                                                    |\n| functionReadableABI | The human-readable format of the function ABI | string       | `buyNft(uint256 _recipeIndex, uint256 _amount, address _bitkubNext)` |\n| methodParams        | The parameters used in the method call        | Array        | `[1, 1]`                                                             |\n\n#### SubmitTransactionResponse\n\nThe `SubmitTransactionResponse` type represents the response structure for submitting a transaction. Here's a breakdown of its properties:\n\n| Property             | Type                      | Description                                                   |\n| -------------------- | ------------------------- | ------------------------------------------------------------- |\n| `approvalExpireTime` | `number`                  | The expiration time of the approval in Unix timestamp format. |\n| `approvalStatus`     | `'pending' \\| 'approved'` | The current status of the approval.                           |\n| `approvalUrl`        | `string`                  | The URL to approve the transaction.                           |\n| `queueId`            | `string`                  | The unique identifier for the transaction queue.              |\n\n##### Response\n\n```Javascript\nconst result = {\n  approvalExpireTime: 1697740800,\n  approvalStatus: \"pending\",\n  approvalUrl: \"https://example.com/approve\",\n  queueId: \"648abd81663ss\"\n}\n```\n\n### Transfer Token\n\n> #### 📌 Approval Token\n>\n> Users must approve an allowance before transferring KAP20 to ensure that only authorized smart contracts can spend their tokens, preventing unauthorized access and protecting their assets.\n>\n> ##### Property\n>\n> | Property       | Description                                                                                                                                                                                                 | Type         | Example                                       |\n> | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | --------------------------------------------- |\n> | tokenAddress   | The address of the token contract                                                                                                                                                                           | string       | `0x67eBD850304c70d983B2d1b93ea79c7CD6c3F6b5`  |\n> | amount         | The allowance amount (in Wei) authorizes a smart contract to spend a specified number of your tokens on your behalf.                                                                                        | BigNumberish | 1 Ether = `1000000000000000000`               |\n> | spenderAddress | (Optional) If transfer using `transferNative` or `transfer20`, ignore this property. The address of a smart contract or user that has been granted permission to spend tokens on behalf of another address. | string       | `0x123eCF850304c70d983B2d1b93ea79c7CD6c3H6b7` |\n>\n> #### Get Approve Token Allowance\n>\n> ```Javascript\n> const allowanceAmount = await sdk.getAllowanceToken(tokenAddress, spenderAddress);\n> // 1000000000000000000\n> ```\n>\n> #### Approve Token\n>\n> ```Javascript\n> const result = await sdk.approveToken(tokenAddress, amount, spenderAddress);\n> ```\n>\n> Now you should be able to transfer KAP20 (including Native)\n\n#### Transfer Native Token\n\n```Javascript\nconst result = await sdk.transferNative(toAddress, amount);\n```\n\n#### Transfer ERC-20 Token\n\n```Javascript\nconst result = await sdk.transfer20(tokenAddress, toAddress, amount);\n```\n\n### Transfer NFT\n\n> #### 📌 Approval NFT\n>\n> Users must approve before transferring NFT to ensure that only authorized smart contracts can send their NFT, preventing unauthorized access and protecting their assets.\n>\n> ##### Property\n>\n> | Property        | Description                                                                                                                                                                                            | Type   | Example                                       |\n> | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------ | --------------------------------------------- |\n> | tokenAddress    | The address of the token contract                                                                                                                                                                      | string | `0x67eBD850304c70d983B2d1b93ea79c7CD6c3F6b5`  |\n> | operatorAddress | (Optional) If transfer using `transfer721` or `transfer1155`, ignore this property. The address of a smart contract or user that has been granted permission to send NFT on behalf of another address. | string | `0x123eCF850304c70d983B2d1b93ea79c7CD6c3H6b7` |\n>\n> #### Get Is Approved NFT\n>\n> ```Javascript\n> const isApprovedNFT = await sdk.getIsApprovedNFT(tokenAddress, operatorAddress);\n> // true/false\n> ```\n>\n> #### Approve NFT\n>\n> ```Javascript\n> const result = await sdk.approveNFT(tokenAddress, operatorAddress);\n> ```\n>\n> Now you should be able to transfer NFT\n\n#### Transfer ERC-721 Token\n\n```Javascript\nconst result = await sdk.transfer721(tokenAddress, toAddress, tokenID);\n```\n\n#### Transfer ERC-1155 Token\n\n```Javascript\nconst result = await sdk.transfer1155(tokenAddress, toAddress, tokenID, amount);\n```\n\n---\n\n#### Send Custom Transaction\n\n```Javascript\nconst result = await sdk.sendCustomTx(toAddress, functionReadableABI, methodParams);\n```\n\n##### To sendCustomTx via SDK\n\n```Javascript\nconst functionReadableABI = \"buyNft(uint256 _recipeIndex, uint256 _amount, address _bitkubNext)\"\nconst methodParams = [1, 1]\nconst result = await sdk.sendCustomTx(\"0x1234567890abcdef1234567890abcdef12345678\", functionReadableABI, methodParams);\n```\n\n#### 💡 How to write Smart Contract for Bitkub Next\n\n> To allow the <b>Bitkub NEXT</b> user can writing the data on the Smart Contract.\n> The developers need to design the Smart Contract with the additional functions. The additional functions is called through the CallHelper Smart Contract to execute commands on behalf of Bitkub NEXT users, and the function must take the bitkubnext address parameter <b><u>at the end of the function</u></b>\n>\n> Here is an example demonstrating how to structure these functions:\n>\n> ```solidity\n> // Function that can be called by any user\n> ❌ function buyNft(uint256 _recipeIndex, uint256 _amount) external {\n>   // Metamask or other wallets call this function to buy an NFT\n> }\n>\n> // Function that can only be called by BitkubNEXT\n> ✅ function buyNft(uint256 _recipeIndex, uint256 _amount, address _bitkubNext) external onlySdkCallHelperRouter {\n>   // BtikubNEXT call this function to buy an NFT\n> }\n>\n> // Usage\n> const functionReadableABI = \"buyNft(uint256 _recipeIndex, uint256 _amount, address _bitkubNext)\"\n> const methodParams = [1, 1] // Do not have to add `address _bitkubNext` param because SDK will automatically add for you\n> ```\n>\n> <b>📌 Important Notes</b>\n>\n> - Authorization via <b>sdkCallHelperRouter</b>: When an end user invokes a function through the SDK library, the msg.sender interacting with your smart contract will be sdkCallHelperRouter. To ensure that only authorized calls are made to this function, you must include a modifier to check that msg.sender equals sdkCallHelperRouter.\n> - The address of the <b>sdkCallHelperRouter</b> in `Network.BKC_TESTNET`: `0x96f4C25E4fEB02c8BCbAdb80d0088E0112F728Bc`\n>\n> Here is an example demonstrating how to write a modifier:\n>\n> ```solidity\n> modifier onlySdkCallHelperRouter() {\n>    require(msg.sender == sdkCallHelperRouter, \"Authorization: restricted only sdk call helper router\");\n>    _;\n> }\n> ```\n>\n> By enforcing this check, you protect your contract from unauthorized access and ensure that only calls made through the SDK are processed.\n\n---\n\n#### Fetch Transaction Details\n\n```Javascript\nconst details = await sdk.getTransactionDetails(queueId);\n```\n\n#### TransactionDetailsResponse\n\nThe `TransactionResponse` type represents the response structure for a transaction. Here's a breakdown of its properties:\n\n| Property       | Type                | Description                                          |\n| -------------- | ------------------- | ---------------------------------------------------- |\n| `errorMessage` | `string`            | A message describing any error that occurred.        |\n| `queueId`      | `string`            | The unique identifier for the transaction queue.     |\n| `signature`    | `string`            | The signature associated with the transaction.       |\n| `status`       | `TransactionStatus` | The current status of the transaction.               |\n| `txHash`       | `string`            | The transaction hash.                                |\n| `createdTime`  | `number`            | The timestamp when the transaction was created.      |\n| `updatedTime`  | `number`            | The timestamp when the transaction was last updated. |\n\n#### Example Response\n\n```Javascript\nconst details = {\n  errorMessage: \"\",\n  queueId: \"648abd81663ss\",\n  signature: \"0xabcdef1234567890\",\n  status: \"approved\",\n  txHash: \"0x5c5046e21aefb8db8f9eae3c5e5c8e4a0f9e4c6b77d4efc5b8a1e6e7e5a7b8a0d\",\n  createdTime: 1697740800,\n  updatedTime: 1697827200\n}\n```\n\n### License\n\n```\nThis project is licensed under the BBT License.\n```\n","readmeFilename":"README.md"}