.. _cashaddr: CashAddr ======== CashAddr is a new Bitcoin Cash `address format`_. It is an encoding of the address in base32 format using `BCH codes`_ as checksum, that can be used directly in links or QR codes. BitCash uses CashAddr encoded addresses throughout the library for sending, receiving :ref:`transactions `. A CashAddr is handled through :class:`~bitcash.cashaddress.Address`: .. code-block:: python >>> from bitcash.cashaddress import Address >>> cashaddr = Address.from_string("bitcoincash:qqrxvhnn88gmpczyxry254vcsnl6canmkqgt98lpn5") >>> cashaddr Address('bitcoincash:qqrxvhnn88gmpczyxry254vcsnl6canmkqgt98lpn5') >>> cashaddr_test = Address.from_string("bchtest:qqrxvhnn88gmpczyxry254vcsnl6canmkqvepqak5g") >>> cashaddr_test Address('bchtest:qqrxvhnn88gmpczyxry254vcsnl6canmkqvepqak5g') >>> cashaddr.payload == cashaddr_test.payload True >>> cashaddr = Address.from_string("bitcoincash:qqrxvhnn88gmpczyxry254vcsnl6canmkqgt98lpn6") InvalidAddress: Bad cash address checksum for address bitcoincash:qqrxvhnn88gmpczyxry254vcsnl6canmkqgt98lpn6 The CashAddr can distinguish between networks of BCH of the same address, and perform checksum tests for bad addresses. URI Scheme ---------- CashAddr follows `URI format`_ as described in `BIP0021`_. The query parameters of the URI can be used to pass additional information to the wallet, like BCH amount, message, etc:: bitcoincash:
[?amount=][?label=