What you’ll need
- A mapping of the stablecoin contract addresses on the chains that you are interested in. We include popular stablecoins on major chains on a dedicated page.
- A basic understanding of SQL (optional but helpful), specifically Flink v1.17.
- A destination sink to write your data to.
Examples
One stablecoin on one chain
The ERC-20 Transfers datasets do a lot of the heavy lifting for us, indexing all token transfers for a given chain. Building stablecoin-specific datasets is therefore a matter of filtering the data to only include transfers for the stablecoin contracts of interest.our Mirror pipeline. This filtering can be done via YAML, or via the Web UI.Via YAML
Create a standard pipeline using an ERC-20 Transfers dataset as the source, and a filter to only include transfers for the stablecoin contracts of interest.Example pipeline for USDC transfers on Ethereum
address as a column which may not be needed, given there’s only one address in the filter. To remove this column, you can add a transform to filter it out.
Example pipeline for USDC transfers on Ethereum, with transform to remove address
Via Web UI
In the Goldsky Web UI, navigate to the Pipelines tab, and click on the+ New Pipeline button. Select the ERC-20 Transfers dataset as the source, and a filter to only include transfers for the stablecoin contracts of interest.

address column from the output.
Many stablecoins on one chain
For the remaining examples, we show only the YAML-based approach, though all can be created in the Web UI as well. If you are working with multiple chains especially, the YAML approach may be more convenient, as each chain in the Web UI will require it’s own block.
in () filter to include multiple stablecoin contracts rather than only one.
Example pipeline for USDC, USDT, and DAI transfers on Ethereum
address which can be used in the downstream sink to filter or aggregate against a specific stablecoin, though for ease of use you might prefer to add a transformation that adds in the stablecoin symbol as a column.
Example pipeline for USDC, USDT, and DAI transfers on Ethereum, adding symbols
One stablecoin on many chains
Streaming the same stablecoin on multiple chains is similar to the example above, just using multiple sources, one for each chain. You’ll need to use a transformation to add a chain identifier for each source. You can use a separate transformation for each chain (recommended) or a single transformation with aunion all to combine the sources.
Example pipeline for USDC transfers on Ethereum and Arbitrum
address column in the sink for better inspection.
Many stablecoins on many chains
As the most complex case, this combines the learnings from all of the cases above into a single pipeline, including both anin () filter and case when logic in the transform to add a symbol column.
Example pipeline for USDC, USDT, and DAI transfers on Ethereum and Arbitrum
Can’t find what you’re looking for? Reach out to us at support@goldsky.com for help.