feat: add offset param to GetRecentBlocks
				
					
				
			This commit is contained in:
		
							parent
							
								
									0d8ac0a76d
								
							
						
					
					
						commit
						94743e9a17
					
				@ -91,6 +91,7 @@
 | 
				
			|||||||
        "parameters": [
 | 
					        "parameters": [
 | 
				
			||||||
          {
 | 
					          {
 | 
				
			||||||
            "name": "ledger",
 | 
					            "name": "ledger",
 | 
				
			||||||
 | 
					            "description": "Ledger name\n账本名称",
 | 
				
			||||||
            "in": "path",
 | 
					            "in": "path",
 | 
				
			||||||
            "required": true,
 | 
					            "required": true,
 | 
				
			||||||
            "type": "string"
 | 
					            "type": "string"
 | 
				
			||||||
@ -115,7 +116,8 @@
 | 
				
			|||||||
      "type": "object",
 | 
					      "type": "object",
 | 
				
			||||||
      "properties": {
 | 
					      "properties": {
 | 
				
			||||||
        "name": {
 | 
					        "name": {
 | 
				
			||||||
          "type": "string"
 | 
					          "type": "string",
 | 
				
			||||||
 | 
					          "title": "Ledger name\n账本名称"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@ -123,7 +125,8 @@
 | 
				
			|||||||
      "type": "object",
 | 
					      "type": "object",
 | 
				
			||||||
      "properties": {
 | 
					      "properties": {
 | 
				
			||||||
        "ok": {
 | 
					        "ok": {
 | 
				
			||||||
          "type": "boolean"
 | 
					          "type": "boolean",
 | 
				
			||||||
 | 
					          "title": "Boolean value indicating if the ledger is successfully created\n是否创建成功"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@ -134,7 +137,8 @@
 | 
				
			|||||||
          "type": "array",
 | 
					          "type": "array",
 | 
				
			||||||
          "items": {
 | 
					          "items": {
 | 
				
			||||||
            "type": "string"
 | 
					            "type": "string"
 | 
				
			||||||
          }
 | 
					          },
 | 
				
			||||||
 | 
					          "title": "List of ledger names\n帐本名称列表"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@ -142,10 +146,12 @@
 | 
				
			|||||||
      "type": "object",
 | 
					      "type": "object",
 | 
				
			||||||
      "properties": {
 | 
					      "properties": {
 | 
				
			||||||
        "ledger": {
 | 
					        "ledger": {
 | 
				
			||||||
          "type": "string"
 | 
					          "type": "string",
 | 
				
			||||||
 | 
					          "title": "Ledger name\n账本名称"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        "transaction": {
 | 
					        "transaction": {
 | 
				
			||||||
          "$ref": "#/definitions/apiSendTransactionRequestTransaction"
 | 
					          "$ref": "#/definitions/apiSendTransactionRequestTransaction",
 | 
				
			||||||
 | 
					          "title": "Transaction info\n事务信息"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@ -178,7 +184,8 @@
 | 
				
			|||||||
      "properties": {
 | 
					      "properties": {
 | 
				
			||||||
        "hash": {
 | 
					        "hash": {
 | 
				
			||||||
          "type": "string",
 | 
					          "type": "string",
 | 
				
			||||||
          "format": "byte"
 | 
					          "format": "byte",
 | 
				
			||||||
 | 
					          "title": "Hash of the created transaction\n事务哈希"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
				
			|||||||
@ -45,7 +45,8 @@
 | 
				
			|||||||
      "type": "object",
 | 
					      "type": "object",
 | 
				
			||||||
      "properties": {
 | 
					      "properties": {
 | 
				
			||||||
        "version": {
 | 
					        "version": {
 | 
				
			||||||
          "type": "string"
 | 
					          "type": "string",
 | 
				
			||||||
 | 
					          "title": "Client version\n节点客户端版本"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
				
			|||||||
@ -208,6 +208,13 @@
 | 
				
			|||||||
            "required": true,
 | 
					            "required": true,
 | 
				
			||||||
            "type": "string"
 | 
					            "type": "string"
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
 | 
					          {
 | 
				
			||||||
 | 
					            "name": "offset",
 | 
				
			||||||
 | 
					            "in": "query",
 | 
				
			||||||
 | 
					            "required": false,
 | 
				
			||||||
 | 
					            "type": "string",
 | 
				
			||||||
 | 
					            "format": "int64"
 | 
				
			||||||
 | 
					          },
 | 
				
			||||||
          {
 | 
					          {
 | 
				
			||||||
            "name": "count",
 | 
					            "name": "count",
 | 
				
			||||||
            "in": "query",
 | 
					            "in": "query",
 | 
				
			||||||
@ -422,7 +429,8 @@
 | 
				
			|||||||
          "type": "string",
 | 
					          "type": "string",
 | 
				
			||||||
          "format": "int64"
 | 
					          "format": "int64"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      },
 | 
				
			||||||
 | 
					      "title": "*\n暂不支持"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "apiBlocksRequest": {
 | 
					    "apiBlocksRequest": {
 | 
				
			||||||
      "type": "object",
 | 
					      "type": "object",
 | 
				
			||||||
@ -552,7 +560,8 @@
 | 
				
			|||||||
        "HASH",
 | 
					        "HASH",
 | 
				
			||||||
        "FULL"
 | 
					        "FULL"
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
      "default": "NONE"
 | 
					      "default": "NONE",
 | 
				
			||||||
 | 
					      "title": "*\n包含事务信息详细程度"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "apiTransactionFilter": {
 | 
					    "apiTransactionFilter": {
 | 
				
			||||||
      "type": "object",
 | 
					      "type": "object",
 | 
				
			||||||
 | 
				
			|||||||
@ -122,8 +122,9 @@ message CountBlocksResponse {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
message RecentBlocksRequest {
 | 
					message RecentBlocksRequest {
 | 
				
			||||||
  string ledger = 1; // 账本名称
 | 
					  string ledger = 1; // 账本名称
 | 
				
			||||||
  int64 count = 2;   // 查询区块数量
 | 
					  int64 offset = 2;  // 起始值
 | 
				
			||||||
  IncludeTransactions include_transactions = 3; // 包含事务信息详细程度
 | 
					  int64 count = 3;   // 查询区块数量
 | 
				
			||||||
 | 
					  IncludeTransactions include_transactions = 4; // 包含事务信息详细程度
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
message GetTransactionByHashRequest {
 | 
					message GetTransactionByHashRequest {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user