Skip to content

# Query the blockchain events filtering specifically for the OSEC reference budget_events = contract.events.BudgetLogged().get_logs( fromBlock=0, toBlock="latest" ) print(f"--- Searching Logs for Allotment: OSEC-2026-06248 ---") for event in budget_events: # Check if the text metadata contains your specific DBM/DPWH routing number if "OSEC-2026-06248" in event['args']['pdfSource'] or "OSEC-2026-06248" in event['args']['expenseType']: print(f"Transaction Found! Block: {event['blockNumber']}") print(f"Tx Hash: {event['transactionHash'].hex()}") print(f"Linked IPFS Folder Hash: ipfs://{event['args']['uri']}")  #2307

Description

@cindylhiam01-jpg

Query the blockchain events filtering specifically for the OSEC reference

budget_events = contract.events.BudgetLogged().get_logs(
fromBlock=0,
toBlock="latest"
)

print(f"--- Searching Logs for Allotment: OSEC-2026-06248 ---")
for event in budget_events:
# Check if the text metadata contains your specific DBM/DPWH routing number
if "OSEC-2026-06248" in event['args']['pdfSource'] or "OSEC-2026-06248" in event['args']['expenseType']:
print(f"Transaction Found! Block: {event['blockNumber']}")
print(f"Tx Hash: {event['transactionHash'].hex()}")
print(f"Linked IPFS Folder Hash: ipfs://{event['args']['uri']}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions