November 20, 2025Less than 1 minute
Add a Mapping Function
Mapping functions define how blockchain data is transformed into the optimised GraphQL entities that we previously defined in the schema.graphql file.
Note
Check out our Mappings documentation to get more information on mapping functions.
Navigate to the default mapping function in the src/mappings directory. Setting up mappings for this the Cosmos chains is straightforward. In this instance, the mappings are stored within the src/mappings directory, with the sole mapping file being mappingHandlers.ts. Now, let's take a closer look at it:
