FiyatlandırmaGitHubKontrol paneli

TRON

wallet/getsignweight10 kredi

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

Ağ: tron

Parametreler

AdTürAçıklama
raw_dataObjectThe transaction raw_data (contract, ref_block_*, expiration, ...).
txIDstringTransaction id (hex). (isteğe bağlı)
raw_data_hexstringHex-encoded protobuf of raw_data. (isteğe bağlı)
signaturestring[]Signatures collected so far, hex strings; omit for an unsigned transaction. (isteğe bağlı)
visiblebooleantrue = base58 addresses (in the request and the response); false (default) = hex addresses. (isteğe bağlı)

Dönüş değeri

Tür

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).

Kod örnekleri

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
}'