Skip to content

Minimal configuration

Tulipe is designed to work out-of-the-box, however in order to allow it to manage our DApp we have to tells it :

  • which networks our DApp is supporting
  • which wallets are available to connect to it

To achieve that we firstly have to create a tulipe.config.js file in the src/ folder of our Vue project :

bash
touch src/tulipe.config.js
1

Then we invites you to fill it with this minimal example :

js
export const tulipeConfig = {
  networks: [
    {id: 1},
  ],
  wallets: [
    {name: "metamask"},
  ]
}
1
2
3
4
5
6
7
8

This minimal configuration indicates that our DApp is available on Ethereum Mainnet (chain ID = 1) and that the Metamask wallet can be used to connect to it.

Because Tulipe comes with 20+ EVM chain and 5+ pre-configured wallets, in that case we only need to indicate the id and the wallet's name.

So our minimal configuration is done !

Released under the MIT License.