Skip to content

Commit

Permalink
docs: update block identifier doc
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalzieu authored and fracek committed Aug 19, 2022
1 parent 1dae3b1 commit b434299
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/docs/hooks/call.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ const { data, loading, error, refresh } = useStarknetCall({ contract, method, ar
method?: string
args?: T
options?: {
watch?: boolean
watch?: boolean,
blockIdentifier?: BlockIdentifier
}
}
```

If `options.watch` (default: `true`) is set to `false`, the hook will fetch the
contract value only once.
If `options.blockIdentifier` (default: `pending`) is set, it is passed to the feeder gateway in the `call_contract` method.

## Return Values

Expand Down

0 comments on commit b434299

Please sign in to comment.