Skip to content

Commit

Permalink
ECDSA addresses are longer (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
lAmeR1 authored Feb 14, 2023
1 parent dcd1426 commit c028281
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions endpoints/get_address_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async def get_transactions_for_address(
kaspaAddress: str = Path(
description="Kaspa address as string e.g. "
"kaspa:pzhh76qc82wzduvsrd9xh4zde9qhp0xc8rl7qu2mvl2e42uvdqt75zrcgpm00",
regex="^kaspa\:[a-z0-9]{61}$")):
regex="^kaspa\:[a-z0-9]{61,63}$")):
"""
Get all transactions for a given address from database
"""
Expand Down Expand Up @@ -76,7 +76,7 @@ async def get_full_transactions_for_address(
kaspaAddress: str = Path(
description="Kaspa address as string e.g. "
"kaspa:pzhh76qc82wzduvsrd9xh4zde9qhp0xc8rl7qu2mvl2e42uvdqt75zrcgpm00",
regex="^kaspa\:[a-z0-9]{61}$"),
regex="^kaspa\:[a-z0-9]{61,63}$"),
limit: int = Query(
description="The number of records to get",
ge=1,
Expand Down Expand Up @@ -114,7 +114,7 @@ async def get_transaction_count_for_address(
kaspaAddress: str = Path(
description="Kaspa address as string e.g. "
"kaspa:pzhh76qc82wzduvsrd9xh4zde9qhp0xc8rl7qu2mvl2e42uvdqt75zrcgpm00",
regex="^kaspa\:[a-z0-9]{61}$")
regex="^kaspa\:[a-z0-9]{61,63}$")
):
"""
Count the number of transactions associated with this address
Expand Down
2 changes: 1 addition & 1 deletion endpoints/get_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class BalanceResponse(BaseModel):
async def get_balance_from_kaspa_address(
kaspaAddress: str = Path(
description="Kaspa address as string e.g. kaspa:pzhh76qc82wzduvsrd9xh4zde9qhp0xc8rl7qu2mvl2e42uvdqt75zrcgpm00",
regex="^kaspa\:[a-z0-9]{61}$")):
regex="^kaspa\:[a-z0-9]{61,63}$")):
"""
Get balance for a given kaspa address
"""
Expand Down
2 changes: 1 addition & 1 deletion endpoints/get_utxos.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class UtxoResponse(BaseModel):
@app.get("/addresses/{kaspaAddress}/utxos", response_model=List[UtxoResponse], tags=["Kaspa addresses"])
async def get_utxos_for_address(kaspaAddress: str = Path(
description="Kaspa address as string e.g. kaspa:qqkqkzjvr7zwxxmjxjkmxxdwju9kjs6e9u82uh59z07vgaks6gg62v8707g73",
regex="^kaspa\:[a-z0-9]{61}$")):
regex="^kaspa\:[a-z0-9]{61,63}$")):
"""
Lists all open utxo for a given kaspa address
"""
Expand Down

0 comments on commit c028281

Please sign in to comment.