Closed xellos00 closed 3 months ago
$ ./vatz plugin install https://github.com/dsrvlabs/vatz-plugin-watcher-cosmos/plugins/watcher_cosmos watcher_cosmos
$ ./vatz plugin start --plugin watcher_cosmos --args "-validator=51FD33F85A311FD27B36A620A7B9A40BF4839533 -rpcurl=https://rpc.testnet.osmosis.zone"
dongyookang DK 🔥  ~/ffplay/GolandProjects/xellos/vatz  ➦ 2dc5550
î‚° ./vatz plugin start --plugin watcher_cosmos --args "-validator=51FD33F85A311FD27B36A620A7B9A40BF4839533 -rpcurl=https://rpc.testnet.osmosis.zone" --log watcher.logs
2024-07-19T12:28:40-05:00 INF Start plugin watcher_cosmos -validator=51FD33F85A311FD27B36A620A7B9A40BF4839533 -rpcurl=https://rpc.testnet.osmosis.zone module=plugin
2024-07-19T12:28:40-05:00 INF Plugin watcher_cosmos is successfully started. module=plugin
dongyookang DK 🔥  ~/ffplay/GolandProjects/xellos/vatz  ➦ 2dc5550
î‚° ./vatz start --config default2.yaml
2024-07-19T12:28:59-05:00 INF Initialize Server module=main
2024-07-19T12:28:59-05:00 INF Start VATZ Server on Listening Port: :9090 module=main
2024-07-19T12:29:00-05:00 INF Client successfully connected to localhost:10001 (plugin:watcher_cosmos). module=util
2024-07-19T12:29:00-05:00 INF start metric server: 127.0.0.1:18080 module=main
2024-07-19T12:29:00-05:00 INF start rpc server module=rpc
2024-07-19T12:29:00-05:00 INF start gRPC gateway server 127.0.0.1:19091 module=rpc
2024-07-19T12:29:00-05:00 INF start gRPC server 127.0.0.1:19090 module=rpc
2024-07-19T12:29:00-05:00 INF Client successfully connected to localhost:10001 (plugin:watcher_cosmos). module=util
2024-07-19T12:29:09-05:00 INF Executor send request to watcher_cosmos module=executor
2024-07-19T12:29:09-05:00 INF response: SUCCESS module=executor
2024-07-19T12:29:18-05:00 INF Executor send request to watcher_cosmos module=executor
2024-07-19T12:29:18-05:00 INF response: SUCCESS module=executor
2024-07-19T12:29:27-05:00 INF Executor send request to watcher_cosmos module=executor
2024-07-19T12:29:27-05:00 INF response: SUCCESS module=executor
2024-07-19T12:29:36-05:00 INF Executor send request to watcher_cosmos module=executor
2024-07-19T12:29:36-05:00 INF response: SUCCESS module=executor
dongyookang DK 👑  ~/ffplay/GolandProjects/xellos/vatz  ➦ 2dc5550
î‚° tail -f watcher.logs
2024-07-19T12:28:40-05:00 INF Register module=grpc
2024-07-19T12:28:40-05:00 INF Start 127.0.0.1 10001 module=sdk
2024-07-19T12:28:40-05:00 INF Start module=grpc
2024-07-19T12:29:09-05:00 INF Execute module=grpc
2024-07-19T12:29:09-05:00 DBG The validator is signing the block successfully. module=plugin
2024-07-19T12:29:18-05:00 INF Execute module=grpc
2024-07-19T12:29:18-05:00 DBG The validator is signing the block successfully. module=plugin
2024-07-19T12:29:27-05:00 INF Execute module=grpc
2024-07-19T12:29:27-05:00 DBG The validator is signing the block successfully. module=plugin
2024-07-19T12:29:36-05:00 INF Execute module=grpc
2024-07-19T12:29:36-05:00 DBG The validator is signing the block successfully. module=plugin
2024-07-19T12:29:45-05:00 INF Execute module=grpc
2024-07-19T12:29:45-05:00 DBG The validator is signing the block successfully. module=plugin
2024-07-19T12:29:54-05:00 INF Execute module=grpc
2024-07-19T12:29:54-05:00 DBG The validator is signing the block successfully. module=plugin
2024-07-19T12:30:03-05:00 INF Execute module=grpc
2024-07-19T12:30:03-05:00 DBG The validator is signing the block successfully. module=plugin
root@burnt-testnet-validator-do-nyc1:~# xiond query staking validators --output json
{
"operator_address": "xionvaloper1xfkh4r8tj9f9rhmxcjfdnu8vkx4j6rcm7rqvea",
"consensus_pubkey": {
"@type": "/cosmos.crypto.ed25519.PubKey",
"key": "PGrz3N0Qah70u07K8snCcFSUlWr0/md47zjkavVQInI="
},
"jailed": false,
"status": "BOND_STATUS_BONDED",
"tokens": "3138791770236",
"delegator_shares": "3300551600289.009205397157348734",
"description": {
"moniker": "DSRV",
"identity": "CC434B6FE536F51B",
"website": "https://dsrvlabs.com/",
"security_contact": "validator@dsrvlabs.com",
"details": "DSRV is an integrated blockchain solutions company with the mission of enriching the crypto ecosystem via stronger connectivity. We strive to be your gateway to a suite of all-comprehensive blockchain services. Everything distributed, served complete."
},
"unbonding_height": "8252864",
"unbonding_time": "2024-06-10T11:49:11.297537640Z",
"commission": {
"commission_rates": {
"rate": "0.100000000000000000",
"max_rate": "0.250000000000000000",
"max_change_rate": "0.100000000000000000"
},
"update_time": "2023-04-19T14:40:08.228844291Z"
},
"min_self_delegation": "1",
"unbonding_on_hold_ref_count": "0",
"unbonding_ids": [
"35",
"67",
"119",
"22902",
"39957"
]
},
address
: xionvaloper1xfkh4r8tj9f9rhmxcjfdnu8vkx4j6rcm7rqvea
Get hex
î‚° curl -s https://api.xion-testnet-1.burnt.com/cosmos/staking/v1beta1/validators/xionvaloper1xfkh4r8tj9f9rhmxcjfdnu8vkx4j6rcm7rqvea | jq -r '.validator.consensus_pubkey.key'
PGrz3N0Qah70u07K8snCcFSUlWr0/md47zjkavVQInI=
root@osmosis-testnet-validator-do-sfo2:~# curl -s https://rpc.xion-testnet-1.burnt.com:443/validators | jq -r --arg value "PGrz3N0Qah70u07K8snCcFSUlWr0/md47zjkavVQInI=" '.result.validators[] | select(.pub_key.value == $value) | .address'
C0C1A472F5E49FB97C74788B015DE209DCB42046
root@osmosis-testnet-validator-do-sfo2:~#
dongyookang DK 🔥  ~/ffplay/GolandProjects/xellos/vatz  ➦ 2dc5550
î‚° ./vatz plugin start --plugin watcher_cosmos --args "-validator=C0C1A472F5E49FB97C74788B015DE209DCB42046 -rpcurl=https://rpc.xion-testnet-1.burnt.com:443" --log watcher.logs
2024-07-19T17:00:06-05:00 INF Start plugin watcher_cosmos -validator=C0C1A472F5E49FB97C74788B015DE209DCB42046 -rpcurl=https://rpc.xion-testnet-1.burnt.com:443 module=plugin
2024-07-19T17:00:06-05:00 INF Plugin watcher_cosmos is successfully started. module=plugin
dongyookang DK 🔥  ~/ffplay/GolandProjects/xellos/vatz  ➦ 2dc5550
î‚° ./vatz start --config default2.yaml
2024-07-19T17:00:16-05:00 INF Initialize Server module=main
2024-07-19T17:00:16-05:00 INF Start VATZ Server on Listening Port: :9090 module=main
2024-07-19T17:00:16-05:00 INF Client successfully connected to localhost:10001 (plugin:watcher_cosmos). module=util
2024-07-19T17:00:16-05:00 INF start metric server: 127.0.0.1:18080 module=main
2024-07-19T17:00:16-05:00 INF start rpc server module=rpc
2024-07-19T17:00:16-05:00 INF start gRPC gateway server 127.0.0.1:19091 module=rpc
2024-07-19T17:00:16-05:00 INF start gRPC server 127.0.0.1:19090 module=rpc
2024-07-19T17:00:16-05:00 INF Client successfully connected to localhost:10001 (plugin:watcher_cosmos). module=util
2024-07-19T17:00:25-05:00 INF Executor send request to watcher_cosmos module=executor
2024-07-19T17:00:27-05:00 INF response: SUCCESS module=executor
2024-07-19T17:02:22-05:00 DBG The validator is signing the block successfully. module=plugin
2024-07-19T17:02:31-05:00 INF Execute module=grpc
2024-07-19T17:02:31-05:00 DBG The validator is signing the block successfully. module=plugin
2024-07-19T17:02:40-05:00 INF Execute module=grpc
2024-07-19T17:02:40-05:00 DBG The validator is not signing the block. count: 1 module=plugin
2024-07-19T17:02:40-05:00 DBG module=plugin
2024-07-19T17:02:49-05:00 INF Execute module=grpc
2024-07-19T17:02:49-05:00 DBG The validator is not signing the block. count: 2 module=plugin
2024-07-19T17:02:49-05:00 DBG module=plugin
2024-07-19T17:02:58-05:00 INF Execute module=grpc
2024-07-19T17:02:58-05:00 DBG The validator is not signing the block. count: 3 module=plugin
2024-07-19T17:02:58-05:00 DBG The block does not have a signature from the validator. module=plugin
2024-07-19T17:03:07-05:00 INF Execute module=grpc
2024-07-19T17:03:07-05:00 DBG The validator is not signing the block. count: 4 module=plugin
2024-07-19T17:03:07-05:00 DBG The block does not have a signature from the validator. module=plugin
2024-07-19T17:03:16-05:00 INF Execute module=grpc
2024-07-19T17:03:16-05:00 DBG The validator is not signing the block. count: 5 module=plugin
2024-07-19T17:03:16-05:00 DBG The block does not have a signature from the validator. module=plugin
2024-07-19T17:03:25-05:00 INF Execute module=grpc
2024-07-19T17:03:25-05:00 DBG The validator is not signing the block. count: 6 module=plugin
2024-07-19T17:03:25-05:00 DBG The block does not have a signature from the validator. module=plugin
2024-07-19T17:03:34-05:00 INF Execute module=grpc
2024-07-19T17:03:34-05:00 DBG The validator is not signing the block. count: 7 module=plugin
2024-07-19T17:03:34-05:00 DBG The block does not have a signature from the validator. module=plugin
2024-07-19T17:03:43-05:00 INF Execute module=grpc
2024-07-19T17:03:43-05:00 DBG The validator is not signing the block. count: 8 module=plugin
2024-07-19T17:03:43-05:00 DBG The block does not have a signature from the validator. module=plugin
2024-07-19T17:03:52-05:00 INF Execute module=grpc
2024-07-19T17:03:52-05:00 DBG The validator is not signing the block. count: 9 module=plugin
2024-07-19T17:03:52-05:00 DBG The block does not have a signature from the validator. module=plugin
2024-07-19T17:04:01-05:00 INF Execute module=grpc
2024-07-19T17:04:01-05:00 DBG The validator is not signing the block. count: 10 module=plugin
2024-07-19T17:04:01-05:00 DBG The block does not have a signature from the validator. module=plugin
2024-07-19T17:04:10-05:00 INF Execute module=grpc
2024-07-19T17:04:10-05:00 DBG The validator is signing the block successfully. module=plugin
Test finished via PR
Reference to get Valoper hex Addr
Testnet
Mainnet