GetDataFromArweave

Get data stored on Arweave

Description

This query will allow one to search arweave directly for data in bulk. It queries both the Arweave GraphQL API and the Arweave Gateway to be able to return data in one call instead of having to first search for the transaction id and then querying the gateway

Arguments

InputDescription

targetWalletAddress

The target wallet address the data belongs to

metadata

An array of key/value pairs representing tags in the Arweave ecosystem allowing one to filter a search

sort

Used to specify a sort order by block inclusion time.

Defaults to descending order

limit

The number of results to return: Minimum is 1 and maximum is 10 Note: The maximum limit will look to be expanded in the future

Response Details

DetailDescription

providerId

The transaction id pertaining to the asset retrieved

data

The stored data represented as a string In the case of the data being JSON, TEXT or HTML the data will be returned as a string. In all other cases, the data will be returned as a url pointing to the asset

url

The url pointing to the asset on the Arweave gateway

metadata

An array of key/value pairs representing tags

provider

The web3 storage solution the data is stored. In this case, ARWEAVE

creationTimestamp

The block creation timestamp of the data

Sample Query

query {
  GetDataFromArweave(
    targetWalletAddress: "FWh7-V_t6BHFNwoTLpQOj3w62TxXE7teHW9opgrCMqE"
    metadata: [{ name: "category", value: "general" }]
    sort: ASC
    limit: 3
  ) {
    providerId
    provider
    data
    url
    metadata {
      name
      value
    }
    creationTimestamp
  }
}

Sample Response

{
  "data": {
    "GetDataFromArweave": [
      {
        "providerId": "-Hs6t54QWPBi8ICvnQlArymBt03oOdsdBNpYqPgb6CE",
        "provider": "ARWEAVE",
        "data": "{\"Content-Type\":\"application/json\",\"term\":\"whale\",\"description\":\"A term for an individual holding a large amount of cryptocurrency.\",\"locale\":\"en\",\"source\":\"GLOSSETA\",\"category\":\"general\"}",
        "url": "https://www.arweave.net/-Hs6t54QWPBi8ICvnQlArymBt03oOdsdBNpYqPgb6CE",
        "metadata": [
          {
            "name": "Content-Type",
            "value": "application/json"
          },
          {
            "name": "term",
            "value": "whale"
          },
          {
            "name": "description",
            "value": "A term for an individual holding a large amount of cryptocurrency."
          },
          {
            "name": "locale",
            "value": "en"
          },
          {
            "name": "source",
            "value": "GLOSSETA"
          },
          {
            "name": "category",
            "value": "general"
          }
        ],
        "creationTimestamp": "2021-10-24T05:08:07+00:00"
      },
      {
        "providerId": "rEgp75_wUWe-B-wsfsWIZqjxPRsnJlDOuWU9Qh-2qzc",
        "provider": "ARWEAVE",
        "data": "{\"Content-Type\":\"application/json\",\"term\":\"hodl\",\"description\":\"An acronym for hold on for dear life (equivalent to HOLD) often used to encourage people not to sell cryptocurrency impulsively on huge swings in price.\",\"locale\":\"en\",\"source\":\"GLOSSETA\",\"category\":\"general\"}",
        "url": "https://www.arweave.net/rEgp75_wUWe-B-wsfsWIZqjxPRsnJlDOuWU9Qh-2qzc",
        "metadata": [
          {
            "name": "Content-Type",
            "value": "application/json"
          },
          {
            "name": "term",
            "value": "hodl"
          },
          {
            "name": "description",
            "value": "An acronym for hold on for dear life (equivalent to HOLD) often used to encourage people not to sell cryptocurrency impulsively on huge swings in price."
          },
          {
            "name": "locale",
            "value": "en"
          },
          {
            "name": "source",
            "value": "GLOSSETA"
          },
          {
            "name": "category",
            "value": "general"
          }
        ],
        "creationTimestamp": "2021-10-24T05:08:07+00:00"
      },
      {
        "providerId": "rJV_2_Lp3sMZPjjNW6LAbiowSk0MDQRPadJ33JTPwrw",
        "provider": "ARWEAVE",
        "data": "{\"Content-Type\":\"application/json\",\"term\":\"blockchain\",\"description\":\"A publicly-accessible digital ledger used to store and transfer information without the need for a central authority. Blockchains are the core technology on which cryptocurrency protocols like Bitcoin and Ethereum are built.\",\"locale\":\"en\",\"source\":\"GLOSSETA\",\"category\":\"general\"}",
        "url": "https://www.arweave.net/rJV_2_Lp3sMZPjjNW6LAbiowSk0MDQRPadJ33JTPwrw",
        "metadata": [
          {
            "name": "Content-Type",
            "value": "application/json"
          },
          {
            "name": "term",
            "value": "blockchain"
          },
          {
            "name": "description",
            "value": "A publicly-accessible digital ledger used to store and transfer information without the need for a central authority. Blockchains are the core technology on which cryptocurrency protocols like Bitcoin and Ethereum are built."
          },
          {
            "name": "locale",
            "value": "en"
          },
          {
            "name": "source",
            "value": "GLOSSETA"
          },
          {
            "name": "category",
            "value": "general"
          }
        ],
        "creationTimestamp": "2021-10-24T05:08:07+00:00"
      }
    ]
  }
}

Last updated