Node management interface instructions

Node management interface 1.Safely shut down the node The full name of the interface:safetyClose The abbreviation of the interface:sfc Callable method:Http,Websocket,command line Calling method:post InterfaceurlAddress:/api/system/safetyClose Request parameters: interface SafetyClose { /**Verification type: 001 Node owner verification

Websocket

Websocket Implement a websocket calling tool The following code uses typescript as an example to implement a universal websocket calling interface tool class. // The package used by the websocket client can be installed with npm install socket.io-client import * as io from "socket.io-client"; /** * websocket connection helper */ class Web

Type definition

Type definition BFMeta.TransactionJSON interface TransactionJSON <AssetJSON extends object = object> { /**Event version number */ version: number; /**Event type */ type: string; /**The address of the account that initiated the event, base58-encoded hexadecimal string */ senderId: string; /**The public key of the a

bfs

bfs module 1. Description ​Encapsulates the methods exposed by the BFS system. 2. Method openBrl(brl: string): PromiseLike<BFS.Channel.Port | undefined> Parameter Description brl: Open path of the application Return Value: Port used for duplex communication between two applications import "@bfs/bfchain-runtime-typings"; const bfs =

bfsprocess

bfsprocess module 1. Description ​ An instance of a process, through which modules can be imported and used in applications, such as "bfs", "channel" and other modules. 2. Method import<T extends ImportNames>(name: T):Module<T> Parameter Description -name: module name Return value type Module<T> 3

evt

evt module 1. Description ​ Based on Ctx event triggers, it encapsulates event triggers that meet a variety of needs. 2. Class Ctx: Event Trigger Method post(data: T): void; Description: trigger event attach<L extends BFS.Evt.Listener<T>(listener: L): L -Description: Bind an event const ctx = new Ctx(); ctx.attach((name:string)=>

Grpc

Grpc The PC node provides the interface call method of grpc. Through the officially defined .proto file and the compiled proto.js and proto.d.ts, users can call the open grpc interface to interact with the node according to the parameter specification. Currently, we have supported: Win10 64-bit and Windows Server2008+ operating system Linux ope

Consensus incentive mechanism

Consensus incentive mechanism The consensus incentive mechanism is an incentive measure for miners who provide services such as computing power, network, storage, verification and packaging for the BFChain network, as well as an incentive measure for all address accounts that provide computing power, network and storage for participating in the BFC