SunContract (SNC) API and Price Oracle

SunContract API Logo


For informational use only; request a custom oracle/API for production below.
General information
Contract address
Smart contract address of the asset
Blockchain network where the asset is deployed
Pricing methodology used to determine the price of the token in USD. By default, all price feeds on the DIA App are calculated with a MAIR methodology. This parameter is customisable.Learn more about methodologies.
Update frequency
120 seconds is the default update frequency. This parameter is customisable.Learn more about oracle updates.
Next update
24h Volume
The total volume captured by DIA across all the integrated sources.
Volume 24h
Trades 24h
Get a custom SunContract price oracle or API endpoint

DIA Oracle Builder [BETA]
Create and manage price oracles autonomously
  • Autonomously deploy oracles under 3 minutes
  • Select data sources, methodology & update triggers
  • Easily fund, edit and delete oracles
  • Management and monitoring dashboard
  • Available in 3 testnet chains
build your oracle
Request custom oracle
Request a fully tailored price oracle implementation
  • Autonomously deploy oracles under 3 minutes
  • Tailored oracles for any individual needs
  • Editable, updatable oracles
  • Real-time gas balance notifications
  • Available in 35+ chains
Start request process
Token information

What is SunContract (SNC)?

SunContract (SNC) is a blockchain-based platform that aims to disrupt the energy market by enabling direct trading between producers and consumers. It was founded in 2017 by Gregor Novak and is operated by SunContract d.o.o. The platform allows users to buy and sell renewable energy through smart contracts, cutting out intermediaries and reducing costs. The name "SunContract" represents the concept of harnessing the power of the sun to generate renewable energy.

How does SunContract work?

SunContract is a blockchain-based platform that aims to disrupt the energy sector by enabling peer-to-peer energy trading. The platform utilizes smart contracts and blockchain technology to create a transparent and decentralized marketplace.

SunContract is built on the Ethereum blockchain, which allows for secure and immutable transactions. The platform leverages smart contracts to facilitate the trading of energy between producers and consumers. Producers can be individuals or businesses that generate excess renewable energy, while consumers can be anyone in need of energy.

The functioning of SunContract involves several key steps. First, energy producers connect their energy-generating systems, such as solar panels or wind turbines, to the SunContract platform. This allows them to monitor their energy production and set the price at which they are willing to sell their excess energy.

On the other hand, consumers can browse the available offers from energy producers and choose the most suitable one for their needs. They can then enter into a smart contract agreement, specifying the amount of energy they want to purchase and the agreed-upon price.

Once the agreement is in place, the energy producer sends the energy to the consumer's energy meter. The meter then measures the energy consumed, and the smart contract automatically executes the payment based on the agreed-upon price. All transactions and agreements are recorded on the Ethereum blockchain, ensuring transparency and accuracy.

Overall, SunContract's underlying technology and blockchain integration provide a decentralized and efficient marketplace for energy trading, empowering individuals and businesses to participate in the renewable energy transition.

What are the benefits of SunContract?

SunContract is a blockchain-based energy trading platform that aims to revolutionize the energy industry. Compared to its direct competitors, SunContract offers several unique benefits.

Firstly, SunContract allows for peer-to-peer energy trading, cutting out the need for intermediaries such as utility companies. This direct energy trading model enables consumers to buy and sell energy from one another, fostering a more decentralized and cost-effective market. This stands in contrast to traditional energy providers and even some other blockchain-based platforms that rely on centralized entities.

Another key benefit of SunContract is its use of smart contracts. These self-executing contracts automatically facilitate and verify transactions, ensuring that energy buyers and sellers receive what they've agreed upon. This reduces the risk of fraud or disputes, making transactions on SunContract more secure and efficient. This distinguishes it from some other platforms that might lack this level of automation and security, relying on manual processes.

Furthermore, SunContract aims to provide renewable energy options to its users. By leveraging the blockchain, it aims to encourage the use of green energy sources, promoting sustainability and reducing the carbon footprint. This commitment to renewable energy sets SunContract apart from its competitors that may not prioritize environmental concerns to the same extent.

In summary, SunContract offers peer-to-peer energy trading, smart contract automation, and a focus on renewable energy options. These benefits differentiate it from its direct competitors in the energy trading space.

What is SunContract used for?

SunContract is a blockchain-based platform that aims to revolutionize the energy sector by enabling peer-to-peer energy trading. It allows individuals and businesses to directly buy and sell renewable energy without the need for intermediaries.

One common use case for SunContract is allowing homeowners with solar panels to sell excess energy they generate back to the grid. Traditionally, excess energy would be wasted or sold to utility companies at a much lower price. With SunContract, homeowners can connect their solar panels to the platform and sell their surplus energy directly to other users in their community. This not only helps homeowners monetize their solar energy investment but also promotes the use of clean and sustainable energy sources.

Another use case for SunContract is enabling businesses to negotiate and purchase energy from renewable sources directly from local energy producers. By bypassing traditional energy suppliers and intermediaries, businesses can have more control over the energy they consume, negotiate better prices, and support local renewable energy providers. This helps in promoting a more sustainable energy ecosystem and contributes to reducing carbon emissions.

