Update docs

This commit is contained in:
Nex
2019-04-23 15:29:11 +08:00
parent e6ab7c4630
commit d2792917e7
2 changed files with 20 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
## 通用类型
### ClientVersionResponse 节点客户端版本查询返回值
### common.ClientVersionResponse 节点客户端版本查询返回值
```
message ClientVersionResponse {
@@ -8,7 +8,7 @@ message ClientVersionResponse {
}
```
### TransactionType 事务类型
### common.TransactionType 事务类型
```
enum TransactionType {
@@ -30,7 +30,7 @@ message Transaction {
bytes block_hash = 2; // 事务所在的区块的哈希,当事务处于待确认状态时为`null`
uint32 index = 3; // 事务在区块中的位置index当事务处于待确认状态时为`null`
bytes hash = 4; // 事务的哈希
TransactionType type = 5; // 事务类型
common.TransactionType type = 5; // 事务类型
bytes from = 6; // 发送账户地址
uint64 nonce = 7; // 这条事务之前发送者所发送的事务数量
bytes to = 8; // 接收账户地址,或者调用的合约地址,或者`null`如为合约创建
@@ -186,7 +186,7 @@ message GetLedgersResponse {
message SendTransactionRequest {
string ledger = 1;
message Transaction {
TransactionType type = 1;
common.TransactionType type = 1;
bytes from = 2;
bytes to = 3;
bytes data = 4;