Skip to content

API Reference


1. Info

  • Title: gRPC API
  • Version: 1.0.0
  • Description: This documentation is generated from protobuf files using protoc-gen-doc.

2. Paths

SolidusBridge

UploadFile

  • Summary: 上传文件
  • Method: UploadFile
  • Endpoint: solidus_bridge.SolidusBridge/UploadFile
  • Request:
  • Response:

ListFiles

  • Summary: 查询文件
  • Method: ListFiles
  • Endpoint: solidus_bridge.SolidusBridge/ListFiles
  • Request:
    • Content-Type: application/grpc
    • Schema: Empty
  • Response:

3. Components

3.1 Schemas

FileEntries

FieldTypeDescription
filePathstringnone
lastModifieddoublenone

ListFilesResponse

FieldTypeDescription
msgstringnone
entriesFileEntriesnone

UploadFileRequest

文件元数据

FieldTypeDescription
fileTypeFileType文件类型
fileNamestring文件名称

UploadFileResponse

FieldTypeDescription

UploadFileStream

文件上传流中的每一块

FieldTypeDescription
chunk.metadataUploadFileRequest文件元数据,发送一次
chunk.fileChunkbytes文件分块,可能发送多次

3.2 Enums

FileType

NameNumberDescription
unknown0none
private_order1order files using v1 schema
private_order_v22order files using v2 and v2.1 schemas
private_execution3execution files using v1 schema
private_execution_v24execution files using v2 schema
linked_private_execution_v25execution files using v2.1 schema

4. Scalar Value Types

Proto TypeGo TypeC++ TypeJava TypePython TypeNotes
doublefloat64doubledoublefloat
floatfloat32floatfloatfloat
int32int32int32intintUses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.
int64int64int64longint/longUses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.
uint32uint32uint32intint/longUses variable-length encoding.
uint64uint64uint64longint/longUses variable-length encoding.
sint32int32int32intintUses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.
sint64int64int64longint/longUses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.
fixed32uint32uint32intintAlways four bytes. More efficient than uint32 if values are often greater than 2^28.
fixed64uint64uint64longint/longAlways eight bytes. More efficient than uint64 if values are often greater than 2^56.
sfixed32int32int32intintAlways four bytes.
sfixed64int64int64longint/longAlways eight bytes.
boolboolboolbooleanboolean
stringstringstringStringstr/unicodeA string must always contain UTF-8 encoded or 7-bit ASCII text.
bytes[]bytestringByteStringstrMay contain any arbitrary sequence of bytes.

🚀 构建现代化数字资产交易平台