Skip to content

Commit

Permalink
Merge pull request #1112 from Agoric/dckc-patch-4
Browse files Browse the repository at this point in the history
docs(vstorage): start headings at level 1
  • Loading branch information
dckc authored Jun 10, 2024
2 parents bb3c8fa + fe37524 commit 89a7dd5
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 89a7dd5

Please sign in to comment.