Skip to content

Commit 76b4eee

Browse files
author
balogh.adam@icloud.com
committed
txn hash example
1 parent 221285e commit 76b4eee

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

examples/llm_chat.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,12 @@ async def main():
2424
)
2525
print(result.chat_output["content"])
2626

27+
print("\n" + "=" * 40)
28+
tx_hash = result.data_settlement_transaction_hash
29+
if tx_hash:
30+
print(f"Settlement tx: {tx_hash}")
31+
print(f"Explorer: https://explorer.opengradient.ai/tx/{tx_hash}?tab=index")
32+
else:
33+
print("No settlement tx hash returned")
2734

2835
asyncio.run(main())

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)