Function: useAddresses()
useAddresses(
params
?: {chain
:ChainId
|Chain
;profile
:string
;query
:{}
; }):UseQueryResult
<AddressesResponse
,Error
>
Parameters
Parameter | Type | Description |
---|---|---|
params ? | object | No required parameters. |
params.chain ? | ChainId | Chain | Filter based on chain - CURRENTLY RETURNS AN ERROR. |
params.profile ? | string | Filter based on profile id. |
params.query ? | QueryOptions <AddressesResponse > | See Tanstack Query - useQuery options. |
Returns
UseQueryResult
<AddressesResponse
, Error
>
Example
const {
data,
isLoading,
isError,
error,
refetch,
...moreUseQueryResults
} = useAddresses();