Before you begin
Before you begin,please make sure that you have installed the Linux system. The installation of the Linux system will not be repeated here.
Node identity binding
When you complete the node deployment, the system will automatically start the node program-BCF.
When the node is started for the first time or when the node is in an unauthorized state, the node authorization needs to be completed before the node can be operated and managed normally.
Node identity binding
When the user succes
Glossary
Event Type
Event Type ID
Event Type Name
BFM-BFMeta-BSE-01
Set security password
BFM-BFMeta-BSE-02
Registered Forger
BFM-BFMeta-BSE-03
Governance voting
BFM-BFMeta-BSE-04
Set address alias
BFM-BFMeta-BSE-05
Receive votes
BFM-BFMeta-BSE-06
Decline to vote
BFM-BFMeta-WOD-00
Create DAPPID
BFM-BFMeta-WOD-01
DAPPID payment
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
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
Command line tool
Get help information for command line tools
Enter the command "bcf /?" or "bcf /help" to get the BCF command line help description (under Linux, "bcf -h" or "bcf
"--help" is "bcf /?" or "bcf /help", the following uses Windows as an example), the detailed command list
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
Event class interface
1. Transfer event
1.1 Create transfer event
Introduction
The most basic on-chain equity transfer, which Enables an asset to be transferred directly from address A to address B.
The asset type is assetType, the quantity is amount, and the minimum unit is 1. 1BFM = 100000000
The full name of the interface: trTransferAsset
Int
Basic interface
1. Get the BFMeta version number
The full name of the interface: nodeVersion
Interface abbreviation: v
Callable methods: Http, Websocket, command line
Calling method: get
Interface url address: /api/basic/nodeVersion
Request parameters: none
Return parameters:
interface NodeVersion {
/**whether succeed */
success: boolean;
result:
Description of interface parameters and return parameters
The full name of the interface is the function name of the interface, which is also the full name of the command line call
The interface is abbreviated as the abbreviated name when calling the command line.
The callable method refers to the method in which the interface allows to be called