Giter Site home page Giter Site logo

Comments (6)

simolus3 avatar simolus3 commented on July 29, 2024 1

Thanks for the issue. I've implemented the getTransactionReceipt on the development branch and I'll release a new version later this week.

from web3dart.

simolus3 avatar simolus3 commented on July 29, 2024 1

Published as version 1.1.0 on pub.

from web3dart.

chart21 avatar chart21 commented on July 29, 2024

Thanks a ton for adding the transaciton receipt. Unfortunately it does not seem to work properly:

hash = "0x74836273a74ec6e3a6c939fe0f361c56eeabee03dbacdc41821a8c4ec6dbdbb4";
var transactionInfo = await client.getTransactionByHash(hash); -> works fine
var transacitonReceipt = await client.getTransactionReceipt(hash); -> Exception has occurred.
FormatException (FormatException: Invalid radix-10 number (at character 1)
10c755

Edit: Fixed the issue, Blocknumber was parsed incorrectly, will upload a solution soon

from web3dart.

Abhimanyu121 avatar Abhimanyu121 commented on July 29, 2024

Is there a way to get transaction receipt via web socket or await getting transaction receipt till the transaction is merged?

from web3dart.

simolus3 avatar simolus3 commented on July 29, 2024

I think you need to poll getTransactionReceipt until it's valid. You can also use .addedBlocks() to listen for new blocks and only fetch the receipt after a new block has been added.

from web3dart.

Abhimanyu121 avatar Abhimanyu121 commented on July 29, 2024

Got it, thanks.

from web3dart.

Related Issues (20)

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.