Skip to content

[kotlin-sdk] Script/OP_RETURN outputs and output-order guarantee on the Core send #4082

Closed

Description

@bfoss765

Priority: P2 — only the Maya integration needs it, and Maya is the wallet's deliberate last send-path holdout (stays on dashj until then).

Ask: addOutputScript(scriptBytes, amountDuffs) on the Core send options (OP_RETURN memo outputs) plus a documented guarantee that outputs appear in insertion order with change at a caller-chosen index (Maya requires strict vout ordering and change routed to vin0's address).

Context: dashpay/dash-wallet#1507 Phase 5c GAP-5. cc @QuantumExplorer

Activity

  1. HashEngineering commented on Nov 9, 2026

    @HashEngineering
    Collaborator

    Fixed by #4308. buildSignedPayment accepts opReturnData, preserveOutputOrder and changeToFirstInput, which gives a guaranteed layout (recipient at vout 0, OP_RETURN at vout 1, change to the first input's address at vout 2). Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions