useConnectors
Composable for getting configured connectors.
Import
ts
import { useConnectors } from '@wagmi/vue'
Usage
vue
<script setup lang="ts">
import { useConnectors } from '@wagmi/vue'
const connectors = useConnectors()
</script>
ts
import { http, createConfig } from '@wagmi/vue'
import { mainnet, sepolia } from '@wagmi/vue/chains'
export const config = createConfig({
chains: [mainnet, sepolia],
transports: {
[mainnet.id]: http(),
[sepolia.id]: http(),
},
})
Return Type
ts
import { type UseConnectorsReturnType } from '@wagmi/vue'
readonly Connector[]
Connectors from config.connectors
.