It looks like many Chainlink feed aggregators have 8 decimals of precision:

  • ETH/USD, which returns 140330173736 = $1,403.30173736
  • BTC/USD, which returns 3696759888474 = $36,967.59888474

I found the contracts above on feeds.chain.link.

Do all Chainlink feed aggregators have 8 decimals of precision?

1 Answer 1


Non-ETH pairs: 8 decimals

ETH pairs: 18 Decimals

Hence, ETH/USD is a non-ETH pair, so it has 8. But if it were USD/ETH, it would have 18

For reference

EDIT: Each contract has a decimals function you can call to see exactly how many it has.

  • Maybe I missed it but I didn't see this in the documentation anywhere
    – Ritzy Dev
    Jan 2, 2023 at 1:42
  • 1
    Ideally you call the decimals function on the contract itself though, the above is just in general. Jan 4, 2023 at 0:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.