# Protocol Documentation
<a name="top"></a>

## Table of Contents

- [api/rpc_cross_chain.proto](#api_rpc_cross_chain-proto)
  - [RpcCrossChain](#api-RpcCrossChain)

- [api/rpc_relay_chain.proto](#api_rpc_relay_chain-proto)
  - [RpcRelayChain](#api-RpcRelayChain)

- [common/common.proto](#common_common-proto)
  - [BcosConfig](#common-BcosConfig)
  - [CancelInfo](#common-CancelInfo)
  - [ChainmakerConfig](#common-ChainmakerConfig)
  - [ConfirmInfo](#common-ConfirmInfo)
  - [ContractKeyValuePair](#common-ContractKeyValuePair)
  - [CrossChainConfirm](#common-CrossChainConfirm)
  - [CrossChainConfirmUpChain](#common-CrossChainConfirmUpChain)
  - [CrossChainEvent](#common-CrossChainEvent)
  - [CrossChainInfo](#common-CrossChainInfo)
  - [CrossChainMsg](#common-CrossChainMsg)
  - [CrossChainTxUpChain](#common-CrossChainTxUpChain)
  - [FabricConfig](#common-FabricConfig)
  - [GatewayInfo](#common-GatewayInfo)
  - [MapEventDataType](#common-MapEventDataType)
  - [Node](#common-Node)
  - [Orderer](#common-Orderer)
  - [Org](#common-Org)
  - [PageInfo](#common-PageInfo)
  - [Peer](#common-Peer)
  - [Pkcs11](#common-Pkcs11)
  - [TxContent](#common-TxContent)
  - [TxContentWithVerify](#common-TxContentWithVerify)
  - [TxVerifyInterface](#common-TxVerifyInterface)

  - [CallType](#common-CallType)
  - [ChainmakerRuntimeType](#common-ChainmakerRuntimeType)
  - [Code](#common-Code)
  - [CrossChainStateValue](#common-CrossChainStateValue)
  - [CrossType](#common-CrossType)
  - [EventDataType](#common-EventDataType)
  - [EventName](#common-EventName)
  - [Operate](#common-Operate)
  - [TriggerCondition](#common-TriggerCondition)
  - [TryResult](#common-TryResult)
  - [TxResultValue](#common-TxResultValue)
  - [TxVerifyRsult](#common-TxVerifyRsult)
  - [TxVerifyType](#common-TxVerifyType)
  - [Version](#common-Version)

- [common/cross_chain/request.proto](#common_cross_chain_request-proto)
  - [ChainIdentityRequest](#cross_chain-ChainIdentityRequest)
  - [CrossChainCancelRequest](#cross_chain-CrossChainCancelRequest)
  - [CrossChainConfirmRequest](#cross_chain-CrossChainConfirmRequest)
  - [CrossChainEventRequest](#cross_chain-CrossChainEventRequest)
  - [CrossChainTryRequest](#cross_chain-CrossChainTryRequest)
  - [IsCrossChainSuccessRequest](#cross_chain-IsCrossChainSuccessRequest)
  - [TxVerifyRequest](#cross_chain-TxVerifyRequest)

- [common/cross_chain/response.proto](#common_cross_chain_response-proto)
  - [ChainIdentityResponse](#cross_chain-ChainIdentityResponse)
  - [CrossChainCancelResponse](#cross_chain-CrossChainCancelResponse)
  - [CrossChainConfirmResponse](#cross_chain-CrossChainConfirmResponse)
  - [CrossChainEventResponse](#cross_chain-CrossChainEventResponse)
  - [CrossChainTryResponse](#cross_chain-CrossChainTryResponse)
  - [IsCrossChainSuccessResponse](#cross_chain-IsCrossChainSuccessResponse)
  - [PingPongResponse](#cross_chain-PingPongResponse)
  - [TxVerifyResponse](#cross_chain-TxVerifyResponse)

- [common/relay_chain/request.proto](#common_relay_chain_request-proto)
  - [BeginCrossChainRequest](#relay_chain-BeginCrossChainRequest)
  - [GatewayRegisterRequest](#relay_chain-GatewayRegisterRequest)
  - [GatewayUpdateRequest](#relay_chain-GatewayUpdateRequest)
  - [InitContractRequest](#relay_chain-InitContractRequest)
  - [QueryCrossChainRequest](#relay_chain-QueryCrossChainRequest)
  - [QueryGatewayRequest](#relay_chain-QueryGatewayRequest)
  - [SyncBlockHeaderRequest](#relay_chain-SyncBlockHeaderRequest)
  - [UpdateContractRequest](#relay_chain-UpdateContractRequest)

- [common/relay_chain/response.proto](#common_relay_chain_response-proto)
  - [BeginCrossChainResponse](#relay_chain-BeginCrossChainResponse)
  - [GatewayRegisterResponse](#relay_chain-GatewayRegisterResponse)
  - [GatewayUpdateResponse](#relay_chain-GatewayUpdateResponse)
  - [InitContractResponse](#relay_chain-InitContractResponse)
  - [QueryCrossChainResponse](#relay_chain-QueryCrossChainResponse)
  - [QueryGatewayResponse](#relay_chain-QueryGatewayResponse)
  - [SyncBlockHeaderResponse](#relay_chain-SyncBlockHeaderResponse)
  - [UpdateContractResponse](#relay_chain-UpdateContractResponse)

- [Scalar Value Types](#scalar-value-types)



<a name="api_rpc_cross_chain-proto"></a>
<p align="right"><a href="#top">Top</a></p>

## api/rpc_cross_chain.proto
Copyright (C) THL A29 Limited, a Tencent company. All rights reserved.
SPDX-License-Identifier: Apache-2.0








<a name="api-RpcCrossChain"></a>

### RpcCrossChain
璺ㄩ摼缃戝叧api

| Method Name | Request Type | Response Type | Description |
| ----------- | ------------ | ------------- | ------------|
| CrossChainTry | [.cross_chain.CrossChainTryRequest](#cross_chain-CrossChainTryRequest) | [.cross_chain.CrossChainTryResponse](#cross_chain-CrossChainTryResponse) | 鎺ユ敹璺ㄩ摼璇锋眰鐨勬帴鍙� |
| CrossChainConfirm | [.cross_chain.CrossChainConfirmRequest](#cross_chain-CrossChainConfirmRequest) | [.cross_chain.CrossChainConfirmResponse](#cross_chain-CrossChainConfirmResponse) | 璺ㄩ摼缁撴灉纭锛屾彁浜� |
| CrossChainCancel | [.cross_chain.CrossChainCancelRequest](#cross_chain-CrossChainCancelRequest) | [.cross_chain.CrossChainCancelResponse](#cross_chain-CrossChainCancelResponse) | 璺ㄩ摼缁撴灉纭锛屽洖婊� |
| IsCrossChainSuccess | [.cross_chain.IsCrossChainSuccessRequest](#cross_chain-IsCrossChainSuccessRequest) | [.cross_chain.IsCrossChainSuccessResponse](#cross_chain-IsCrossChainSuccessResponse) | 鍒ゆ柇璺ㄩ摼缁撴灉 |
| TxVerify | [.cross_chain.TxVerifyRequest](#cross_chain-TxVerifyRequest) | [.cross_chain.TxVerifyResponse](#cross_chain-TxVerifyResponse) | rpc浜ゆ槗楠岃瘉锛屼笉鏄潪瑕佸湪褰撳墠鏈嶅姟涓疄鐜� |
| CrossChainEvent | [.cross_chain.CrossChainEventRequest](#cross_chain-CrossChainEventRequest) | [.cross_chain.CrossChainEventResponse](#cross_chain-CrossChainEventResponse) | 璺ㄩ摼瑙﹀彂鍣ㄧ鐞� |
| ChainIdentity | [.cross_chain.ChainIdentityRequest](#cross_chain-ChainIdentityRequest) | [.cross_chain.ChainIdentityResponse](#cross_chain-ChainIdentityResponse) | 閾捐韩浠界鐞� |
| PingPong | [.google.protobuf.Empty](#google-protobuf-Empty) | [.cross_chain.PingPongResponse](#cross_chain-PingPongResponse) | 蹇冭烦妫€娴� |





<a name="api_rpc_relay_chain-proto"></a>
<p align="right"><a href="#top">Top</a></p>

## api/rpc_relay_chain.proto
Copyright (C) THL A29 Limited, a Tencent company. All rights reserved.
SPDX-License-Identifier: Apache-2.0








<a name="api-RpcRelayChain"></a>

### RpcRelayChain
涓户缃戝叧api

| Method Name | Request Type | Response Type | Description |
| ----------- | ------------ | ------------- | ------------|
| SyncBlockHeader | [.relay_chain.SyncBlockHeaderRequest](#relay_chain-SyncBlockHeaderRequest) | [.relay_chain.SyncBlockHeaderResponse](#relay_chain-SyncBlockHeaderResponse) | 鍚屾鍖哄潡澶� |
| BeginCrossChain | [.relay_chain.BeginCrossChainRequest](#relay_chain-BeginCrossChainRequest) | [.relay_chain.BeginCrossChainResponse](#relay_chain-BeginCrossChainResponse) | 鎺ユ敹璺ㄩ摼璇锋眰 |
| GatewayRegister | [.relay_chain.GatewayRegisterRequest](#relay_chain-GatewayRegisterRequest) | [.relay_chain.GatewayRegisterResponse](#relay_chain-GatewayRegisterResponse) | 缃戝叧娉ㄥ唽 |
| GatewayUpdate | [.relay_chain.GatewayUpdateRequest](#relay_chain-GatewayUpdateRequest) | [.relay_chain.GatewayUpdateResponse](#relay_chain-GatewayUpdateResponse) | 缃戝叧淇℃伅鏇存柊 |
| InitContract | [.relay_chain.InitContractRequest](#relay_chain-InitContractRequest) | [.relay_chain.InitContractResponse](#relay_chain-InitContractResponse) | 鐢ㄤ簬鍏锋湁鍚屾鍖哄潡澶淬€佷氦鏄撻獙璇佸姛鑳界殑spv鍚堢害鐨勫垱寤� |
| UpdateContract | [.relay_chain.UpdateContractRequest](#relay_chain-UpdateContractRequest) | [.relay_chain.UpdateContractResponse](#relay_chain-UpdateContractResponse) | 鐢ㄤ簬鍏锋湁鍚屾鍖哄潡澶淬€佷氦鏄撻獙璇佸姛鑳界殑spv鍚堢害鐨勬洿鏂� |
| QueryGateway | [.relay_chain.QueryGatewayRequest](#relay_chain-QueryGatewayRequest) | [.relay_chain.QueryGatewayResponse](#relay_chain-QueryGatewayResponse) | 缃戝叧淇℃伅鏌ヨ |
| QueryCrossChain | [.relay_chain.QueryCrossChainRequest](#relay_chain-QueryCrossChainRequest) | [.relay_chain.QueryCrossChainResponse](#relay_chain-QueryCrossChainResponse) | 璺ㄩ摼淇℃伅鏌ヨ锛屾殏涓嶆敮鎸侀€氳繃涓氬姟閾句氦鏄搃d鏌ヨ璺ㄩ摼浜ゆ槗锛岀敤鎴烽渶瑕佽嚜琛岀淮鎶や笟鍔¢摼鐨勪氦鏄搃d涓庤法閾句氦鏄搃d鐨勬槧灏勫叧绯� |





<a name="common_common-proto"></a>
<p align="right"><a href="#top">Top</a></p>

## common/common.proto
Copyright (C) THL A29 Limited, a Tencent company. All rights reserved.
SPDX-License-Identifier: Apache-2.0


<a name="common-BcosConfig"></a>

### BcosConfig
bcos閰嶇疆淇℃伅


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| chain_rid | [string](#string) |  | 閾捐祫婧怚d |
| ca | [string](#string) |  | ca |
| tls_key | [string](#string) |  | key |
| tls_cert | [string](#string) |  | cert |
| private_key | [string](#string) |  | private key |
| group_id | [string](#string) |  | group id |
| address | [string](#string) |  | 鍦板潃 |
| chain_id | [int64](#int64) |  | chain id |
| http | [bool](#bool) |  | http |
| is_sm_crypto | [bool](#bool) |  | sm |
| state | [bool](#bool) |  | 鐘舵€侊紝鐢辩綉鍏宠缃敤鎴蜂笉闇€瑕佸叧绯� |
| state_message | [string](#string) |  | 鐘舵€佹弿杩帮紝鐢辩綉鍏宠缃紝鐘舵€佷负true锛屾澶勬槸鎴愬姛淇℃伅锛岀姸鎬佷负false锛屾澶勬湁閿欒淇℃伅 |






<a name="common-CancelInfo"></a>

### CancelInfo
cancel鏁版嵁


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| chain_rid | [string](#string) |  | 閾捐祫婧怚d |
| contract_name | [string](#string) |  | 鍚堢害鍚嶇О |
| method | [string](#string) |  | 鍚堢害鏂规硶鍚嶇О |
| parameter | [string](#string) |  | 鍚堢害鍙傛暟锛宩son瀛楃涓诧紝chainmaker涓簁v string json瀛楃涓诧紝fabric涓篬]string json瀛楃涓诧紝bcos涓篬]string json瀛楃涓� QUERY绫诲瀷鐨勮法閾句氦鏄撳洖璋冩簮缃戝叧鐨勬椂鍊欙紝澶辫触涓嶉渶瑕佸洖鍐欙紝涓嶉渶瑕佲€淭RY_RESULT鈥濆崰浣嶇锛岀紪鍐欏悎绾︾殑鏃跺€欓渶瑕佹敞鎰忓弬鏁拌缃� |
| param_data | [int32](#int32) | repeated | 鍙傛暟鏁版嵁鍦╡ventData鏁扮粍涓殑绱㈠紩锛屽熀浜庤瀛楁鐢熸垚鐨勬暟缁勫皢琚娇鐢╢mt.Sprintf鏂规硶涓巔arameter鍙傛暟鍏卞悓缁勬垚鐩爣鍚堢害鍙傛暟锛屽彧鐢ㄤ簬浜ゆ槗瑙﹀彂妯$増 eventData鏄悎绾︿簨浠剁殑鍏蜂綋鍐呭鐢熸垚鐨勬暟缁勶紝chainmaker涓哄叿浣撶殑浜嬩欢鍐呭鏁扮粍锛宖abric涓哄叿浣撴椂闂村唴瀹圭粡杩噑tring銆乵ap[string]string銆乕]string澶勭悊涔嬪悗鐢熸垚鐨勬暟缁� |
| param_data_type | [EventDataType](#common-EventDataType) | repeated | bcos 闇€瑕佹寚瀹氭瘡涓弬鏁扮殑绫诲瀷锛孮UERY绫诲瀷鐨勮法閾句氦鏄撳け璐ヤ笉闇€瑕佸洖鍐欙紝涓嶉渶瑕佹坊鍔爐ry_result鐨勭被鍨� |
| extra_data | [string](#string) |  | 鎵╁睍鍙傛暟 |
| abi | [string](#string) |  | bcos abi |






<a name="common-ChainmakerConfig"></a>

### ChainmakerConfig
chainmaker閰嶇疆淇℃伅


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| chain_rid | [string](#string) |  | 閾捐祫婧怚d |
| chain_id | [string](#string) |  | 閾綢d |
| org_id | [string](#string) |  | 缁勭粐id |
| sign_cert | [string](#string) |  | 绛惧悕璇佷功 |
| sign_key | [string](#string) |  | 绛惧悕绉侀挜 |
| tls_cert | [string](#string) |  | tls璇佷功 |
| tls_key | [string](#string) |  | tls绉侀挜 |
| auth_type | [string](#string) |  | chainmaker璇佷功妯″紡锛屼繚鐣欏瓧娈碉紝鍏堟敮鎸佽瘉涔︽ā寮忥紝鍚庣画鍐嶆敮鎸佸叾浠栨ā寮� |
| node | [Node](#common-Node) | repeated | 鑺傜偣 |
| pkcs11 | [Pkcs11](#common-Pkcs11) |  | pkcs11 淇濈暀瀛楁锛屽厛鏀寔璇佷功妯″紡锛屽悗缁啀鏀寔鍏朵粬妯″紡 |
| state | [bool](#bool) |  | 鐘舵€侊紝鐢辩綉鍏宠缃敤鎴蜂笉闇€瑕佸叧蹇� |
| state_message | [string](#string) |  | 鐘舵€佹弿杩帮紝鐢辩綉鍏宠缃紝鐘舵€佷负true锛屾澶勬槸鎴愬姛淇℃伅锛岀姸鎬佷负false锛屾澶勬湁閿欒淇℃伅 |






<a name="common-ConfirmInfo"></a>

### ConfirmInfo
confirm鏁版嵁


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| chain_rid | [string](#string) |  | 閾捐祫婧怚d |
| contract_name | [string](#string) |  | 鍚堢害鍚嶇О |
| method | [string](#string) |  | 鍚堢害鏂规硶鍚嶇О |
| parameter | [string](#string) |  | 鍚堢害鍙傛暟锛宩son瀛楃涓诧紝chainmaker涓簁v string json瀛楃涓诧紝fabric涓篬]string json瀛楃涓诧紝bcos涓篬]string json瀛楃涓� QUERY绫诲瀷鐨勮法閾句氦鏄撳洖璋冩簮缃戝叧鐨勬椂鍊欙紝娣诲姞鈥淭RY_RESULT鈥濆崰浣嶇浼氬皢璺ㄩ摼浜ゆ槗鐨勭洰鏍囬摼杩斿洖鍊兼寜鐓у彂璧烽『搴忔浛鎹㈡帀锛屽叾浠朿onfirm娴佺▼涓嶄細瑙﹀彂锛屽&#34;{\&#34;key\&#34;:\&#34;%s\&#34;,\&#34;value\&#34;:\&#34;TRY_RESULT\&#34;&#34;}&#34;鎴�&#34;[\&#34;%s\&#34;,&#34;TRY_RESULT&#34;]&#34; 鍗犱綅绗︽暟閲忚鍜岃法閾句氦鏄撴暟閲忕浉鍚岋紝鏂板缓璺ㄩ摼event鐨勬椂鍊欎細杩涜妫€娴� |
| param_data | [int32](#int32) | repeated | 鍙傛暟鏁版嵁鍦╡ventData鏁扮粍涓殑绱㈠紩锛屽熀浜庤瀛楁鐢熸垚鐨勬暟缁勫皢琚娇鐢╢mt.Sprintf鏂规硶涓巔arameter鍙傛暟鍏卞悓缁勬垚鐩爣鍚堢害鍙傛暟锛屽彧鐢ㄤ簬浜ゆ槗瑙﹀彂妯$増 eventData鏄悎绾︿簨浠剁殑鍏蜂綋鍐呭鐢熸垚鐨勬暟缁勶紝chainmaker涓哄叿浣撶殑浜嬩欢鍐呭锛宖abric涓哄叿浣撴椂闂村唴瀹圭粡杩噑tring銆乵ap[string]string銆乕]string澶勭悊涔嬪悗鐢熸垚鐨勬暟缁� |
| param_data_type | [EventDataType](#common-EventDataType) | repeated | bcos 闇€瑕佹寚瀹氭瘡涓弬鏁扮殑绫诲瀷锛孮UERY绫诲瀷鐨勮法閾句氦鏄撲細灏唗ry_result鍊奸檮鍔犲湪鍚庨潰锛岄渶瑕佸姞涓妕ry_result鐨勭被鍨嬶紝鍚堢害鐨勭紪鍐欑殑鏃跺€欓渶瑕佹敞鎰忓弬鏁拌缃� |
| extra_data | [string](#string) |  | 鎵╁睍鍙傛暟 |
| abi | [string](#string) |  | bcos abi锛屽彧鏈塨cos闇€瑕� |






<a name="common-ContractKeyValuePair"></a>

### ContractKeyValuePair
鍚堢害鍙傛暟锛宬-v閿€煎


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| key | [string](#string) |  | 閿� |
| value | [bytes](#bytes) |  | 鍊� |






<a name="common-CrossChainConfirm"></a>

### CrossChainConfirm
鍚勭綉鍏崇‘璁ょ粨鏋�


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| code | [Code](#common-Code) |  | 鎵ц缁撴灉code |
| message | [string](#string) |  | 杩斿洖娑堟伅鍐呭 |






<a name="common-CrossChainConfirmUpChain"></a>

### CrossChainConfirmUpChain
缃戝叧纭缁撴灉涓婇摼瀵硅薄


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| index | [int32](#int32) |  | 纭鐨勭储寮� |
| cross_chain_confirm | [CrossChainConfirm](#common-CrossChainConfirm) |  | 纭缁撴灉 |






<a name="common-CrossChainEvent"></a>

### CrossChainEvent
璺ㄩ摼瑙﹀彂鍣�


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| cross_chain_event_id | [string](#string) |  | 鍞竴ID锛岀粍鎴愪负鈥渆vent_name#contract_name#chain_rid鈥濓紝涓嶉渶瑕佺敤鎴疯缃� |
| chain_rid | [string](#string) |  | chain_rid閾捐祫婧恑d |
| contract_name | [string](#string) |  | 鍚堢害鍚嶇О锛� bcos涓哄湴鍧€ |
| cross_chain_name | [string](#string) |  | 璺ㄩ摼鍚嶇О |
| cross_chain_flag | [string](#string) |  | 璺ㄩ摼鏍囪 |
| trigger_condition | [TriggerCondition](#common-TriggerCondition) |  | 瑙﹀彂鏂瑰紡 |
| event_name | [string](#string) |  | 浜嬩欢鍚嶇О锛� bcos涓篹vent锛屽 SetState(uint256,string) |
| fabric_event_data_type | [EventDataType](#common-EventDataType) |  | fabric浜嬩欢鏁版嵁绫诲瀷锛屽彧鏀寔string銆乵ap銆乤rray string绫诲瀷浼氱敓鎴愬彧鏈変竴涓厓绱犵殑eventData鏁扮粍 map绫诲瀷浼氭寜鐓ap[string]string鍙嶅簭鍒楀寲锛岀敓鎴愬拰MapEventDataType涓璳ey鍊煎搴旈『搴忕殑eventData鏁扮粍 array浼氭寜鐓]string鍙嶅簭鍒楀寲 |
| fabric_map_event_data_type | [MapEventDataType](#common-MapEventDataType) | repeated | fabric map浜嬩欢鏁版嵁绫诲瀷锛宬ey鐨勫~鍐欓『搴忎細鏄犲皠涓篹ventData鏁扮粍锛岃法閾炬秷鎭腑鐨勬墍鏈塸aram_data瀛楁闇€瑕佸~鍐欎负璇ユ暟缁勫瓧娈电殑绱㈠紩 |
| fabric_array_event_data_type | [EventDataType](#common-EventDataType) | repeated | fabric array浜嬩欢鏁版嵁绫诲瀷锛� |
| chainmaker_event_data_type | [EventDataType](#common-EventDataType) | repeated | chainmaker浜嬩欢鏁版嵁绫诲瀷锛宔ventData鏁扮粍鍗充簨浠剁殑鏁扮粍 |
| bcos_event_data_type | [EventDataType](#common-EventDataType) | repeated | fisco bcos 浜嬩欢鏁版嵁绫诲瀷锛岃繖閲屼細灏唗opic涓殑鏁版嵁涓€骞惰绠楄繘鍘伙紝骞朵笖鐢眛opic鐨勬暟鎹紑澶达紝鐢熸垚eventData鏁扮粍 |
| abi | [string](#string) | repeated | fisco bcos 浜嬩欢abi锛屽嵆浜嬩欢涓瘡涓弬鏁扮殑abi锛岃繖閲屽啓閿欎細瀵艰嚧缃戝叧鏃犳硶鎺ヤ簺event鐨勫叿浣撳唴瀹� |
| is_cross_chain | [string](#string) |  | 鏄惁涓鸿法閾句氦鏄擄紝bcos銆乧hainmaker銆乫abirc eventData鏁扮粍鐨勫瓧娈靛悕绉伴渶瑕佸啓鎴� &#34;zero&#34;, &#34;one&#34;, &#34;two&#34;, &#34;three&#34;, &#34;four&#34;, &#34;five&#34;, &#34;six&#34;, &#34;seven&#34;, &#34;eight&#34;, &#34;nine&#34;, &#34;ten&#34;杩欑褰㈠紡锛岀洰鍓嶅彧鏀寔鍒�10锛屾墿灞曞彧闇€瑕佺畝鍗曠殑淇敼浠g爜鍗冲彲 map鐨勫瓧娈靛悕绉扮収瀹炲啓灏卞彲浠ヤ簡 渚嬪 &#34;one == \&#34;lockaddress\&#34;&#34; bcos鍦板潃濡傛灉绫诲瀷鍐欎负address锛岃鍔″繀瀹炴祴fisco bcos go sdk鐩戝惉鍒扮殑鍏蜂綋瀛楃涓蹭箣鍚庡啀濉啓 锛堝垽鏂瓧绗︿覆,鍙傝€僪ttps://github.com/Knetic/govaluate锛� |
| confirm_info | [ConfirmInfo](#common-ConfirmInfo) |  | 浣滀负鏍囪瘑锛屼腑缁х綉鍏冲悜璺ㄩ摼缃戝叧鍙戦€佺‘璁ゆ搷浣� |
| cancel_info | [CancelInfo](#common-CancelInfo) |  | 浣滀负鏍囪瘑锛屼腑缁х綉鍏冲悜璺ㄩ摼缃戝叧鍙戦€佸彇娑堟搷浣� |
| cross_chain_create | [CrossChainMsg](#common-CrossChainMsg) | repeated | 鐩爣缃戝叧id |
| timeout | [int64](#int64) |  | 瓒呮椂鏃堕棿 s |
| cross_type | [CrossType](#common-CrossType) |  | 璺ㄩ摼绫诲瀷 |
| state | [bool](#bool) |  | 鐘舵€侊紝鐢辩綉鍏宠缃敤鎴蜂笉闇€瑕佸叧蹇� |
| state_message | [string](#string) |  | 鐘舵€佹弿杩帮紝鐢辩綉鍏宠缃紝鐘舵€佷负true锛屾澶勬槸鎴愬姛淇℃伅锛岀姸鎬佷负false锛屾澶勬湁閿欒淇℃伅 |






<a name="common-CrossChainInfo"></a>

### CrossChainInfo
璺ㄩ摼淇℃伅鍦ㄩ摼涓婄殑瀛樺偍缁撴瀯


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| cross_chain_id | [string](#string) |  | 璺ㄩ摼Id |
| cross_chain_name | [string](#string) |  | 璺ㄩ摼鍚嶇О |
| cross_chain_flag | [string](#string) |  | 璺ㄩ摼鏍囪 |
| from | [string](#string) |  | 鍙戣捣璺ㄩ摼缃戝叧鐨刬d |
| cross_chain_msg | [CrossChainMsg](#common-CrossChainMsg) | repeated | 璺ㄩ摼淇℃伅鍏蜂綋鍐呭锛岃鏁扮粍鐨勪笅鏍囧拰cross_chain_tx_content/gateway_confirm_result涓€涓€瀵瑰簲 |
| first_tx_content | [TxContentWithVerify](#common-TxContentWithVerify) |  | 璺ㄩ摼棣栫瑪浜ゆ槗鍐呭 |
| cross_chain_tx_content | [TxContentWithVerify](#common-TxContentWithVerify) | repeated | 璺ㄩ摼浜ゆ槗鐨勫唴瀹癸紝鍖呭惈鍚勭綉鍏崇殑浜ゆ槗缁撴灉 |
| cross_chain_result | [bool](#bool) |  | 璺ㄩ摼缁撴灉 |
| gateway_confirm_result | [CrossChainConfirm](#common-CrossChainConfirm) | repeated | 鍚勭綉鍏崇‘璁ょ粨鏋� |
| state | [CrossChainStateValue](#common-CrossChainStateValue) |  | 璺ㄩ摼鐘舵€� |
| confirm_info | [ConfirmInfo](#common-ConfirmInfo) |  | 婧愮綉鍏砪onfirm鏁版嵁锛屼綔涓烘爣璇嗭紝涓户缃戝叧鍚戣法閾剧綉鍏冲彂閫佺‘璁ゆ搷浣� |
| cancel_info | [CancelInfo](#common-CancelInfo) |  | 婧愮綉鍏砪ancel鏁版嵁锛屼綔涓烘爣璇嗭紝涓户缃戝叧鍚戣法閾剧綉鍏冲彂閫佸彇娑堟搷浣� |
| confirm_result | [CrossChainConfirm](#common-CrossChainConfirm) |  | 婧愮綉鍏崇‘璁ょ粨鏋� |
| timeout | [int64](#int64) |  | 瓒呮椂鏃堕棿 s |
| cross_type | [CrossType](#common-CrossType) |  | 璺ㄩ摼绫诲瀷 |






<a name="common-CrossChainMsg"></a>

### CrossChainMsg



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| gateway_id | [string](#string) |  | 鐩爣缃戝叧Id |
| chain_rid | [string](#string) |  | 鐩爣閾捐祫婧恑d |
| contract_name | [string](#string) |  | 鐩爣閾惧悎绾﹀悕绉� |
| method | [string](#string) |  | 鐩爣鍚堢害鏂规硶鍚嶇О |
| identity | [string](#string) | repeated | 绛惧悕韬唤Id |
| parameter | [string](#string) |  | 鐩爣鍚堢害鍙傛暟锛宩son瀛楃涓诧紝chainmaker涓簁v string json瀛楃涓诧紝fabric涓篴rray string json瀛楃涓诧紝bcos涓篴rray string json瀛楃涓� |
| param_data | [int32](#int32) | repeated | 鍙傛暟鏁版嵁鍦╡ventData鏁扮粍涓殑绱㈠紩锛屽熀浜庤瀛楁鐢熸垚鐨勬暟缁勫皢琚娇鐢╢mt.Sprintf鏂规硶涓巔arameter鍙傛暟鍏卞悓缁勬垚鐩爣鍚堢害鍙傛暟锛屽彧鐢ㄤ簬浜ゆ槗瑙﹀彂妯$増 eventData鏄悎绾︿簨浠剁殑鍏蜂綋鍐呭鐢熸垚鐨勬暟缁勶紝chainmaker涓哄叿浣撶殑浜嬩欢鍐呭锛宖abric涓哄叿浣撴椂闂村唴瀹圭粡杩噑tring銆乵ap[string]string銆乕]string澶勭悊涔嬪悗鐢熸垚鐨勬暟缁� |
| param_data_type | [EventDataType](#common-EventDataType) | repeated | bcos 闇€瑕佹寚瀹氭瘡涓弬鏁扮殑绫诲瀷锛屽叾浠栦笉闇€瑕� |
| extra_data | [string](#string) |  | 鎵╁睍鏁版嵁锛岀敱鍙戣捣缃戝叧鍜岀洰鏍囩綉鍏冲晢瀹氾紝涓户缃戝叧鍙礋璐d紶杈� |
| confirm_info | [ConfirmInfo](#common-ConfirmInfo) |  | QUERY绫诲瀷鎸囧畾鏃犳晥锛屼綔涓烘爣璇嗭紝涓户缃戝叧鍚戣法閾剧綉鍏冲彂閫佺‘璁ゆ搷浣� |
| cancel_info | [CancelInfo](#common-CancelInfo) |  | QUERY绫诲瀷鎸囧畾鏃犳晥锛� 浣滀负鏍囪瘑锛屼腑缁х綉鍏冲悜璺ㄩ摼缃戝叧鍙戦€佸彇娑堟搷浣� |
| abi | [string](#string) |  | bcos abi锛屽彧鏈塨cos闇€瑕� |






<a name="common-CrossChainTxUpChain"></a>

### CrossChainTxUpChain
缃戝叧浜ゆ槗缁撴灉涓婇摼瀵硅薄


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| index | [int32](#int32) |  | 纭鐨勭储寮� |
| tx_content_with_verify | [TxContentWithVerify](#common-TxContentWithVerify) |  | 浜ゆ槗缁撴灉 |






<a name="common-FabricConfig"></a>

### FabricConfig
fabric閰嶇疆淇℃伅


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| chain_rid | [string](#string) |  | 閾捐祫婧怚d |
| chain_id | [string](#string) |  | 閾綢d |
| org | [Org](#common-Org) | repeated | 缁勭粐 |
| tls_cert | [string](#string) |  | tls璇佷功 |
| tls_key | [string](#string) |  | tls绉侀挜 |
| orderers | [Orderer](#common-Orderer) | repeated | orderer鑺傜偣 |
| state | [bool](#bool) |  | 鐘舵€侊紝鐢辩綉鍏宠缃敤鎴蜂笉闇€瑕佸叧绯� |
| state_message | [string](#string) |  | 鐘舵€佹弿杩帮紝鐢辩綉鍏宠缃紝鐘舵€佷负true锛屾澶勬槸鎴愬姛淇℃伅锛岀姸鎬佷负false锛屾澶勬湁閿欒淇℃伅 |






<a name="common-GatewayInfo"></a>

### GatewayInfo
缃戝叧淇℃伅


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| gateway_id | [string](#string) |  | 缃戝叧id锛屾敞鍐岀殑鏃跺€欎笉闇€瑕佸啓锛岀敱涓户缃戝叧鐢熸垚锛屼繚璇佸敮涓€鎬� |
| gateway_name | [string](#string) |  | 缃戝叧鍚嶇О锛屽鎴疯嚜瀹氫箟锛屼篃鍙互娌℃湁锛屽彧鏄竴涓爣璁帮紝娌℃湁瀹為檯鎰忎箟 |
| address | [string](#string) |  | 缃戝叧鍦板潃 |
| server_name | [string](#string) |  | 缃戝叧鐨剆ervername |
| tlsca | [string](#string) |  | 缃戝叧tlsca璇佷功 |
| client_cert | [string](#string) |  | 缃戝叧瀹㈡埛绔瘉涔� |
| to_gateway_list | [string](#string) | repeated | 鍏佽鍚戝摢浜涚綉鍏冲彂璧疯法閾捐姹�,绌鸿〃绀轰笉浣滈檺鍒� |
| from_gateway_list | [string](#string) | repeated | 鍏佽鍝簺缃戝叧鍚戝畠鍙戣捣璺ㄩ摼璇锋眰锛岀┖琛ㄧず涓嶄綔闄愬埗 |
| tx_verify_type | [TxVerifyType](#common-TxVerifyType) |  | 浜ゆ槗楠岃瘉绫诲瀷 |
| TxVerifyInterface | [TxVerifyInterface](#common-TxVerifyInterface) |  | 浜ゆ槗楠岃瘉鎺ュ彛,鍏堟敮鎸乺estful |
| call_type | [CallType](#common-CallType) |  | 璋冪敤绫诲瀷 |
| relay_chain_id | [string](#string) |  | 璇ヨ法閾剧綉鍏冲湪娉ㄥ唽浜庡摢涓腑缁х綉鍏� |






<a name="common-MapEventDataType"></a>

### MapEventDataType
map绫诲瀷鐨勪簨浠剁被鍨�


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| key | [string](#string) |  | key |
| data_type | [EventDataType](#common-EventDataType) |  | 鏁版嵁绫诲瀷 |






<a name="common-Node"></a>

### Node
chainmaker鑺傜偣淇℃伅


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| node_addr | [string](#string) |  | 鑺傜偣鍦板潃 |
| conn_cnt | [int32](#int32) |  | 杩炴帴姹犲ぇ灏� |
| enable_tls | [bool](#bool) |  | 鏄惁寮€鍚痶ls |
| trust_root | [string](#string) | repeated | trust_root_paths |
| tls_host_name | [string](#string) |  | tls_host_name |






<a name="common-Orderer"></a>

### Orderer
fabric orderer 鑺傜偣淇℃伅


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| node_addr | [string](#string) |  | 鑺傜偣鍦板潃 |
| trust_root | [string](#string) | repeated | trust_root_paths |
| tls_host_name | [string](#string) |  | tls_host_name |






<a name="common-Org"></a>

### Org
fabric org 淇℃伅


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| org_id | [string](#string) |  | org id |
| msp_id | [string](#string) |  | mspId |
| sign_cert | [string](#string) |  | 绛惧悕璇佷功 |
| sign_key | [string](#string) |  | 绛惧悕绉侀挜 |
| peers | [Peer](#common-Peer) | repeated | peer鑺傜偣 |






<a name="common-PageInfo"></a>

### PageInfo
鍒嗛〉淇℃伅


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| page_size | [uint64](#uint64) |  | 姣忛〉澶氬皯鏁版嵁 |
| page_number | [uint64](#uint64) |  | 绗嚑椤� |
| total_count | [uint64](#uint64) |  | 鎬诲叡鏈夊灏戞暟鎹� |
| limit | [uint64](#uint64) |  | 鎬诲叡鏈夊灏戦〉 |






<a name="common-Peer"></a>

### Peer
fabric peer 鑺傜偣淇℃伅


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| node_addr | [string](#string) |  | 鑺傜偣鍦板潃 |
| trust_root | [string](#string) | repeated | trust_root_paths |
| tls_host_name | [string](#string) |  | tls_host_name |






<a name="common-Pkcs11"></a>

### Pkcs11
pkcs11 瀵嗙爜鏈虹浉鍏�


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| enable | [bool](#bool) |  | 鏄惁寮€鍚紝鐜板湪涓€寰嬪叧闂笉鍋氬鐞� |






<a name="common-TxContent"></a>

### TxContent
浜ゆ槗鍐呭


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| tx_id | [string](#string) |  | 浜ゆ槗id |
| tx | [bytes](#bytes) |  | 浜ゆ槗瀹為檯鍐呭锛宩son瀛楃涓� |
| tx_result | [TxResultValue](#common-TxResultValue) |  | 浜ゆ槗鎵ц缁撴灉 |
| gateway_id | [string](#string) |  | 鎵ц璇ヤ氦鏄撶殑缃戝叧Id |
| chain_rid | [string](#string) |  | 鎵ц璇ヤ氦鏄撶殑閾捐祫婧怚d |
| tx_prove | [string](#string) |  | json瀛楃涓�,杩欓噷鏄獙璇佺殑鍙傛暟锛屼笉绠′粈涔堣璇佹柟寮忛兘浼氱洿鎺ヤ紶缁檚pv鎴栬€呰璇佹帴鍙� |
| block_height | [int64](#int64) |  | 鍦ㄥ摢涓潡涓� |






<a name="common-TxContentWithVerify"></a>

### TxContentWithVerify
浜ゆ槗鍐呭锛屽寘鎷獙璇佺粨鏋�


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| tx_content | [TxContent](#common-TxContent) |  | 浜ゆ槗鐨勫叿浣撶粨鏋滃拰鍐呭 |
| try_result | [string](#string) | repeated | try result |
| tx_verify_result | [TxVerifyRsult](#common-TxVerifyRsult) |  | 涓户缃戝叧瀵逛氦鏄撶殑璁よ瘉缁撴灉 |






<a name="common-TxVerifyInterface"></a>

### TxVerifyInterface
浜ゆ槗楠岃瘉鎺ュ彛锛屽厛鏀寔restful


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| address | [string](#string) |  | address,濡傦紝涓嶉渶瑕佸啓http鎴栬€卙ttps锛�127.0.0.1:8080/txverify |
| tls_enable | [bool](#bool) |  | 鏄惁寮€鍚痶ls |
| tlsca | [string](#string) |  | 浜ゆ槗楠岃瘉鎺ュ彛tlsca璇佷功 |
| client_cert | [string](#string) |  | 浜ゆ槗楠岃瘉鎺ュ彛瀹㈡埛绔瘉涔� |
| host_name | [string](#string) |  | 鏈嶅姟鍚� |








<a name="common-CallType"></a>

### CallType
缃戝叧璋冪敤绫诲瀷

| Name | Number | Description |
| ---- | ------ | ----------- |
| REST | 0 | restful鎺ュ彛鏂瑰紡 |
| GRPC | 1 | grpc鏂瑰紡 |



<a name="common-ChainmakerRuntimeType"></a>

### ChainmakerRuntimeType
鍚堢害杩愯鏃�

| Name | Number | Description |
| ---- | ------ | ----------- |
| INVALID | 0 | 鏃犳晥鐨� |
| NATIVE | 1 | 闀垮畨閾惧唴閮ㄧ郴缁熷悎绾� |
| WASMER | 2 | vm-wasmer, language-c&#43;&#43; |
| WXVM | 3 | vm-wxvm, language-cpp |
| GASM | 4 | wasm, tinygo |
| EVM | 5 | vm-evm |
| DOCKER_GO | 6 | vm-docker, go璇█ |
| DOCKER_JAVA | 7 | vm-docker, java璇█ |



<a name="common-Code"></a>

### Code


| Name | Number | Description |
| ---- | ------ | ----------- |
| GATEWAY_SUCCESS | 0 | 缃戝叧杩斿洖鎴愬姛 |
| GATEWAY_TIMEOUT | 1 | 缃戝叧瓒呮椂 |
| INVALID_PARAMETER | 2 | 鍙傛暟鏃犳晥 |
| TX_PROVE_ERROR | 3 | 浜ゆ槗璁よ瘉澶辫触 |
| CONTRACT_FAIL | 4 | 鍚堢害鎵ц澶辫触 |
| INTERNAL_ERROR | 5 | 鍐呴儴閿欒 |
| RELAY_CHAIN_ERROR | 6 | 涓户閾鹃敊璇� |



<a name="common-CrossChainStateValue"></a>

### CrossChainStateValue
璺ㄩ摼鐘舵€�

| Name | Number | Description |
| ---- | ------ | ----------- |
| NEW | 0 | 鏂板缓 |
| WAIT_EXECUTE | 1 | 寰呮墽琛� |
| WAIT_CONFIRM | 2 | 寰呮彁浜� |
| CONFIRM_END | 3 | 纭缁撴潫 |
| CANCEL_END | 4 | 鍥炴粴缁撴潫 |



<a name="common-CrossType"></a>

### CrossType


| Name | Number | Description |
| ---- | ------ | ----------- |
| QUERY | 0 | 璺ㄩ摼鏌ヨ |
| INVOKE | 1 | 璺ㄩ摼浜ゆ槗 |



<a name="common-EventDataType"></a>

### EventDataType
浜嬩欢鏁版嵁绫诲瀷

| Name | Number | Description |
| ---- | ------ | ----------- |
| STRING | 0 | string |
| MAP | 1 | map |
| BYTE | 2 | byte |
| BOOL | 3 | BOOL |
| INT | 4 | int |
| FLOAT | 5 | float |
| ARRAY | 6 | 鏁扮粍 |
| HASH | 7 | hash, bcos涓撶敤 |
| ADDRESS | 8 | ADDRESS, bcos涓撶敤 |



<a name="common-EventName"></a>

### EventName


| Name | Number | Description |
| ---- | ------ | ----------- |
| NEW_CROSS_CHAIN | 0 | new |
| CROSS_CHAIN_TRY_END | 1 | try end |
| UPADATE_RESULT_END | 2 | 璺ㄩ摼缁撴灉鏇存柊瀹屾垚 |
| GATEWAY_CONFIRM_END | 3 | 鎻愪氦瀹屾垚 |
| SRC_GATEWAY_CONFIRM_END | 4 | 婧愮綉鍏虫彁浜ゅ畬鎴� |



<a name="common-Operate"></a>

### Operate
璺ㄩ摼浜嬩欢绠$悊鎿嶄綔

| Name | Number | Description |
| ---- | ------ | ----------- |
| SAVE | 0 | 鏂板缓 |
| UPDATE | 1 | 鏇存柊 |
| DELETE | 2 | 鍒犻櫎 |
| GET | 3 | 鑾峰彇 |



<a name="common-TriggerCondition"></a>

### TriggerCondition
璺ㄩ摼瑙﹀彂鏂瑰紡

| Name | Number | Description |
| ---- | ------ | ----------- |
| COMPLETELY_CONTRACT_EVENT | 0 | 瀹屽叏鐢ㄦ埛鍚堢害浜嬩欢瑙﹀彂锛岀敤鎴烽渶瑕佸皢relaye_chain.BeginCrossChainRequest缁撴瀯鑷鍦ㄥ悎绾︿腑缁勮锛岄€氳繃pb搴忓垪鍖栧悗base64缂栫爜鐢ㄤ簨浠跺彂閫佸嚭鏉ワ紙鍖呭惈璺ㄩ摼鏁版嵁,涓嶉渶瑕佸叾浠栦俊鎭級 chainmaker涓轰簨浠舵暟缁勭涓€涓紝fabric涓烘暟缁刾ayload锛宐cos涓轰簨浠剁涓€涓弬鏁� |
| CONTRACT_EVENT | 1 | 鐢ㄦ埛鍚堢害浜嬩欢瑙﹀彂锛堜笉鍖呭惈璺ㄩ摼鏁版嵁锛岄渶瑕佽法閾捐Е鍙戝櫒鎻愪緵鍏朵粬淇℃伅锛� |
| TBIS_CONTRACT | 2 | TBIS鍗忚鍚堢害閫傞厤 |



<a name="common-TryResult"></a>

### TryResult


| Name | Number | Description |
| ---- | ------ | ----------- |
| TRY_RESULT | 0 | try reult锛岃瀛楁鐨勫悕绉板湪鍙傛暟瀛楁涓负鐩爣閾剧殑杩斿洖鍊煎崰浣� |



<a name="common-TxResultValue"></a>

### TxResultValue
tx鎵ц缁撴灉

| Name | Number | Description |
| ---- | ------ | ----------- |
| TX_SUCCESS | 0 | 浜ゆ槗鎵ц鎴愬姛 |
| TX_TIMEOUT | 1 | 浜ゆ槗瓒呮椂 |
| TX_FAIL | 2 | 浜ゆ槗澶辫触 |
| TX_NOT_EXIST | 3 | 浜ゆ槗涓嶅瓨鍦� |
| TX_NO_PERMISSIONS | 4 | 浜ゆ槗鏉冮檺涓嶈冻 |
| GATEWAY_NOT_FOUND | 5 | 缃戝叧涓嶅瓨鍦� |
| GATEWAY_PINGPONG_ERROR | 6 | 鐩爣缃戝叧楠屾椿閿欒 |
| CHAIN_PING_ERROR | 7 | 鐩爣閾鹃獙娲婚敊璇� |
| SRC_GATEWAY_GET_ERROR | 8 | 婧愮綉鍏宠幏鍙栧け璐� |



<a name="common-TxVerifyRsult"></a>

### TxVerifyRsult
涓户缃戝叧瀵逛氦鏄撶殑璁よ瘉缁撴灉

| Name | Number | Description |
| ---- | ------ | ----------- |
| VERIFY_SUCCESS | 0 | 璁よ瘉鎴愬姛 |
| VERIFY_INVALID | 1 | 璁よ瘉澶辫触 |
| VERIFY_NOT_NEED | 2 | 涓嶉渶瑕佽璇� |



<a name="common-TxVerifyType"></a>

### TxVerifyType


| Name | Number | Description |
| ---- | ------ | ----------- |
| SPV | 0 | spv鏂瑰紡璁よ瘉 |
| RPC_INTERFACE | 1 | rpc鎺ュ彛璁よ瘉 |
| NOT_NEED | 2 | 涓嶉渶瑕佽璇� |



<a name="common-Version"></a>

### Version
鐗堟湰鍙�

| Name | Number | Description |
| ---- | ------ | ----------- |
| V1_0_0 | 0 | v1.0.0 |










<a name="common_cross_chain_request-proto"></a>
<p align="right"><a href="#top">Top</a></p>

## common/cross_chain/request.proto
Copyright (C) THL A29 Limited, a Tencent company. All rights reserved.
SPDX-License-Identifier: Apache-2.0


<a name="cross_chain-ChainIdentityRequest"></a>

### ChainIdentityRequest
閾鹃厤缃鐞�


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| version | [common.Version](#common-Version) |  | 璇锋眰娑堟伅鐗堟湰 |
| operate | [common.Operate](#common-Operate) |  | 鎿嶄綔 |
| chainmaker_config | [common.ChainmakerConfig](#common-ChainmakerConfig) |  | chainmaker閰嶇疆锛宑hainmaker缃戝叧涓撳睘 |
| fabric_config | [common.FabricConfig](#common-FabricConfig) |  | fabric閰嶇疆锛宖abric缃戝叧涓撳睘 |
| bcos_config | [common.BcosConfig](#common-BcosConfig) |  | bcos閰嶇疆锛宐cos缃戝叧涓撳睘 |






<a name="cross_chain-CrossChainCancelRequest"></a>

### CrossChainCancelRequest
璺ㄩ摼缁撴灉纭


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| version | [common.Version](#common-Version) |  | 璇锋眰娑堟伅鐗堟湰 |
| cross_chain_id | [string](#string) |  | 璺ㄩ摼Id |
| cross_chain_name | [string](#string) |  | 璺ㄩ摼鍚嶇О |
| cross_chain_flag | [string](#string) |  | 璺ㄩ摼鏍囪 |
| cancel_info | [common.CancelInfo](#common-CancelInfo) |  | cancel鏁版嵁 |






<a name="cross_chain-CrossChainConfirmRequest"></a>

### CrossChainConfirmRequest
璺ㄩ摼缁撴灉纭


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| version | [common.Version](#common-Version) |  | 璇锋眰娑堟伅鐗堟湰 |
| cross_chain_id | [string](#string) |  | 璺ㄩ摼Id |
| cross_chain_name | [string](#string) |  | 璺ㄩ摼鍚嶇О |
| cross_chain_flag | [string](#string) |  | 璺ㄩ摼鏍囪 |
| confirm_info | [common.ConfirmInfo](#common-ConfirmInfo) |  | confirm鏁版嵁 |
| try_result | [string](#string) | repeated | try_result |
| cross_type | [common.CrossType](#common-CrossType) |  | 璺ㄩ摼绫诲瀷 |






<a name="cross_chain-CrossChainEventRequest"></a>

### CrossChainEventRequest
璺ㄩ摼浜嬩欢绠$悊璇锋眰


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| version | [common.Version](#common-Version) |  | 璇锋眰娑堟伅鐗堟湰 |
| operate | [common.Operate](#common-Operate) |  | 鎿嶄綔 |
| cross_chain_event | [common.CrossChainEvent](#common-CrossChainEvent) |  | 鍏蜂綋鍐呭 |






<a name="cross_chain-CrossChainTryRequest"></a>

### CrossChainTryRequest
涓户缃戝叧鍚戣法閾剧綉鍏冲彂璧疯法閾捐姹傜殑娑堟伅


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| version | [common.Version](#common-Version) |  | 璇锋眰娑堟伅鐗堟湰 |
| cross_chain_id | [string](#string) |  | 璺ㄩ摼Id |
| cross_chain_name | [string](#string) |  | 璺ㄩ摼鍚嶇О |
| cross_chain_flag | [string](#string) |  | 璺ㄩ摼鏍囪 |
| cross_chain_msg | [common.CrossChainMsg](#common-CrossChainMsg) |  | 璺ㄩ摼淇℃伅 |
| tx_content | [common.TxContentWithVerify](#common-TxContentWithVerify) |  | 璺ㄩ摼棣栫瑪浜ゆ槗鍐呭 |
| from | [string](#string) |  | 鍙戣捣璺ㄩ摼缃戝叧鐨刬d |






<a name="cross_chain-IsCrossChainSuccessRequest"></a>

### IsCrossChainSuccessRequest
鍒ゆ柇璺ㄩ摼缁撴灉


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| version | [common.Version](#common-Version) |  | 璇锋眰娑堟伅鐗堟湰 |
| cross_chain_id | [string](#string) |  | 璺ㄩ摼Id |
| cross_chain_name | [string](#string) |  | 璺ㄩ摼鍚嶇О |
| cross_chain_flag | [string](#string) |  | 璺ㄩ摼鏍囪 |
| tx_content | [common.TxContentWithVerify](#common-TxContentWithVerify) | repeated | 姣忎釜缃戝叧鎵ц璺ㄩ摼浜ゆ槗鐨勭粨鏋� |






<a name="cross_chain-TxVerifyRequest"></a>

### TxVerifyRequest
浜ゆ槗楠岃瘉璇锋眰


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| version | [common.Version](#common-Version) |  | 璇锋眰娑堟伅鐗堟湰 |
| tx_prove | [string](#string) |  | 璇佹槑鍐呭锛宩son瀛楃涓诧紝杩欓噷瑕佸拰TxContent涓殑tx_prove瀛楁瀵瑰簲 |















<a name="common_cross_chain_response-proto"></a>
<p align="right"><a href="#top">Top</a></p>

## common/cross_chain/response.proto
Copyright (C) THL A29 Limited, a Tencent company. All rights reserved.
SPDX-License-Identifier: Apache-2.0


<a name="cross_chain-ChainIdentityResponse"></a>

### ChainIdentityResponse



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| code | [common.Code](#common-Code) |  | 鎵ц缁撴灉code |
| message | [string](#string) |  | 杩斿洖娑堟伅鍐呭 |
| chainmaker_config | [common.ChainmakerConfig](#common-ChainmakerConfig) | repeated | chainmaker 閰嶇疆鍒楄〃 |
| fabric_config | [common.FabricConfig](#common-FabricConfig) | repeated | fabric 閰嶇疆鍒楄〃 |
| bcos_config | [common.BcosConfig](#common-BcosConfig) | repeated | bcos 閰嶇疆鍒楄〃 |






<a name="cross_chain-CrossChainCancelResponse"></a>

### CrossChainCancelResponse
璺ㄩ摼缁撴灉纭


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| tx_content | [common.TxContent](#common-TxContent) |  | 浜ゆ槗璇︽儏锛屽彲閫夛紝涓嶉獙璇� |
| code | [common.Code](#common-Code) |  | 鎵ц缁撴灉code |
| message | [string](#string) |  | 杩斿洖娑堟伅鍐呭 |






<a name="cross_chain-CrossChainConfirmResponse"></a>

### CrossChainConfirmResponse
璺ㄩ摼缁撴灉纭


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| tx_content | [common.TxContent](#common-TxContent) |  | 浜ゆ槗璇︽儏锛屽彲閫夛紝涓嶉獙璇� |
| code | [common.Code](#common-Code) |  | 鎵ц缁撴灉code |
| message | [string](#string) |  | 杩斿洖娑堟伅鍐呭 |






<a name="cross_chain-CrossChainEventResponse"></a>

### CrossChainEventResponse
璺ㄩ摼浜嬩欢绠$悊杩斿洖


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| code | [common.Code](#common-Code) |  | 鎵ц缁撴灉code |
| message | [string](#string) |  | 杩斿洖娑堟伅鍐呭 |
| cross_chain_event_list | [common.CrossChainEvent](#common-CrossChainEvent) | repeated | 浜嬩欢鍒楄〃 |






<a name="cross_chain-CrossChainTryResponse"></a>

### CrossChainTryResponse
涓户缃戝叧鍚戣法閾剧綉鍏冲彂璧疯法閾捐姹傚洖澶�


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| cross_chain_id | [string](#string) |  | 璺ㄩ摼Id |
| cross_chain_name | [string](#string) |  | 璺ㄩ摼鍚嶇О |
| cross_chain_flag | [string](#string) |  | 璺ㄩ摼鏍囪 |
| tx_content | [common.TxContent](#common-TxContent) |  | 璺ㄩ摼浜ゆ槗鍐呭 |
| try_result | [string](#string) | repeated | 璺ㄩ摼浜ゆ槗缁撴灉 |
| code | [common.Code](#common-Code) |  | 鎵ц缁撴灉code |
| message | [string](#string) |  | 杩斿洖娑堟伅鍐呭 |






<a name="cross_chain-IsCrossChainSuccessResponse"></a>

### IsCrossChainSuccessResponse
鍒ゆ柇璺ㄩ摼缁撴灉


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| cross_chain_result | [bool](#bool) |  | 璺ㄩ摼缁撴灉 |
| code | [common.Code](#common-Code) |  | 鎵ц缁撴灉code |
| message | [string](#string) |  | 杩斿洖娑堟伅鍐呭 |






<a name="cross_chain-PingPongResponse"></a>

### PingPongResponse
pingpong杩斿洖


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| chain_ok | [bool](#bool) |  | 閾炬槸鍚︽甯� |






<a name="cross_chain-TxVerifyResponse"></a>

### TxVerifyResponse
浜ゆ槗楠岃瘉缁撴灉


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| tx_verify_result | [bool](#bool) |  | 浜ゆ槗楠岃瘉缁撴灉 |
| code | [common.Code](#common-Code) |  | 鎵ц缁撴灉code |
| message | [string](#string) |  | 杩斿洖娑堟伅鍐呭 |















<a name="common_relay_chain_request-proto"></a>
<p align="right"><a href="#top">Top</a></p>

## common/relay_chain/request.proto
Copyright (C) THL A29 Limited, a Tencent company. All rights reserved.
SPDX-License-Identifier: Apache-2.0


<a name="relay_chain-BeginCrossChainRequest"></a>

### BeginCrossChainRequest
璺ㄩ摼缃戝叧鍚戜腑缁х綉鍏冲彂閫佽法閾捐姹�


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| version | [common.Version](#common-Version) |  | 璇锋眰娑堟伅鐗堟湰 |
| cross_chain_id | [string](#string) |  | 璺ㄩ摼Id锛屽彲浠ョ敱缃戝叧鐢熸垚 |
| cross_chain_name | [string](#string) |  | 璺ㄩ摼鍚嶇О |
| cross_chain_flag | [string](#string) |  | 璺ㄩ摼鏍囪 |
| cross_chain_msg | [common.CrossChainMsg](#common-CrossChainMsg) | repeated | 璺ㄩ摼淇℃伅 |
| tx_content | [common.TxContent](#common-TxContent) |  | 璺ㄩ摼棣栫瑪浜ゆ槗鍐呭 |
| from | [string](#string) |  | 鍙戣捣璺ㄩ摼缃戝叧鐨刬d |
| timeout | [int64](#int64) |  | timeout, s |
| confirm_info | [common.ConfirmInfo](#common-ConfirmInfo) |  | confirm鏁版嵁 |
| cancel_info | [common.CancelInfo](#common-CancelInfo) |  | cancel鏁版嵁 |
| cross_type | [common.CrossType](#common-CrossType) |  | 璺ㄩ摼绫诲瀷 |






<a name="relay_chain-GatewayRegisterRequest"></a>

### GatewayRegisterRequest
缃戝叧娉ㄥ唽


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| version | [common.Version](#common-Version) |  | 璇锋眰娑堟伅鐗堟湰 |
| gateway_info | [common.GatewayInfo](#common-GatewayInfo) |  | 缃戝叧淇℃伅 |






<a name="relay_chain-GatewayUpdateRequest"></a>

### GatewayUpdateRequest
缃戝叧鏇存柊


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| version | [common.Version](#common-Version) |  | 璇锋眰娑堟伅鐗堟湰 |
| gateway_info | [common.GatewayInfo](#common-GatewayInfo) |  | 缃戝叧淇℃伅 |






<a name="relay_chain-InitContractRequest"></a>

### InitContractRequest
鍒涘缓鍏锋湁鍚屾鍖哄潡澶淬€佷氦鏄撻獙璇佸姛鑳界殑spv鍚堢害鐨勮姹�


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| version | [common.Version](#common-Version) |  | 璇锋眰娑堟伅鐗堟湰 |
| contract_name | [string](#string) |  | 鍚堢害鍚嶏紝spv鍚堢害鍙傛暟鍜屽悕绉版槸鍥哄畾濂界殑锛屼笉闇€瑕佷紶锛屾牸寮忎负&#34;spv[gatewayId][chainRid]&#34; |
| contract_version | [string](#string) |  | 鐗堟湰鍙� |
| byte_code | [bytes](#bytes) |  | bytecode base64 |
| runtime_type | [common.ChainmakerRuntimeType](#common-ChainmakerRuntimeType) |  | runtimeType |
| key_value_pairs | [common.ContractKeyValuePair](#common-ContractKeyValuePair) | repeated | 鍒濆鍖栧弬鏁� |
| gateway_id | [string](#string) |  | 缃戝叧id |
| chain_rid | [string](#string) |  | 閾捐祫婧恑d |






<a name="relay_chain-QueryCrossChainRequest"></a>

### QueryCrossChainRequest
鏌ヨ璺ㄩ摼淇℃伅


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| version | [common.Version](#common-Version) |  | 璇锋眰娑堟伅鐗堟湰 |
| cross_chain_id | [string](#string) |  | 璺ㄩ摼id锛堝彲閫夛級 |
| page_size | [uint64](#uint64) |  | 姣忛〉澶氬皯鏁版嵁(鍙€�) |
| page_number | [uint64](#uint64) |  | 绗嚑椤�(鍙€�) |






<a name="relay_chain-QueryGatewayRequest"></a>

### QueryGatewayRequest
鏌ヨ缃戝叧淇℃伅


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| version | [common.Version](#common-Version) |  | 璇锋眰娑堟伅鐗堟湰 |
| gateway_id | [string](#string) |  | 缃戝叧id锛堝彲閫夛級 |
| page_size | [uint64](#uint64) |  | 姣忛〉澶氬皯鏁版嵁(鍙€�) |
| page_number | [uint64](#uint64) |  | 绗嚑椤�(鍙€�) |






<a name="relay_chain-SyncBlockHeaderRequest"></a>

### SyncBlockHeaderRequest
鍚戜腑缁х綉鍏冲彂閫佸悓姝ュ尯鍧楄姹�


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| version | [common.Version](#common-Version) |  | 璇锋眰娑堟伅鐗堟湰 |
| gateway_id | [string](#string) |  | 鍖哄潡澶翠笌缃戝叧Id |
| chain_rid | [string](#string) |  | 閾緄d |
| block_height | [uint64](#uint64) |  | 鍖哄潡楂樺害 |
| block_header | [bytes](#bytes) |  | 鍖哄潡澶村唴瀹� |






<a name="relay_chain-UpdateContractRequest"></a>

### UpdateContractRequest
鏇存柊鍏锋湁鍚屾鍖哄潡澶淬€佷氦鏄撻獙璇佸姛鑳界殑spv鍚堢害鐨勮姹�


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| version | [common.Version](#common-Version) |  | 璇锋眰娑堟伅鐗堟湰 |
| contract_name | [string](#string) |  | 鍚堢害鍚� |
| contract_version | [string](#string) |  | 鐗堟湰鍙� |
| byte_code | [bytes](#bytes) |  | bytecode |
| runtime_type | [common.ChainmakerRuntimeType](#common-ChainmakerRuntimeType) |  | runtimeType |
| key_value_pairs | [common.ContractKeyValuePair](#common-ContractKeyValuePair) | repeated | 鍒濆鍖栧弬鏁� |
| gateway_id | [string](#string) |  | 缃戝叧id |
| chain_rid | [string](#string) |  | 閾捐祫婧恑d |















<a name="common_relay_chain_response-proto"></a>
<p align="right"><a href="#top">Top</a></p>

## common/relay_chain/response.proto
Copyright (C) THL A29 Limited, a Tencent company. All rights reserved.
SPDX-License-Identifier: Apache-2.0


<a name="relay_chain-BeginCrossChainResponse"></a>

### BeginCrossChainResponse
璺ㄩ摼缃戝叧鍚戜腑缁х綉鍏冲彂閫佽法閾捐姹傝繑鍥�


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| code | [common.Code](#common-Code) |  | 鎵ц缁撴灉code |
| cross_chain_id | [string](#string) |  | 璺ㄩ摼Id |
| message | [string](#string) |  | 杩斿洖娑堟伅鍐呭 |






<a name="relay_chain-GatewayRegisterResponse"></a>

### GatewayRegisterResponse
缃戝叧娉ㄥ唽


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| code | [common.Code](#common-Code) |  | 鎵ц缁撴灉code |
| gateway_id | [string](#string) |  | 璺ㄩ摼缃戝叧Id |
| message | [string](#string) |  | 杩斿洖娑堟伅鍐呭 |






<a name="relay_chain-GatewayUpdateResponse"></a>

### GatewayUpdateResponse
缃戝叧鏇存柊


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| code | [common.Code](#common-Code) |  | 鎵ц缁撴灉code |
| gateway_id | [string](#string) |  | 璺ㄩ摼Id |
| message | [string](#string) |  | 杩斿洖娑堟伅鍐呭 |






<a name="relay_chain-InitContractResponse"></a>

### InitContractResponse
瀹夎鍖哄潡澶村悓姝ュ拰spv楠岃瘉鍚堢害


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| code | [common.Code](#common-Code) |  | 鎵ц缁撴灉code |
| message | [string](#string) |  | 杩斿洖娑堟伅鍐呭 |






<a name="relay_chain-QueryCrossChainResponse"></a>

### QueryCrossChainResponse
鏌ヨ璺ㄩ摼淇℃伅


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| cross_chain_info | [common.CrossChainInfo](#common-CrossChainInfo) | repeated | 璺ㄩ摼淇℃伅鍒楄〃 |
| page_info | [common.PageInfo](#common-PageInfo) |  | 鍒嗛〉淇℃伅 |
| code | [common.Code](#common-Code) |  | 鎵ц缁撴灉code |
| message | [string](#string) |  | 杩斿洖娑堟伅鍐呭 |






<a name="relay_chain-QueryGatewayResponse"></a>

### QueryGatewayResponse
鏌ヨ缃戝叧淇℃伅


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| gateway_info | [common.GatewayInfo](#common-GatewayInfo) | repeated | 缃戝叧淇℃伅鍒楄〃 |
| page_info | [common.PageInfo](#common-PageInfo) |  | 鍒嗛〉淇℃伅 |
| code | [common.Code](#common-Code) |  | 鎵ц缁撴灉code |
| message | [string](#string) |  | 杩斿洖娑堟伅鍐呭 |






<a name="relay_chain-SyncBlockHeaderResponse"></a>

### SyncBlockHeaderResponse
鍚戜腑缁х綉鍏冲彂閫佸悓姝ュ尯鍧楄姹傝繑鍥�


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| code | [common.Code](#common-Code) |  | 鎵ц缁撴灉code |
| message | [string](#string) |  | 杩斿洖娑堟伅鍐呭 |






<a name="relay_chain-UpdateContractResponse"></a>

### UpdateContractResponse
鍗囩骇鍖哄潡澶村悓姝ュ拰spv楠岃瘉鍚堢害


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| code | [common.Code](#common-Code) |  | 鎵ц缁撴灉code |
| message | [string](#string) |  | 杩斿洖娑堟伅鍐呭 |















## Scalar Value Types

| .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby |
| ----------- | ----- | --- | ---- | ------ | -- | -- | --- | ---- |
| <a name="double" /> double |  | double | double | float | float64 | double | float | Float |
| <a name="float" /> float |  | float | float | float | float32 | float | float | Float |
| <a name="int32" /> int32 | Uses variable-length encoding. Inefficient for encoding negative numbers 鈥� if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| <a name="int64" /> int64 | Uses variable-length encoding. Inefficient for encoding negative numbers 鈥� if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| <a name="uint32" /> uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) |
| <a name="uint64" /> uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) |
| <a name="sint32" /> sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| <a name="sint64" /> sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| <a name="fixed32" /> fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) |
| <a name="fixed64" /> fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum |
| <a name="sfixed32" /> sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| <a name="sfixed64" /> sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| <a name="bool" /> bool |  | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass |
| <a name="string" /> string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) |
| <a name="bytes" /> bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) |