ipfs / ipfs/ipfs-docs

# 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['blockNu

Open
#2,307 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
332
Forks
499
Avg merge
8d 14h
Merged PRs (30d)
2

Description

# 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']}")

Contributor guide

Open the contributing guide

Research direction

The issue only provides a Python query using contract.events.BudgetLogged().get_logs() and filters event args for an OSEC reference. Start by clarifying the requested change and the relevant repository entry point; no completion criteria or file, test, or expected output is provided.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
blockchain
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.