Giter VIP home page Giter VIP logo

unisat-web3-demo's People

Contributors

abangz avatar huanniangstudio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

unisat-web3-demo's Issues

unisat connection will lost after some time

Hi, I create a frontend project according to this Unisat web3 react demo and it runs ok. But I find the unisat connection will lost after some time. In that case, it seems the dapp is connected with wallet and the window.unisat object is not null or undefined, but all wallet function calls have no response. The dapp user have to refresh browser and connect wallet again, but many state stored in memory will lost by refreshing, it's not a good experience. I wonder any one has faced this case and could give some help. Thanks!

npm start

at /home/joan/Documentos/unisat wallet/unisat-web3-demo-master/node_modules/babel-loader/lib/index.js:51:103 {

opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'

Bug: bip322-simple on Testnet legacy address error

If I use bip322-simple on Testnet legacy address , I will got error like this

App.tsx:244 Uncaught (in promise) {code: -32603, message: 'Not support address type to sign', data: {…}}

 <Button
        style={{ marginTop: 10 }}
        onClick={async () => {
          const signature = await (window as any).unisat.signMessage(message,"bip322-simple");
          setSignature(signature);
        }}
      >
        Sign Message
      </Button>
`

How to construct a Psbt?

Could you add how to construct a Psbt to sign? I am trying to figure out how to list and buy a inscription.

Disconnect from Unisat wallet

I need to implement disconnect fron Unisat wallet functionality. How to do that? I don't see this code neither in demo-example nor in API docs.

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.