{"_id":"@codeswithroh/reckon-sdk","name":"@codeswithroh/reckon-sdk","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@codeswithroh/reckon-sdk","version":"0.0.1","description":"Drop-in Reckon SDK for Monad: pre-flight and safe-send transactions, guard an EIP-1193 wallet provider, or route batches through the on-chain GuardedExecutor.","license":"MIT","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"keywords":["monad","evm","gas","transaction-simulation","preflight","wallet-guard","eip-1193","web3","viem","blockchain-security"],"homepage":"https://reckon-monad-seatbelt.netlify.app","repository":{"type":"git","url":"git+https://github.com/codeswithroh/reckon.git","directory":"packages/sdk"},"bugs":{"url":"https://github.com/codeswithroh/reckon/issues"},"author":{"name":"codeswithroh"},"scripts":{"build":"tsc -p tsconfig.json","test":"vitest run"},"dependencies":{"@codeswithroh/reckon-core":"^0.0.1"},"peerDependencies":{"viem":"^2.21.0"},"devDependencies":{"typescript":"^5.6.0","viem":"^2.21.0","vitest":"^2.1.0"},"_id":"@codeswithroh/reckon-sdk@0.0.1","gitHead":"e2c20d0caaa0bf20688514d7b7f2104d412cb58c","_nodeVersion":"22.18.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-ogKivHxgyvxJiEw/fCRB5h2R5vpr1UEnOhHUlI1sYcPwEHAYoacwBhh2BviEP4mg7ogU661AUDxkIYgC4dzZrA==","shasum":"64cc9e4d94e8de2e3ee61ded309f5d9312028723","tarball":"https://registry.npmjs.org/@codeswithroh/reckon-sdk/-/reckon-sdk-0.0.1.tgz","fileCount":18,"unpackedSize":29771,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC3dCneJ0DNtasKDi5RxukBiOKHXKrztjmrCre+FFQ4kQIhAM8OqfHV7NCkR1eapo6Bm6aqPBg1XYd4WA0SJV482ZT3"}]},"_npmUser":{"name":"codeswithroh","email":"codeswithroh@gmail.com"},"directories":{},"maintainers":[{"name":"codeswithroh","email":"codeswithroh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/reckon-sdk_0.0.1_1784258729206_0.29906980587073506"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-17T03:25:29.103Z","0.0.1":"2026-07-17T03:25:29.332Z","modified":"2026-07-17T03:25:29.524Z"},"maintainers":[{"name":"codeswithroh","email":"codeswithroh@gmail.com"}],"description":"Drop-in Reckon SDK for Monad: pre-flight and safe-send transactions, guard an EIP-1193 wallet provider, or route batches through the on-chain GuardedExecutor.","homepage":"https://reckon-monad-seatbelt.netlify.app","keywords":["monad","evm","gas","transaction-simulation","preflight","wallet-guard","eip-1193","web3","viem","blockchain-security"],"repository":{"type":"git","url":"git+https://github.com/codeswithroh/reckon.git","directory":"packages/sdk"},"author":{"name":"codeswithroh"},"bugs":{"url":"https://github.com/codeswithroh/reckon/issues"},"license":"MIT","readme":"# @codeswithroh/reckon-sdk\n\nA drop-in SDK for [Reckon](https://reckon-monad-seatbelt.netlify.app) — a transaction seatbelt for\n[Monad](https://monad.xyz). Pre-flight and safe-send transactions, guard an EIP-1193 wallet\nprovider so doomed or risky transactions never reach the wallet, or route a batch through the\non-chain `GuardedExecutor`.\n\n## Install\n\n```bash\nnpm install @codeswithroh/reckon-sdk viem\n```\n\n## Pre-flight and safe-send\n\n```ts\nimport { createReckonClient } from \"@codeswithroh/reckon-sdk\";\n\nconst reckon = createReckonClient({ account: myAccount });\n\nconst verdict = await reckon.preflight(tx);\nif (verdict.willRevert) throw new Error(verdict.revertReason);\n\nconst { hash } = await reckon.safeSend(tx); // pre-flights, then broadcasts only if safe\n```\n\n## Guard a wallet provider\n\nOne line protects a whole dApp's users: every `eth_sendTransaction` is pre-flighted first, and\na doomed or critically-risky call (an unlimited approval, an NFT operator grant) is blocked\n**before the wallet even prompts** — the user never signs it, never burns MON on a failure.\n\n```ts\nimport { createGuardedProvider } from \"@codeswithroh/reckon-sdk\";\n\nconst provider = createGuardedProvider(window.ethereum);\n// use `provider` anywhere you'd use window.ethereum\n```\n\n## Route a batch through the on-chain guard\n\n```ts\nawait reckon.guardedExecute([\n  { target: \"0x...\", data: \"0x...\", gasCap: 100_000n },\n]);\n```\n\n## Why this exists\n\nOn Monad you pay for the gas limit you **declare**, not the gas you use, even when your\ntransaction reverts, verified empirically to the wei (see the\n[project README](https://github.com/codeswithroh/reckon)). Reckon pre-flights every transaction so\nyou stop paying for failures and oversized limits, and flags approval/permission-escalation risk\nthat a naive revert check would miss.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-32e87d89af040356cc4931334d99dd35"}