Get desktop application:
View/edit binary Protocol Buffers messages
Xchain is the main interfaces
Native code deploy interface
chain name
native code desc
code is the bytes of binary code
the address of deployer
the public key of deployer
the sign of desc
DposCandidates get all candidates of the tdpos consensus
候选人列表接口
候选人列表返回
DposCheckResults get check results of a specific term
查询检票结果记录请求
查询检票结果记录返回
DposNominateRecords get all records nominated by an user
提名者提名记录请求
提名者提名记录返回
DposNomineeRecords get nominated record of a candidate
候选人被提名记录请求
候选人被提名记录返回
DposStatus get dpos status
query dpos consensus current status request
query dpos consensus current status reply
DposVoteRecords get all vote records voted by an user
选民投票记录请求
选民投票记录返回
选民投票txid记录
DposVotedRecords get all vote records of a candidate
候选人被投票记录请求
候选人被投票记录返回
候选人被投票的txid记录
GetAccountByAK get account sets contain a specific address
Query account contracts request
Query account contracts response
GetBalance get balance of an address, Address is required for this
GetFrozenBalance get two kinds of balance 1. Still be frozen of an address 2. Available now of an address Address is required for this
GetBlock get block by blockid and return if the block in trunk or in branch
if need content
是否需要内容
GetBlockByHeight get block by height and return if the block in trunk or in branch
Get blockchains query blockchains
GetFrozenBalance get balance that still be frozen of an address, Address is required for this
GetNetURL return net url
RawUrl return the node's connect url
GetSystemStatus query system status
Native code status
PostTx post Transaction to a node
预执行合约
PreExecWithSelectUTXO preExec & selectUtxo
PreExecWithSelectUTXORequest preExec + selectUtxo for request
PreExecWithSelectUTXOResponse preExec + selectUtxo for response
for preExec & selectUTXO
查询Acl
QueryTx query Transaction by TxStatus, Bcname and Txid are required for this
新的Select utxos接口, 不需要签名,可以支持选择账户的utxo
UtxoInput query info to query utxos
which bcname to select
address to select
publickey of the address
totalNeed refer the total need utxos to select
userSign of input
need lock
请求参数
请求名(类型)
请求链名
带签名的交易费Tx
Json打包的数据
背书服务地址
背书服务签名
Acl实际使用的结构
Used in:
采用的权限模型
公钥or账户名 -> 权重
Used as request type in: Xchain.GetBalance, Xchain.GetFrozenBalance
Used as response type in: Xchain.GetBalance, Xchain.GetFrozenBalance
AK集的表示方法
Used in:
一堆公钥
Used in:
公钥or账户名集
表达式,一期不支持表达式,默认集合内是and,集合间是or
Used in:
BlockChain status
Used as request type in: Xchain.GetBlockChainStatus
Used as response type in: Xchain.GetBlockChainStatus
Used as field type in:
block name
ledger metadata
The information of the longest block
Utox information
Branch info
Used as response type in: Xchain.GetBlock, Xchain.GetBlockByHeight
Used in:
ChainedBftPhaseMessage is the proposal message of the protocal. In Hotstuff, there are two kinds of messages, "NEW_VIEW_MESSAGE" and "QC_Message". A stable leader can skip this "NEW_VIEW_MESSAGE".
Message Type: NEW_VIEW_MESSAGE or QC_MESSAGE
ViewNumber the current view number
The new proposal send to other replicas while the
JustifyQC is the QC of the leader gathered, send to next leader, while the message type is "NEW_VIEW_MESSAGE"
MsgDigest is the digest of the msgg
Signature for this msg
ChainedBftVoteMessage is the vote message of the protocal.
The id of this message votes for.
Replica will sign the QCMessage if the QuorumCert if valid.
Used as request type in: Xchain.GetBlockChains, Xchain.GetNetURL, Xchain.GetSystemStatus
ContractResponse is the response returnd by contract
Used in:
Status of a contract
Used in:
候选人信息
Used in:
Used in:
Used in:
Used in:
HDPublickey
original_hash
Used in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
如果logid没填写,生成一个
call rpc client address,客户端可以为空,节点一定要写自己的address
Identity authentication request
Used in:
Identity authentication requests
The internal block struct
Used in: ,
block version
Random number used to avoid replay attacks
blockid generate the hash sign of the block used by sha256
pre_hash is the parent blockid of the block
The miner id
The sign which miner signed: blockid + nonce + timestamp
The pk of the miner
The Merkle Tree root
The height of the blockchain
Timestamp of the block
Transactions of the block, only txid stored on kv, the detail information stored in another table
The transaction count of the block
所有交易hash的merkle tree
txid -> failed reason
Justify used in chained-bft
下面的属性会动态变化 If the block is on the trunk
Next next block which on trunk
Used as request type in: Xchain.PreExec
Used as field type in:
预执行的请求结构
Used in: , , ,
amount is the amount transfer to the contract attention: In one transaction, transfer to only one contract is allowed
预执行的返回结构
Used in: ,
Ledger metadata
Used in:
root block id
tip block id
the height of the trunk
Used in:
txid交易被effective_txid的交易提出可修改区块链的请求
本交易是否已被修改标记
txid交易被修改生效的高度
监管的public key
监管地址对修改的交易id的签名
Used in: ,
native code name
code version
digest of binary
the previous verion
xuper api version
Used in:
Used in:
取决于用哪种rule, 可以表示签名率,签名数或权重阈值
-------- Account and Permission Section --------
Used in:
无权限控制
签名阈值策略
AKSet签名策略
签名率策略
签名个数策略
CA服务器鉴权
社区治理
QCSignInfos is the signs of the leader gathered from replicas of a specifically certType. A slice of signs is used at present. TODO @qizheng09: It will be change to Threshold-Signatures after Crypto lib support Threshold-Signatures.
Used in:
QCSignInfos
QCState is the phase of hotstuff
Used in: ,
QuorumCert is a data type that combines a collection of signatures from replicas.
Used in: ,
The id of Proposal this QC certified.
The msg of Proposal this QC certified.
The current type of this QC certified. the type contains `NEW_VIEW`, `PREPARE`
The view number of this QC certified.
SignInfos is the signs of the leader gathered from replicas of a specifically certType.
Used in:
Used in:
the fee used in kernel contract
SignInfo is the signature information of the
Used in: , ,
签名详情
Used in: , ,
Used in:
Used in:
Used in:
Used in:
Used in:
Transaction is the information of the transaction
Used in: , ,
txid is the id of this transaction
the blockid the transaction belong to
Transaction input list
Transaction output list
Transaction description or system contract
Mining rewards
Random number used to avoid replay attacks
Timestamp to launch the transaction
tx format version; tx格式版本号
auto generated tx
权限系统新增字段 交易发起者, 可以是一个Address或者一个Account
交易发起需要被收集签名的AddressURL集合信息,包括用于utxo转账和用于合约调用
交易发起者对交易元数据签名,签名的内容包括auth_require字段
收集到的签名
节点收到tx的时间戳,不参与签名
统一签名(支持多重签名/环签名等,与initiator_signs/auth_require_signs不同时使用)
可修改区块链标记
HD加解密相关信息
TransactionStatus is the status of transaction
Used in:
Undefined status
Transaction not exist
Transaction have been confirmed
Transaction is on the furcation
Transaction have not been confirmed
Transaction id
Block name
Account which start the transaction
The pk of the account which start the transaction
The sk of the account which start the transaction
if user don't want to provide scrkey, he should sign the txdata into user_sign
The account list accept tx
Random number used to avoid replay attacks
Timestamp to launch the Tx
tx version
Used in:
地址
金额
冻结高度
Transaction input
Used in: ,
The transaction id referenced to
The output offset of the transaction referenced to
The address of the launcher
The amount of the transaction
Frozen height
扩展输入
Used in: ,
Transaction output
Used in: ,
The amount of the transaction
The address of the launcher
Fronzen height
扩展输出
Used in: ,
Used as request type in: Xchain.PostTx, Xchain.QueryTx
Used as response type in: Xchain.QueryTx
Used as field type in:
当前状态
离主干末端的距离(如果在主干上)
Used in:
Utxo metadata
Used in:
utxo vm目前执行到的blockid
当前utxo vm上的总资产
平均上链延时
待确认交易量
max block size
preset contracts
reset forbidden contract configuration
the resource amount of creating an account
当前不可逆区块高度,与utxo对齐
当前不可逆区块高度调整窗口
UtxoOutput query results
Used as response type in: Xchain.SelectUTXO
Used as field type in:
outSign return the output bytes outSign = 2; utxo list
total selected amount
Used in: , ,
Unified Xuper Signature
Used in:
选民投票记录
Used in:
候选人被投票记录
Used in: