diff --git a/src/main/java/org/qortal/api/resource/ArbitraryResource.java b/src/main/java/org/qortal/api/resource/ArbitraryResource.java index 52efc884..57d39867 100644 --- a/src/main/java/org/qortal/api/resource/ArbitraryResource.java +++ b/src/main/java/org/qortal/api/resource/ArbitraryResource.java @@ -328,6 +328,23 @@ public class ArbitraryResource { } } + @GET + @Path("/relaymode") + @Operation( + summary = "Returns whether relay mode is enabled or not", + responses = { + @ApiResponse( + content = @Content(mediaType = MediaType.TEXT_PLAIN, schema = @Schema(type = "boolean")) + ) + } + ) + @ApiErrors({ApiError.REPOSITORY_ISSUE}) + public boolean getRelayMode() { + Security.checkApiCallAllowed(request); + + return Settings.getInstance().isRelayModeEnabled(); + } + @GET @Path("/hosted/transactions") @Operation(