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} returns incorrect send amounts #532

Open
m4ktub opened this issue Nov 20, 2019 · 0 comments
Open

GET /v2/slp/txDetails/{id} returns incorrect send amounts #532

m4ktub opened this issue Nov 20, 2019 · 0 comments

Comments

@m4ktub
Copy link

m4ktub commented Nov 20, 2019

The result of txDetails includes tokenInfo.sendOutputs : string[]. Its cardinality should be smaller or equal to the number of outputs in the transaction and each value should be the number of tokens sent to each output in order, that is, a decoding of the OP_RETURN. This is not the case in at least one instance.

Reproduce

  1. Check this transaction

Expected

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

Actual

Unexpected value marked with <<.

{
  "tokenInfo": { 
    "versionType":1,
    "transactionType":"SEND",
    "tokenIdHex":"49be89bbbe018bcfaebcb41cac8340bc555f022b47b922599e510b143603f4b6",
    "sendOutputs": [ "0", "100000000" << ]
  }
}
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