Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET /v2/slp/txDetails/{id} stopped including OP_RETURN as output in send amounts #573

Open
m4ktub opened this issue May 11, 2020 · 0 comments

Comments

@m4ktub
Copy link

m4ktub commented May 11, 2020

Previously (for example, when #532 was reported) the txDetails would count the OP_RETURN output as any other output which meant it would set its value to 0 in tokenInfo.sendOutputs. For example

{
  "tokenInfo": { 
    "versionType":1,
    "transactionType":"SEND",
    "tokenIdHex":"49be89bbbe018bcfaebcb41cac8340bc555f022b47b922599e510b143603f4b6",
    "sendOutputs": [ "0", "1" ]
  }
}

But the API changed in a breaking way and now OP_RETURN is not excluded. For the same example shown before it not returns:

{
  "tokenInfo": { 
    "versionType":1,
    "transactionType":"SEND",
    "tokenIdHex":"49be89bbbe018bcfaebcb41cac8340bc555f022b47b922599e510b143603f4b6",
    "sendOutputs": [ "1" ]
  }
}

This means that the index of the value and the index of the vout no longer match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant