Data Logic
Current Version : MCDW v1.3
Blocks
Each block includes information about the version of the Starknet protocol used when creating the block, as defined by Starknet documentation.
This is stored in blocks.protocol_version
PROTOCOL_VERSION | MIN(BLOCK_NUMBER) | MAX(BLOCK_NUMBER) |
---|---|---|
| 0 | 3798 |
| 3799 | 4882 |
| 4883 | 6569 |
| 6570 | 12267 |
| 12268 | 16574 |
| 16575 | 28612 |
| 28613 | 43850 |
| 43851 | 61393 |
| 61394 | 68095 |
| 68096 | 103128 |
| 103129 | 164900 |
| 164901 | 472643 |
| 194411 | 472643 |
| 472644 | 501513 |
| 501514 | 607877 |
| 607878 |
|
Transactions
Transaction Type & Version
Starknet supports the following types of transactions (TX_TYPE
) and their corresponding versions (TX_VERSION
), as defined in the official Starknet documentation
Type | Description | TX_TYPE | TX_VERSION* |
---|---|---|---|
| Invokes an existing function in a contract. |
|
|
| [DEPRECATED] |
|
|
| Deploys new account contracts in smart wallets |
|
|
| [DEPRECATED] Deploys new account contracts in smart wallets |
|
|
| Declares new contract classes, enabling new contract instances. |
|
|
Type | Current version | Deprecated versions | Unsupported versions |
---|---|---|---|
0 - | v3 | v1, v0 | N/A |
4 - | v3 | v2, v1 | v0 |
2 - | v3 | v0 | N/A |
3 - | N/A | N/A | v0 |
1 - | N/A | N/A | v0 |
Depending on the transaction type and version, some columns will not be populated (NULL
) or can have different mappings compared to the RPC endpoints.
TX_TYPE | TX_VERSION | FROM_ADDRESS | TO_ADDRESS |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Events
Our dataset includes both receipt events and trace events:
receipt_events
sourced viastarknet_getBlockWithReceipts
RPC method. This is considered the source of truth for events.events
(trace events) sourced viastarknet_traceBlockTransactions
RPC method, including events in reverted transactions (reverted events) and the link between calls and events.
In most cases events are identical in both tables, however, in some edge cases, there are differences causing for incorrect account balances:
transaction trace is incorrectly flagging a transaction as being reverted, missing all events but the fee transfer event;
fee transfer events having variations in the value of the event.
Last updated