Skip to main content


Hook to fetch data from a StarkNet contract. The data is automatically refreshed at every block.

import { useStarknetCall } from '@starknet-react/core'

const { data, loading, error, refresh } = useStarknetCall({ contract, method, args })


contract?: Contract
method?: string
args?: T
options?: {
watch?: boolean

If (default: true) is set to false, the hook will fetch the contract value only once.

Return Values

data?: Array<any>
loading: boolean
error?: string
refresh: () => void