文档
定价GitHub控制台

TRON

wallet/getsignweight10 额度

Returns the signature weight of a (partially) signed transaction.

网络: tron

参数

名称类型描述
raw_dataObjectThe transaction raw_data (contract, ref_block_*, expiration, ...).
txIDstringTransaction id (hex). (可选)
raw_data_hexstringHex-encoded protobuf of raw_data. (可选)
signaturestring[]Signatures collected so far, hex strings; omit for an unsigned transaction. (可选)
visiblebooleantrue = base58 addresses (in the request and the response); false (default) = hex addresses. (可选)

返回值

类型

Object

Object with permission (the permission the transaction is signed against: keys, threshold), approved_list (addresses that signed), current_weight (their summed weight), result (code: ENOUGH_PERMISSION, NOT_ENOUGH_PERMISSION, SIGNATURE_FORMAT_ERROR, COMPUTE_ADDRESS_ERROR, PERMISSION_ERROR or OTHER_ERROR; may be empty when the threshold is met) and transaction (echo).

代码示例

curl 'https://holy-burned-sky-tron-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/wallet/getsignweight' \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "raw_data": {},
  "signature": [],
  "visible": true
}'