Skip to Content
PluginsChainlink

Chainlink

Chainlink is the industry-standard decentralized oracle network. Chainlink Price Feeds provide tamper-proof, high-quality price data for smart contracts and off-chain applications. Each price feed is a separate contract implementing the AggregatorV3Interface, deployed per trading pair (e.g., ETH/USD, BTC/USD) on multiple chains.

Unlike protocols with fixed contract addresses, each Chainlink price feed has its own address. You provide the feed contract address when configuring the workflow action. Find feed addresses at data.chain.link .

Supported chains: Ethereum Mainnet, Base, Arbitrum, Optimism, Sepolia. All actions are read-only and require no credentials.

Actions

ActionTypeCredentialsDescription
Get Latest Round DataReadNoGet the latest price, round ID, and timestamps
Get Round DataReadNoGet price and timestamps for a specific historical round
Get Latest AnswerReadNoGet the latest raw price answer
Get DecimalsReadNoGet the number of decimals for the feed
Get DescriptionReadNoGet the human-readable feed description
Get VersionReadNoGet the aggregator contract version

Get Latest Round Data

Get the latest price, round ID, and timestamps from a Chainlink price feed. This is the most commonly used method for reading oracle data.

Inputs:

InputTypeDescription
contractAddressaddressPrice Feed Address

Outputs:

OutputTypeDescription
roundIduint80Round ID
answerint256Price Answer
startedAtuint256Round Started At (Unix)
updatedAtuint256Last Updated At (Unix)
answeredInRounduint80Answered In Round

When to use: Read the current price with full round metadata, check data freshness via timestamps, detect stale feeds by comparing updatedAt with current time.


Get Round Data

Get the price and timestamps for a specific historical round from a Chainlink price feed. Useful for querying past price snapshots.

Inputs:

InputTypeDescription
contractAddressaddressPrice Feed Address
_roundIduint80Round ID

Outputs:

OutputTypeDescription
roundIduint80Round ID
answerint256Price Answer
startedAtuint256Round Started At (Unix)
updatedAtuint256Last Updated At (Unix)
answeredInRounduint80Answered In Round

When to use: Query historical price data for a specific round, compare prices across rounds, build TWAP calculations.


Get Latest Answer

Get the latest raw price answer from a Chainlink price feed. Returns the price as a raw integer — divide by 10^decimals for the human-readable value (e.g., for an 8-decimal USD feed, divide by 1e8).

Inputs:

InputTypeDescription
contractAddressaddressPrice Feed Address

Outputs:

OutputTypeDescription
answerint256Latest Price Answer

When to use: Quick price check when you only need the current value without round metadata or timestamps.


Get Decimals

Get the number of decimals used by a Chainlink price feed. USD-denominated feeds typically use 8 decimals, ETH-denominated feeds use 18 decimals.

Inputs:

InputTypeDescription
contractAddressaddressPrice Feed Address

Outputs:

OutputTypeDescription
decimalsuint8Decimals

When to use: Determine the precision of a feed before formatting prices, validate feed configuration, build dynamic price formatting logic.


Get Description

Get the human-readable description of a Chainlink price feed (e.g., “ETH / USD”, “BTC / USD”). Useful for display and logging.

Inputs:

InputTypeDescription
contractAddressaddressPrice Feed Address

Outputs:

OutputTypeDescription
descriptionstringFeed Description

When to use: Label price data in dashboards, validate that a feed address matches the expected pair, include feed names in notifications.


Get Version

Get the version number of a Chainlink price feed aggregator contract. Useful for compatibility checks.

Inputs:

InputTypeDescription
contractAddressaddressPrice Feed Address

Outputs:

OutputTypeDescription
versionuint256Aggregator Version

When to use: Verify aggregator version before relying on specific features, audit deployed feed contracts, detect aggregator upgrades.


Example Workflows

Price Feed Monitor with Discord Alerts

Schedule (hourly) -> Chainlink: Get Latest Round Data -> Code (format price) -> Discord: Send Message

Read the latest ETH/USD price from Chainlink and post formatted updates to Discord every hour.

Stale Feed Detection

Schedule (every 15 min) -> Chainlink: Get Latest Round Data -> Code (check staleness) -> Condition (stale > 1 hour) -> PagerDuty Webhook

Monitor a Chainlink feed and trigger a PagerDuty alert if the feed has not been updated within the expected heartbeat interval.

Multi-Feed Price Dashboard

Schedule (daily) -> Chainlink: Get Latest Answer (ETH/USD) -> Chainlink: Get Latest Answer (BTC/USD) -> Code (format both) -> SendGrid: Email Report

Aggregate prices from multiple Chainlink feeds into a daily email summary.

Price Threshold Alert

Schedule (every 5 min) -> Chainlink: Get Latest Round Data -> Code (format) -> Condition (price < threshold) -> Discord: Alert

Monitor a price feed and send a Discord alert when the price drops below a configurable threshold.


Supported Chains

ChainPrice Feeds Available
Ethereum (1)Yes
Base (8453)Yes
Arbitrum (42161)Yes
Optimism (10)Yes
Sepolia (11155111)Yes (testnet)

Chainlink price feeds are deployed per trading pair on each chain. Find the correct feed address for your pair and chain at data.chain.link . Provide the feed contract address when configuring each action.