Peera.

Publicación

Comparte tu conocimiento.

P&R expertos

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
Cuota
Comentarios
.

Respuestas

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
Mejor Respuesta
Comentarios
.

Sabes la respuesta?

Inicie sesión y compártalo.

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.

142Publicaciones198Respuestas
Sui.X.Peera.

Gana tu parte de 1000 Sui

Gana puntos de reputación y obtén recompensas por ayudar a crecer a la comunidad de Sui.

Campaña de RecompensasJulio