A new feature of Blocktap is the inclusion of Litecoin network data.  This comes in the same two forms as Bitcoin: access to the P2P network and time series statistics.

P2P Network Data

You can query a high level overview of the network, blocks by height or hash, transactions by identifier and addresses.

query litecoin {
  asset(assetSymbol: "ltc") {
    assetName
    ... on AssetLtc {
      info {
        bestHeight
        bestBlockHash
        blocks
        lastBlockUnix
        lastBlockDate
        mempoolSize
        difficulty
        sizeBytes
      }
    }
  }
}

Try me!

To learn more about Litecoin P2P access and view additional examples visit our documentation.

Time Series Litecoin Data

Blocktap also calculates time based statistics for Litecoin network data, blocks, and transactions. This data can be combined with market pricing and sentiment data based on the period of time that events occurred.

query litecoinTimeSeries {
  timeseries(resolution: _1d, limit: 3, startDate: "2019-02-01", sort: OLD_FIRST) {
    startDate
    assets(filter: { assetSymbol: { _eq: "LTC" } }) {
      assetSymbol
      ... on TimeSeriesLtc {
        onchain {
          totalBlocks
          startHeight
          endHeight
          avgDifficulty
          targetHashRate
          avgBlockTime
          avgBlockSize
          totalSize
          startSize
          endSize
          totalTxs
          avgTxsPerBlock
          totalFees
          avgFeesPerBlock
          totalSubsidy
          avgSubsidyPerBlock
          totalReward
          avgRewardPerBlock
          startSupply
          endSupply
          totalExpectedSubsidy
          startExpectedSupply
          endExpectedSupply
          totalValueOut
          avgValueOutPerBlock
          totalInputs
          avgInputsPerBlock
          totalOutputs
          avgOutputsPerBlock
          totalCoinbaseOutputs
          avgCoinbaseOutputsPerBlock
        }
      }
    }
  }
}

Try me!

Lastly, you can now easily correlate market price movements with on-chain transaction statistics:

# combine litecoin pricing and onchain data in single query
query litecoin {
  timeseries(resolution:_1d startDate:"2019-01-01" endDate:"2019-02-01" sort:OLD_FIRST){
    startDate
    startUnix
    
    # pricing data from Binance:LTC/BTC
   	markets(filter:{ 
      exchangeSymbol:{_eq:"Binance"}
      baseSymbol:{_eq:"LTC"} 
      quoteSymbol:{_eq:"BTC"}
    }) {
      marketSymbol
      closePrice
      baseVolume
    }
    
    # transaction volume data
    assets(filter:{ assetSymbol:{_eq:"LTC"}}){
      assetSymbol
      ...on TimeSeriesLtc {
        onchain{
          totalTxs
          totalFees
          totalValueOut
        }
      }
    }
  }
}

Try me!

To learn more about Litecoin time series queries and view examples visit our documentation.

Find us on Gitter if you have questions or want to learn more about Blocktap.