Skip to content

Commit b2106e8

Browse files
committed
feat: use new endpoint to get message status
1 parent bb02aca commit b2106e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/aleph/sdk/client/http.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,9 @@ async def get_program_price(self, item_hash: str) -> PriceResponse:
516516

517517
async def get_message_status(self, item_hash: str) -> MessageStatus:
518518
"""return Status of a message"""
519-
async with self.http_session.get(f"/api/v0/messages/{item_hash}") as resp:
519+
async with self.http_session.get(
520+
f"/api/v0/messages/{item_hash}/status"
521+
) as resp:
520522
if resp.status == HTTPNotFound.status_code:
521523
raise MessageNotFoundError(f"No such hash {item_hash}")
522524
resp.raise_for_status()

0 commit comments

Comments
 (0)