JsonRpcObjectResponse

@Serializable
data class JsonRpcObjectResponse<T>(val jsonrpc: String = "2.0", val id: Int = 1, val result: T? = null, val error: JsonRpcError? = null)

Generic JSON-RPC response that can handle object results (blocks, transactions, etc.)

Constructors

Link copied to clipboard
constructor(jsonrpc: String = "2.0", id: Int = 1, result: T? = null, error: JsonRpcError? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val id: Int
Link copied to clipboard
Link copied to clipboard
val result: T?