IPFS: Fetch content by CID
getIPFSContentRetrieve content from IPFS by providing a CID via the VeChain gateway proxy. Enables fetching B3TR proposal descriptions and extracting Discourse forum links.
Instructions
Fetch content from IPFS using the VeChain gateway proxy (api.gateway-proxy.vechain.org). Provide an IPFS Content Identifier (CID) to retrieve the associated data. Commonly used to fetch B3TR proposal descriptions. IMPORTANT: Proposal descriptions often contain Discourse forum links (vechain.discourse.group/t/topic-name/TOPIC_ID or discourse.vebetterdao.org/t/topic-name/TOPIC_ID). After fetching IPFS content, search for these links and extract them. If getDiscourseTopic is available, use it with the topic ID. If not available (optional feature), provide the full forum URL for manual viewing to see community discussion and sentiment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | Yes | IPFS Content Identifier (CID) to fetch |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the fetch was successful | |
| cid | Yes | The CID that was fetched | |
| error | No | Error message if fetch failed | |
| content | No | The fetched content (JSON or text) |