我需要 pancakeswap 上的令牌列表。我找不到官方的graphql api。
其实我想要的是这个;池中至少有 20 bnb 的平价列表。(或者可能是等于池中 20 bnb 的 busd)
我正在链接中编写一个graphql查询,如下所示。但是在返回查询结果时出现错误。
https://bsc.streamingfast.io/subgraphs/name/pancakeswap/exchange-v2
{
pairs(first: 1000, skip: 0, orderBy: reserveBNB, orderDirection: asc, where: {reserveBNB_gt: 20}) {
token0 {
symbol
id
name
decimals
}
token1 {
symbol
id
name
decimals
}
exchangeAddress: id
reserveBNB
}
}
错误:
{
"errors": [
{
"message": "Failed to get entities from store: canceling statement due to conflict with recovery, query = \"/* qid: cc8d3536241ec9a0-6dc8c4ef99f8cc6a */\\nselect 'Pair' as entity, to_jsonb(c.*) as data from (select * \\n from \\\"sgd1\\\".\\\"pair\\\" c\\n where c.\\\"block_range\\\" @> $1 and (\\\"reserve_bnb\\\" > $2::numeric)\\n\\n order by \\\"reserve_bnb\\\" asc, \\\"id\\\" asc\\n limit 1000) c -- binds: [14737244, \\\"20\\\"]\""
}
]
}
除了这个地址,还有其他网站可以获取这些信息吗?如果你能帮忙,我会很高兴。