Band Protocol x Sonic: The First Push-Based Oracle on the Sonic Testnet

·

TL;DR


Introduction

Band Protocol has integrated its price feed oracle into the Sonic testnet, enhancing dApp reliability with decentralized, real-time data. This collaboration builds on Band's longstanding partnership with Fantom since 2020, now extending to Sonic's high-performance ecosystem. The integration marks Band Protocol as the first pull-based oracle on Sonic, streamlining data retrieval for developers.


What is Sonic?

Sonic is a layer-1 blockchain acting as a gateway to Ethereum, offering:

👉 Explore Sonic's capabilities


Why Build on the Sonic Testnet?

Key advantages driving Band Protocol's integration:


How Band Oracle Works on Sonic

  1. Request Data: dApps query Band Protocol for specific price feeds.
  2. Aggregate Data: Band collects and verifies data from multiple sources.
  3. Relay Data: Decentralized BandChain transmits data securely.
  4. Read Symbol: dApps fetch data from Band's reference contracts.
  5. Send Price Data: Verified prices are delivered in real-time.

Supported Assets: DAI, ETH, FTM, USDC, USDT, WBTC (expandable).


Push-Based Oracle Benefits

Band Protocol's push-based model offers:

Push-BasedPull-Based
Continuous updatesOn-demand requests
Lower latencyHigher latency
Efficient for high TPSManual trigger required

Developer Resources

Integration Tools

Example Code

import interfaces/IStdReference.sol;
contract DemoBulk {
  IStdReference public ref;
  constructor(IStdReference _ref) public { ref = _ref; }
  function demo_bulk() external view returns (IStdReference.ReferenceData[] memory) {
    return ref.getReferenceDataBulk(["BTC", "ETH"], ["USD", "BTC"]);
  }
}

👉 Start building on Sonic


FAQ

What makes Band Protocol unique for Sonic?

Band offers push-based oracles, reducing latency and congestion compared to pull-based systems.

Which assets are supported?

Initial feeds include DAI, ETH, FTM, USDC, USDT, and WBTC, with flexibility to add more.

How do I integrate Band Oracle?

Use Band's reference contracts and follow Sonic's oracle documentation.


Community & Programs


Upcoming Milestones


About Sonic

Sonic is a high-speed L1 blockchain with Ethereum compatibility. Learn more: https://linktr.ee/soniclabs.

About Band Protocol

Band Protocol provides decentralized oracle solutions for Web3. Explore: https://linktr.ee/bandprotocol.