Anchor Feeds
Scaling's anchor feeds update every 90 seconds with each new voting epoch on Flare. These feeds, accessible offchain, support various asset classes including equities, commodities, and cryptocurrencies.
Each anchor feed is uniquely identified by an ID composed of three components in a structured encoding process:
-
Category: Indicates the type of asset:
- Crypto:
01
- Forex:
02
- Commodity:
03
- Stock:
04
- Crypto:
-
Hex-Encoded Feed Name: The name of the feed is converted to a hexadecimal format.
-
Zero Padding: The combined category and hex-encoded feed name are padded with zeros to a length of 21 bytes.
The resulting string is then prefixed with 0x
.
Example of the structured encoding process.
Taking the feed name FLR/USD
:
- Category:
01
(Crypto) - Hex-Encoded Feed Name:
464c522f555344
(hexadecimal representation ofFLR/USD
) - Zero Padding: The category and hex-encoded feed name combined and padded:
01464c522f55534400000000000000000000000000
- Final ID: Adding the
0x
prefix results in0x01464c522f55534400000000000000000000000000
Feed IDs are not addresses. They are bytes21
structured encodings that combine the category and feed name to ensure each feed has a unique identifier.
Feed Name | Feed ID | Base Asset | Decimals | Category |
---|---|---|---|---|
FLR/USD | 0x01464c522f55534400000000000000000000000000 | Flare | 7 | Crypto |
SGB/USD | 0x015347422f55534400000000000000000000000000 | Songbird | 8 | Crypto |
BTC/USD | 0x014254432f55534400000000000000000000000000 | Bitcoin | 2 | Crypto |
XRP/USD | 0x015852502f55534400000000000000000000000000 | XRP | 6 | Crypto |
LTC/USD | 0x014c54432f55534400000000000000000000000000 | Litecoin | 5 | Crypto |
XLM/USD | 0x01584c4d2f55534400000000000000000000000000 | Stellar | 6 | Crypto |
DOGE/USD | 0x01444f47452f555344000000000000000000000000 | Dogecoin | 6 | Crypto |
ADA/USD | 0x014144412f55534400000000000000000000000000 | Cardano | 6 | Crypto |
ALGO/USD | 0x01414c474f2f555344000000000000000000000000 | Algorand | 6 | Crypto |
ETH/USD | 0x014554482f55534400000000000000000000000000 | Ethereum | 3 | Crypto |
FIL/USD | 0x0146494c2f55534400000000000000000000000000 | Filecoin | 5 | Crypto |
ARB/USD | 0x014152422f55534400000000000000000000000000 | Arbitrum | 6 | Crypto |
AVAX/USD | 0x01415641582f555344000000000000000000000000 | Avalanche | 5 | Crypto |
BNB/USD | 0x01424e422f55534400000000000000000000000000 | BNB | 4 | Crypto |
MATIC/USD | 0x014d415449432f5553440000000000000000000000 | Polygon | 6 | Crypto |
SOL/USD | 0x01534f4c2f55534400000000000000000000000000 | Solana | 4 | Crypto |
USDC/USD | 0x01555344432f555344000000000000000000000000 | USDC | 5 | Crypto |
USDT/USD | 0x01555344542f555344000000000000000000000000 | Tether | 5 | Crypto |
XDC/USD | 0x015844432f55534400000000000000000000000000 | XDC Network | 7 | Crypto |
TRX/USD | 0x015452582f55534400000000000000000000000000 | TRON | 6 | Crypto |
LINK/USD | 0x014c494e4b2f555344000000000000000000000000 | Chainlink | 5 | Crypto |
ATOM/USD | 0x0141544f4d2f555344000000000000000000000000 | Cosmos Hub | 5 | Crypto |
DOT/USD | 0x01444f542f55534400000000000000000000000000 | Polkadot | 5 | Crypto |
TON/USD | 0x01544f4e2f55534400000000000000000000000000 | Toncoin | 5 | Crypto |
ICP/USD | 0x014943502f55534400000000000000000000000000 | Internet Computer | 5 | Crypto |
SHIB/USD | 0x01534849422f555344000000000000000000000000 | Shiba Inu | 10 | Crypto |
DAI/USD | 0x014441492f55534400000000000000000000000000 | Dai | 5 | Crypto |
BCH/USD | 0x014243482f55534400000000000000000000000000 | Bitcoin Cash | 4 | Crypto |
NEAR/USD | 0x014e4541522f555344000000000000000000000000 | NEAR Protocol | 5 | Crypto |
LEO/USD | 0x014c454f2f55534400000000000000000000000000 | LEO Token | 5 | Crypto |
UNI/USD | 0x01554e492f55534400000000000000000000000000 | Uniswap | 5 | Crypto |
ETC/USD | 0x014554432f55534400000000000000000000000000 | Ethereum Classic | 5 | Crypto |
WIF/USD | 0x015749462f55534400000000000000000000000000 | dogwifhat | 5 | Crypto |
BONK/USD | 0x01424f4e4b2f555344000000000000000000000000 | Bonk | 10 | Crypto |
JUP/USD | 0x014a55502f55534400000000000000000000000000 | Jupiter | 5 | Crypto |
ETHFI/USD | 0x0145544846492f5553440000000000000000000000 | Ether.fi | 5 | Crypto |
ENA/USD | 0x01454e412f55534400000000000000000000000000 | Ethena | 6 | Crypto |
PYTH/USD | 0x01505954482f555344000000000000000000000000 | Pyth Network | 6 | Crypto |