What you can do
| read-price | Get a reference USD price on-chain | Call latestRoundData() on the feed proxy for the pair and chain (this file for ETH/BTC/USDC; any other pair: look up the proxyAddress on data.chain.link or the reference-data-directory JSON). price = answer / 10^decimals(). Reject if answer <= 0 or now - updatedAt > heartbeat. On Arbitrum/Base/Optimism first check the L2 Sequencer Uptime Feed (answer == 0 and now - startedAt > grace period). |
| ccip-token-transfer | Bridge a CCIP-supported token to another chain | 1) Confirm the token is supported on the lane in the CCIP Directory and router.isChainSupported(destSelector). 2) token.approve(router, amount). 3) Build EVM2AnyMessage{receiver: abi.encode(recipient), data: "", tokenAmounts: [(token, amount)], feeToken: LINK or address(0), extraArgs: 0x181dcf10 ++ abi.encode(0, true)}. 4) fee = router.getFee(destSelector, msg). 5) If feeToken is LINK, LINK.approve(router, fee) (plus amount if LINK is also the token sent); else send value = fee. 6) router.ccipSend(destSelector, msg). 7) Track messageId on ccip.chain.link. |
| ccip-message | Send arbitrary data to a receiver contract on another chain | Same as token transfer with data = your payload, tokenAmounts = [], and extraArgs gasLimit sized for the receiver's ccipReceive (the receiver must implement CCIPReceiver / IAny2EVMMessageReceiver). |
| get-link | Obtain/identify official LINK | Use the LINK address for the chain from this file (from docs.chain.link/resources/link-token-contracts). On BNB Chain and Polygon, bridged LINK from the chain's native bridge is not ERC-677 and must be converted with Chainlink PegSwap before use with Chainlink services. |
Stale prices: a feed only updates on its deviation threshold or heartbeat; always compare updatedAt with the heartbeat listed for that feed, and do not assume the same heartbeat across chains (e.g. ETH/USD is 3600 s on Ethereum but 27 s on Polygon, 86400 s on Avalanche).
Feeds get deprecated: Chainlink marks feeds for shutdown on data.chain.link and in the directory JSON (shutdownDate / hidden). A deprecated proxy can stop updating; check before integrating and re-check periodically.
Use the proxy, never the aggregator address; aggregators are replaced during upgrades. Several networks also list SVR (Smart Value Recapture) proxies and Arbitrum lists hidden 'cre-backup' proxies for the same pair with different decimals (18): read decimals() and use the standard proxy unless you specifically want SVR.
L2s (Arbitrum, Base, Optimism): if the sequencer is down, feeds can look fresh but be wrong for users who cannot transact; check the L2 Sequencer Uptime Feed and enforce a grace period after it comes back up. The directory JSON currently flags the Optimism sequencer feed as hidden although the L2 sequencer docs page still lists it.
Contracts
Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).Chainlink ETH / USD price feed (proxy)other on ethereum0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the ETH / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 3600 s and deviation threshold 0.5% (per Chainlink's feed directory): the answer updates when price moves more than 0.5% or 3600 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0.
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "ETH / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink BTC / USD price feed (proxy)other on ethereum0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the BTC / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 3600 s and deviation threshold 0.5% (per Chainlink's feed directory): the answer updates when price moves more than 0.5% or 3600 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0.
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "BTC / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink USDC / USD price feed (proxy)other on ethereum0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the USDC / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 82800 s and deviation threshold 0.25% (per Chainlink's feed directory): the answer updates when price moves more than 0.25% or 82800 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0.
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "USDC / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink LINK / USD price feed (proxy)other on ethereum0x2c1d072e956AFFC0D435Cb7AC38EF18d24d9127c
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the LINK / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 3600 s and deviation threshold 0.5% (per Chainlink's feed directory): the answer updates when price moves more than 0.5% or 3600 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0.
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "LINK / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
CCIP Router (chain selector 5009297550715157269)bridge on ethereum0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D
write ccipSend(uint64,(bytes,bytes,(address,uint256)[],address,bytes))
Send a cross-chain message and/or tokens. Args: destinationChainSelector (uint64, NOT the EVM chainId; see CCIP Directory), Client.EVM2AnyMessage {bytes receiver = abi.encode(receiverAddress) for EVM destinations; bytes data (payload, empty for token-only transfers); EVMTokenAmount[] tokenAmounts {address token, uint256 amount} (tokens must be CCIP-enabled on this lane and approved to this Router first); address feeToken (address(0) = pay in native gas token via msg.value, or LINK / listed fee token, approved to the Router); bytes extraArgs}. extraArgs = bytes4 tag 0x181dcf10 (GENERIC_EXTRA_ARGS_V2_TAG) + abi.encode(uint256 gasLimit, bool allowOutOfOrderExecution); use gasLimit 0 for token-only transfers to an EOA; empty extraArgs defaults to 200k gas but Chainlink recommends always setting it explicitly. Returns bytes32 messageId. If paying natively, msg.value must be >= getFee(); overpayment is not refunded.
read getFee(uint64,(bytes,bytes,(address,uint256)[],address,bytes))
Fee for the exact same (destinationChainSelector, message) you will pass to ccipSend, denominated in message.feeToken (native wei if feeToken = address(0)). Call right before sending; add a small buffer when paying natively.
read isChainSupported(uint64)
True if the destination chain selector has a lane from this chain. Check before ccipSend (otherwise UnsupportedDestinationChain).
read getWrappedNative()
Wrapped native token accepted as a fee token on this chain (WETH 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2).
read getOnRamp(uint64)
OnRamp contract for a destination selector (zero address if no lane).
read typeAndVersion()
Returns "Router 1.2.0".
LINK token (LINK)token on ethereum0x514910771AF9Ca656af840dff83E8264EcF986CA
write transfer(address,uint256)
Send LINK (18 decimals).
write approve(address,uint256)
Approve a spender, e.g. the CCIP Router when paying CCIP fees in LINK.
write transferAndCall(address,uint256,bytes)
ERC-677: transfer LINK to a contract and call its onTokenTransfer(sender, amount, data) in one tx (used by VRF subscriptions, staking and legacy oracle requests). Only works if the receiver implements onTokenTransfer.
read balanceOf(address)
LINK balance in base units (18 decimals).
read allowance(address,address)
Allowance: owner, spender.
read decimals()
18.
Chainlink ETH / USD price feed (proxy)other on base0x71041dddad3595F9CEd3DcCFBe3D1F4b0a16Bb70
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the ETH / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 1200 s and deviation threshold 0.15% (per Chainlink's feed directory): the answer updates when price moves more than 0.15% or 1200 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0. On this L2 also check the L2 Sequencer Uptime Feed first (answer must be 0 and the grace period since startedAt must have passed).
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "ETH / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink BTC / USD price feed (proxy)other on base0x64c911996D3c6aC71f9b455B1E8E7266BcbD848F
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the BTC / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 1200 s and deviation threshold 0.1% (per Chainlink's feed directory): the answer updates when price moves more than 0.1% or 1200 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0. On this L2 also check the L2 Sequencer Uptime Feed first (answer must be 0 and the grace period since startedAt must have passed).
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "BTC / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink USDC / USD price feed (proxy)other on base0x7e860098F58bBFC8648a4311b374B1D669a2bc6B
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the USDC / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 86400 s and deviation threshold 0.3% (per Chainlink's feed directory): the answer updates when price moves more than 0.3% or 86400 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0. On this L2 also check the L2 Sequencer Uptime Feed first (answer must be 0 and the grace period since startedAt must have passed).
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "USDC / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink L2 Sequencer Uptime Status Feedother on base0xBCF85224fc0756B9Fa45aA7892530B47e10b6433
read latestRoundData()
answer 0 = sequencer up, 1 = sequencer down. startedAt = when the status last changed. Before trusting any price feed on this L2: require answer == 0 and block.timestamp - startedAt > GRACE_PERIOD (Chainlink's example uses 3600 s). On Arbitrum startedAt can be 0 only if the feed is not initialised; treat that as invalid.
CCIP Router (chain selector 15971525489660198786)bridge on base0x881e3A65B4d4a04dD529061dd0071cf975F58bCD
write ccipSend(uint64,(bytes,bytes,(address,uint256)[],address,bytes))
Send a cross-chain message and/or tokens. Args: destinationChainSelector (uint64, NOT the EVM chainId; see CCIP Directory), Client.EVM2AnyMessage {bytes receiver = abi.encode(receiverAddress) for EVM destinations; bytes data (payload, empty for token-only transfers); EVMTokenAmount[] tokenAmounts {address token, uint256 amount} (tokens must be CCIP-enabled on this lane and approved to this Router first); address feeToken (address(0) = pay in native gas token via msg.value, or LINK / listed fee token, approved to the Router); bytes extraArgs}. extraArgs = bytes4 tag 0x181dcf10 (GENERIC_EXTRA_ARGS_V2_TAG) + abi.encode(uint256 gasLimit, bool allowOutOfOrderExecution); use gasLimit 0 for token-only transfers to an EOA; empty extraArgs defaults to 200k gas but Chainlink recommends always setting it explicitly. Returns bytes32 messageId. If paying natively, msg.value must be >= getFee(); overpayment is not refunded.
read getFee(uint64,(bytes,bytes,(address,uint256)[],address,bytes))
Fee for the exact same (destinationChainSelector, message) you will pass to ccipSend, denominated in message.feeToken (native wei if feeToken = address(0)). Call right before sending; add a small buffer when paying natively.
read isChainSupported(uint64)
True if the destination chain selector has a lane from this chain. Check before ccipSend (otherwise UnsupportedDestinationChain).
read getWrappedNative()
Wrapped native token accepted as a fee token on this chain (WETH 0x4200000000000000000000000000000000000006).
read getOnRamp(uint64)
OnRamp contract for a destination selector (zero address if no lane).
read typeAndVersion()
Returns "Router 1.2.0".
LINK token (LINK)token on base0x88Fb150BDc53A65fe94Dea0c9BA0a6dAf8C6e196
write transfer(address,uint256)
Send LINK (18 decimals).
write approve(address,uint256)
Approve a spender, e.g. the CCIP Router when paying CCIP fees in LINK.
write transferAndCall(address,uint256,bytes)
ERC-677: transfer LINK to a contract and call its onTokenTransfer(sender, amount, data) in one tx (used by VRF subscriptions, staking and legacy oracle requests). Only works if the receiver implements onTokenTransfer.
read balanceOf(address)
LINK balance in base units (18 decimals).
read allowance(address,address)
Allowance: owner, spender.
read decimals()
18.
Chainlink ETH / USD price feed (proxy)other on arbitrum0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the ETH / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 1755 s and deviation threshold 0.05% (per Chainlink's feed directory): the answer updates when price moves more than 0.05% or 1755 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0. On this L2 also check the L2 Sequencer Uptime Feed first (answer must be 0 and the grace period since startedAt must have passed).
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "ETH / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink BTC / USD price feed (proxy)other on arbitrum0x6ce185860a4963106506C203335A2910413708e9
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the BTC / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 1755 s and deviation threshold 0.05% (per Chainlink's feed directory): the answer updates when price moves more than 0.05% or 1755 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0. On this L2 also check the L2 Sequencer Uptime Feed first (answer must be 0 and the grace period since startedAt must have passed).
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "BTC / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink USDC / USD price feed (proxy)other on arbitrum0x50834F3163758fcC1Df9973b6e91f0F0F0434aD3
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the USDC / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 255 s and deviation threshold 0.1% (per Chainlink's feed directory): the answer updates when price moves more than 0.1% or 255 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0. On this L2 also check the L2 Sequencer Uptime Feed first (answer must be 0 and the grace period since startedAt must have passed).
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "USDC / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink L2 Sequencer Uptime Status Feedother on arbitrum0xFdB631F5EE196F0ed6FAa767959853A9F217697D
read latestRoundData()
answer 0 = sequencer up, 1 = sequencer down. startedAt = when the status last changed. Before trusting any price feed on this L2: require answer == 0 and block.timestamp - startedAt > GRACE_PERIOD (Chainlink's example uses 3600 s). On Arbitrum startedAt can be 0 only if the feed is not initialised; treat that as invalid.
CCIP Router (chain selector 4949039107694359620)bridge on arbitrum0x141fa059441E0ca23ce184B6A78bafD2A517DdE8
write ccipSend(uint64,(bytes,bytes,(address,uint256)[],address,bytes))
Send a cross-chain message and/or tokens. Args: destinationChainSelector (uint64, NOT the EVM chainId; see CCIP Directory), Client.EVM2AnyMessage {bytes receiver = abi.encode(receiverAddress) for EVM destinations; bytes data (payload, empty for token-only transfers); EVMTokenAmount[] tokenAmounts {address token, uint256 amount} (tokens must be CCIP-enabled on this lane and approved to this Router first); address feeToken (address(0) = pay in native gas token via msg.value, or LINK / listed fee token, approved to the Router); bytes extraArgs}. extraArgs = bytes4 tag 0x181dcf10 (GENERIC_EXTRA_ARGS_V2_TAG) + abi.encode(uint256 gasLimit, bool allowOutOfOrderExecution); use gasLimit 0 for token-only transfers to an EOA; empty extraArgs defaults to 200k gas but Chainlink recommends always setting it explicitly. Returns bytes32 messageId. If paying natively, msg.value must be >= getFee(); overpayment is not refunded.
read getFee(uint64,(bytes,bytes,(address,uint256)[],address,bytes))
Fee for the exact same (destinationChainSelector, message) you will pass to ccipSend, denominated in message.feeToken (native wei if feeToken = address(0)). Call right before sending; add a small buffer when paying natively.
read isChainSupported(uint64)
True if the destination chain selector has a lane from this chain. Check before ccipSend (otherwise UnsupportedDestinationChain).
read getWrappedNative()
Wrapped native token accepted as a fee token on this chain (WETH 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1).
read getOnRamp(uint64)
OnRamp contract for a destination selector (zero address if no lane).
read typeAndVersion()
Returns "Router 1.2.0".
LINK token (LINK)token on arbitrum0xf97f4df75117a78c1A5a0DBb814Af92458539FB4
write transfer(address,uint256)
Send LINK (18 decimals).
write approve(address,uint256)
Approve a spender, e.g. the CCIP Router when paying CCIP fees in LINK.
write transferAndCall(address,uint256,bytes)
ERC-677: transfer LINK to a contract and call its onTokenTransfer(sender, amount, data) in one tx (used by VRF subscriptions, staking and legacy oracle requests). Only works if the receiver implements onTokenTransfer.
read balanceOf(address)
LINK balance in base units (18 decimals).
read allowance(address,address)
Allowance: owner, spender.
read decimals()
18.
Chainlink ETH / USD price feed (proxy)other on optimism0x13e3Ee699D1909E989722E753853AE30b17e08c5
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the ETH / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 1200 s and deviation threshold 0.15% (per Chainlink's feed directory): the answer updates when price moves more than 0.15% or 1200 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0. On this L2 also check the L2 Sequencer Uptime Feed first (answer must be 0 and the grace period since startedAt must have passed).
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "ETH / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink BTC / USD price feed (proxy)other on optimism0xD702DD976Fb76Fffc2D3963D037dfDae5b04E593
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the BTC / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 1200 s and deviation threshold 0.1% (per Chainlink's feed directory): the answer updates when price moves more than 0.1% or 1200 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0. On this L2 also check the L2 Sequencer Uptime Feed first (answer must be 0 and the grace period since startedAt must have passed).
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "BTC / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink USDC / USD price feed (proxy)other on optimism0x16a9FA2FDa030272Ce99B29CF780dFA30361E0f3
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the USDC / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 86400 s and deviation threshold 0.1% (per Chainlink's feed directory): the answer updates when price moves more than 0.1% or 86400 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0. On this L2 also check the L2 Sequencer Uptime Feed first (answer must be 0 and the grace period since startedAt must have passed).
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "USDC / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink L2 Sequencer Uptime Status Feedother on optimism0x371EAD81c9102C9BF4874A9075FFFf170F2Ee389
read latestRoundData()
answer 0 = sequencer up, 1 = sequencer down. startedAt = when the status last changed. Before trusting any price feed on this L2: require answer == 0 and block.timestamp - startedAt > GRACE_PERIOD (Chainlink's example uses 3600 s). On Arbitrum startedAt can be 0 only if the feed is not initialised; treat that as invalid.
CCIP Router (chain selector 3734403246176062136)bridge on optimism0x3206695CaE29952f4b0c22a169725a865bc8Ce0f
write ccipSend(uint64,(bytes,bytes,(address,uint256)[],address,bytes))
Send a cross-chain message and/or tokens. Args: destinationChainSelector (uint64, NOT the EVM chainId; see CCIP Directory), Client.EVM2AnyMessage {bytes receiver = abi.encode(receiverAddress) for EVM destinations; bytes data (payload, empty for token-only transfers); EVMTokenAmount[] tokenAmounts {address token, uint256 amount} (tokens must be CCIP-enabled on this lane and approved to this Router first); address feeToken (address(0) = pay in native gas token via msg.value, or LINK / listed fee token, approved to the Router); bytes extraArgs}. extraArgs = bytes4 tag 0x181dcf10 (GENERIC_EXTRA_ARGS_V2_TAG) + abi.encode(uint256 gasLimit, bool allowOutOfOrderExecution); use gasLimit 0 for token-only transfers to an EOA; empty extraArgs defaults to 200k gas but Chainlink recommends always setting it explicitly. Returns bytes32 messageId. If paying natively, msg.value must be >= getFee(); overpayment is not refunded.
read getFee(uint64,(bytes,bytes,(address,uint256)[],address,bytes))
Fee for the exact same (destinationChainSelector, message) you will pass to ccipSend, denominated in message.feeToken (native wei if feeToken = address(0)). Call right before sending; add a small buffer when paying natively.
read isChainSupported(uint64)
True if the destination chain selector has a lane from this chain. Check before ccipSend (otherwise UnsupportedDestinationChain).
read getWrappedNative()
Wrapped native token accepted as a fee token on this chain (WETH 0x4200000000000000000000000000000000000006).
read getOnRamp(uint64)
OnRamp contract for a destination selector (zero address if no lane).
read typeAndVersion()
Returns "Router 1.2.0".
LINK token (LINK)token on optimism0x350a791Bfc2C21F9Ed5d10980Dad2e2638ffa7f6
write transfer(address,uint256)
Send LINK (18 decimals).
write approve(address,uint256)
Approve a spender, e.g. the CCIP Router when paying CCIP fees in LINK.
write transferAndCall(address,uint256,bytes)
ERC-677: transfer LINK to a contract and call its onTokenTransfer(sender, amount, data) in one tx (used by VRF subscriptions, staking and legacy oracle requests). Only works if the receiver implements onTokenTransfer.
read balanceOf(address)
LINK balance in base units (18 decimals).
read allowance(address,address)
Allowance: owner, spender.
read decimals()
18.
Chainlink ETH / USD price feed (proxy)other on polygon0xF9680D99D6C9589e2a93a78A04A279e509205945
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the ETH / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 27 s and deviation threshold 0.1% (per Chainlink's feed directory): the answer updates when price moves more than 0.1% or 27 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0.
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "ETH / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink BTC / USD price feed (proxy)other on polygon0xc907E116054Ad103354f2D350FD2514433D57F6f
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the BTC / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 27 s and deviation threshold 0.1% (per Chainlink's feed directory): the answer updates when price moves more than 0.1% or 27 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0.
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "BTC / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink USDC / USD price feed (proxy)other on polygon0xfE4A8cc5b5B2366C1B58Bea3858e81843581b2F7
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the USDC / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 27 s and deviation threshold 0.005% (per Chainlink's feed directory): the answer updates when price moves more than 0.005% or 27 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0.
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "USDC / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
CCIP Router (chain selector 4051577828743386545)bridge on polygon0x849c5ED5a80F5B408Dd4969b78c2C8fdf0565Bfe
write ccipSend(uint64,(bytes,bytes,(address,uint256)[],address,bytes))
Send a cross-chain message and/or tokens. Args: destinationChainSelector (uint64, NOT the EVM chainId; see CCIP Directory), Client.EVM2AnyMessage {bytes receiver = abi.encode(receiverAddress) for EVM destinations; bytes data (payload, empty for token-only transfers); EVMTokenAmount[] tokenAmounts {address token, uint256 amount} (tokens must be CCIP-enabled on this lane and approved to this Router first); address feeToken (address(0) = pay in native gas token via msg.value, or LINK / listed fee token, approved to the Router); bytes extraArgs}. extraArgs = bytes4 tag 0x181dcf10 (GENERIC_EXTRA_ARGS_V2_TAG) + abi.encode(uint256 gasLimit, bool allowOutOfOrderExecution); use gasLimit 0 for token-only transfers to an EOA; empty extraArgs defaults to 200k gas but Chainlink recommends always setting it explicitly. Returns bytes32 messageId. If paying natively, msg.value must be >= getFee(); overpayment is not refunded.
read getFee(uint64,(bytes,bytes,(address,uint256)[],address,bytes))
Fee for the exact same (destinationChainSelector, message) you will pass to ccipSend, denominated in message.feeToken (native wei if feeToken = address(0)). Call right before sending; add a small buffer when paying natively.
read isChainSupported(uint64)
True if the destination chain selector has a lane from this chain. Check before ccipSend (otherwise UnsupportedDestinationChain).
read getWrappedNative()
Wrapped native token accepted as a fee token on this chain (WPOL 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270).
read getOnRamp(uint64)
OnRamp contract for a destination selector (zero address if no lane).
read typeAndVersion()
Returns "Router 1.2.0".
LINK token (LINK)token on polygon0xb0897686c545045aFc77CF20eC7A532E3120E0F1
write transfer(address,uint256)
Send LINK (18 decimals).
write approve(address,uint256)
Approve a spender, e.g. the CCIP Router when paying CCIP fees in LINK.
write transferAndCall(address,uint256,bytes)
ERC-677: transfer LINK to a contract and call its onTokenTransfer(sender, amount, data) in one tx (used by VRF subscriptions, staking and legacy oracle requests). Only works if the receiver implements onTokenTransfer.
read balanceOf(address)
LINK balance in base units (18 decimals).
read allowance(address,address)
Allowance: owner, spender.
read decimals()
18.
Chainlink ETH / USD price feed (proxy)other on bsc0x9ef1B8c0E4F7dc8bF5719Ea496883DC6401d5b2e
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the ETH / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 60 s and deviation threshold 0.1% (per Chainlink's feed directory): the answer updates when price moves more than 0.1% or 60 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0.
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "ETH / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink BTC / USD price feed (proxy)other on bsc0x264990fbd0A4796A3E3d8E37C4d5F87a3aCa5Ebf
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the BTC / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 60 s and deviation threshold 0.1% (per Chainlink's feed directory): the answer updates when price moves more than 0.1% or 60 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0.
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "BTC / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink USDC / USD price feed (proxy)other on bsc0x51597f405303C4377E36123cBc172b13269EA163
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the USDC / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 900 s and deviation threshold 0.1% (per Chainlink's feed directory): the answer updates when price moves more than 0.1% or 900 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0.
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "USDC / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
CCIP Router (chain selector 11344663589394136015)bridge on bsc0x34B03Cb9086d7D758AC55af71584F81A598759FE
write ccipSend(uint64,(bytes,bytes,(address,uint256)[],address,bytes))
Send a cross-chain message and/or tokens. Args: destinationChainSelector (uint64, NOT the EVM chainId; see CCIP Directory), Client.EVM2AnyMessage {bytes receiver = abi.encode(receiverAddress) for EVM destinations; bytes data (payload, empty for token-only transfers); EVMTokenAmount[] tokenAmounts {address token, uint256 amount} (tokens must be CCIP-enabled on this lane and approved to this Router first); address feeToken (address(0) = pay in native gas token via msg.value, or LINK / listed fee token, approved to the Router); bytes extraArgs}. extraArgs = bytes4 tag 0x181dcf10 (GENERIC_EXTRA_ARGS_V2_TAG) + abi.encode(uint256 gasLimit, bool allowOutOfOrderExecution); use gasLimit 0 for token-only transfers to an EOA; empty extraArgs defaults to 200k gas but Chainlink recommends always setting it explicitly. Returns bytes32 messageId. If paying natively, msg.value must be >= getFee(); overpayment is not refunded.
read getFee(uint64,(bytes,bytes,(address,uint256)[],address,bytes))
Fee for the exact same (destinationChainSelector, message) you will pass to ccipSend, denominated in message.feeToken (native wei if feeToken = address(0)). Call right before sending; add a small buffer when paying natively.
read isChainSupported(uint64)
True if the destination chain selector has a lane from this chain. Check before ccipSend (otherwise UnsupportedDestinationChain).
read getWrappedNative()
Wrapped native token accepted as a fee token on this chain (WBNB 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c).
read getOnRamp(uint64)
OnRamp contract for a destination selector (zero address if no lane).
read typeAndVersion()
Returns "Router 1.2.0".
LINK token (LINK)token on bsc0x404460C6A5EdE2D891e8297795264fDe62ADBB75
write transfer(address,uint256)
Send LINK (18 decimals).
write approve(address,uint256)
Approve a spender, e.g. the CCIP Router when paying CCIP fees in LINK.
write transferAndCall(address,uint256,bytes)
ERC-677: transfer LINK to a contract and call its onTokenTransfer(sender, amount, data) in one tx (used by VRF subscriptions, staking and legacy oracle requests). Only works if the receiver implements onTokenTransfer.
read balanceOf(address)
LINK balance in base units (18 decimals).
read allowance(address,address)
Allowance: owner, spender.
read decimals()
18.
Chainlink ETH / USD price feed (proxy)other on avalanche0x976B3D034E162d8bD72D6b9C989d545b839003b0
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the ETH / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 86400 s and deviation threshold 0.1% (per Chainlink's feed directory): the answer updates when price moves more than 0.1% or 86400 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0.
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "ETH / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink BTC / USD price feed (proxy)other on avalanche0x2779D32d5166BAaa2B2b658333bA7e6Ec0C65743
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the BTC / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 86400 s and deviation threshold 0.1% (per Chainlink's feed directory): the answer updates when price moves more than 0.1% or 86400 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0.
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "BTC / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
Chainlink USDC / USD price feed (proxy)other on avalanche0xF096872672F44d6EBA71458D74fe67F9a77a23B9
read latestRoundData()
Returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound). answer is the USDC / USD price scaled by 10^decimals() (8 here). Heartbeat for this feed is 86400 s and deviation threshold 0.1% (per Chainlink's feed directory): the answer updates when price moves more than 0.1% or 86400 s pass. Reject the answer if block.timestamp - updatedAt > heartbeat (plus a small buffer), if answer <= 0, or if updatedAt == 0.
read decimals()
Number of decimals in answer (8 for this feed). Always read it rather than hard-coding; some Chainlink feeds use 18.
read description()
Human-readable pair, returns "USDC / USD". Use it to sanity-check you have the right proxy.
read getRoundData(uint80)
Same tuple as latestRoundData for a historical roundId (round ids are phase-encoded; not guaranteed contiguous across aggregator upgrades).
read aggregator()
Current underlying aggregator behind this proxy. Always read prices from the proxy, never the aggregator, since Chainlink swaps aggregators behind the proxy.
read version()
Aggregator interface version.
CCIP Router (chain selector 6433500567565415381)bridge on avalanche0xF4c7E640EdA248ef95972845a62bdC74237805dB
write ccipSend(uint64,(bytes,bytes,(address,uint256)[],address,bytes))
Send a cross-chain message and/or tokens. Args: destinationChainSelector (uint64, NOT the EVM chainId; see CCIP Directory), Client.EVM2AnyMessage {bytes receiver = abi.encode(receiverAddress) for EVM destinations; bytes data (payload, empty for token-only transfers); EVMTokenAmount[] tokenAmounts {address token, uint256 amount} (tokens must be CCIP-enabled on this lane and approved to this Router first); address feeToken (address(0) = pay in native gas token via msg.value, or LINK / listed fee token, approved to the Router); bytes extraArgs}. extraArgs = bytes4 tag 0x181dcf10 (GENERIC_EXTRA_ARGS_V2_TAG) + abi.encode(uint256 gasLimit, bool allowOutOfOrderExecution); use gasLimit 0 for token-only transfers to an EOA; empty extraArgs defaults to 200k gas but Chainlink recommends always setting it explicitly. Returns bytes32 messageId. If paying natively, msg.value must be >= getFee(); overpayment is not refunded.
read getFee(uint64,(bytes,bytes,(address,uint256)[],address,bytes))
Fee for the exact same (destinationChainSelector, message) you will pass to ccipSend, denominated in message.feeToken (native wei if feeToken = address(0)). Call right before sending; add a small buffer when paying natively.
read isChainSupported(uint64)
True if the destination chain selector has a lane from this chain. Check before ccipSend (otherwise UnsupportedDestinationChain).
read getWrappedNative()
Wrapped native token accepted as a fee token on this chain (WAVAX 0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7).
read getOnRamp(uint64)
OnRamp contract for a destination selector (zero address if no lane).
read typeAndVersion()
Returns "Router 1.2.0".
LINK token (LINK.e (bridged via Avalanche Bridge, Chainlink's official LINK on Avalanche))token on avalanche0x5947BB275c521040051D82396192181b413227A3
write transfer(address,uint256)
Send LINK (18 decimals).
write approve(address,uint256)
Approve a spender, e.g. the CCIP Router when paying CCIP fees in LINK.
write transferAndCall(address,uint256,bytes)
ERC-677: transfer LINK to a contract and call its onTokenTransfer(sender, amount, data) in one tx (used by VRF subscriptions, staking and legacy oracle requests). Only works if the receiver implements onTokenTransfer.
read balanceOf(address)
LINK balance in base units (18 decimals).
read allowance(address,address)
Allowance: owner, spender.
read decimals()
18.