Coder Social home page Coder Social logo

Comments (2)

allanclempe avatar allanclempe commented on August 30, 2024

Hi Zois,

Good question. Events in web3dart are associated to contracts. In web3js land has a way to subscribe events in the blockchain (https://web3js.readthedocs.io/en/v1.2.0/web3-eth-subscribe.html), as far as I know, web3dart doesn't.

It might be worth to ask them if there's any solution for that.

Alternatively, you could get the transaction hash and use a different API to check the transaction status. It's not ideal, but ..... Check out this API: https://blockexplorer.com/api-ref

Thanks.

from ether-wallet-flutter.

zois avatar zois commented on August 30, 2024

Thanks! What I will do, is actually ask for the receipt using getTransactionReceipt. If this is returned as null, then the transaction is still pending. It's not a subscription though, but a simple polling strategy will suffice I guess..

from ether-wallet-flutter.

Related Issues (16)

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.