You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
In particular for
POST /mapi/txplease can we havetxidin 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
txidis emptyThanks in advance!