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

Dev - Osmosis API research #2

Closed
Tracked by #3
xellos00 opened this issue May 30, 2024 · 2 comments
Closed
Tracked by #3

Dev - Osmosis API research #2

xellos00 opened this issue May 30, 2024 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation validator vatz-plugin-watcher-cosmos

Comments

@xellos00
Copy link
Member

xellos00 commented May 30, 2024

Dev - Osmosis API research

@meetrick
Copy link
Member

meetrick commented May 30, 2024

How to get signed info on lastest block

  • Get the address for singning info

$ curl -s localhost:1317/cosmos/staking/v1beta1/validators/osmovaloper1wlagucxdxvsmvj6330864x8q3vxz4x025rraa6 | jq -r '.validator.consensus_pubkey.key'
FPpZYlaX1njcZNXS+W0pAm3auPqoOQ6ecoZYfEUBd5U=

$ curl -s localhost:26657/validators | jq -r --arg value "FPpZYlaX1njcZNXS+W0pAm3auPqoOQ6ecoZYfEUBd5U=" '.result.validators[] | select(.pub_key.value == $value) | .address'
5F999A4BE254869925A7F2FEA04D7B3B836CFF0B

$ curl -s http://localhost:26657/block | jq -r --arg validator_address "5F999A4BE254869925A7F2FEA04D7B3B836CFF0B" '.result.block.last_commit.signatures[] | select(.validator_address == $validator_address)'
  • latest block에 DSRV validator_address가 .result.block.last_commit.signatures[]에 담겨있다면 sign한것으로 간주해도 됩니다.

@xellos00
Copy link
Member Author

@meetrick
I will close this issue if you don't have concern

@xellos00 xellos00 closed this as completed Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation validator vatz-plugin-watcher-cosmos
Projects
None yet
Development

No branches or pull requests

3 participants