Skip to content

Commit 468a6e2

Browse files
committed
switch around formatting
1 parent af5237e commit 468a6e2

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

develop/toolkit/api-libraries/dedot.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,13 @@ Or open a pull request to add your favorite network to the [`@dedot/chaintypes`]
111111

112112
Dedot provides several ways to read data from the chain:
113113

114-
- **Access runtime constants**:
115-
116-
Runtime constants (parameter types) can be inspected with the syntax: `client.consts.<pallet>.<constantName>`.
114+
- **Access runtime constants** - use the syntax `client.consts.<pallet>.<constantName>` to inspect runtime constants (parameter types):
117115

118116
```typescript
119117
--8<-- "code/develop/toolkit/api-libraries/dedot/runtime-constants.ts"
120118
```
121119

122-
- **Storage queries**:
123-
124-
On-chain storage can be queried with the syntax: `client.query.<pallet>.<storgeEntry>`.
120+
- **Storage queries** - use the syntax `client.query.<pallet>.<storgeEntry>` to query on-chain storage:
125121

126122
```typescript
127123
--8<-- "code/develop/toolkit/api-libraries/dedot/storage-queries.ts"
@@ -133,17 +129,13 @@ Dedot provides several ways to read data from the chain:
133129
--8<-- "code/develop/toolkit/api-libraries/dedot/subscribe-storage-changes.ts"
134130
```
135131

136-
- **Call Runtime APIs**:
137-
138-
Runtime APIs can be executed with the syntax `client.call.<runtimeApi>.<methodName>`.
132+
- **Call Runtime APIs** - use the syntax `client.call.<runtimeApi>.<methodName>` to execute Runtime APIs:
139133

140134
```typescript
141135
--8<-- "code/develop/toolkit/api-libraries/dedot/call-runtime-apis.ts"
142136
```
143137

144-
- **Watching on-chain events**:
145-
146-
Pallet events can be accessed with the syntax: `client.events.<pallet>.<eventName>`.
138+
- **Watch on-chain events** - use the syntax `client.events.<pallet>.<eventName>` to access pallet events:
147139

148140
```typescript
149141
--8<-- "code/develop/toolkit/api-libraries/dedot/watch-on-chain-events.ts"

0 commit comments

Comments
 (0)