Package-level declarations
Types
Link copied to clipboard
Categorizes the risk/impact of a dApp operation.
Link copied to clipboard
Gate for write operations that require user consent before execution.
Link copied to clipboard
data class ApprovalRequest(val method: String, val category: ApprovalCategory, val params: JsonObject)
Data describing a write operation awaiting user approval.
Link copied to clipboard
interface BalanceProvider
Balance provider interface — decouples handler from specific repository implementations. Allows the SDK to work with different data sources (real repos, mocks, etc.)
Link copied to clipboard
class ConnectedAPIHandler(networkConfig: NetworkConfig, val walletAddresses: WalletAddresses, balanceProvider: BalanceProvider? = null, signDataFn: suspend (String, SignDataOptions) -> SignatureResult? = null, submitTransactionFn: suspend (String) -> Unit? = null, makeTransferFn: suspend (List<DesiredOutput>, Boolean) -> String? = null, balanceUnsealedFn: suspend (String, Boolean) -> String? = null, balanceSealedFn: suspend (String, Boolean) -> String? = null, makeIntentFn: suspend (List<DesiredInput>, List<DesiredOutput>, IntentOptions) -> String? = null, getTxHistoryFn: suspend (Int, Int) -> List<HistoryEntry>? = null)
Implements all 16 ConnectedAPI methods (15 WalletConnectedAPI + hintUsage).
Link copied to clipboard
class ConnectorManager(networkConfig: NetworkConfig, approvalManager: ApprovalManager = ApprovalManager { true })
Orchestrates the connector lifecycle and all transport layers.
Link copied to clipboard
class ConnectorWebSocketServer(router: JsonRpcRouter, scope: CoroutineScope, port: Int = DEFAULT_PORT) : WebSocketServer
WebSocket server for the DApp Connector.
Link copied to clipboard
class InitialAPI(networkConfig: NetworkConfig, handlerFactory: (String) -> ConnectedAPIHandler, val icon: String = "")
Initial API — the connection entry point for dApps.
Link copied to clipboard
class JsonRpcRouter(handler: ConnectedAPIHandler, approvalManager: ApprovalManager = ApprovalManager { true })
JSON-RPC 2.0 message router for the ConnectedAPI.
Link copied to clipboard