Skip to main content

/wallet/accountpermissionupdate REST API Endpoint

Update the account's permission.

Updated on
Oct 4, 2023

/wallet/accountpermissionupdate REST API Endpoint

Body Parameters

owner_address
string
REQUIRED
The owner address
actives
string
REQUIRED
The active permission
owner
integer
REQUIRED
The owner permission
witness
integer
REQUIRED
The witness permission
visible
boolean
A boolean value indicating whether the address is in base58 format

Returns

visible
A boolean value indicating whether the transaction was successful
txid
The transaction id
raw_data
An object that contains the transaction details with the following fields:
contract
An array of objects containing information about the exchange transaction contract
contract_index
The contract index
parameter
An object containing the exchange transaction contract parameters
value
An object containing the values of the exchange transaction contract parameters
owner
The amount of the token being injected in the exchange
keys
The amount of the token being injected in the exchange
address
The TRON blockchain address associated with the key
weight
The weight determines the influence or importance of the key in the permission structure
permission_name
The name of the permission level
threshold
It determines the required number of keys to authorize actions associated with the active permission
owner_address
The owner address of the exchange pair
active
An object that represents the active permission settings for a blockchain account
operations
The hexadecimal value representing a bitmask or set of permissions associated with the active permission level
type
It indicates the type of permission
permission_name
The name of the permission level
threshold
It determines the required number of keys to authorize actions associated with the active permission
keys
The key objects associated with the active permission level which contains the following fields:
address
The blockchain address associated with the key
weight
The weight or importance of the key within the permission structure
type_url
The URL of the exchange transaction contract type
type
The type of the exchange transaction contract
ref_block_bytes
The ref block bytes of the transaction
ref_block_hash
The ref block hash of the transaction
expiration
This is a timestamp indicating the expiration time of the transaction in milliseconds
timestamp
This is a timestamp indicating the time at which the transaction was created in milliseconds
raw_data_hex
The hexadecimal representation of the raw data in the transactio
Request
1
curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate \
2
--header 'accept: application/json' \
3
--header 'content-type: application/json' \
4
--data '
5
{
6
"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",
7
"actives": [
8
{
9
"type": 2,
10
"permission_name": "active0",
11
"threshold": 2,
12
"operations": "7fff1fc0037e0000000000000000000000000000000000000000000000000000",
13
"keys": [
14
{
15
"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",
16
"weight": 1
17
},
18
{
19
"address": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",
20
"weight": 1
21
}
22
]
23
}
24
],
25
"owner": {
26
"type": 0,
27
"permission_name": "owner",
28
"threshold": 1,
29
"keys": [
30
{
31
"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",
32
"weight": 1
33
}
34
]
35
},
36
"visible": true
37
}
38
'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free