Comments (5)
Hey @web3-literally, you could look into lucid and replace this const api...
line in their example code:
// Assumes you are in a browser environment
---> const api = await window.cardano.nami.enable();
lucid.selectWallet(api);
by const api = window.cardano[enabledWallet].enable();
and you can get the enabled wallet from the useCardano hook const { enabledWallet } = useCardano();
.
Another possibilty would be to look into the meshjs libs those guys built amazing stuff to simplify our cardano dev lives 😉
I hope that helps & thanks for building on Cardano! 🚀 😊
from cardano-connect-with-wallet.
Very good!!!
Thanks so much
from cardano-connect-with-wallet.
And how to get shelley address?
From stakeAddress, I can't do anything. please help me
from cardano-connect-with-wallet.
I will add a wrapper for window.cardano.[enabledWallet].getUsedAddresses()
and window.cardano.[enabledWallet]. getUnusedAddresses()
to the useCardano hook in the next version but until that you can call those functions in typescript with (window as any).cardano.[enabledWallet].getUsedAddresses()
.
from cardano-connect-with-wallet.
I created a new issue for this feature and I try to implement it with the next version. I will close this issue here but you can follow the status in #46. 😊
from cardano-connect-with-wallet.
Related Issues (18)
- [Feature]: Update to support final CIP-30 and thus CIP-30 extensions
- Gerowallet not working[BUG] HOT 4
- [BUG] cannot get stakeAddress HOT 3
- [FEATURE]
- Add option to display account balance instead of stake address
- Get payment addresses from useCardano hook HOT 2
- Refactor this component in an abstract non-react lib and a react implementation
- Add preview gif to README.md HOT 2
- [BUG] Can not write unit test if i import this library. I use jest, testing-library and styled-components HOT 5
- [FEATURE] AdaHandle support HOT 3
- [FEATURE] Add VESPR to list supported wallets HOT 1
- [BUG] CBOR decode error HOT 9
- [FEATURE] Vue Support HOT 1
- [FEATURE] Full CIP-30 HOT 1
- [BUG] CBOR decode error: non-string keys not supported HOT 9
- [Bug]: NuFi wallet does not reconnect after page reload
- [Bug]: event name mismatch: "connecting" vs "isConnecting" HOT 1
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 cardano-connect-with-wallet.