Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@arcblock/forge-message

Package Overview
Dependencies
Maintainers
4
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcblock/forge-message

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

  • 1.4.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-95.73%
Maintainers
4
Weekly downloads
 
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 @arcblock/forge-message
// OR
yarn add @arcblock/forge-message

Usage

const { createMessage, formatMessage } = require('@arcblock/forge-message');

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

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

Documentation

For full documentation, checkout https://forge-js.netlify.com

Contributors

NameWebsite
wangshijunhttps://ocap.arcblock.io

Keywords

FAQs

Package last updated on 29 Nov 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc