Getting Started

This section will help you build a basic Vueth site. It assumes you already have a Vue.js project setup. If not, I suggest trying Vite to get started. It will provide you with a perfect starting point.

  • Step 1 Install Vueth & the required dependencies
yarn install vueth ethers ethers-multicall
  • Step 2 In your apps main entry file, Initialize the plugin
import Vueth from 'vueth'

createApp(App)
    .use(Vueth) // <- Add This Line
    .mount('#app')
  • Step 2.5 In most cases you will likely want to configure the base install & provide some options.
import Vueth from 'vueth'

createApp(App)
    .use(Vueth, {
        // required to fetch data when not connected to MetaMask
        rpc: 'https://rpc.ftm.tools',
        chainId: 250,
        autoConnect: true,
    })
    .mount('#app')