curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/accountpermissionupdate \
--header 'Content-Type: application/json' \
--data '{
"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",
"owner": {
"type": 0,
"permission_name": "owner",
"threshold": 1,
"keys": [
{}
]
},
"witness": {
"type": 1,
"permission_name": "witness",
"threshold": 1,
"keys": [
{}
]
},
"actives": [
{
"type": 2,
"permission_name": "active",
"threshold": 1,
"operations": "<string>",
"keys": [
{}
]
}
],
"visible": true
}'
{
"visible": true,
"txID": "<string>",
"raw_data": {},
"raw_data_hex": "<string>"
}
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/accountpermissionupdate \
--header 'Content-Type: application/json' \
--data '{
"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",
"owner": {
"type": 0,
"permission_name": "owner",
"threshold": 1,
"keys": [
{}
]
},
"witness": {
"type": 1,
"permission_name": "witness",
"threshold": 1,
"keys": [
{}
]
},
"actives": [
{
"type": 2,
"permission_name": "active",
"threshold": 1,
"operations": "<string>",
"keys": [
{}
]
}
],
"visible": true
}'
{
"visible": true,
"txID": "<string>",
"raw_data": {},
"raw_data_hex": "<string>"
}
owner_address
— the account address whose permissions are being updatedowner
— optional object containing owner permission settings with threshold and keyswitness
— optional object containing witness permission settings with threshold and keysactives
— optional array of active permission objects with threshold, operations, and keysvisible
— optional boolean parameter. When set to true
, addresses are in base58 format. Default is false
.visible
— indicates the address format used in the responsetxID
— the transaction hashraw_data
— raw transaction data including:
contract
— array containing the permission update contractref_block_bytes
— reference block bytesref_block_hash
— reference block hashexpiration
— transaction expiration timestamptimestamp
— transaction creation timestampraw_data_hex
— hexadecimal representation of the raw transactionwallet/accountpermissionupdate
method is used for:
Unsigned account permission update transaction
The response is of type object
.
Was this page helpful?