cardano-graphql icon indicating copy to clipboard operation
cardano-graphql copied to clipboard

StakePool metadata info

Open sergi10 opened this issue 4 years ago • 2 comments

Hi, I try to find metadata information by a query, but I can't find Ticker or _Description information. In the Wallet API it's available: https://input-output-hk.github.io/cardano-wallet/api/edge/#tag/Stake-Pools

The postgresql table pool_meta_data don't have this fields. It's planned to do?

sergi10 avatar Dec 09 '20 08:12 sergi10

That information you'll need to grab from the meta file found in the 'url' field:

{
  stakePools(where:{hash: {_eq: "5b9a5633289c52003d359bce18f77f571a701fd3942a52bde3262558"}}) {
    hash 
    url  
  }
}

Results:

{
  "data": {
    "stakePools": [
      {
        "hash": "5b9a5633289c52003d359bce18f77f571a701fd3942a52bde3262558",
        "url": "https://cybercyclone.github.io/aoaus.github.io/"
      }
    ]
  }
}

I'm not a developer for this repo, but it feels out of scope considering the meta file content is never stored in the blockchain. Only the hash of the file is stored for integrity.

CyberCyclone avatar Dec 09 '20 08:12 CyberCyclone

Thanks @CyberCyclone for your answer. I think it's a inprovement for read stakepool data.

sergi10 avatar Dec 10 '20 06:12 sergi10