Skip to main content
Squid processor is a usual node.js process, so one can fetch data from external APIs or IPFS gateways within the processor.run() method. In squids deployed to SQD Cloud one normally uses API calls in combination with API keys set via secrets.

Example

For example, one can enrich the indexed transaction with historical price data using the Coingecko API.

IPFS fetching

For reliable indexing of content stored on IPFS (e.g. NFT metadata) we recommend fetching from dedicated IPFS gateways, e.g. provided by Filebase. For a more elaborate example of with IPFS gateway and external API calls, inspect the Step 3 of the BAYC tutorial.

Example