@@ -60,19 +60,19 @@ For production applications, consider running your own Sidecar instance. See [Ru
6060
6161The ` /accounts/{accountId}/balance-info ` endpoint returns an account's native token balance, including free, reserved, and frozen amounts.
6262
63- ### Request
63+ ** Request**
6464
6565``` bash
6666curl -s " https://polkadot-asset-hub-public-sidecar.parity-chains.parity.io/accounts/<INSERT_ADDRESS>/balance-info"
6767```
6868
69- ### Response
69+ ** Response**
7070
7171``` json
7272--8<-- "code/chain-interactions/query-data/query-rest/balance-info-response.json"
7373```
7474
75- ### Response Fields
75+ ** Response fields **
7676
7777| Field | Description |
7878| -------| -------------|
@@ -86,7 +86,7 @@ curl -s "https://polkadot-asset-hub-public-sidecar.parity-chains.parity.io/accou
8686| ` transferable ` | Actual balance available to transfer |
8787| ` locks ` | Array of balance locks with their reasons |
8888
89- ### Query at a Specific Block
89+ ** Query at a specific block **
9090
9191You can query the balance at a specific block height or hash using the ` at ` query parameter:
9292
@@ -102,13 +102,13 @@ curl -s "https://polkadot-asset-hub-public-sidecar.parity-chains.parity.io/accou
102102
103103The ` /accounts/{accountId}/asset-balances ` endpoint returns an account's balances for assets managed by the Assets pallet.
104104
105- ### Request All Asset Balances
105+ ** Request all asset balances **
106106
107107``` bash
108108curl -s " https://polkadot-asset-hub-public-sidecar.parity-chains.parity.io/accounts/<INSERT_ADDRESS>/asset-balances"
109109```
110110
111- ### Request Specific Asset Balance
111+ ** Request Specific Asset Balance**
112112
113113To query a specific asset, provide the asset ID as a query parameter:
114114
@@ -124,16 +124,18 @@ curl -s "https://polkadot-asset-hub-public-sidecar.parity-chains.parity.io/accou
124124 curl -s "https://polkadot-asset-hub-public-sidecar.parity-chains.parity.io/accounts/<INSERT_ADDRESS>/asset-balances?assets[]=1984"
125125 ```
126126
127- ### Response
127+ ** Response**
128128
129129``` json
130130--8<-- "code/chain-interactions/query-data/query-rest/asset-balances-response.json"
131131```
132132
133- ### Response Fields
133+ ** Response fields **
134134
135135| Field | Description |
136136| -------| -------------|
137+ | ` at.hash ` | Block hash at which the query was executed |
138+ | ` at.height ` | Block number at which the query was executed |
137139| ` assetId ` | Unique identifier for the asset |
138140| ` balance ` | Account's balance of this asset (in smallest unit) |
139141| ` isFrozen ` | Whether the account's asset balance is frozen |
@@ -142,7 +144,7 @@ curl -s "https://polkadot-asset-hub-public-sidecar.parity-chains.parity.io/accou
142144!!! note
143145 The ` isSufficient ` field in the asset balance response is a per-account flag. To check if an asset is configured as a sufficient asset (can pay for account existence), query the [ Asset Details] ( #query-asset-details ) endpoint and check the ` isSufficient ` field there.
144146
145- ### Query Multiple Assets
147+ ** Query multiple assets **
146148
147149You can query multiple assets in a single request:
148150
@@ -162,13 +164,13 @@ curl -s "https://polkadot-asset-hub-public-sidecar.parity-chains.parity.io/accou
162164
163165Use the pallet storage endpoint to query asset metadata like name, symbol, and decimals.
164166
165- ### Request
167+ ** Request**
166168
167169``` bash
168170curl -s " https://polkadot-asset-hub-public-sidecar.parity-chains.parity.io/pallets/assets/storage/Metadata?keys[]=1984"
169171```
170172
171- ### Response
173+ ** Response**
172174
173175``` json
174176--8<-- "code/chain-interactions/query-data/query-rest/asset-metadata-response.json"
@@ -183,22 +185,24 @@ The `name` and `symbol` fields are returned as hex-encoded strings. To decode th
183185
184186Query the asset configuration including owner, supply, and account count:
185187
186- ### Request
188+ ** Request**
187189
188190``` bash
189191curl -s " https://polkadot-asset-hub-public-sidecar.parity-chains.parity.io/pallets/assets/storage/Asset?keys[]=1984"
190192```
191193
192- ### Response
194+ ** Response**
193195
194196``` json
195197--8<-- "code/chain-interactions/query-data/query-rest/asset-details-response.json"
196198```
197199
198- ### Response Fields
200+ ** Response fields **
199201
200202| Field | Description |
201203| -------| -------------|
204+ | ` at.hash ` | Block hash at which the query was executed |
205+ | ` at.height ` | Block number at which the query was executed |
202206| ` owner ` | Account that owns the asset |
203207| ` issuer ` | Account authorized to mint new tokens |
204208| ` admin ` | Account with administrative privileges |
@@ -222,13 +226,13 @@ curl -s "https://polkadot-asset-hub-public-sidecar.parity-chains.parity.io/accou
222226
223227The ` /blocks/{blockId} ` endpoint returns detailed block information including extrinsics and events.
224228
225- ### Request Latest Block
229+ ** Request latest block **
226230
227231``` bash
228232curl -s " https://polkadot-asset-hub-public-sidecar.parity-chains.parity.io/blocks/head"
229233```
230234
231- ### Request Specific Block
235+ ** Request specific block **
232236
233237``` bash
234238# By block number
@@ -238,7 +242,7 @@ curl -s "https://polkadot-asset-hub-public-sidecar.parity-chains.parity.io/block
238242curl -s " https://polkadot-asset-hub-public-sidecar.parity-chains.parity.io/blocks/0x..."
239243```
240244
241- ### Response
245+ ** Response**
242246
243247``` json
244248--8<-- "code/chain-interactions/query-data/query-rest/block-response.json"
0 commit comments