TRON
wallet/accountpermissionupdate15 kredi
Builds an unsigned transaction that replaces the permissions of an account (multi-signature setup).
Parametreler
| Ad | Tür | Açıklama |
|---|---|---|
| owner_address | string | Transaction initiator address (base58 or hex). |
| owner | Object | Owner permission: { type: "Owner", permission_name, threshold, keys: [{ address, weight }] }. |
| actives | Object[] | Active permissions: array of { type: "Active", id (2 to 9), permission_name, threshold, operations (64 hex characters, bitmap of allowed contract types), keys: [{ address, weight }] }. |
| witness | Object | Witness permission (super representative accounts only): { type: "Witness", id: 1, permission_name, threshold, keys }. (isteğe bağlı) |
| Permission_id | number | Permission ID for multi-signature accounts; defaults to the owner permission (0). (isteğe bağlı) |
| visible | boolean | true = base58 addresses (in the request and the response); false (default) = hex addresses. (isteğe bağlı) |
Dönüş değeri
Tür
Object
Unsigned transaction object (txID, raw_data, raw_data_hex, visible). It is only built, not signed or broadcast; sign it and send it with wallet/broadcasttransaction. On failure an object with an Error string (still HTTP 200). Submit the complete target permission set, not only the changes.
Kod örnekleri
curl 'https://holy-burned-sky-tron-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/wallet/accountpermissionupdate' \
-X POST \
-H 'content-type: application/json' \
-d '{
"owner_address": "TLsV52sRDL79HXGGm9yzwKibb6BeruhUzy",
"owner": {
"type": "Owner",
"permission_name": "owner",
"threshold": 1,
"keys": [
{
"address": "TLsV52sRDL79HXGGm9yzwKibb6BeruhUzy",
"weight": 1
}
]
},
"actives": [
{
"type": "Active",
"id": 2,
"permission_name": "active",
"threshold": 1,
"operations": "7fff1fc0033e0100000000000000000000000000000000000000000000000000",
"keys": [
{
"address": "TLsV52sRDL79HXGGm9yzwKibb6BeruhUzy",
"weight": 1
}
]
}
],
"visible": true
}'