Skip to content
docs

acrossRouteOf

acrossRouteOf(sourceChain, sourceToken, destChain, destToken): AcrossRoute | AcrossRouteMiss

Defined in: protocol-swap2-across/src/config.ts:273

The route a request names, or why it is not served. sourceToken / destToken are contracts (any casing) or the zero address for the native coin. Served: two different pinned chains, the same asset on both sides, the native coin only where it is ether and the SpokePool wraps it, and never the wrapped native token as a destination ERC-20 — an empty-message fill of it pays an EOA the native coin, which is not what was asked for.

string

string

string

string

AcrossRoute | AcrossRouteMiss