Skip to content

useCosmWasmClient

Hook for fetching a CosmWasmClient instance

Import

import { useCosmWasmClient } from '@abstract-money/react'

Usage

index.tsx
import { useCosmWasmClient } from '@abstract-money/react'
 
function App() {
 const cosmWasmClient = useCosmWasmClient({ chainName: 'pion' })
}

Parameters

chainName

string | undefined

Name of the chain to be used to fetch the query.

query

QueryOptions | undefined

QueryOptions to use.