Comments (12)
hey @aksdevac @REPTILEHAUS... it's true that we document this but it's common practice to distribute both CJS and UMD bundles
All WalletConnect packages can fetched as UMD bundles from unpkg.com
Alternatively you can download the latest minified fields from our releases pages:
https://github.com/walletconnect/walletconnect-monorepo/releases
from walletconnect-docs.
+1 for this
from walletconnect-docs.
@pedrouid Im trying to use the CDN versions in this way:
included into angular apps index.html file
<script src="https://cdn.jsdelivr.net/npm/@walletconnect/[email protected]/lib/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@walletconnect/[email protected]/lib/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@walletconnect/[email protected]/dist/umd/index.min.js"></script>
in my service then
declare var WalletConnectProvider: any
declare var WalletConnect: any
and using it in a function like so:
const provider = new WalletConnectProvider.default({
infuraId: "xxxxxx",
});
await provider.enable();
if (provider.connected) {
console.log('wallet connect address', provider.accounts[0]);
}
const web3 = new ethers.providers.Web3Provider(provider);
console.log('web3', web3);
When I run it the first time I get the modal. If I refresh the page I would expect provider.connected
to return true because I can see the cookie saved in local storage but it does not, it hangs on the await provider.enable();
is there any example implementations of using WalletConnect in an Angular app, Ive tried a couple of things but have had no success.
from walletconnect-docs.
Sorry……I am confusing that how can I use "the latest minified fields" in my React Project.
"yarn add" is not working?
from walletconnect-docs.
@leeduckgo for React you can directly add using yarn or npm as per this documentation:
https://docs.walletconnect.org/quick-start/dapps/web3-provider
from walletconnect-docs.
Is there any update on how to use WalletConnect with angular?
from walletconnect-docs.
@joharzmn Hi, you can download web3 provider min js from here & use it directly by importing it in your index.html
https://github.com/WalletConnect/walletconnect-monorepo/releases/tag/1.7.7
from walletconnect-docs.
@leeduckgo for React you can directly add using yarn or npm as per this documentation: https://docs.walletconnect.org/quick-start/dapps/web3-provider
thanks!
from walletconnect-docs.
@aksdevac I want to use QRCode can I use that as well by download js files?
from walletconnect-docs.
@aksdevac I want to use QRCode can I use that as well by download js files?
Yes
from walletconnect-docs.
@aksdevac It worked but I had to add WalletConnect.default
instead of just using WalletConnect
when using cdn.
from walletconnect-docs.
@aksdevac cdn is working fine. But there is one problem I am facing on mobile.
When we call SignPersonalMessage function it's redirecting to the AppStore instead of MetaMask app. Do you know what can be wrong ?
from walletconnect-docs.
Related Issues (20)
- Improvement W3I Docs
- Add new Cloud UI screenshots to the Push Server Docs
- Svelte section for Web3Modal
- APNS -> APNs
- Push notification setup pages don't link to Push Server setup
- Improve ethereum-provider documentation
- Notify Server API "burst" not well-explained
- List of methods, chains and events for polkadot
- Move Blockchain RPC section from specs to docs - link with providers section
- Add Farcaster handle to documentation HOT 2
- Upgrade guide for Web3Modal v3 > v4 HOT 4
- [Verify API] Document common scenarios where Verify API is expected to error HOT 1
- JS console errors
- w3i/React isLoading not documented
- Native currency not transfer
- Add Cloud Wallet QA new process
- Nice one 💪
- Add telegram icon / link HOT 2
- createWeb3Modal's excludeWalletIds not working as expected HOT 1
- Wrong path in code sample at Web3Modal/React/Getting started/Trigger the modal HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from walletconnect-docs.