Data API Migration
Provides alternative routes to using the Jiffyscan API service
Migration Guide: Deprecation of Jiffyscan API Services
As part of our ongoing efforts to streamline our offerings, we are deprecating our API services. Below are the two alternative approaches you can use to transition seamlessly:
Option 1: Use Jiffyscan Subgraphs Directly
Jiffyscan provides subgraphs for querying blockchain data directly. Each subgraph corresponds to a specific EVM blockchain.
Subgraphs
Network | Subgraph Name | Subgraph Endpoint |
---|---|---|
mainnet | SUBGRAPH_LINK | https://gateway-arbitrum.network.thegraph.com/api/{API_KEY}/subgraphs/id/FrwziBsTDBogUj57ts4U1kx5X5hDMkpX5STpUXphomyV |
matic | SUBGRAPH_LINK | https://gateway-arbitrum.network.thegraph.com/api/{API_KEY}/subgraphs/id/Ga4gCEvJGuu7Y2oXCbpa3R9KMNBXWYLg1kJPxnfeu5fb |
optimism | SUBGRAPH_LINK | https://gateway-arbitrum.network.thegraph.com/api/{API_KEY}/subgraphs/id/HxvH1S81KFam6J7etqtxngjLPhZMS5QcHKwPa7LVz1no |
optimism-sepolia | SUBGRAPH_LINK | https://api.studio.thegraph.com/query/45842/opt-sep-jiffy-scan/version/latest |
arbitrum-one | SUBGRAPH_LINK | https://gateway-arbitrum.network.thegraph.com/api/{API_KEY}/subgraphs/id/4YM6vwSP4Mx38qXsVh6TFyrWrKgm7zvX4mFGPS2L6afk |
avalanche | SUBGRAPH_LINK | https://gateway-arbitrum.network.thegraph.com/api/{API_KEY}/subgraphs/id/ALNXErAtAfjQU8TP39nitk6ej9ZtrDYmnXRYRdWiFuGZ |
avalanche-fuji | NOT_PUBLISHED | https://api.studio.thegraph.com/query/45842/avalanche-fuji-jiffy-scan/version/latest/ |
base-sepolia | SUBGRAPH_LINK | https://api.studio.thegraph.com/query/45842/base-sep-jiffy-scan/version/latest |
fuse | SUBGRAPH_LINK | https://gateway-arbitrum.network.thegraph.com/api/{API_KEY}/subgraphs/id/86D6T6o7YmB5MrSJhMU2Syeqt7r927yecSYcmJrpkTXn |
base | SUBGRAPH_LINK | https://gateway-arbitrum.network.thegraph.com/api/{API_KEY}/subgraphs/id/9KToKxWC5uRS5ecCFgAxrScDPU2rVMy3hp7abAkt6BED |
sepolia | SUBGRAPH_LINK | https://api.studio.thegraph.com/query/45842/sepolia-jiffy-scan/version/latest |
arbitrum-sepolia | SUBGRAPH_LINK | https://gateway.thegraph.com/api/1afd1a1d48e26c2c6fed3465adb9b876/subgraphs/id/8bh2bxiNysQJtqwp1HbEMKPpKDYe5JYGnykGTpmprDWZ |
polygon-amoy | SUBGRAPH_LINK | https://api.studio.thegraph.com/query/24129/polygon-amoy-jiffy-scan/version/latest |
Bsc | SUBGRAPH_LINK | https://gateway-arbitrum.network.thegraph.com/api/{API_KEY}/subgraphs/id/8S8KDUFTAXaV5JEyFesQp3Rwxr5QqbkjyphbjNR7zjBk |
Querying the Subgraph
Subgraphs allow you to fetch data using GraphQL queries. Below is an example of how to make a query:
Sample Query
Sample curl
Request
Replace the URL with the appropriate subgraph link for the blockchain you are querying.
Option 2: Use Our TypeScript Library
We have created a TypeScript library that implements the top two most-used APIs from Jiffyscan. This library is easy to integrate into your projects.
Resources
-
GitHub Repository: Library GitHub
-
npm Package: jiffyscan-graph-wrapper
Installation
Usage Example
Below is an example of how to use the library:
Refer to the GitHub repository for complete documentation and advanced usage.
If you have any questions or require further assistance, please reach out to our support team. We are here to help ensure a smooth migration!