@arcblock/forge-proto
v1.7.1 forge blockchain arcblock sdk nodejs
Javascript modules generated using protoc from ForgeSDK protobuf
Table of Contents
Install
npm install @arcblock/forge-proto
// or
yarn add @arcblock/forge-proto
Usage
const { fromTypeUrl, toTypeUrl, getMessageType, enums } = require('@arcblock/forge-proto');
console.log(fromTypeUrl('fg:t:stake')); // StakeTx
console.log(toTypeUrl('StakeTx')); // fg:t:stake
const { fields, fn: Message } = getMessageType('RequestCreateTx');
const message = new Message({
from: 'abc',
});
Documentation
For full documentation, checkout https://forge-js.netlify.com
Contributors
Name | Website |
---|---|
wangshijun | https://www.arcblock.io |
npm i @arcblock/forge-proto
Metadata
- Apache-2.0
- Whatever
- wangshijun
- released 9/7/2022