ドキュメント
料金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
}'