No description available
pip install fastpluggy-crypto-daemon-sync
pip install fastpluggy-crypto-daemon-sync==0.1.0
The Crypto Daemon Sync plugin is a FastPluggy plugin designed to synchronize blockchain data from a core daemon. It provides functionality to track blockchain status, sync blocks and transactions, monitor watched addresses, and store raw blockchain data.
This plugin serves as a bridge between your FastPluggy application and a blockchain node, allowing you to:
Ensure the plugin is in your FastPluggy plugins directory:
src/fastpluggy_plugin/crypto_deamon_sync/
Install the plugin dependencies:
bash
pip install -e src/fastpluggy_plugin/crypto_deamon_sync/
Configure the plugin in your FastPluggy configuration:
python
# In your FastPluggy configuration
PLUGINS = [
# ... other plugins
"crypto_deamon_sync",
]
The plugin is configured through the CoreDaemonSettings
class. You can customize these settings in your environment variables or configuration file:
CORE_DAEMON_URL
: URL of the blockchain core daemonCORE_DAEMON_USERNAME
: Username for authentication (if required)CORE_DAEMON_PASSWORD
: Password for authentication (if required)SYNC_ENABLED
: Enable/disable automatic blockchain syncingSAVE_RAW_DATA
: Enable/disable saving raw block and transaction dataOnce installed, the plugin adds a "Crypto Sync" menu item to your FastPluggy application. From there, you can access:
The Block Explorer allows you to:
- View a paginated list of synced blocks
- Search for blocks by height or hash
- View detailed information for a specific block
- See transactions within a block
The Transaction Explorer allows you to:
- View a list of transactions with filtering options
- Search for transactions by hash
- View detailed information for a specific transaction
- Examine inputs and outputs for transactions
The Address Monitoring screen allows you to:
- View a list of watched addresses
- Add new addresses to watch
- Remove addresses from watching
- View balance history for addresses
- View transactions for a specific address
The Sync Status Dashboard provides:
- Visual representation of sync progress
- Statistics on synced blocks and transactions
- Control panel to start/stop sync process
- Configuration options for sync settings
You can also use the plugin programmatically in your FastPluggy application:
from fastpluggy_plugin.crypto_deamon_sync.src.models import BlockchainStatus, WatchedAddress
from fastpluggy_plugin.crypto_deamon_sync.src.tasks.balance_sync import task_update_address_balance
# Get blockchain status
def get_blockchain_info():
with session_scope() as session:
status = session.query(BlockchainStatus).first()
return status
# Add an address to watch
def add_watched_address(address):
with session_scope() as session:
watched = WatchedAddress(address=address)
session.add(watched)
session.commit()
# Update the balance for this address
task_update_address_balance(address)
Common issues and their solutions:
Detailed documentation is available in the doc/
directory:
README.md
: This overview documentarchitecture.md
: Detailed architecture of the pluginapi.md
: API documentationmodels.md
: Data model documentationtasks.md
: Background tasks documentationimplementation_plan.md
: Implementation plan for featuresFor issues, feature requests, or contributions, please:
doc/
directoryThis plugin does not have a Changelog file or it could not be extracted from the package.
API documentation for this plugin is not available.
Last analysis performed: 2025-07-06 19:24:54
This plugin has a valid entry point:
crypto_demon_sync
= fastpluggy_plugin.crypto_deamon_sync.plugin:CryptoDaemonSyncPlugin
Issues were found during analysis, but details are not available.
fastpluggy_plugin.crypto_deamon_sync.plugin:CryptoDaemonSyncPlugin