All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavesenterprise.transaction.ProvenTransaction.scala Maven / Gradle / Ivy

There is a newer version: 1.16.0
Show newest version
package com.wavesenterprise.transaction

import play.api.libs.json._

trait ProvenTransaction extends Transaction with Proven {

  def proofField = Json.obj("proofs" -> proofs.proofs.map(_.base58))

  protected def jsonBase(): JsObject =
    Json.obj(
      "type"            -> builder.typeId,
      "id"              -> id().base58,
      "sender"          -> sender.address,
      "senderPublicKey" -> sender.publicKeyBase58,
      "fee"             -> fee,
      "timestamp"       -> timestamp,
    ) ++ proofField
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy