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

Error when trying to delegate to a validator on ZetaChain #35

Open
fadeev opened this issue Sep 20, 2023 · 12 comments
Open

Error when trying to delegate to a validator on ZetaChain #35

fadeev opened this issue Sep 20, 2023 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@fadeev
Copy link

fadeev commented Sep 20, 2023

Screenshot 2023-09-20 at 13 19 11

May be related to these queries to the txs endpoint.

Screenshot 2023-09-20 at 13 26 35 Screenshot 2023-09-20 at 13 26 37

Claiming staking rewards also fails.

Screenshot 2023-09-20 at 13 24 23
@Kneva
Copy link

Kneva commented Sep 28, 2023

image
Now another error occurs. and validators do not show it APY, just wright N/A

@baryon2
Copy link
Collaborator

baryon2 commented Oct 9, 2023

@fadeev @Kneva thank you for reporting this issue. Can you share the chain info for ZetaChain that you used to add to Leap?

   rpc: string;
   rest: string;
   chainId: string;
   chainName: string;

   stakeCurrency: Currency;
   walletUrlForStaking?: string;
   bip44: {
        coinType: number;
    };
   bech32Config: {
      bech32PrefixAccAddr: string
   };
   currencies: AppCurrency[];
   feeCurrencies: FeeCurrency[];

@baryon2 baryon2 self-assigned this Oct 9, 2023
@baryon2 baryon2 added the bug Something isn't working label Oct 9, 2023
@Kneva
Copy link

Kneva commented Oct 9, 2023

image
https://developers.leapwallet.io/chain-store Added a ZetaChain through the Chain Store

@himanshu-leap
Copy link

Hey, thanks @Kneva
We will check what's happening here and will fix it.

@Kneva
Copy link

Kneva commented Oct 10, 2023

@himanshu-leap I hope you will succeed.

@himanshu-leap
Copy link

Thanks for pointing this out.
The issue is happening because all the nodes are down. I don't think we can do much here, but still, we are looking into it. I'll keep here posted.

@fadeev
Copy link
Author

fadeev commented Oct 11, 2023

@himanshu-leap wdym "nodes are down"? We're using BlockPi's RPC and it seems to be working:

https://zetachain-athens.blockpi.network/rpc/v1/public

curl https://zetachain-athens.blockpi.network/rpc/v1/public/status
{
  "jsonrpc": "2.0",
  "id": -1,
  "result": {
    "node_info": {
      "protocol_version": {
        "p2p": "8",
        "block": "11",
        "app": "0"
      },
      "id": "a3dc20551df94942c127dbe3ef7bf9ddb49fd046",
      "listen_addr": "tcp://0.0.0.0:31460",
      "network": "athens_7001-1",
      "version": "0.34.28",
      "channels": "40202122233038606100",
      "moniker": "node",
      "other": {
        "tx_index": "on",
        "rpc_address": "tcp://0.0.0.0:31461"
      }
    },
    "sync_info": {
      "latest_block_hash": "C06B4C2BC0C994E735A22943ACC62C9DDAB910BBBABF1293FCC88F546941378B",
      "latest_app_hash": "BB1BED6E716E49DA61FCFF6859747A22420454A8557D7290A5394098A130C379",
      "latest_block_height": "1989352",
      "latest_block_time": "2023-10-11T07:39:48.752898074Z",
      "earliest_block_hash": "6CF29D6EFF1413F16F0CA3F17C74BD81C267538EC98638D488AB61E75A60508D",
      "earliest_app_hash": "3513F6E903CE4E20A477CD03552087781F8978B502EDEBF8D0334752C13E9CA4",
      "earliest_block_height": "1248001",
      "earliest_block_time": "2023-08-19T05:47:11.964043305Z",
      "catching_up": false
    },
    "validator_info": {
      "address": "1FE6A22FA93E4BED87FE2526F01A18CC8469FDA7",
      "pub_key": {
        "type": "tendermint/PubKeyEd25519",
        "value": "oQRC17/cFFOKQfwBS4Pkl9z0idKTg5Rvls3Oeetdd2w="
      },
      "voting_power": "0"
    }
  }
}

@himanshu-leap
Copy link

Yeah, but, are you able to do txs using curl?
It throws 400 status, but nothing in the response.

Also, Is this updated?
Screenshot 2023-10-11 at 1 41 16 PM

@fadeev
Copy link
Author

fadeev commented Oct 11, 2023

@himanshu-leap good catch! Submitted a PR: cosmos/chain-registry#2952

@fadeev
Copy link
Author

fadeev commented Oct 12, 2023

Updated:

Screenshot 2023-10-12 at 11 47 15

@himanshu-leap
Copy link

Great!

Can you check this?

Are you able to do the transaction using curl?
It throws 400 status, but nothing in the response. What's the exact error?

@fadeev
Copy link
Author

fadeev commented Oct 12, 2023

@himanshu-leap I don't exactly remember how to post txs via curl, but here's sending a bank send tx using the same RPC endpoint on the CLI:

zetacored tx bank send alice zeta1k0z6vt8xv7s3nzqakqeqm7v893qscrw7mfg5mf 1azeta --node https://zetachain-athens.blockpi.network:443/rpc/v1/public --chain-id athens_7001-1
auth_info:
  fee:
    amount: []
    gas_limit: "200000"
    granter: ""
    payer: ""
  signer_infos: []
  tip: null
body:
  extension_options: []
  memo: ""
  messages:
  - '@type': /cosmos.bank.v1beta1.MsgSend
    amount:
    - amount: "1"
      denom: azeta
    from_address: zeta19nfaqu9wr0fktyyampva98ec025kjy0phww5um
    to_address: zeta1k0z6vt8xv7s3nzqakqeqm7v893qscrw7mfg5mf
  non_critical_extension_options: []
  timeout_height: "0"
signatures: []
confirm transaction before signing and broadcasting [y/N]: y
code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: 0298C49F267B7116666366DAADDDA8D8926CFB5604F91E55FC5449D5DB26F0CE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants