writePayload

open suspend override fun writePayload(payload: JsonElement, mediaType: String = "application/json"): AnchorResult

Writes a payload to the blockchain and returns an anchor reference.

Legacy entry point — kept for binary compatibility. Routes through writePayload with PaymentContext.unmanaged; the client falls back to its embedded account credentials and does not consult any treasury.

Return

An AnchorResult containing the reference and payload

Parameters

payload

The JSON payload to anchor

mediaType

The media type of the payload