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

@aioha/tx-digest

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aioha/tx-digest

Hive transaction serializer and digest

latest
Source
npmnpm
Version
2.0.2
Version published
Maintainers
1
Created
Source

@aioha/tx-digest

Hive transaction serializer and digest. Useful for generating ID for a transaction. Serializers extracted from hive-tx and adapted for HF26 serialization. Intended for browser use as it uses window.crypto for sha256.

Usage

import { transactionDigest } from '@aioha/tx-digest'

// https://hafscan.techcoderx.com/tx/543058b4465cd93132b2843b751d5dcdd8efd341
const recurrent_transfer = {
  ref_block_num: 23679,
  ref_block_prefix: 291568045,
  expiration: '2025-11-20T07:59:08',
  operations: [
    {
      type: 'recurrent_transfer_operation',
      value: {
        to: 'techcoderx.vsc',
        from: 'techcoderx',
        memo: '',
        amount: {
          nai: '@@000000021',
          amount: '2',
          precision: 3
        },
        executions: 5,
        extensions: [
          {
            type: 'recurrent_transfer_pair_id',
            value: {
              pair_id: 1
            }
          }
        ],
        recurrence: 48
      }
    }
  ],
  signatures: [
    '1f3f2ddfc755936e0b998c78a1aec35a9663d1d9011cd4a83be84c6340f1b8689826fbd0e32c918afca38ab1e6ec44eac85a0e281c39bf1400f5e53c8b810a3bf5'
  ],
  extensions: []
}

const serialized = await transactionDigest(recurrent_transfer)
console.log(serialized.txId) // 85db372428a47aba8aeb154df8650a900c612fa5

FAQs

Package last updated on 19 Jan 2026

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