Api /wallets sometimes return wrong vote IDSee original GitHub issue
api/wallets/ should return correct vote id
api/wallets/ sometimes return wrong id
Steps to Reproduce (for bugs)
- Retrieve the wallet
- Retrieve the returned (wrong) vote id
- The only and valid vote transaction for this account is
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
I don’t see any problem here.
https://api.ark.io/api/wallets/APYBiT55RHNGJMRENSCmY7fEkjhaT6A6Jg shows the public key of the delegate the wallet is voting for; in this case the public key is
02c0b645f19ab304d25aae3add139edd9f6ca9fd0d98e57a808100de0e93832181 which corresponds to delegate
https://api.ark.io/api/votes/02c0b645f19ab304d25aae3add139edd9f6ca9fd0d98e57a808100de0e93832181 yields an
Unprocessable Entity error because it’s being fed a public key when it requires a transaction ID.
Instead, if we use
https://api.ark.io/api/votes/b601cebf7cef600d9af8c02ab9c4cbe194357b1c2ce1d2aac45197873b52c1fe it again shows the transaction is voting for public key
So @biolypl I think you are conflating transaction IDs and public keys.
api/wallets is showing that the wallet is voting for you based on your public key. It doesn’t show the ID of the transaction that cast the vote.
This issue has been closed. If you wish to re-open it please provide additional information.