Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

grs-minimal

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grs-minimal

Parse raw groestlcoin block and transaction buffers with minimal overhead

latest
Source
npmnpm
Version
2.0.5
Version published
Weekly downloads
14
600%
Maintainers
1
Weekly downloads
 
Created
Source

grs-minimal

NPM Package

Parse raw groestlcoin block and transaction buffers with minimal overhead

Note

You must use node.js v12+

Install

npm i grs-minimal

Documentation

Basic use

const { Block, Transaction, Header } = require('grs-minimal')

const block = Block.fromBuffer(yourBlockBuffer)
block.getHash()
block.getTransactions()
block.getHeight()
await block.getTransactionsAsync(({ header, txs, finished }), => {
    for (const {index, tx, offset, size} of txs) {
        console.log(`tx ${tx.getTxid()}`)
    }
})

const header = Header.fromBuffer(yourHeaderBuffer)
header.getHash()

const transaction = Transaction.fromBuffer(yourTransactionBuffer)
transaction.getTxid()
transaction.getCoinbaseHeight()

Tests

npm run test

Keywords

groestlcoin

FAQs

Package last updated on 29 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts