Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lealobanov committed Nov 1, 2024
1 parent 774d359 commit 67c91f8
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions examples/transactions_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,25 +281,3 @@ async def run(self, ctx: Config):
f"transaction proposer: {transaction.proposal_key.address.hex()}"
)
self.log.info(f"transaction script: {transaction.script.decode('utf-8')}")


class DebuggingFetchTransactionByIdExample(Example):
def __init__(self) -> None:
super().__init__(
tag="T.LL.", name="DebuggingFetchTransactionByIdExample", sort_order=501
)

async def run(self, ctx: Config):
# First Step : Create a client to connect to the flow blockchain
# flow_client function creates a client using the host and port
async with flow_client(
# host=ctx.access_node_host, port=ctx.access_node_port
host="access.mainnet.nodes.onflow.org",
port=9000,
) as client:

tx_id = "ef6e6dcba87c5f853e0ec940dd382d609ffe11109c28ed239843d71618fa1d71"

transaction = await client.get_transaction_result(id=bytes.fromhex(tx_id))

print(f"Transaction ID: {tx_id}")

0 comments on commit 67c91f8

Please sign in to comment.