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

@arcblock/forge-message

Package Overview
Dependencies
Maintainers
1
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

  • 0.19.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-95.73%
Maintainers
1
Weekly downloads
 
Created
Source

@arcblock/grpc-client

styled with prettier

gRPC client to read/write data on forge powered blockchain

Table of Contents

Install

npm install @arcblock/grpc-client
// or
yarn add @arcblock/grpc-client

Usage

0. Make sure you get forge installed

This step is required

1. Prepare Example App

Checkout our examples folder

2. Call Rpc

const { RpcClient } = require('@arcblock/grpc-client');
const { parse } = require('@arcblock/forge-config');

const client = new RpcClient(parse('./forge.toml'));
(async () => {
  // fetch forge change info
  const { info } = await client.getChainInfo();
  console.log('chainInfo', info);

  // get block info
  const stream = client.getBlock({ height: 11 });
  stream
    .on('data', function({ block }) {
      console.log('blockInfo:', block);
    })
    .on('error', err => {
      console.error('error', err);
    });
})();

Documentation

For complete API documentation please refer API.md

Contributors

NameWebsite
wangshijunhttps://ocap.arcblock.io

Keywords

FAQs

Package last updated on 24 Apr 2019

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