GetDataFromFilecoin

Get data stored on Filecoin

Description

This query will allow one to search Filecoin directly for data

Arguments

Response Details

Note that if the CID you passed as an argument is pointing to an archive of data, all individual files will be returned in the response

Sample Query

query {
  GetDataFromFilecoin(cid: "bafybeigom7fivisf3c43btyn6foza2ciavlsjqlh5hd3uguc56we7hujaa") {
    providerId
    url
    data
    metadata {
      name
      value
    }
    provider
    creationTimestamp
  }
}

Sample Response

{
  "data": {
    "GetDataFromFilecoin": [
      {
        "providerId": "bafkreiem2a3z5udj53fgob3iogusxi3h6nptnbvqwnc7vfwtd25navhvhu",
        "url": "https://gateway.ipfs.io/ipfs/bafkreiem2a3z5udj53fgob3iogusxi3h6nptnbvqwnc7vfwtd25navhvhu/test-upload.json",
        "data": "{\n\"image\": \"https://moonrunners.herokuapp.com/api/7_7 - Waning Crescent Moon/image\",\n\"name\": \"Moonrunners #7\",\n\"description\": \"A collection of 10,000 PFPs. Free mint. No discord. No roadmap. CCO. Protect the Moonrunners at all costs.\",\n\"attributes\": [\n{\n\"trait_type\": \"Background\",\n\"value\": \"Pink\"\n},\n{\n\"trait_type\": \"Body\",\n\"value\": \"Brave\"\n},\n{\n\"trait_type\": \"Fur\",\n\"value\": \"Green\"\n},\n{\n\"trait_type\": \"Outerwear\",\n\"value\": \"Gold Chain\"\n},\n{\n\"trait_type\": \"Mouth\",\n\"value\": \"Dribble\"\n},\n{\n\"trait_type\": \"Eyes\",\n\"value\": \"Angry Grey\"\n},\n{\n\"trait_type\": \"Headwear\",\n\"value\": \"Eagle\"\n},\n{\n\"trait_type\": \"Moon Cycle\",\n\"value\": \"Default Moon Cycle\"\n}\n],\n\"dna\": \"0c622ed13d00fe79a2345abbd9fa09185a68cc1a\"\n}\n",
        "metadata": [],
        "provider": "FILECOIN",
        "creationTimestamp": "2022-11-30T04:30:48Z"
      }
    ]
  }
}

Last updated