com.wavesplatform.api.http.WalletApiRoute.scala Maven / Gradle / Ivy
The newest version!
package com.wavesplatform.api.http
import akka.http.scaladsl.server.Route
import com.wavesplatform.common.utils.Base58
import com.wavesplatform.settings.RestAPISettings
import com.wavesplatform.wallet.Wallet
import play.api.libs.json.Json
case class WalletApiRoute(settings: RestAPISettings, wallet: Wallet) extends ApiRoute with AuthRoute {
override lazy val route: Route = seed
def seed: Route = (path("wallet" / "seed") & get & withAuth) {
complete(Json.obj("seed" -> Base58.encode(wallet.seed)))
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy