NoahNetwork

Convenience constants for the CAIP-2 chain IDs that connect-api accepts in Noah network parameters.

Only chains present in connect-api's CAIP2_TO_NOAH_NETWORK map are included. Passing any other value is rejected with a 400 (io.portalhq.android.exceptions.PortalException.Api.HttpBadRequest) because the chain is not mapped to a Noah network.

The BFF first validates the [namespace]:[reference] format and then translates the chain ID into Noah's internal network string (e.g. "eip155:1" ->"Ethereum"). A non-CAIP-2 value (e.g. "ethereum") fails the format check and is rejected with a 400 as well.

Branch on the exception type and rawBody rather than the error message text — the wording of these backend messages is not a stable API.

Properties

Link copied to clipboard
const val BASE: String

Base mainnet — eip155:8453 -> Noah "Base".

Link copied to clipboard
const val BASE_SEPOLIA: String

Base Sepolia testnet — eip155:84532 -> Noah "BaseTestSepolia".

Link copied to clipboard
const val ETHEREUM: String

Ethereum mainnet — eip155:1 -> Noah "Ethereum".

Link copied to clipboard

Ethereum Sepolia testnet — eip155:11155111 -> Noah "EthereumTestSepolia". Use with sandbox-only test assets such as USDC_TEST.

Link copied to clipboard
const val GNOSIS: String

Gnosis mainnet — eip155:100 -> Noah "Gnosis".

Link copied to clipboard

Gnosis Chiado testnet — eip155:10200 -> Noah "GnosisTestChiado".

Link copied to clipboard
const val POLYGON: String

Polygon PoS mainnet — eip155:137 -> Noah "PolygonPos".

Link copied to clipboard
const val POLYGON_AMOY: String

Polygon Amoy testnet — eip155:80002 -> Noah "PolygonTestAmoy".

Link copied to clipboard
const val SOLANA: String

Solana mainnet — solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp -> Noah "Solana". Equivalent to solana:mainnet on the BFF.

Link copied to clipboard

Solana devnet — solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 -> Noah "SolanaDevnet". Equivalent to solana:devnet on the BFF.