mirror of
https://github.com/logos-blockchain/logos-blockchain-block-explorer-template.git
synced 2026-02-17 03:23:13 +00:00
add missing info serializer
This commit is contained in:
parent
781552e2af
commit
dda9e4e714
9
src/node/api/serializers/info.py
Normal file
9
src/node/api/serializers/info.py
Normal file
@ -0,0 +1,9 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class InfoSerializer(BaseModel):
|
||||
lib: str # Last Irreversible Block hash
|
||||
tip: str # Current tip block hash
|
||||
slot: int # Current slot
|
||||
height: int # Current height
|
||||
mode: str # Node mode (e.g., "Online")
|
||||
Loading…
x
Reference in New Issue
Block a user