-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix some api.rst underline too short
add script and instructions to readme fixup formatting fixup yaml workflow file modify generate docs script and format a bit better add manually format api.rst for sections latest docs generated
- Loading branch information
Showing
22 changed files
with
509 additions
and
2,816 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 2e1e3dc39064c1de4564a7de697f9f15 | ||
config: 5fb7a54e8266e4003565896ce90c2a2e | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
326 changes: 223 additions & 103 deletions
326
bdk-python/docs/_build/html/_modules/bdkpython/bdk.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,138 +1,31 @@ | ||
API Reference | ||
============ | ||
BDK Python API Reference | ||
===================== | ||
|
||
.. currentmodule:: bdkpython | ||
This document describes the Python API for the Bitcoin Development Kit (BDK). | ||
|
||
Core Types | ||
--------- | ||
Bdk Module | ||
========== | ||
Bitcoin Module | ||
============== | ||
|
||
Amount and Fees | ||
~~~~~~~~~~~~~~ | ||
.. autoclass:: Amount | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
.. autoclass:: FeeRate | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Addresses and Scripts | ||
~~~~~~~~~~~~~~~~~~~ | ||
.. autoclass:: Address | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
.. autoclass:: Script | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
.. autoclass:: OutPoint | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Descriptors | ||
~~~~~~~~~~ | ||
.. autoclass:: Descriptor | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
.. autoclass:: DescriptorPublicKey | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
.. autoclass:: DescriptorSecretKey | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
.. autoclass:: DerivationPath | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Wallet Operations | ||
--------------- | ||
|
||
Transaction Building | ||
~~~~~~~~~~~~~~~~~~ | ||
.. autoclass:: TxBuilder | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
.. autoclass:: BumpFeeTxBuilder | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
.. autoclass:: TxBuilderResult | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
.. autoclass:: Psbt | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Blockchain Clients | ||
~~~~~~~~~~~~~~~~ | ||
.. autoclass:: Blockchain | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
.. autoclass:: ElectrumClient | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
.. autoclass:: EsploraClient | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Wallet | ||
~~~~~~ | ||
.. autoclass:: Wallet | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
.. autoclass:: WalletSync | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Utilities | ||
Examples | ||
-------- | ||
.. autoclass:: Mnemonic | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
.. autoclass:: Network | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Exceptions | ||
--------- | ||
.. autoexception:: InternalError | ||
:members: | ||
:show-inheritance: | ||
|
||
.. autoexception:: FeeRateError | ||
:members: | ||
:show-inheritance: | ||
Basic Wallet Usage | ||
~~~~~~~~~~~~~~~~ | ||
|
||
.. autoexception:: ParseAmountError | ||
:members: | ||
:show-inheritance: | ||
.. code-block:: python | ||
from bdkpython import * | ||
# Create a new wallet | ||
descriptor = "wpkh(...)" # Your descriptor here | ||
wallet = Wallet(descriptor, network=Network.TESTNET) | ||
# Sync wallet | ||
blockchain = Blockchain("https://blockstream.info/testnet/api") | ||
wallet.sync(blockchain) | ||
# Get balance | ||
balance = wallet.get_balance() | ||
print(f"Confirmed balance: {balance.confirmed}") | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.