GithubHelp home page GithubHelp logo

Comments (8)

 avatar commented on May 20, 2024

Hi Anastasia!

I'm sorry for the wait. Have been out for a few days. I'll take a look into this and get back to you shortly. I do have some test cases with testnet, but my use has all been mainnet, so the odds of a bug with testnet are fairly high.

-Teran

from bitcash.

 avatar commented on May 20, 2024

Okay, turns out this isn't a bitcash bug afterall. ccoin.cash is using the old Bitcoin address format and hasn't updated to cashaddr. If you want to use bitcash with ccoin, you'll need to convert the cashaddr to the legacy address.

One site you can do this with is: https://cashaddr.bitcoincash.org

If you want to keep this within Python, you can do so with cashaddress: https://github.com/oskyk/cashaddress

cashaddress is already used inside this repository. You can send to legacy addresses, but the .address property will always return the cashaddr format.

I hope this helps! Let me know if you have any questions.

from bitcash.

 avatar commented on May 20, 2024

Oh, about raw transactions, just use .create_transaction() and it will give you something that you can broadcast, just the hex output.

https://github.com/sporestack/bitcash/blob/master/bitcash/wallet.py#L208

from bitcash.

anastasiia-bilova avatar anastasiia-bilova commented on May 20, 2024

Teran, thank you so much for your reply!

You helped me a lot, with new converted BCH address everything works!

And thank you for your cool library!

from bitcash.

AustEcon avatar AustEcon commented on May 20, 2024

anastasia-bilova - I found a great library for converting between BCH and legacy addresses natively in python - https://github.com/oskyk/cashaddress - super handy little one to have in your tool belt :)

from bitcash.

 avatar commented on May 20, 2024

You're welcome! Glad I could help.

Though most of the credit goes to @ofek, he wrote the bit library for Bitcoin which I ported this from. He did 99% of the legwork.

from bitcash.

AustEcon avatar AustEcon commented on May 20, 2024

I would also like to thank you for this library. Absolutely amazing. You have made a huge difference to the BCH ecosystem with this, regardless of who did the original core work. Still takes effort to connect all the ports, add extra features, taylor it to BCH and make it work right out of the box.

from bitcash.

 avatar commented on May 20, 2024

Thank you! I really appreciate that. I needed it myself and I'm glad you've been able to find it useful as well.

Will close this out for now.

from bitcash.

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.