Skip to content

Chain ID mismatch with Swagger / Missing Unichain #541

Open
@Hugoo

Description

@Hugoo

Hey hi, per this:

https://github.com/Uniswap/uniswapx-service/blob/main/lib/util/chain.ts#L1

there are a few supported chains:

MAINNET = 1,
UNICHAIN = 130,
BASE = 8453,
OPTIMISM = 10,
ARBITRUM_ONE = 42161,
POLYGON = 137,
SEPOLIA = 11155111,
GÖRLI = 5,

But here on the swagger we only see 2 chains:

https://api.uniswap.org/v2/uniswapx/docs

Image

Also, there is a mismatch with the returned chains:

Image
curl "https://api.uniswap.org/v2/orders?orderStatus=open&chainId=10&limit=1&sortKey=createdAt&desc=true" | jq

(Chain 10 as per code is not avail. from the API)


Where to get the source of truth?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions