BlockchainIntegrationHelper
object BlockchainIntegrationHelper
Helper utility for blockchain integration classes.
Provides common functionality for discovering and registering blockchain adapters via SPI. Reduces duplication across integration classes like AlgorandIntegration, PolygonIntegration, etc.
Example Usage:
// Discover and register all supported chains
val chains = BlockchainIntegrationHelper.discoverAndRegister("algorand", options)
// Register specific chains
val chains = BlockchainIntegrationHelper.setup(
providerName = "polygon",
chainIds = listOf("eip155:137"),
defaultChainIds = listOf("eip155:80002"),
options = options
)Content copied to clipboard
Thread Safety: This utility is thread-safe for concurrent access.
Functions
Link copied to clipboard
fun discoverAndRegister(providerName: String, registry: BlockchainAnchorRegistry, options: Map<String, Any?> = emptyMap()): List<String>
Discovers and registers blockchain anchor clients via SPI. Registers all supported chains for the given provider name.
Link copied to clipboard