Skip to content

Create BitcoinCash from privatekey [bitcoincash:qr...] #57

@Pymmdrza

Description

@Pymmdrza

How create bitcoincash address (bitcoincash:qr...) from this package ???
used this source , not worked to this type address :

from hdwallwet import HDWallet
from hdwallet.symbols import BCH as SYMBOL
hdwallet: HDWallet = HDWallet(symbol=SYMBOL)
hdwallet.from_private_key(private_key=private_key)
addr = hdwallet.p2wpkh_address()
print(addr)
# out: bc1qgrdf2l6z6u78zpdj4excxp44r4amquxlalcnpd

i need this address type : bitcoincash:q....

Metadata

Metadata

Assignees

No one assigned

    Labels

    addressNew or invalid addressenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions