bdkpython 0.32.0__cp312-cp312-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
bdkpython/bdkffi.dll ADDED
Binary file
@@ -0,0 +1,54 @@
1
+ Metadata-Version: 2.1
2
+ Name: bdkpython
3
+ Version: 0.32.0
4
+ Summary: The Python language bindings for the Bitcoin Development Kit
5
+ Home-page: https://github.com/bitcoindevkit/bdk-ffi
6
+ Author: Alekos Filini <alekos.filini@gmail.com>, Steve Myers <steve@notmandatory.org>
7
+ License: MIT or Apache 2.0
8
+ Description-Content-Type: text/markdown
9
+
10
+ # bdkpython
11
+ The Python language bindings for the [Bitcoin Dev Kit](https://github.com/bitcoindevkit).
12
+
13
+ ## Install the package
14
+ ```shell
15
+ pip install bdkpython
16
+ ```
17
+
18
+ ## Simple example
19
+ ```python
20
+ import bdkpython as bdk
21
+
22
+
23
+ descriptor = bdk.Descriptor("wpkh(tprv8ZgxMBicQKsPcx5nBGsR63Pe8KnRUqmbJNENAfGftF3yuXoMMoVJJcYeUw5eVkm9WBPjWYt6HMWYJNesB5HaNVBaFc1M6dRjWSYnmewUMYy/84h/0h/0h/0/*)", bdk.Network.TESTNET)
24
+ db_config = bdk.DatabaseConfig.MEMORY()
25
+ blockchain_config = bdk.BlockchainConfig.ELECTRUM(
26
+ bdk.ElectrumConfig(
27
+ url = "ssl://electrum.blockstream.info:60002",
28
+ socks5 = None,
29
+ retry = 5,
30
+ timeout = None,
31
+ stop_gap = 100,
32
+ validate_domain = True,
33
+ )
34
+ )
35
+ blockchain = bdk.Blockchain(blockchain_config)
36
+
37
+ wallet = bdk.Wallet(
38
+ descriptor=descriptor,
39
+ change_descriptor=None,
40
+ network=bdk.Network.TESTNET,
41
+ database_config=db_config,
42
+ )
43
+
44
+ # print new receive address
45
+ address_info = wallet.get_address(bdk.AddressIndex.LAST_UNUSED())
46
+ address = address_info.address
47
+ index = address_info.index
48
+ print(f"New BIP84 testnet address: {address} at index {index}")
49
+
50
+
51
+ # print wallet balance
52
+ wallet.sync(blockchain, None)
53
+ balance = wallet.get_balance()
54
+ print(f"Wallet balance is: {balance.total}")
@@ -0,0 +1,7 @@
1
+ bdkpython/__init__.py,sha256=ATeFkCbwx3hWmg2HKvxY6LX-KzEK4cnYyA-yjmX_jRw,27
2
+ bdkpython/bdk.py,sha256=YseFeVCmhprVnaIfpZQhrC4P5HQEnQmD8oHpXJINqSg,260894
3
+ bdkpython/bdkffi.dll,sha256=jk1GeMBGGV2yUQq1Io-qJfUIzh7tGzHpJSnc5X32jGU,6988800
4
+ bdkpython-0.32.0.dist-info/METADATA,sha256=ZJy8bc2jAWIXUyJNrxGWrSRQL3sLGZi9amwqmWkCt9k,1668
5
+ bdkpython-0.32.0.dist-info/WHEEL,sha256=6ELqAucStubqYbsNht5G2Vt0Sx8vF2Win3-S4get58M,102
6
+ bdkpython-0.32.0.dist-info/top_level.txt,sha256=BpjT6locJ4WJz-wFZu6kSG9cKeH8E64dUJlPeL425OY,10
7
+ bdkpython-0.32.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.38.4)
3
+ Root-Is-Purelib: false
4
+ Tag: cp312-cp312-win_amd64
5
+
@@ -0,0 +1 @@
1
+ bdkpython