Decentralized data layers provide a similar function to centralized data layers, but rather than a single entity managing requests for data, these have methods of decentralizing this process. Decentralized data layers have multiple nodes that provide the blockchain data for developers to pull. They also have a consensus mechanism in place to incentivize proper data and punish false data.

These are some options for interacting with the blockchain from a decentralized service:

We can set up our code to call one of these APIs when we need certain data in our dapp.


Think about this question: Would you prefer a centralized or decentralized data layer?

When you’re ready, press Next to continue onto the next exercise.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?