ChainId
namespace provides constants of Chain IDs for blockchains supported by the SDK.number
type. This is to enable simple interoperability of these values between various codebases.number
s, exported as constants from the ChainId
namespace. All of these Chain IDs are supported and useable on the Synapse Protocol.ETH
(Ethereum mainnet)1
OPTIMISM
(Optimism mainnet)10
BSC
(Binance Smart Chain mainnet)56
POLYGON
(Polygon Mainnet)137
FANTOM
(Fantom mainnet)250
BOBA
(Boba mainnet)288
MOONBEAM
(Moonbeam mainnet)1284
MOONRIVER
(Moonriver mainnet)1285
ARBITRUM
(Arbitrum mainnet)42161
AVALANCHE
(Avalanche C-Chain mainnet)43114
AURORA
(Aurora mainnet)1313161554
HARMONY
(Harmony mainnet)1666600000
asBigNumber
BigNumberish
into a BigNumber
.n: BigNumberish
BigNumber
n
casted into a BigNumber
instance.asBigNumber
BigNumberish
into a number
.n: BigNumberish
number
n
returned as a standard NodeJS number
.supportedChainIds
numbers
corresponding to the chain ids of all networks supported by the Synapse Protocol.number[]
ETH
, OPTIMISM
, BSC
, POLYGON
, FANTOM
, BOBA
, MOONBEAM
, MOONRIVER
, ARBITRUM
, AVALANCHE
, AURORA
, and HARMONY
.