Add Block schema
This commit is contained in:
parent
e67922b5e6
commit
bfc138f740
1
schemas/__init__.py
Normal file
1
schemas/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
from .blocks import Block
|
12
schemas/blocks.py
Normal file
12
schemas/blocks.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from typing import List, Optional
|
||||||
|
|
||||||
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
|
||||||
|
class Block(BaseModel):
|
||||||
|
block_number: int
|
||||||
|
calls: List[dict]
|
||||||
|
data: dict
|
||||||
|
logs: List[dict]
|
||||||
|
receipts: dict
|
||||||
|
transaction_hashes: List[str]
|
Loading…
x
Reference in New Issue
Block a user