Socket
Book a DemoInstallSign in
Socket

@ocap/message

Package Overview
Dependencies
Maintainers
3
Versions
557
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ocap/message

Utility functions to encode and decode message that can send to forge

Source
npmnpm
Version
1.28.3
Version published
Maintainers
3
Created
Source

forge-message

styled with prettier docs Gitter

Utility function to encode and format message that can be sent to or received from forge framework.

Table of Contents

Install

npm i @ocap/message
// OR
pnpm install @ocap/message

Usage

const { createMessage, formatMessage } = require('@ocap/message');

const message = createMessage('Transaction', {
  from: '',
  nonce: 0,
  signature: 'abc',
  itx: {
    type: 'TransferTx',
    value: {
      to: '2019-04-25',
    },
  },
});

const buffer = message.serializeBinary();
// Then: send the buffer over the wire

Documentation

For full documentation, checkout https://asset-chain.netlify.com

Contributors

NameWebsite
wangshijunhttps://github.com/wangshijun

Keywords

blockchain

FAQs

Package last updated on 06 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