{"_id":"@abstraction-hq/wallet-sdk","_rev":"5-e7b347930d9619ffeb64d21ec2acd302","name":"@abstraction-hq/wallet-sdk","dist-tags":{"latest":"1.0.8"},"versions":{"1.0.0":{"name":"@abstraction-hq/wallet-sdk","version":"1.0.0","keywords":["abstraction","wallet","account-abstraction","web3"],"author":{"name":"Abstraction"},"license":"MIT","_id":"@abstraction-hq/wallet-sdk@1.0.0","maintainers":[{"name":"abstraction-hq","email":"developer@abstraction.world"}],"homepage":"https://github.com/abstraction-hq/wallet-sdk#readme","bugs":{"url":"https://github.com/abstraction-hq/wallet-sdk/issues"},"dist":{"shasum":"05596eba5d7a3748a466b238a71a1705707d4b0e","tarball":"https://registry.npmjs.org/@abstraction-hq/wallet-sdk/-/wallet-sdk-1.0.0.tgz","fileCount":48,"integrity":"sha512-OYRQxzovCQiR4foPOQ/990tehDLP4l0G8qFfbDsvRxNLVoQnVWqZ4far713qG0+2y/nd+5Q//xXEAm0sQZoBLg==","signatures":[{"sig":"MEQCIG7eaQ67cZAFYtJv3Ic5jco5I7ME+TYnVYxs7jN4zZO7AiBn7e+NSThTMXRM4FxH9a7RVC5dRM0WRFCwbjsf6wXjWQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":109571},"main":"dist/index.js","types":"dist/index.d.js","gitHead":"3713b4a33b6fd1091d30d13aeea4ad429e9da54a","scripts":{"dev":"tsc --watch","test":"ts-mocha -p ./tsconfig.mocha.json ./tests/*.spec.ts --timeout 60000","build":"rm -rf dist && tsc","prepare":"npm run build"},"_npmUser":{"name":"abstraction-hq","email":"developer@abstraction.world"},"repository":{"url":"git+https://github.com/abstraction-hq/wallet-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"Interact your app with top tier wallet on blockchain.","directories":{},"_nodeVersion":"18.17.0","dependencies":{"chai":"^5.1.1","viem":"^2.17.1","mocha":"^10.6.0","ts-node":"^10.9.2","ts-mocha":"^10.0.0","typescript":"^5.5.3","@types/chai":"^4.3.16","@types/mocha":"^10.0.7","eventemitter3":"^5.0.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wallet-sdk_1.0.0_1720885919305_0.40374596060826273","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@abstraction-hq/wallet-sdk","version":"1.0.2","keywords":["abstraction","wallet","account-abstraction","web3"],"author":{"name":"Abstraction"},"license":"MIT","_id":"@abstraction-hq/wallet-sdk@1.0.2","maintainers":[{"name":"abstraction-hq","email":"developer@abstraction.world"}],"homepage":"https://github.com/abstraction-hq/wallet-sdk#readme","bugs":{"url":"https://github.com/abstraction-hq/wallet-sdk/issues"},"dist":{"shasum":"86b659b8f4fae44e91b8d551320c5d05e4354863","tarball":"https://registry.npmjs.org/@abstraction-hq/wallet-sdk/-/wallet-sdk-1.0.2.tgz","fileCount":48,"integrity":"sha512-EEDm5FIv3QwxG5KgoZjdicZ6sTlcpgRbDbIfOFFLqURIId9ZOPxnGGZiNIecx/8ad2UBz1veEDt3arIZcYdhyQ==","signatures":[{"sig":"MEUCIAvna74SWsxagoYrkx2K5T+CmJHtoZRP605Mox6rqpkBAiEAuNc40O8zEEhgW/OTSoFx7ZVKP7yfirKVXRN1x+5tpQs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":106410},"main":"dist/index.js","types":"dist/index.d.js","gitHead":"4d9de61590e72bd10efc5017e37427c560912c15","scripts":{"dev":"tsc --watch","test":"ts-mocha -p ./tsconfig.mocha.json ./tests/*.spec.ts --timeout 60000","build":"rm -rf dist && tsc","prepare":"npm run build"},"_npmUser":{"name":"abstraction-hq","email":"developer@abstraction.world"},"repository":{"url":"git+https://github.com/abstraction-hq/wallet-sdk.git","type":"git"},"_npmVersion":"10.7.0","description":"Interact your app with top tier wallet on blockchain.","directories":{},"_nodeVersion":"20.15.0","dependencies":{"chai":"^5.1.1","viem":"^2.17.1","mocha":"^10.6.0","ts-node":"^10.9.2","ts-mocha":"^10.0.0","typescript":"^5.5.3","@types/chai":"^4.3.16","@types/mocha":"^10.0.7","eventemitter3":"^5.0.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wallet-sdk_1.0.2_1721017968021_0.016109041433204352","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@abstraction-hq/wallet-sdk","version":"1.0.3","keywords":["abstraction","wallet","account-abstraction","web3"],"author":{"name":"Abstraction"},"license":"MIT","_id":"@abstraction-hq/wallet-sdk@1.0.3","maintainers":[{"name":"abstraction-hq","email":"developer@abstraction.world"}],"homepage":"https://github.com/abstraction-hq/wallet-sdk#readme","bugs":{"url":"https://github.com/abstraction-hq/wallet-sdk/issues"},"dist":{"shasum":"0bb518cbf720147b9acdaacb3bddae741b3980a6","tarball":"https://registry.npmjs.org/@abstraction-hq/wallet-sdk/-/wallet-sdk-1.0.3.tgz","fileCount":48,"integrity":"sha512-e3Q0khuppK6f8EPN/1dUiGYpmDzeNQkeY5ByGcuEcvWEpUZ2amTZLqxHfNxqutwLjuvdpnAb7QeBb2isEW2jYA==","signatures":[{"sig":"MEUCIQDsYnwD7Swoi+AWVv0lg+rlpKZ0tnNFw9OQE4DXPWnNkAIgMfDd7Qj2V8MfybzQEz9LRdEYNyRIxhpg+xralHFjpBk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":106432},"main":"dist/index.js","types":"dist/index.d.js","gitHead":"d29d7cc1965d57007824d4a16de6ba536d3fa553","scripts":{"dev":"tsc --watch","test":"ts-mocha -p ./tsconfig.mocha.json ./tests/*.spec.ts --timeout 60000","build":"rm -rf dist && tsc","prepare":"npm run build"},"_npmUser":{"name":"abstraction-hq","email":"developer@abstraction.world"},"repository":{"url":"git+https://github.com/abstraction-hq/wallet-sdk.git","type":"git"},"_npmVersion":"10.7.0","description":"Interact your app with top tier wallet on blockchain.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"chai":"^5.1.1","viem":"^2.17.1","mocha":"^10.6.0","ts-node":"^10.9.2","ts-mocha":"^10.0.0","typescript":"^5.5.3","@types/chai":"^4.3.16","@types/mocha":"^10.0.7","eventemitter3":"^5.0.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wallet-sdk_1.0.3_1721118782954_0.4507000908472385","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@abstraction-hq/wallet-sdk","version":"1.0.4","keywords":["abstraction","wallet","account-abstraction","web3"],"author":{"name":"Abstraction"},"license":"MIT","_id":"@abstraction-hq/wallet-sdk@1.0.4","maintainers":[{"name":"abstraction-hq","email":"developer@abstraction.world"}],"homepage":"https://github.com/abstraction-hq/wallet-sdk#readme","bugs":{"url":"https://github.com/abstraction-hq/wallet-sdk/issues"},"dist":{"shasum":"e352e03bcb6108c968c436316cacba9a8de7c30f","tarball":"https://registry.npmjs.org/@abstraction-hq/wallet-sdk/-/wallet-sdk-1.0.4.tgz","fileCount":61,"integrity":"sha512-48QtcX2QurJAQSQi/fssfE8zlRMuv/YEF9TysqZhgYMMkBcGt2ck7WlP9XDCRmIAKQDOAmGmeLIc2laxvRVnew==","signatures":[{"sig":"MEYCIQDQdu9Ao4+Ynw4kfPyATvIisRebPd7xRf07OxFX883l5gIhAIRHiWOO8G3G3ZcKWoA3vWF0XLnAoi49eSGveSolO76Q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":130342},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"c6fd4ce1a4886e79239607a292ac36cac99945a8","scripts":{"dev":"tsc --watch","test":"ts-mocha -p ./tsconfig.mocha.json ./tests/*.spec.ts --timeout 60000","build":"rm -rf dist && tsc -p tsconfig.json","prepare":"npm run build"},"_npmUser":{"name":"abstraction-hq","email":"developer@abstraction.world"},"repository":{"url":"git+https://github.com/abstraction-hq/wallet-sdk.git","type":"git"},"_npmVersion":"10.7.0","description":"Interact your app with top tier wallet on blockchain.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"chai":"^5.1.1","viem":"^2.17.1","mocha":"^10.6.0","ts-node":"^10.9.2","ts-mocha":"^10.0.0","typescript":"^5.5.3","@types/chai":"^4.3.16","@types/mocha":"^10.0.7","eventemitter3":"^5.0.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wallet-sdk_1.0.4_1721363970000_0.5431040415105142","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"@abstraction-hq/wallet-sdk","version":"1.0.7","keywords":["abstraction","wallet","account-abstraction","web3"],"author":{"name":"Abstraction"},"license":"MIT","_id":"@abstraction-hq/wallet-sdk@1.0.7","maintainers":[{"name":"abstraction-hq","email":"developer@abstraction.world"}],"homepage":"https://github.com/abstraction-hq/wallet-sdk#readme","bugs":{"url":"https://github.com/abstraction-hq/wallet-sdk/issues"},"dist":{"shasum":"ae1ecb295a51813b3b6004d67f6ee0bb497415c6","tarball":"https://registry.npmjs.org/@abstraction-hq/wallet-sdk/-/wallet-sdk-1.0.7.tgz","fileCount":81,"integrity":"sha512-QmlJEUw+zgHwkWggiYHzHumLkwVeitmpJI0vVqolY1ZVLF2ZuYbjLgouHCNzYQOIPM0gKW2pXRo5EBYzial8Sg==","signatures":[{"sig":"MEQCIAK6oPcc42ep8p7SZAMe+VfZAUZwFo+wdbLlY2xwL9RgAiBye/OvTr1kgmXenS1MPHj7Qs608IC8YXyyaAvtQDq9Wg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":187630},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"04292d030a302ab0e8a7d2b06453bfc30c95df50","scripts":{"dev":"tsc --watch","test":"ts-mocha -p ./tsconfig.mocha.json ./tests/*.spec.ts --timeout 60000","build":"rm -rf dist && tsc -p tsconfig.json","prepare":"npm run build"},"_npmUser":{"name":"abstraction-hq","email":"developer@abstraction.world"},"repository":{"url":"git+https://github.com/abstraction-hq/wallet-sdk.git","type":"git"},"_npmVersion":"10.7.0","description":"Interact your app with top tier wallet on blockchain.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"chai":"^5.1.1","viem":"^2.17.1","axios":"^1.7.2","mocha":"^10.6.0","ts-node":"^10.9.2","ts-mocha":"^10.0.0","typescript":"^5.5.3","@types/chai":"^4.3.16","@types/mocha":"^10.0.7","eventemitter3":"^5.0.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wallet-sdk_1.0.7_1721895513602_0.7001040825095868","host":"s3://npm-registry-packages"}},"1.0.8":{"name":"@abstraction-hq/wallet-sdk","version":"1.0.8","main":"dist/index.js","types":"dist/index.d.ts","description":"Interact your app with top tier wallet on blockchain.","author":{"name":"Abstraction"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/abstraction-hq/wallet-sdk.git"},"homepage":"https://github.com/abstraction-hq/wallet-sdk#readme","keywords":["abstraction","wallet","account-abstraction","web3"],"scripts":{"build":"rm -rf dist && tsc -p tsconfig.json","dev":"tsc --watch","test":"ts-mocha -p ./tsconfig.mocha.json ./tests/*.spec.ts --timeout 60000","prepare":"npm run build"},"dependencies":{"@types/chai":"^4.3.16","@types/mocha":"^10.0.7","chai":"^5.1.1","eventemitter3":"^5.0.1","mocha":"^10.6.0","ts-mocha":"^10.0.0","ts-node":"^10.9.2","typescript":"^5.5.3","viem":"^2.17.1"},"_id":"@abstraction-hq/wallet-sdk@1.0.8","gitHead":"8209922fba9c3a28079f67cf87d662e8e6cac9e7","bugs":{"url":"https://github.com/abstraction-hq/wallet-sdk/issues"},"_nodeVersion":"20.15.1","_npmVersion":"10.7.0","dist":{"integrity":"sha512-9wXy1nzq0LKoZ5QCM0KY7OW8MEFl1+JWXjQ7GmbeCOE/HfjvTVn3EqcvGInLVZqs5UnJF7pDiCYvPpgQUFPmfQ==","shasum":"fbb67eef8a80dc92fb5c6c232b9be55a4f43d857","tarball":"https://registry.npmjs.org/@abstraction-hq/wallet-sdk/-/wallet-sdk-1.0.8.tgz","fileCount":81,"unpackedSize":188908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAtud0KiLOnUiDeUiIcyJjL1D4WEbtgRB1WKmVcIlqFDAiAP8HhgwixfKSGgNOTZ9/U08MdtXew5KrAilw8bACVH1g=="}]},"_npmUser":{"name":"abstraction-hq","email":"developer@abstraction.world"},"directories":{},"maintainers":[{"name":"abstraction-hq","email":"developer@abstraction.world"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wallet-sdk_1.0.8_1722316048003_0.5278068196685561"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-13T15:51:59.181Z","modified":"2024-07-30T05:07:28.332Z","1.0.0":"2024-07-13T15:51:59.456Z","1.0.2":"2024-07-15T04:32:48.204Z","1.0.3":"2024-07-16T08:33:03.118Z","1.0.4":"2024-07-19T04:39:30.172Z","1.0.7":"2024-07-25T08:18:33.784Z","1.0.8":"2024-07-30T05:07:28.170Z"},"bugs":{"url":"https://github.com/abstraction-hq/wallet-sdk/issues"},"author":{"name":"Abstraction"},"license":"MIT","homepage":"https://github.com/abstraction-hq/wallet-sdk#readme","keywords":["abstraction","wallet","account-abstraction","web3"],"repository":{"type":"git","url":"git+https://github.com/abstraction-hq/wallet-sdk.git"},"description":"Interact your app with top tier wallet on blockchain.","maintainers":[{"name":"abstraction-hq","email":"developer@abstraction.world"}],"readme":"# Abstraction Wallet SDK\n\nAbstraction wallet SDK allow developers connect their Dapps to Abstraction Wallet via EIP-6963\n\n## Install Abstraction Wallet SDK\n\n```sh\n# yarn\nyarn add @abstraction-hq/wallet-skd\n```\n\n```sh\n# npm\nnpm install @abstraction-hq/wallet-sdk\n```\n\n## Basic Usage\n\n### Init provider with EIP-6963\n\n```typescript\nimport { initAbstractionWallet } from \"@abstraction-hq/wallet-sdk\";\n\ninitAbstractionWallet();\n```\n\n### Create provider\n\n```typescript\nimport { createAbstractionProvider } from \"@abstraction-hq/wallet-sdk\";\n\nconst provider = createAbstractionProvider();\n```\n\n### Use provider\n1. Connect Wallet\n\n```typescript\nconst addresses = provider.request({\n  method: \"eth_requestAccounts\",\n});\n```\n\n2. Send Transaction\n\n```typescript\nconst txHash = await(window as any).abstraction.request({\n  method: \"eth_sendTransaction\",\n  params: [\n    {\n      from: address,\n      to: address,\n      value: 0,\n      data,\n    },\n  ],\n});\n```\n\n3. Sending multiple calls\n```typescript\nconst userOpHash = await(window as any).abstraction.request({\n  method: \"wallet_sendCalls\",\n  params: [\n    {\n      version: \"1.0\",\n      chainId: \"0x58\",\n      from: \"0xd46e8dd67c5d32be8058bb8eb970870f07244567\",\n      calls: [\n        {\n          to: \"0xd46e8dd67c5d32be8058bb8eb970870f07244567\",\n          value: \"0x9184e72a\",\n          data: \"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675\"\n        },\n        {\n          to: \"0xd46e8dd67c5d32be8058bb8eb970870f07244567\",\n          value: \"0x9184e72a\",\n          data: \"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675\"\n        },\n      ]\n    }\n  ],\n});\n```\n\n4. Get call status\n```typescript\nconst callStatus = await(window as any).abstraction.request({\n  method: \"wallet_getCallsStatus\",\n  params: [\n    userOpHash\n  ],\n});\n```\n\n\n5. Create contract\n```typescript\nconst txHash = await(window as any).abstraction.request({\n  method: \"eth_sendTransaction\",\n  params: [\n    {\n      from: address,\n      value: 0,\n      data: CONTRACT_BYTECODE,\n    },\n  ],\n  salt: // Salt to create contract with create2 - account.nonce() if not provide\n});\n```\n","readmeFilename":"README.md"}