|
@ -3,6 +3,7 @@ package controllers |
|
|
import javax.inject.Inject |
|
|
import javax.inject.Inject |
|
|
|
|
|
|
|
|
import com.alexitc.playsonify.models.PublicContextWithModel |
|
|
import com.alexitc.playsonify.models.PublicContextWithModel |
|
|
|
|
|
import com.xsn.explorer.models.Address |
|
|
import com.xsn.explorer.models.request.SendRawTransactionRequest |
|
|
import com.xsn.explorer.models.request.SendRawTransactionRequest |
|
|
import com.xsn.explorer.services.TransactionService |
|
|
import com.xsn.explorer.services.TransactionService |
|
|
import controllers.common.{MyJsonController, MyJsonControllerComponents} |
|
|
import controllers.common.{MyJsonController, MyJsonControllerComponents} |
|
@ -23,4 +24,8 @@ class TransactionsController @Inject() ( |
|
|
def sendRawTransaction() = publicWithInput { ctx: PublicContextWithModel[SendRawTransactionRequest] => |
|
|
def sendRawTransaction() = publicWithInput { ctx: PublicContextWithModel[SendRawTransactionRequest] => |
|
|
transactionService.sendRawTransaction(ctx.model.hex) |
|
|
transactionService.sendRawTransaction(ctx.model.hex) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
def getLatestByAddresses() = publicWithInput { ctx: PublicContextWithModel[List[Address]] => |
|
|
|
|
|
transactionService.getLatestTransactionBy(ctx.model) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|