Assets
useChains
Receive the chains that are supported by Orderly.
const [chains, { findByChainId }] = useChains();
The findByChainId
function can be used to get the config of a particular chain by the chain id.
const [_, { findByChainId }] = useChains();
const chain = findByChainId(421613);