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 ​

EllipticBridge ​

EllipticBridge 服务定义,提供 KYA/KYT 风险查询与报告获取能力

GetKyaInfo ​

  • Summary: 查询 KYA(了解您的客户)信息
  • Method: GetKyaInfo
  • Endpoint: elliptic_bridge.EllipticBridge/GetKyaInfo
  • Request:
  • Response:

GetKytInfo ​

  • Summary: 查询 KYT(了解您的交易)信息
  • Method: GetKytInfo
  • Endpoint: elliptic_bridge.EllipticBridge/GetKytInfo
  • Request:
  • Response:

GetReportData ​

  • Summary: 查询 KYA/KYT 报告详细数据
  • Method: GetReportData
  • Endpoint: elliptic_bridge.EllipticBridge/GetReportData
  • Request:
  • Response:

3. Components ​

3.1 Schemas ​

GetKyaInfoRequest ​

KYA 信息查询请求

FieldTypeDescription
addressstring钱包地址
blockchainBlockchain区块链类型

GetKyaInfoResponse ​

KYA 信息查询响应

FieldTypeDescription
addressstring钱包地址
blockchainstring区块链名称
riskScorefloat风险分数(0-10,越高风险越大)
reportIdstring报告ID
screeningIdstring筛查ID(一次查询唯一)

GetKytInfoRequest ​

KYT 信息查询请求

FieldTypeDescription
hashstring交易Hash
blockchainBlockchain区块链类型
outputAddressstring输出地址
kytTypeKytTypeKYT类型

GetKytInfoResponse ​

KYT 信息查询响应

FieldTypeDescription
hashstring交易Hash
blockchainstring区块链名称
outputAddressstring输出地址
kytTypestringKYT类型
riskScorefloat风险分数
reportIdstring报告ID
screeningIdstring筛查ID

GetReportDataRequest ​

报告数据查询请求

FieldTypeDescription
reportIdstring报告ID

GetReportDataResponse ​

报告数据查询响应

FieldTypeDescription
reportIdstring报告ID
hashstring地址或交易Hash
typestring类型(KYA/KYT)
sourcestring数据来源(如"elliptic")
fullTextstring报告原文(JSON字符串)
riskScorefloat风险分数
updatedAtint64更新时间(Unix时间戳)

3.2 Enums ​

Blockchain ​

区块链类型枚举,支持的链类型

NameNumberDescription
HOLISTIC0综合(默认/自动识别)
ALGORAND1Algorand
APTOS2Aptos
ARBITRUM3Arbitrum
AVALANCHE_CCHAIN4Avalanche (C-Chain)
BINANCE_CHAIN5Binance Chain
BINANCE_SMART_CHAIN6Binance Smart Chain
BITCOIN7比特币
CARDANO8Cardano
CELO9Celo
COSMOS10Cosmos
CRYPTO_DOT_COM11Crypto.com
DOGECOIN12Dogecoin
DYDX13dYdX
ETHEREUM14以太坊
ETHEREUM_CLASSIC15以太坊经典
FILECOIN16Filecoin
FANTOM17Fantom
FLARE18Flare
GNOSIS19Gnosis
HAQQ20HAQQ
HEDERA21Hedera
LITECOIN22莱特币
MOBILECOIN23MobileCoin
NEAR24Near
OPTIMISM25Optimism
POLKADOT26Polkadot
POLYGON27Polygon
RIPPLE28Ripple
SOLANA29Solana
STELLAR30Stellar
SUI31Sui
TEZOS32Tezos
TON33TON
TRON34Tron
ZILLIQA35Zilliqa
ZKSYNC36zkSync
BITCOINCASH37Bitcoin Cash
HORIZEN38Horizen
ZCASH39ZCash

KytType ​

KYT 类型枚举

NameNumberDescription
UNKNOW_TYPE0未知类型
SOURCE_OF_FUNDS1资金来源
DESTINATION_OF_FUNDS2资金去向

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.

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