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 ​

NotabeneBridge ​

GetVASPInfo ​

  • Summary: 查询DID信息
  • Method: GetVASPInfo
  • Endpoint: notabene_bridge.NotabeneBridge/GetVASPInfo
  • Request:
  • Response:

CreateTx ​

  • Summary: Create
  • Method: CreateTx
  • Endpoint: notabene_bridge.NotabeneBridge/CreateTx
  • Request:
  • Response:

RegisterWebhook ​

  • Summary: 注册webhook
  • Method: RegisterWebhook
  • Endpoint: notabene_bridge.NotabeneBridge/RegisterWebhook
  • Request:
  • Response:

3. Components ​

3.1 Schemas ​

Beneficiary ​

收款方

FieldTypeDescription
beneficiaryPersonsPerson收款方个人信息
accountNumberstring收款方账户号

CreateTxRequest ​

创建交易请求

FieldTypeDescription
transactionRefstring交易参考号
transactionAssetstring交易资产类型
transactionAmountstring交易金额
originatorVaspDidstring发起方VASP的DID
beneficiaryVaspDidstring收款方VASP的DID
beneficiaryRefstring收款方参考号
originatorRefstring发起方参考号
transactionBlockchainInfoTransactionBlockchainInfo区块链相关信息
originatorOriginator发起方信息
beneficiaryBeneficiary收款方信息

CreateTxResponse ​

创建交易响应

FieldTypeDescription
transactionRefstring交易参考号
transactionIDstring交易ID
transactionTypestring交易类型

DateAndPlaceOfBirth ​

出生日期及地点

FieldTypeDescription
dateOfBirthstring出生日期
placeOfBirthstring出生地点

GeographicAddress ​

地理地址

FieldTypeDescription
addressTypestring地址类型
streetNamestring街道名
buildingNumberstring楼号
buildingNamestring楼名
townNamestring城镇名
countrySubDivisionstring州/省/地区
postCodestring邮编
countrystring国家

GetVASPInfoRequest ​

查询VASP信息请求

FieldTypeDescription
namestringvasp名称

GetVASPInfoResponse ​

查询VASP信息响应

FieldTypeDescription
vASPsVASPVASP列表
pageint32当前页码
perPageint32每页数量
totalint32总数
orderstring排序方式

Name ​

姓名

FieldTypeDescription
nameIdentifierNameIdentifier姓名标识

NameIdentifier ​

姓名标识

FieldTypeDescription
primaryIdentifierstring主标识
secondaryIdentifierstring次标识
nameIdentifierTypestring标识类型

NationalIdentification ​

国民身份信息

FieldTypeDescription
countryOfIssuestring签发国家
nationalIdentifierstring身份证号
nationalIdentifierTypestring身份证类型
registrationAuthoritystring注册机构

NaturalPerson ​

自然人

FieldTypeDescription
nameName姓名
geographicAddressGeographicAddress地址
nationalIdentificationNationalIdentification国民身份信息
dateAndPlaceOfBirthDateAndPlaceOfBirth出生日期及地点
customerIdentificationstring客户识别号
countryOfResidencestring居住国家

Originator ​

发起方

FieldTypeDescription
originatorPersonsPerson发起方个人信息
accountNumberstring发起方账户号

Person ​

个人

FieldTypeDescription
naturalPersonNaturalPerson自然人信息

RegisterWebhookRequest ​

注册webhook请求

FieldTypeDescription
urlstringwebhook地址

RegisterWebhookResponse ​

注册webhook响应

FieldTypeDescription

TransactionBlockchainInfo ​

区块链信息

FieldTypeDescription
destinationstring区块链目标地址

VASP ​

VASP信息

FieldTypeDescription
didstringdid
namestring名称
websitestring网站
incorporationCountrystring注册国家

3.2 Enums ​


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.

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