Limit Destination

Flexy lets you limit the destination chain to a particular chain or a number of chains. This is useful if you're trying to allow gas acquisition on only the chain(s) your dApp supports or in any other scenario as the case may be.

Single Destination

export const YourApp = () => {
  return (
    <Flexy
      /* other props */
      limitDestination={1} // locks gas destination to ethereum mainnet only
    />
  )
};

Custom Destination List

Asides limiting the destination to just one particular chain, you can also limit the destination to a custom list of chains as demonstrated below:

export const YourApp = () => {
  return (
    <Flexy
      /* other props */
      limitDestination={[1, 137]}
    />
  )
};

The snippet above limits the gas delivery destination to allow either ethereum or polygon so in the destination chain dropdown, only these chains will show up.

Supported ChainIds

You can provide as many chains as you please when using a custom destination list but the provided chains must already be supported by Flexy in order to show up in the destination chain dropdown. Below is a list of chains we currently support

  • Arbitrum ✅

  • Avalanche ✅

  • Base ✅

  • BSC ✅

  • Cronos ✅

  • Ethereum ✅

  • Fantom ✅

  • Kava ✅

  • Linea ✅

  • Optimism ✅

  • Polygon ✅

  • Scroll ✅

  • Mode ✅

  • Meter ✅

  • Blast ✅

  • Manta ✅

Last updated