Skip to content

useAbstractModuleVersion

Hook for fetching Abstract module version

Import

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

Usage

index.tsx
import { useAbstractModuleVersion } from '@abstract-money/react'
 
function App() {
  const abstractModuleVersion = useAbstractModuleVersion({
    chainName: 'osmosis',
    args: {
      moduleName: 'abstract',
    },
  })
}

Parameters

chainName

string | undefined

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

args

Arguments passed to the query.

moduleName

string

Name of the module to query the version for.

version

string | undefined

Optional. Specific version to query for. If not provided, the latest version will be returned.

extra

{
    apiUrl?: string | undefined;
    cosmWasmClient?: CosmWasmClient | undefined;
} | undefined

Extra options to override decorated parameters.

query

QueryOptions | undefined

QueryOptions to use.