Below are some examples of different ways you can configure Connect.
Custom networks and RPC endpoints
Specify supported networks/tokens and custom RPC endpoints. Your users may encounter rate limits using public RPC endpoints if you do not provide your own
These example config limits Connect to the Solana and Ethereum networks, and a handful of tokens including BSKT which is not built in by default and provided under the tokensConfig key.
Specify a set of extra networks to be displayed on the network selection modal, each of them linking to a different page/dApp/mobile app the user will be redirected to.
Property
description
moreNetworks.href
Default value for missing network hrefs
mandatory
moreNetworks.target
Default value for missing network link targets
optional, defaults to _self
moreNetworks.description
Brief description that should be displayed as tooltip when the user hover an more network icon. Used as default for missing network descriptions
optional
moreNetworks.networks[].icon
URL data encoded icon to display
mandatory
moreNetworks.networks[].href
Network href to redirect to. If present, the values {:sourceChain} and {:targetChain} are replaced with the selected currently selected chains before redirecting
optional
moreNetworks.networks[].label
Display text
mandatory
moreNetworks.networks[].name
Unique network key
optional, defaults to a snake_case version of the label
moreNetworks.networks[].description
Description value
optional, defaults to moreNetworks.description
moreNetworks.networks[].target
href target value
optional, defaults to moreNetworks.target
moreNetworks.networks[].showOpenInNewIcon
Disable top right open in new icon
optional, defaults to true if target is _blank or false if target is _self
Show a special entry on the select tokens modal which redirects the user to a different page/dApp/mobile app.
Property
description
moreTokens.label
Display text
mandatory
moreTokens.href
URL to redirect to. If present, the values {:sourceChain} and {:targetChain} are replaced with the selected currently selected chains before redirecting
mandatory
moreTokens.target
href target
optional, defaults to _self
Explorer
Enable explorer button to allow users to search for his transactions on a given explorer filtering by his wallet address
Property
description
explorer.label
Display text
optional, defaults to Transactions
explorer.href
URL of the explorer, for instance https://wormholescan.io/. If present, the values {:address} is replaced with the connected wallet address
mandatory
explorer.target
href target
optional, defaults to _blank
Last updated
Was this helpful?
See WormholeConnectConfig in for a full view of the supported config parameters.
This shows how to add an arbitrary token to your deployment of Connect. Please note you will need to your token with the Token Bridge to get the contract addresses necessary for it to work with Connect.
See for the type definition of TokensConfig.
If you have a CoinGecko API Plan, you can include the API key in the configuration. In case you do not have the API key, .