8000 GitHub - oskyk/cashaddress: Python tool for convert bitcoin cash legacy addresses · GitHub
[go: up one dir, main page]

Skip to content

About

Python tool for convert bitcoin cash legacy addresses

Topics

Resources

Stars

46 stars

Watchers

7 watching

Forks

Latest commit

 

History

32 Commits

Folders and files

Repository files navigation

Build Status Coverage Status

cashaddress

cashaddress is python library which is able to convert legacy BCH address to new format.

Installation

To install this library and its dependencies use:

pip install cashaddress

Usage examples

The first thing you need to do is import the library via:

from cashaddress import convert

Converting address

It does not matter if you use legacy or new address as input.

Then you can convert your address via:

address = convert.to_cash_address('155fzsEBHy9Ri2bMQ8uuuR3tv1YzcDywd4')

or

address = convert.to_legacy_address('bitcoincash:qqkv9wr69ry2p9l53lxp635va4h86wv435995w8p2h')

Validating address

You can also validate address via:

convert.is_valid('155fzsEBHy9Ri2bMQ8uuuR3tv1YzcDywd4')

or

convert.is_valid('bitcoincash:qqkv9wr69ry2p9l53lxp635va4h86wv435995w8p2h')

Development

  1. Clone the repository

  2. Create virtualenv

  3. Do your thing

  4. Run tests

    pytest

About

Python tool for convert bitcoin cash legacy addresses

Topics

Resources

Stars

46 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0