solanaPortalSource
Create a Portal source for Solana chains.-
id: (required) Pipeline ID. Must be unique within any infra shared with other pipelines (DB, logging sinks etc). -
portal: (required) Portal API URL or config object.- String:
"https://portal.sqd.dev/datasets/ethereum-mainnet" - Object:
{ url: string, finalized?: boolean }. Whenfinalized: trueis set the stream will consist of finalized blocks only and none of the fork handling machinery will be required.
- String:
-
outputs: (required) A single query-transformers chain combo or record of named outputs. -
cache: (optional) Portal cache instance. If supplied, saves portal responses locally and reuses them when the pipeline re-runs. -
logger: (optional) A pino-compatibleLoggerinstance or a log level string. Accepted level values:'fatal','error','warn','info','debug','trace','silent',false,null. Passingfalseornullsilences all log output. When omitted, a default console logger is used. -
metrics: (optional)metricsServer()instance for exposing Prometheus metrics. -
progress: (optional) Options for progress tracking. -
profiler: (optional) Enable the built-in per-batch profiler. See Profiling.
Finalized Blocks
You can configure the source to only receive finalized blocks:Pipe methods
pipe()
Chain a single whole-pipe transformer to the source.pipeTo()
Connect the pipeline to a target.*Symbol.asyncIterator
Use the pipeline as an async iterator:ForkExceptions - see Fork handling.