AnchorResult

data class AnchorResult(val ref: AnchorRef, val payload: JsonElement, val mediaType: String = "application/json", val timestamp: Long? = null, val fee: TokenAmount? = null, val payerAddress: String? = null)

Result of anchoring a payload to a blockchain.

Parameters

ref

The anchor reference pointing to the anchored data

payload

The JSON payload that was anchored

mediaType

The media type of the payload (default: "application/json")

timestamp

Optional timestamp (epoch seconds) when the anchor was created

fee

Actual fee paid for this anchoring operation. null for legacy plugins that do not yet surface fee information; payment-aware plugins must populate this so the Trusted Domain Manager can settle the reservation against the treasury ledger.

payerAddress

On-chain address (or chain-native account identifier) that paid the fee. null for legacy / unmanaged paths.

Constructors

Link copied to clipboard
constructor(ref: AnchorRef, payload: JsonElement, mediaType: String = "application/json", timestamp: Long? = null, fee: TokenAmount? = null, payerAddress: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val payload: JsonElement
Link copied to clipboard
Link copied to clipboard