LogoLogo
  • Introduction
    • What We Do
  • The DeFi Problem
  • How iLayer solves it
  • Use Cases
  • Architecture
    • RFQ
  • Hub & Spoke
    • OrderHub
    • OrderSpoke
  • Router
    • LayerZero Router
    • Axelar Router
    • NullRouter
    • AxLzRouter
  • Solvers
  • Integration
    • Industries
    • EVM Smart contracts
      • Example: cross-chain LPing on Aave
      • Example: cross-chain contract call
  • Audit
Powered by GitBook
On this page
Export as PDF
  1. Router

NullRouter

PreviousAxelar RouterNextAxLzRouter

Last updated 24 days ago

This NullRouter is the simplest Router implementation, it doesn’t bridge at all but simply routes messages on the same chain. It immediately delivers the payload to the target contract, otherwise it rejects the call.

All routers support the null route, allowing integrators to also have access to same-chain routing.


Events

Event
Parameters
Description

MessageBroadcasted

Message message

Emitted when a valid same-chain message is delivered; mirrors the interface’s broadcast event.


Errors

Error
When It’s Thrown

UnsupportedBridgingRoute()

If message.chainId ≠ block.chainid, i.e. it is a cross-chain call.