> For the complete documentation index, see [llms.txt](https://docs.kaiko.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kaiko.com/on-chain/kaiko-data/kaiko-reference-rates/data-on-ramp/arbitrum.md).

# Arbitrum

This guide walks you through consuming Kaiko’s Reference Rates on Arbitrum. Several asset pairs are publicly available: prices refresh automatically every hour, and anyone can request an on-demand refresh — the only cost is the network gas fee.

## Read prices in your browser

Visit [onchain.kaiko.com/arbitrum-dashboard](https://onchain.kaiko.com/arbitrum-dashboard). Here, you can see the latest Kaiko price updates for all pairs, along with each price feed’s contract address.

## Read a price update on-chain

Anyone can request a refresh of all price feeds by calling `refreshPriceFeeds()` on the trigger contract `0xff2743c44f820C64c94eCCfc1B497a1019541097`. The call must be sent **without any ETH value** — the contract rejects any other amount. You only pay the network gas fee.

When the transaction is confirmed, the contract emits an event that Kaiko’s publisher listens to. The publisher then pushes fresh, Kaiko-signed prices to every price feed contract.

1. Install ethers: `npm install ethers`
2. Call `refreshPriceFeeds()` on the trigger contract:

```typescript
import { ethers } from 'ethers';

// Set up your Arbitrum provider
const provider = new ethers.JsonRpcProvider("<YOUR_PROVIDER_URL>");

// Initialize wallet using private key and connect it to the provider
const wallet = new ethers.Wallet("<YOUR_PRIVATE_KEY>", provider);

// PriceFeedsUpdateTrigger contract address
const triggerAddress = "0xff2743c44f820C64c94eCCfc1B497a1019541097";

// ABI definition of the contract's refreshPriceFeeds method
const abi = [
    "function refreshPriceFeeds() payable external"
];

const trigger = new ethers.Contract(triggerAddress, abi, wallet);

async function refreshPriceFeeds() {
    try {
        // No ETH value: the contract requires msg.value to be exactly 0
        const tx = await trigger.refreshPriceFeeds();

        console.log("Transaction sent. Waiting for confirmation...");
        const receipt = await tx.wait();

        console.log("Transaction confirmed:", receipt.hash);
    } catch (error) {
        console.error("Error while calling refreshPriceFeeds:", error);
    }
}

refreshPriceFeeds();
```

3. Wait a few seconds for Kaiko’s publisher to push the updated prices on-chain — the refresh happens in separate transactions after yours confirms.

## Read the price on-chain

Each pair has its own `PriceFeed` contract exposing `latestupdate()`, which returns the latest price, its decimals, and the update timestamp:

{% code overflow="wrap" %}

```typescript
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IKaikoPriceFeed {
    function latestUpdate() external view returns (uint256 price, uint256 decimals, uint256 updatedAt);
}

contract CallLatestUpdate {
    address public priceFeedAddress = <PRICE_FEED_ADDRESS>;

    function getLatestUpdate() public view returns (uint256 price, uint256 decimals, uint256 updatedAt) {
        return IKaikoPriceFeed(priceFeedAddress).latestUpdate();
    }
}
```

{% endcode %}

{% hint style=“warning” %} Although one update request refreshes all prices on-chain, you must read each price feed individually. See the price feeds and their corresponding addresses at [onchain.kaiko.com/arbitrum-dashboard](https://onchain.kaiko.com/arbitrum-dashboard). {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.kaiko.com/on-chain/kaiko-data/kaiko-reference-rates/data-on-ramp/arbitrum.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
