Skip to main content

Function: useAddress()

useAddress(params: {address: string;query: {}; }): UseQueryResult<Address, Error>

Parameters

ParameterTypeDescription
paramsobject
params.addressstringFetch a specific address.
params.query?QueryOptions<Address>See Tanstack Query - useQuery options.

Returns

UseQueryResult<Address, Error>

Example

const {
data,
isLoading,
isError,
error,
refetch,
...moreUseQueryResults
} = useAddress();

See

API Documentation

Defined in

sdk-react-provider/src/lib/hooks.tsx:297