GetSignWeight

查询交易已收集到的签名权重总和,用于多签流程中在广播前确认是否已达到 permission 的 threshold。

该接口会按照交易指定的权限校验整个签名集合;重复签名、无效签名、不属于目标权限的签名者,或者签名数量超过该权限的密钥数量,都会使权重计算失败。这些权限校验并非 GreatVoyage-v4.8.2 才引入;v4.8.2 新增的是链上全局签名数量上限,并在校验前将超过 65 字节的签名截取为前 65 字节。签名数量超过全局上限时,响应只包含失败结果,不返回 transaction。客户端应先检查 result,不要将失败响应中的缺省权重视为有效的部分权重。


相关资源

Body Params
string

交易 ID(hex)。

boolean

true 时请求中的地址使用 base58 格式,否则为 hex。

raw_data
object
required

交易的 raw_data(contract、refblock*、expiration 等)。

string

raw_data 的 protobuf hex 编码。

signature
array of strings
required

当前已收集到的签名(hex,每个 65 字节),至少一个。

signature*
Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json