TRON
wallet/getsignweight10 créditos
Returns the signature weight of a (partially) signed transaction.
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
| raw_data | Object | The transaction raw_data (contract, ref_block_*, expiration, ...). |
| txID | string | Transaction id (hex). (opcional) |
| raw_data_hex | string | Hex-encoded protobuf of raw_data. (opcional) |
| signature | string[] | Signatures collected so far, hex strings; omit for an unsigned transaction. (opcional) |
| visible | boolean | true = base58 addresses (in the request and the response); false (default) = hex addresses. (opcional) |
Retorno
Tipo
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).
Exemplos de código
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
}'