1.2.7 • Published 4 years ago
@bfchain/pc-sdk v1.2.7
BFChain-SDK
Installation - 安装
$ npm install @bfchain/pc-sdk
Requrements - 必要条件
npm
typescript
Docs & Community - 文档 & 社区
https://github.com/BioforestChain/bfcc.dev https://www.bfcc.dev
Usage - 用法
import { BFChainPC_SDK } from "@bfchain/pc-sdk";
const sdk = new BFChainPC_SDK();
// 连接的节点ip及端口
sdk.init({ ip: "127.0.0.1", port: 19003, timeout: 10000 });
// 获取最新区块
await sdk.getLastBlock();
Changelog - 更新日志
- 1.2.1
- 废弃getAccountAsset 接口,添加getAccountLastTransaction接口
- 1.2.0
- 支持 BFChain pc 节点 v3.6.12 的接口调用
- 添加 getAccountAsset 接口
- 添加 generateSecret 接口
- 1.0.0
- 支持 BFChain pc 节点 v3.5.29 的接口调用
License- 许可
本作品采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可。