1.0.25 • Published 8 months ago
core-sdk-test v1.0.25
星火包
该包主要功能是实现与链的交互,以及新增随机nonce
node版本
v20.0.0
功能接口
一、 账户服务接口
序号 | 接口 | 说明 |
---|---|---|
1 | createAccount | 生成主链数字身份 |
2 | getAccount | 该接口用于获取指定的账户信息 |
3 | getNonce | 该接口用于获取指定账户的nonce值 |
4 | getAccountBalance | 该接口用于获取指定账户的星火令的余额 |
5 | setMetadatas | 设置metadatas |
6 | getAccountMetadatas | 该接口用于获取指定账户的metadatas信息 |
7 | setPrivilege | 设置权限 |
8 | getAccountPriv | 获取账户权限 |
二、 区块服务接口列表
序号 | 接口 | 说明 |
---|---|---|
1 | getBlockNumber | 该接口用于查询最新的区块高度 |
2 | getTransactions | 该接口用于查询指定区块高度下的所有交易 |
3 | getBlockInfo | 该接口用于获取区块信息 |
4 | getBlockLatestInfo | 该接口用于获取最新区块信息 |
5 | getValidators | 该接口用于获取指定区块中所有验证节点数 |
6 | getLatestValidators | 该接口用于获取最新区块中所有验证节点数 |
三、 合约服务接口列表
序号 | 接口 | 说明 |
---|---|---|
1 | checkContractAddress | 该接口用于检测合约账户的有效性 |
2 | contractCreate | 创建合约 |
3 | getContractInfo | 该接口用于查询合约代码 |
4 | getContractAddress | 该接口用于根据交易Hash查询合约地址 |
5 | contractQuery | 该接口用于调试合约代码 |
6 | contractInvoke | 合约调用 |
7 | batchContractInvoke | 批量合约调用 |
四、 交易服务接口列表
序号 | 接口 | 说明 |
---|---|---|
1 | gasSend | 交易 |
2 | getTransactionInfo | 该接口用于实现根据交易hash查询交易 |
3 | evaluateFee | 该接口用于交易费用评估 |
4 | submitTrans | 提交交易 |
5 | getTxCacheSize | 该接口用于获取交易池中交易条数 |
6 | batchEvaluateFee | 该接口为批量费用评估接口 |
7 | parseBlob | blob**数据解析** |
8 | batchGasSend | 批量转移星火令 |
1.0.25
8 months ago
1.0.24
8 months ago
1.0.23
8 months ago
1.0.22
8 months ago
1.0.21
8 months ago
1.0.20
8 months ago
1.0.19
8 months ago
1.0.18
8 months ago
1.0.17
8 months ago
1.0.16
8 months ago
1.0.15
8 months ago
1.0.14
8 months ago
1.0.13
8 months ago
1.0.12
8 months ago
1.0.11
8 months ago
1.0.10
8 months ago
1.0.9
8 months ago
1.0.8
8 months ago
1.0.6
8 months ago
1.0.5
8 months ago
1.0.4
8 months ago
1.0.3
8 months ago
1.0.2
8 months ago
1.0.1
8 months ago
1.0.0
8 months ago