Skip to content

Commit c2c6986

Browse files
author
Sourabh Niyogi
committed
Substrate Raw+Decoded Stub Docs
1 parent ed3b394 commit c2c6986

File tree

10 files changed

+286
-0
lines changed

10 files changed

+286
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Balances
2+
3+
## **{chain}.balances**
4+
5+
This table contains historical balances information:
6+
7+
| **Column name** | **Type** | **Description** |
8+
| --------------------- | ------------------------------- | -------------------------------------------------------- |
9+
| ts | timestamp without timezone | Timestamp of balance |
10+
| symbol | string | Token Symbol |
11+
| address_ss58 | string | SS58 Address of Asset holder |
12+
| address_pubkey | binary | Pubkey of holder |
13+
| id | string | Chain ID (e.g. "polkadot") |
14+
| chain_name | string | Chain Name (e.g. "KILT Spirit") |
15+
| asset | string | |
16+
| para_id | long | |
17+
| free | double | |
18+
| free_usd | double | |
19+
| reserved | double | |
20+
| reserved_usd | double | |
21+
| misc_frozen | double | |
22+
| misc_frozen_usd | double | |
23+
| frozen | double | |
24+
| frozen_usd | double | |
25+
| price_usd | double | |
26+
| nonce | long | |
27+
| free_raw | string | |
28+
| reserved_raw | string | |
29+
| misc_frozen_raw | string | |
30+
| frozen_raw | string | |
31+
| flags_raw | string | |
32+
33+
Balances are taken at the end of each day.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Blocks
2+
3+
## **{chain}.blocks**
4+
5+
This table contains historical blocks information:
6+
7+
| **Column name** | **Type** | **Description** |
8+
| --------------------- | ------------------------------- | -------------------------------------------------------- |
9+
| block_time | timestamp | |
10+
| number | long | |
11+
| spec_version | long | |
12+
| relay_block_number | long | |
13+
| hash | binary | |
14+
| parent_hash | binary | |
15+
| state_root | binary | |
16+
| extrinsics_root | binary | |
17+
| author_ss58 | string | |
18+
| author_pub_key | binary | |
19+
| relay_state_root | binary | |
20+
| extrinsic_count | long | |
21+
| event_count | long | |
22+
| transfer_count | long | |
23+
| trace_count | long | |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Calls
2+
3+
## **{chain}.calls**
4+
5+
This table contains historical calls information:
6+
7+
8+
9+
| **Column name** | **Type** | **Description** |
10+
| --------------------- | ------------------------------- | -------------------------------------------------------- |
11+
| block_number | bigint | |
12+
| block_time | timestamp | |
13+
| extrinsic_id | string | |
14+
| relay_chain | string | |
15+
| para_id | bigint | |
16+
| id | string | |
17+
| block_hash | binary | |
18+
| extrinsic_hash | binary | |
19+
| extrinsic_section | string | |
20+
| extrinsic_method | string | |
21+
| call_id | string | |
22+
| call_index | binary | |
23+
| call_args | string | |
24+
| call_args_def | string | |
25+
| root | boolean | |
26+
| leaf | boolean | |
27+
| fee | double | |
28+
| fee_usd | double | |
29+
| weight | bigint | |
30+
| signed | boolean | |
31+
| signer_ss58 | string | |
32+
| signer_pub_key | binary | |
33+
| lifetime | string | |
34+
35+
36+
Calls are only included if the extrinsic is _successful_.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Events
2+
3+
## **{chain}.events**
4+
5+
This table contains historical events information:
6+
7+
| **Column name** | **Type** | **Description** |
8+
| --------------------- | ------------------------------- | -------------------------------------------------------- |
9+
| block_time | timestamp |
10+
| block_number | bigint |
11+
| extrinsic_id | string |
12+
| event_id | string |
13+
| data | string |
14+
| extrinsic_hash | binary |
15+
| block_hash | binary |
16+
| data_decoded | string |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Extrinsics
2+
3+
## **{chain}.extrinsics**
4+
5+
This table contains historical extrinsics information:
6+
7+
| **Column name** | **Type** | **Description** |
8+
| --------------------- | ------------------------------- | -------------------------------------------------------- |
9+
| block_time | timestamp | |
10+
| block_number | long | |
11+
| extrinsic_id | string | |
12+
| hash | binary | |
13+
| block_hash | binary | |
14+
| lifetime | string | |
15+
| params | string | |
16+
| fee | double | |
17+
| weight | long | |
18+
| signed | boolean | |
19+
| signer_ss58 | string | |
20+
| signer_pub_key | binary | |
21+
| fee_usd | double | |
22+
23+
24+
Extrinsics are included if the extrinsic _successful_ or _failed_.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: Substrate Tables
3+
description: Third-party Indexer Colorful Notion indexes Polkadot and Kusama ecosystem data into 6 core Substrate tables.
4+
---
5+
6+
<div class="grid cards" markdown>
7+
8+
- #### Substrate tables
9+
10+
---
11+
12+
Across all Substrate chains (at present, Polkadot, Kusama, their system chains and parachains), the following tables are available:
13+
14+
[→ Blocks tables](blocks.md)
15+
16+
[→ Extrinsics tables](extrinsics.md)
17+
18+
[→ Calls tables](calls.md)
19+
20+
[→ Transfers tables](blocks.md)
21+
22+
[→ Blocks tables](blocks.md)
23+
24+
[→ Balances tables](balances.md)
25+
26+
- #### Special Tables
27+
28+
---
29+
30+
The following tables are only available for Polkadot and Kusama:
31+
32+
[→ Stakings](stakings.md)
33+
34+
[→ Traces tables](traces.md)
35+
36+
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Stakings
2+
3+
## **{chain}.stakings**
4+
5+
This table contains historical staking information:
6+
7+
8+
| **Column name** | **Type** | **Description** |
9+
| --------------------- | ------------------------------- | -------------------------------------------------------- |
10+
| block_number | long | |
11+
| ts | timestamp | |
12+
| era | long | |
13+
| address_ss58 | string | |
14+
| address_pubkey | binary | |
15+
| block_hash | binary | |
16+
| submitted_in | long | |
17+
| suppressed | boolean | |
18+
| validator_total | double | |
19+
| validator_own | double | |
20+
| validator_commission | double | |
21+
| validator_reward_shares | double | |
22+
| validator_reward_points | long | |
23+
| validator_staking_rewards | double | |
24+
| total_staked | double | |
25+
| total_reward_points | long | |
26+
| total_staking_rewards | double | |
27+
| nominationpools_id | long | |
28+
| nominationpools_total | double | |
29+
| nominationpools_member_cnt | long | |
30+
| nominationpools_commission | double | |
31+
| nominationpools_rewardpools | string | |
32+
| member_bonded | double | |
33+
| member_unbonded | double | |
34+
| member_share | double | |
35+
| targets | array<string> | |
36+
| pv | string | |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Traces
2+
3+
## **{chain}.traces**
4+
5+
This table contains historical traces information:
6+
7+
| **Column name** | **Type** | **Description** |
8+
| --------------------- | ------------------------------- | -------------------------------------------------------- |
9+
| ts | timestamp | |
10+
| block_number | long | |
11+
| trace_id | string | |
12+
| extrinsic_id | string | |
13+
| relay_chain | string | |
14+
| para_id | string | |
15+
| id | string | |
16+
| chain_name | string | |
17+
| block_hash | binary | |
18+
| k | binary | |
19+
| v | binary | |
20+
| pk_extra | string | |
21+
| pv | string | |
22+
| symbol | string | |
23+
| decimals | long | |
24+
| asset | string | |
25+
| asset_name | string | |
26+
| asset_type | string | |
27+
| xcm_interior_key | string | |
28+
| address_ss58 | string | |
29+
| address_pubkey | binary | |
30+
| flags | string | |
31+
| free | double | |
32+
| free_usd | double | |
33+
| free_raw | string | |
34+
| reserved | double | |
35+
| reserved_raw | string | |
36+
| reserved_usd | double | |
37+
| frozen | double | |
38+
| frozen_raw | string | |
39+
| frozen_usd | double | |
40+
| misc_frozen | double | |
41+
| misc_frozen_raw | string | |
42+
| misc_frozen_usd | double | |
43+
| fee_frozen | double | |
44+
| fee_frozen_raw | string | |
45+
| fee_frozen_usd | double | |
46+
| total_issuance | double | |
47+
| total_issuance_usd | double | |
48+
| total_issuance_raw | string | |
49+
| price_usd | double | |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Transfers
2+
3+
## **{chain}.transfers**
4+
5+
This table contains historical transfers
6+
7+
| **Column name** | **Type** | **Description** |
8+
| --------------------- | ------------------------------- | -------------------------------------------------------- |
9+
| block_time | timestamp | |
10+
| block_number | long | |
11+
| event_id | string | |
12+
| extrinsic_id | string | |
13+
| section | string | |
14+
| method | string | |
15+
| extrinsic_hash | binary | |
16+
| block_hash | binary | |
17+
| from_ss58 | string | |
18+
| from_pub_key | binary | |
19+
| to_ss58 | string | |
20+
| to_pub_key | binary | |
21+
| asset | string | |
22+
| price_usd | double | |
23+
| amount_usd | double | |
24+
| symbol | string | |
25+
| decimals | long | |
26+
| amount | double | |
27+
| raw_amount | decimal(38,9) | |
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Raw Tables (Substrate)
3+
description: Instead of working with the raw Substrate tables, decoded data.
4+
---
5+
6+
See [Decoded Substrate Tables](../../decoded/substrate/index.md)

0 commit comments

Comments
 (0)