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

Fix the /api/v2/transaction/verify #2680

Open
Senyoret1 opened this issue Apr 10, 2022 · 0 comments
Open

Fix the /api/v2/transaction/verify #2680

Senyoret1 opened this issue Apr 10, 2022 · 0 comments

Comments

@Senyoret1
Copy link
Contributor

The /api/v2/transaction/verify API endpoint is not working as described in the documentation ( https://github.com/skycoin/skycoin/blob/develop/src/api/README.md#verify-encoded-transaction ):

  • When trying to decode a transaction with inputs that are not in the unspent pool or the historical archive, the node returns an error like this: Uxout of --- does not exist.. that is not what the docs say, which is the transaction "inputs" metadata will be absent and only "uxid" will be present.. The endpoint must work as described in the docs, to be able to show a preview in the UI before signing a raw transaction in an offline computer.

  • If you send an already spent transaction, the API returns 504 Gateway Timeout, instead of 422 Unprocessable Entity, as indicated in the documentarion.

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