Applying Transformations
Overview
Making the data work for you
In The Neighborhood, our goal is to meet the data where it’s at (in its raw form) and you wherever you might find yourself (with a db, webhook, etc).
Transformations are how we bridge that gap. These are simple (or complex) JavaScript functions that run throughout the distributed network. We call this Just In Time Indexing.
Here’s a simple example. This function simply takes in a new EVM block and returns its number
and an ISO formatted timestamp
.
Here’s a more complex example counting the number of times each Solana account is found in a block: