Add Block schema

This commit is contained in:
Luke Van Seters 2021-07-12 08:21:03 -04:00
parent e67922b5e6
commit bfc138f740
2 changed files with 13 additions and 0 deletions

1
schemas/__init__.py Normal file
View File

@ -0,0 +1 @@
from .blocks import Block

12
schemas/blocks.py Normal file
View 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]