Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(vstorage): start headings at level 1 #1112

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions main/guides/getting-started/ui-tutorial/querying-vstorage.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## Querying Vstorage
# Querying Vstorage

A fundamental part of building a Dapp UI is interacting with smart contracts. How can a UI
read data from a smart contract on the Agoric blockchain? This section will show you how,
using the available tools and libraries at your disposal.

### ChainStorageWatcher
## ChainStorageWatcher

Recall from the previous section the `useAgoric` hook. Another utility the hook provides is
the `chainStorageWatcher`. This utility is also available on its own through the [@agoric/rpc](https://www.npmjs.com/package/@agoric/rpc)
Expand All @@ -17,7 +17,7 @@ Example:
const { chainStorageWatcher } = useAgoric();
```

### Querying Vstorage
## Querying Vstorage

In order to submit an offer to a contract, we need to look it up on-chain first.
We'll find it in vstorage under `published.agoricNames.instance` (see: [vstorage reference](../../../reference/vstorage-ref.md)).
Expand Down
Loading