Package-level declarations

Types

Link copied to clipboard

FFI-based serializer backed by the Rust ledger.

Link copied to clipboard
class NodeHttpException(val statusCode: Int, message: String, cause: Throwable? = null) : NodeRpcException

HTTP error from node RPC (4xx or 5xx status).

Link copied to clipboard

Invalid or malformed response from node RPC.

Link copied to clipboard
class NodeNetworkException(message: String, cause: Throwable? = null) : NodeRpcException

Network connectivity error (no internet, DNS failure, connection refused).

Link copied to clipboard
interface NodeRpcClient

Client for Midnight node JSON-RPC API.

Link copied to clipboard
class NodeRpcClientImpl(httpClient: HttpClient, nodeUrl: String = "http://localhost:9944", developmentMode: Boolean = true) : NodeRpcClient

Ktor-based implementation of NodeRpcClient for Midnight node JSON-RPC API.

Link copied to clipboard
class NodeRpcError(val code: Int, message: String, val data: String? = null) : NodeRpcException

JSON-RPC error from node (negative error code in response).

Link copied to clipboard

Base exception for all node RPC errors.

Link copied to clipboard
class NodeTimeoutException(message: String, cause: Throwable? = null) : NodeRpcException

Request timeout error.

Link copied to clipboard

Proof computation failed (proof server could not generate valid proof).

Link copied to clipboard

Client for Midnight Proof Server API.

Link copied to clipboard
class ProofServerClientImpl(httpClient: HttpClient, proofServerUrl: String = "http://localhost:6300", developmentMode: Boolean = true) : ProofServerClient

Ktor-based implementation of ProofServerClient for Midnight proof server.

Link copied to clipboard
class ProofServerError(val statusCode: Int, message: String, val responseBody: String? = null, cause: Throwable? = null) : ProofServerException

Proof server returned an error response.

Link copied to clipboard

Base exception for all proof server errors.

Link copied to clipboard
class ProofServerHttpException(val statusCode: Int, message: String, cause: Throwable? = null) : ProofServerException

HTTP error (non-2xx status code).

Link copied to clipboard

Invalid or malformed response from proof server.

Link copied to clipboard

Network connectivity error (connection refused, DNS failure, etc.).

Link copied to clipboard

Timeout error (proof generation took too long).

Link copied to clipboard

Result of transaction finalization.

Link copied to clipboard
class TransactionRejected(val reason: String, val txHash: String? = null, val customErrorCode: Int? = null) : NodeRpcException

Transaction rejected by node (validation failed).

Link copied to clipboard

Serializes signed transactions to SCALE codec for node submission.

Link copied to clipboard
class TransactionSubmitter(nodeRpcClient: NodeRpcClient, proofServerClient: ProofServerClient, indexerClient: IndexerClient, serializer: TransactionSerializer, utxoManager: UtxoManager, dustActionsBuilder: DustActionsBuilder? = null, dustRepository: DustRepository? = null, provingKeyManager: <Error class: unknown class>? = null, var provingMode: <Error class: unknown class> = ProvingMode.DEFAULT, networkClientProvider: TransactionSubmitter.NetworkClientProvider? = null)

Orchestrates transaction submission and confirmation for Midnight blockchain.