{"id":20747699,"url":"https://github.com/web3auth/mocaverse-wagmi-connector","last_synced_at":"2025-03-11T13:36:15.754Z","repository":{"id":224906079,"uuid":"764486432","full_name":"Web3Auth/mocaverse-wagmi-connector","owner":"Web3Auth","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-09T23:56:00.000Z","size":918,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-18T09:40:56.221Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Web3Auth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-28T06:52:40.000Z","updated_at":"2024-02-28T17:38:19.000Z","dependencies_parsed_at":"2025-01-18T03:20:57.313Z","dependency_job_id":null,"html_url":"https://github.com/Web3Auth/mocaverse-wagmi-connector","commit_stats":null,"previous_names":["web3auth/mocaverse-wagmi-connector"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Web3Auth%2Fmocaverse-wagmi-connector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Web3Auth%2Fmocaverse-wagmi-connector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Web3Auth%2Fmocaverse-wagmi-connector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Web3Auth%2Fmocaverse-wagmi-connector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Web3Auth","download_url":"https://codeload.github.com/Web3Auth/mocaverse-wagmi-connector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243043777,"owners_count":20226885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T08:14:10.022Z","updated_at":"2025-03-11T13:36:15.719Z","avatar_url":"https://github.com/Web3Auth.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n \u003cimg src=\"https://web3auth.io/images/w3a-L-Favicon-1.svg\" align=\"center\" alt=\"Ledger\" /\u003e\n \u003ch2 align=\"center\"\u003eWeb3Auth Mocaverse Embed Wagmi Connector\u003c/h2\u003e\n \u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/tmm/wagmi\"\u003eWagmi\u003c/a\u003e Connector for Web3Auth Mocaverse Embed\u003c/p\u003e\n\u003c/p\u003e\n\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n![npm](https://img.shields.io/npm/dw/@web3auth/mocaverse-wagmi-connector)\n\n`@web3auth/mocaverse-wagmi-connector` is a connector for the popular [wagmi](https://github.com/tmm/wagmi) library and Web3Auth Wallet Ecosystems, Mocaverse Embed SDK. \n\nIt can be used to initialize a [wagmi client](https://wagmi.sh/docs/client) that will seemlessly manage the interaction of your DApp with Torus Wallet.\n\n## 📖 Documentation\n\nCheckout the official [Web3Auth Documentation](https://web3auth.io/docs) and [SDK Reference](https://web3auth.io/docs/sdk/) to get started!\n\n## 💡 Features\n\n- Plug and Play, OAuth based Web3 Authentication Service\n- Fully decentralized, non-custodial key infrastructure\n- Multi Party Computation + Account Abstraction based key management\n- Multi Factor Authentication Setup \u0026 Recovery (Includes password, backup phrase, device factor editing/deletion etc)\n- Support for connecting to external wallets like Metamask\n- DApp Active Session Management\n\n...and a lot more\n\n## How to use\n\nHere is an example of a wagmi client using the `MocaverseConnector`.\n\n```js\nimport { WagmiProvider, createConfig, http } from \"wagmi\";\nimport { polygon, optimism, polygonMumbai } from \"wagmi/chains\";\nimport { MocaverseConnector } from \"@web3auth/mocaverse-wagmi-connector\";\n\nimport { CHAIN_NAMESPACES, WEB3AUTH_NETWORK } from \"@web3auth/base\";\n\n\nconst web3AuthClientId =\n  \"BANbxuTYFGeYi8HxUzaPQkvQlSAXiKRtUqb1vqsXbsZsZKrNr05PEPCM2J2PhUJZpIYl0XzQa6jxUjnYzSU9LXY\";\n\nconst chainConfig = {\n  chainNamespace: CHAIN_NAMESPACES.EIP155,\n  chainId: `0x${polygon.id.toString(16)}`,\n  rpcTarget: polygon.rpcUrls.default.http[0], // This is the public RPC we have added, please pass on your own endpoint while creating an app\n  displayName: polygon.name,\n  tickerName: polygon.nativeCurrency?.name,\n  ticker: polygon.nativeCurrency?.symbol,\n  blockExplorerUrl: polygon.blockExplorers?.default.url[0] as string,\n  logo: \"https://cryptologos.cc/logos/polygon-matic-logo.png\",\n};\n\n// Set up client\nconst config = createConfig({\n  chains: [polygon, optimism, polygonMumbai],\n  transports: {\n    [polygon.id]: http(),\n    [optimism.id]: http(),\n    [polygonMumbai.id]: http(),\n  },\n  connectors: [\n    MocaverseConnector({\n      web3AuthClientId,\n      web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,\n      initParams: {\n        buildEnv: \"testing\",\n        chainConfig,\n        enableLogging: true,\n      }\n    })\n  ],\n});\n```\n\n## 🩹 Examples\n\nCheckout the examples for your preferred blockchain and platform in our [examples repository](https://github.com/Web3Auth/wallet-ecosystems-examples/)\n\n## 💬 Troubleshooting and Support\n\n- Have a look at our [Community Portal](https://community.web3auth.io/) to see if anyone has any questions or issues you might be having. Feel free to reate new topics and we'll help you out as soon as possible.\n- Checkout our [Troubleshooting Documentation Page](https://web3auth.io/docs/troubleshooting) to know the common issues and solutions.\n- For Priority Support, please have a look at our [Pricing Page](https://web3auth.io/pricing.html) for the plan that suits your needs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3auth%2Fmocaverse-wagmi-connector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb3auth%2Fmocaverse-wagmi-connector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3auth%2Fmocaverse-wagmi-connector/lists"}