Giter Site home page Giter Site logo

Comments (5)

fabianbormann avatar fabianbormann commented on June 6, 2024

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.

web3-literally avatar web3-literally commented on June 6, 2024

Very good!!!
Thanks so much

from cardano-connect-with-wallet.

web3-literally avatar web3-literally commented on June 6, 2024

And how to get shelley address?
From stakeAddress, I can't do anything. please help me

from cardano-connect-with-wallet.

fabianbormann avatar fabianbormann commented on June 6, 2024

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.

fabianbormann avatar fabianbormann commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.