An interesting specific case is the implementation of SunContract in developing countries or remote areas with limited access to traditional energy infrastructure. By leveraging SunContract's platform, communities can create microgrids where energy can be generated, stored, and traded locally. This empowers communities to become self-sufficient in energy production and consumption, reducing their dependence on centralized power grids and promoting energy independence.

Overall, SunContract aims to decentralize the energy sector, promote renewable energy sources, and empower individuals and communities to have more control over their energy consumption and production.

What is DIA's SunContract API?

DIA's SunContract API is a part of DIA's API endpoints that provide real-time price feeds for crypto assets. These price feeds are constructed by sourcing raw data from over 85 on-chain and off-chain cryptocurrency and NFT exchanges. With this vast amount of data, DIA is able to deliver what other web3 data providers cannot.

DIA offers both free API endpoints for developers to test and fully customizable, custom feeds. The free API endpoints can be found on the asset's detail page in the DIA App. These endpoints are provided in a standardized format for informational purposes and give developers a simple way to test.

However, the real benefit lies in DIA's custom API feeds. These feeds can be tailored according to the user's specific requirements, such as sources, methodologies, and update mechanisms. To request a custom feed, users can reach out to DIA via Discord or Telegram.

The use cases for DIA's API are broad and can be applied in various ways across the blockchain ecosystem. In the DeFi space, the price information from DIA's APIs can be utilized for derivatives, options and futures, lending and borrowing markets, collateralized stablecoins, synthetic asset issuance, money markets, and more. In the realm of NFTfi applications, the API can be used for peer-to-pool NFT lending and borrowing, on-chain NFT derivatives, NFT renting, NFT fractionalization, and many other possibilities.

In summary, DIA's SunContract API offers not only free API endpoints for testing but also the flexibility of custom feeds tailored to specific needs. This allows users to access accurate and customizable price data for various applications in the blockchain ecosystem. To explore the full potential of DIA's API, developers can leverage its offerings to drive innovation and build transformative solutions.

What is DIA's SunContract price oracle?

DIA's SunContract price oracle is a smart contract that offers real-time price feeds for various cryptocurrencies and assets. Unlike other web3 data providers, DIA stands out by integrating with over 35 layer 1 and layer 2 networks, which allows them to deploy price oracles in multiple blockchains. These oracles are built using raw data sourced from over 85 on-chain and off-chain exchanges, ensuring accurate and reliable price information.

While DIA provides free demo oracles for developers to test, these are solely for testing purposes and cannot be used in production applications. However, DIA offers the flexibility to create custom price feed oracles tailored to specific requirements. With custom configurations, users can define the sources, methodologies, and update mechanisms for their price oracle data feeds. To request a custom feed, users can reach out to DIA via Discord or Telegram.

DIA's price oracles have numerous applications within the blockchain ecosystem, particularly in the areas of DeFi and NFTfi. Some potential use cases include derivatives, options and futures, lending and borrowing markets, collateralized stablecoins, synthetic asset issuance, money markets, NFT peer to pool lending and borrowing, on-chain NFT derivatives, NFT renting, and NFT fractionalization, among others.

In the context of blockchain technology, an oracle refers to an external information provider that supplies verified data from outside the blockchain to smart contracts. Oracles play a crucial role in bridging the gap between off-chain data sources and on-chain applications, enabling smart contracts to interact with real-world information accurately and securely.

Overall, DIA's custom oracles offer immense value to users, allowing them to access tailored price feed solutions for their specific needs.

Why use DIA's SNC API & price oracle?

DIA's SNC API and SNC Price Oracle offer a wide range of benefits for users in the blockchain ecosystem. These tools provide accurate and reliable price data for cryptocurrencies and NFTs, allowing users to access real-time market information.

One of the key advantages of using DIA's API and Price Oracle is the high level of customizability available. Users can tailor each oracle and API endpoint to suit the specific needs of their decentralized applications. This includes configuring the data sources that make up the feed, applying data cleaning filters and pricing methodologies, and determining the update mechanisms and frequency of the feed. This customization ensures that the data and oracle remain robust and resilient, even in unique market conditions.

Furthermore, DIA's API and Oracle feeds offer a high level of transparency. Users can track the entire data journey, providing full visibility into how the data is sourced, cleaned, and processed. This transparency instills trust and confidence in the accuracy and reliability of the price data provided by DIA.

DIA also provides various tracking and monitoring tools, allowing users to closely monitor the performance of their oracle and API feeds. This ensures that users can stay informed about any updates or changes to the data, enabling them to make informed decisions based on the most up-to-date market information.

In summary, the benefit of using DIA's SNC API and SNC Price Oracle lies in the customizability, transparency, and tracking capabilities they provide. These tools equip users with accurate and reliable price data, enabling them to make informed decisions in the blockchain ecosystem.

Why use DIA data feeds and oracles?

DIA provides full insight on the oracle’s data journey as well monitoring tools to track feeds in real-time.
Oracles can be tailored to any use case in terms of data sources, methodologies and update mechanisms and much more.
Broadest coverage
DIA provides price oracles for 3,000+ cryptocurrencies: from blue-chip tokens to long-tail assets.