Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

React Hooks

The React package exposes hooks for wallet connection, chain state, signing, transactions, and contract calls.

Prerequisite

import { QueryClient } from '@tanstack/react-query'
import { createConfig, iwallet, mainnet, IvemProvider } from '@ivem/kit-react'
 
const config = createConfig({
  chains: [mainnet],
  connector: iwallet(),
})
 
const queryClient = new QueryClient()
 
export function App() {
  return (
    <IvemProvider config={config} queryClient={queryClient}>
      {/* your app */}
    </IvemProvider>
  )
}

Hook List