Skip to content

Add extra blockchain utility methods - #63

Open
edinsoncs wants to merge 1 commit into
masterfrom
ayn3yd-codex/agregar-más-funciones-a-la-blockchain

Hidden character warning

The head ref may contain hidden characters: "ayn3yd-codex/agregar-m\u00e1s-funciones-a-la-blockchain"
Open

Add extra blockchain utility methods#63
edinsoncs wants to merge 1 commit into
masterfrom
ayn3yd-codex/agregar-más-funciones-a-la-blockchain

Conversation

@edinsoncs

@edinsoncs edinsoncs commented Jun 22, 2025

Copy link
Copy Markdown
Owner

Summary

  • add getBlockByIndex, getAllTransactions and getAverageBlockTime helpers
  • document new helpers
  • test the new blockchain functions

Testing

  • npm test (fails: jest not found)

https://chatgpt.com/codex/tasks/task_b_6858807596188329a1050b4f963a11bb


Summary by cubic

Added three new blockchain helper methods: getBlockByIndex, getAllTransactions, and getAverageBlockTime. Updated documentation and added tests for these helpers.

  • New Features
    • getBlockByIndex retrieves a block by its index.
    • getAllTransactions returns all transactions with their block index.
    • getAverageBlockTime calculates the average time between blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant