Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Request: Add txid for all responses in the merchant api payload, even those requests which were unsuccessful. #11

Description

In particular for POST /mapi/tx please can we have txid in the response as well? It will be a lot easier to audit and log to have this data in the payload even in the case of non success cases.

Example:

{"payload":"{"apiVersion":"0.1.0","timestamp":"2021-01-13T05:43:26.390Z","txid":"","returnResult":"failure","resultDescription":"ERROR: 257: txn-already-known","minerId":"0211ccfc29e3058b770f3cf3eb34b0b2fd2293057a994d4d275121be4151cdf087","currentHighestBlockHash":"00000000000002e3479d1d15e72a90a5109656d3bae06d4fbd5ab45e6de405c3","currentHighestBlockHeight":1404493,"txSecondMempoolExpiry":0}","signature":"3045022100bdf965099c8f964b79f6f1f962ad7de4dbdbb38d6475fc05abfa777f67b4d3f30220520d2a3b1957f60bb319930cebc83ce54f739ca5097e574c20a34caa776b9777","publicKey":"0211ccfc29e3058b770f3cf3eb34b0b2fd2293057a994d4d275121be4151cdf087","encoding":"UTF-8","mimetype":"application/json"},"status":"Accepted"},"level":"debug","timestamp":"2021-01-13 05:43:26"}

^^ Notice how txid is empty

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions