{"_id":"@abstract-foundation/agw-thirdweb","_rev":"2-6e97d2c54280fa603734d22cc544e945","name":"@abstract-foundation/agw-thirdweb","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"@abstract-foundation/agw-thirdweb","version":"0.0.1","keywords":["eth","ethereum","smart-account","abstract","account-abstraction","global-wallet","wallet","web3","thirdweb"],"license":"MIT","_id":"@abstract-foundation/agw-thirdweb@0.0.1","maintainers":[{"name":"cygaardev","email":"t@cubelabs.xyz"},{"name":"coffeexcoin","email":"coffee@cubelabs.xyz"},{"name":"jarrodwatts","email":"jarrodwatts16@gmail.com"}],"homepage":"https://github.com/Abstract-Foundation/abstract-packages/tree/main/packages/agw-thirdweb","bugs":{"url":"https://github.com/Abstract-Foundation/abstract-packages/issues"},"dist":{"shasum":"94b7fceed1621b4124a8b04fecb08db5907fd472","tarball":"https://registry.npmjs.org/@abstract-foundation/agw-thirdweb/-/agw-thirdweb-0.0.1.tgz","fileCount":20,"integrity":"sha512-5+YB7wO0L3jcs0He5OkO5URq1fM+oaDq7sl56t/R3c2GECgvz2Lz8io9b4DCq7WxUkGBuB8KtSpip5BdyHhi0g==","signatures":[{"sig":"MEUCIQCPJKf5QJXLcSTt+Jr6gYL2NdjCkioPYljVrCAsq3BNfwIgPn9cp30vM8P8zNXtIOdeYvAJZYkYa3yYe3gDvIEUR8M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1711105},"main":"./dist/cjs/exports/index.js","_from":"file:abstract-foundation-agw-thirdweb-0.0.1.tgz","types":"./dist/types/exports/index.d.ts","module":"./dist/esm/exports/index.js","exports":{".":{"types":"./dist/types/exports/index.d.ts","import":"./dist/esm/exports/index.js","require":"./dist/cjs/exports/index.js"},"./package.json":"./package.json"},"scripts":{"build":"pnpm run clean && pnpm run build:esm+types && pnpm run build:cjs","clean":"rm -rf dist tsconfig.tsbuildinfo","debug":"tsc-watch --sourceMap true --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types","build:cjs":"tsc -p tsconfig.cjs.json && printf '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json","typecheck":"tsc --noEmit","test:build":"publint && attw --pack --ignore-rules false-cjs","build:esm+types":"tsc --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types && printf '{\"type\":\"module\"}' > ./dist/esm/package.json"},"typings":"./dist/types/exports/index.d.ts","_npmUser":{"name":"coffeexcoin","email":"coffee@cubelabs.xyz"},"_resolved":"/private/var/folders/r7/ryy594w50qqcdxt55s9qpp7r0000gn/T/b7d75e724b7a109087b41bdea950bdbb/abstract-foundation-agw-thirdweb-0.0.1.tgz","_integrity":"sha512-5+YB7wO0L3jcs0He5OkO5URq1fM+oaDq7sl56t/R3c2GECgvz2Lz8io9b4DCq7WxUkGBuB8KtSpip5BdyHhi0g==","repository":{"url":"git+https://github.com/Abstract-Foundation/abstract-packages.git","type":"git","directory":"packages/agw-thirdweb"},"_npmVersion":"11.11.0","description":"Abstract Global Wallet adapter for the thirdweb Connect SDK","directories":{},"_nodeVersion":"24.14.1","dependencies":{"@privy-io/cross-app-connect":"^0.5.2","@abstract-foundation/agw-client":"^1.12.3"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"viem":"^2.46.2","thirdweb":"^5.68.0","@types/node":"^22.18.1"},"peerDependencies":{"viem":"^2.37.0","thirdweb":"^5.72.0","typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/agw-thirdweb_0.0.1_1776558943558_0.9687899462911742","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@abstract-foundation/agw-thirdweb","description":"Abstract Global Wallet adapter for the thirdweb Connect SDK","version":"0.1.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/Abstract-Foundation/abstract-packages.git","directory":"packages/agw-thirdweb"},"bugs":{"url":"https://github.com/Abstract-Foundation/abstract-packages/issues"},"homepage":"https://github.com/Abstract-Foundation/abstract-packages/tree/main/packages/agw-thirdweb","main":"./dist/cjs/exports/index.js","module":"./dist/esm/exports/index.js","types":"./dist/types/exports/index.d.ts","typings":"./dist/types/exports/index.d.ts","exports":{".":{"types":"./dist/types/exports/index.d.ts","import":"./dist/esm/exports/index.js","require":"./dist/cjs/exports/index.js"},"./package.json":"./package.json"},"publishConfig":{"access":"public","provenance":true},"dependencies":{"@privy-io/cross-app-connect":"^0.5.2","@abstract-foundation/agw-client":"^1.12.3"},"peerDependencies":{"thirdweb":"^5.72.0","typescript":">=5.0.4","viem":"^2.37.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"devDependencies":{"@types/node":"^22.18.1","thirdweb":"^5.68.0","viem":"^2.46.2"},"keywords":["eth","ethereum","smart-account","abstract","account-abstraction","global-wallet","wallet","web3","thirdweb"],"scripts":{"build":"pnpm run clean && pnpm run build:esm+types && pnpm run build:cjs","build:esm+types":"tsc --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types && printf '{\"type\":\"module\"}' > ./dist/esm/package.json","build:cjs":"tsc -p tsconfig.cjs.json && printf '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json","clean":"rm -rf dist tsconfig.tsbuildinfo","typecheck":"tsc --noEmit","debug":"tsc-watch --sourceMap true --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types","test:build":"publint && attw --pack --ignore-rules false-cjs"},"_id":"@abstract-foundation/agw-thirdweb@0.1.0","_integrity":"sha512-i1o+6bRwcATRkjJ++zHSlizg/cJc1OsxOors+KNp01gfyua8VCiL9CroOWSwhHDv7ve19WuNizMcsP+ZdIxW+A==","_resolved":"/tmp/f761010b41bc9d424a55387074fe06eb/abstract-foundation-agw-thirdweb-0.1.0.tgz","_from":"file:abstract-foundation-agw-thirdweb-0.1.0.tgz","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-i1o+6bRwcATRkjJ++zHSlizg/cJc1OsxOors+KNp01gfyua8VCiL9CroOWSwhHDv7ve19WuNizMcsP+ZdIxW+A==","shasum":"d29fcd083c9cbef6fc99863eaea2986e6dd3c213","tarball":"https://registry.npmjs.org/@abstract-foundation/agw-thirdweb/-/agw-thirdweb-0.1.0.tgz","fileCount":20,"unpackedSize":1710601,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@abstract-foundation%2fagw-thirdweb@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICGO9lD+gawo8eX/30vH14FwcSsQgSuBuEgAMKMJvFJaAiA5S3gXxthXdBThcEJ+XA7H3clG9ZtjiVid91h5+gZOJQ=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f0cd6bca-6f9e-4fd8-805a-f0db3b173e4c"}},"directories":{},"maintainers":[{"name":"cygaardev","email":"t@cubelabs.xyz"},{"name":"coffeexcoin","email":"coffee@cubelabs.xyz"},{"name":"jarrodwatts","email":"jarrodwatts16@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agw-thirdweb_0.1.0_1776569093430_0.5794834169998915"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-19T00:35:43.426Z","modified":"2026-04-19T03:24:53.903Z","0.0.1":"2026-04-19T00:35:43.734Z","0.1.0":"2026-04-19T03:24:53.613Z"},"bugs":{"url":"https://github.com/Abstract-Foundation/abstract-packages/issues"},"license":"MIT","homepage":"https://github.com/Abstract-Foundation/abstract-packages/tree/main/packages/agw-thirdweb","keywords":["eth","ethereum","smart-account","abstract","account-abstraction","global-wallet","wallet","web3","thirdweb"],"repository":{"type":"git","url":"git+https://github.com/Abstract-Foundation/abstract-packages.git","directory":"packages/agw-thirdweb"},"description":"Abstract Global Wallet adapter for the thirdweb Connect SDK","maintainers":[{"name":"cygaardev","email":"t@cubelabs.xyz"},{"name":"coffeexcoin","email":"coffee@cubelabs.xyz"},{"name":"jarrodwatts","email":"jarrodwatts16@gmail.com"}],"readme":"# @abstract-foundation/agw-thirdweb\n\nAbstract Global Wallet (AGW) adapter for the [thirdweb Connect SDK](https://portal.thirdweb.com/connect).\n\n## Abstract Global Wallet (AGW)\n\n[Abstract Global Wallet (AGW)](https://docs.abs.xyz/overview) is a cross-application [smart contract wallet](https://docs.abs.xyz/how-abstract-works/native-account-abstraction/smart-contract-wallets) that users can use to interact with any application built on Abstract, powered by Abstract's [native account abstraction](https://docs.abs.xyz/how-abstract-works/native-account-abstraction).\n\n## Installation\n\n```bash\nnpm install @abstract-foundation/agw-thirdweb thirdweb\n```\n\n`thirdweb` and `viem` are peer dependencies — install whichever versions are compatible with your app.\n\n## Quick Start\n\n```tsx\nimport { createThirdwebClient } from \"thirdweb\";\nimport { ConnectButton } from \"thirdweb/react\";\nimport { abstractWallet } from \"@abstract-foundation/agw-thirdweb\";\n\nconst client = createThirdwebClient({ clientId: \"YOUR_CLIENT_ID\" });\n\nexport function Connect() {\n  return <ConnectButton client={client} wallets={[abstractWallet()]} />;\n}\n```\n\n`abstractWallet()` returns a thirdweb `Wallet` that can be passed to any surface that accepts a `Wallet` — `ConnectButton`, `ConnectEmbed`, `useConnect`, etc.\n\n## API\n\n### `abstractWallet(options?)`\n\nCreates a thirdweb `Wallet` backed by Abstract Global Wallet.\n\n```ts\nfunction abstractWallet(options?: AbstractWalletOptions): Wallet;\n```\n\n#### Options\n\n| Option | Type | Description |\n| --- | --- | --- |\n| `customPaymasterHandler` | `CustomPaymasterHandler` | Optional handler that returns paymaster + paymaster input for sponsoring user transactions. See [`@abstract-foundation/agw-client`](https://github.com/Abstract-Foundation/abstract-packages/tree/main/packages/agw-client) for the handler signature. |\n\n### Example: sponsoring gas\n\n```tsx\nimport type { CustomPaymasterHandler } from \"@abstract-foundation/agw-client\";\nimport { abstractWallet } from \"@abstract-foundation/agw-thirdweb\";\n\nconst sponsorGas: CustomPaymasterHandler = async () => ({\n  paymaster: \"0xYourPaymasterAddress\",\n  paymasterInput: \"0x\",\n});\n\nconst wallet = abstractWallet({ customPaymasterHandler: sponsorGas });\n```\n\n## Relationship to `@abstract-foundation/agw-react`\n\nPrior to `@abstract-foundation/agw-react@1.13`, this adapter shipped as the `@abstract-foundation/agw-react/thirdweb` subpath. It now lives in a dedicated package to keep thirdweb's transitive dependency tree out of applications that don't use it.\n\nMigration:\n\n```diff\n- import { abstractWallet } from \"@abstract-foundation/agw-react/thirdweb\";\n+ import { abstractWallet } from \"@abstract-foundation/agw-thirdweb\";\n```\n\nNo other changes are required — the `abstractWallet()` API is identical.\n\n## Documentation\n\nFor full AGW documentation, see the [Abstract Global Wallet documentation](https://docs.abs.xyz/how-abstract-works/abstract-global-wallet/overview).\n","readmeFilename":"README.md"}