waclaw-claw 2d95bd3baa feat: add transaction search functionality
- Add search endpoint to backend (GET /api/v1/transactions/search)
- Support search by transaction hash (partial match) or block height
- Add search bar UI to TransactionsTable component
- Increase default page size from 10 to 50 transactions
- Add Block Height and Block Slot columns to transaction table
- Debounce search input (300ms) for better UX

Fixes:
- Fix health endpoint JSON serialization
- Fix main.py import path
2026-03-28 03:16:02 -04:00

43 lines
903 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import asyncio
from os import getenv
import uvicorn
from dotenv import load_dotenv
from src.app import create_app
from logs import setup_logging
async def main():
base_path = getenv("NBE_BASE_PATH", "").strip().rstrip("/")
app = create_app(base_path)
host = getenv("NBE_HOST", "0.0.0.0")
port = int(getenv("NBE_PORT", 8000))
config = uvicorn.Config(
app,
host=host,
port=port,
reload=False,
loop="asyncio",
log_config=None,
)
server = uvicorn.Server(config)
try:
await server.serve()
except KeyboardInterrupt:
# Swallow debuggers SIGINT
pass
# Pycharm-Debuggable Uvicorn Server
if __name__ == "__main__":
try:
load_dotenv()
setup_logging()
asyncio.run(main())
except KeyboardInterrupt:
# Graceful stop triggered by debugger/CTRL-C
pass