
com.wavesenterprise.transaction.ProvenTransaction.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of we-models Show documentation
Show all versions of we-models Show documentation
Library for Waves Enterprise blockchain platform
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