Peera.

帖子

分享您的知识。

专家问答

How long does it take for a lens protocol post to index?

I've created a post to lens protocol, however, when I query for it, it doesn't show up.

GraphQL Query:

query Publication($request: PublicationQueryRequest!) {
  publication(request: $request) {
    ... on Post {
      metadata {
        content
      }
    }
  }
}

Variables:

{
  "request": {
    "txHash": "0xc619a4543bdd6210fd68af71634da4fcbc5bdb024a4ad3ddbd23130b4bafcccf"
  }
}

When will I see it?

  • learning
1
1
分享
评论
.

答案

1
0x8744...6532.
Nov 29 2022, 23:06

It gets indexed almost immediately, however, you need to make sure you have all the required metadata in your content.

You can test by running a metadata query on api.lens.dev:

query ValidatePublicationMetadata {
  validatePublicationMetadata(
    request: {
      metadatav2: {
        description: "What are stablecoins? What do they do in DeFi? Why do people mint stablecoins? Where are stablecoins as if Nov 2022?"
        content: "Your article here"
        name: "What Is a Stablecoin? (But Actually)"
        image: "ipfs://QmQBxgAbbHqZMTQYyGE44siuZ6BzQGeHt3vGHCENpj3TEv"
        version: "2.0.0"
        metadata_id: "ad436b9e-2cbb-4140-b199-368533c4b88d"
        locale: "en-US"
        mainContentFocus: ARTICLE
        imageMimeType: "image/png"
        appId: "lensBlog"
        attributes: []
      }
    }
  ) {
    valid
    reason
  }
}

1
最佳答案
评论
.

你知道答案吗?

请登录并分享。

Web3 (also known as Web 3.0) is an idea for a new iteration of the World Wide Web which incorporates concepts such as decentralization, blockchain technologies, and token-based economics.

142帖子198答案
Sui.X.Peera.

赚取你的 1000 Sui 份额

获取声誉积分,并因帮助 Sui 社区成长而获得奖励。

奖励活动七月