Skip to content

useRemoteHosts

Hook for fetching remote hosts

Import

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

Usage

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

Parameters

chainName

string | undefined

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

query

QueryOptions | undefined

QueryOptions to use.

extra

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

Extra options to override decorated parameters.