Field | Type | Description |
---|---|---|
owner_address | string | account address |
owner | Permission | The owner permission of the account. The fields contained in Permission are as follows: type - int: permission type; permission_name - string: permission name; threshold - int64: threshold; parent_id - int32: currently only 0; operations - string: permission; keys - Key[]: the addresses and weights that jointly own the permission, up to 5 keys are allowed |
witness | Permission | Account witness permissions |
actives | Permission[] | List of active permissions for the account |
{
"owner_address": "PJAnjvL467LtS32AMmDWetNaP1AjNZddnx",
"actives": [
{
"type": 2,
"permission_name": "active0",
"threshold": 2,
"operations": "7fff1fc0037e0000000000000000000000000000000000000000000000000000",
"keys": [
{
"address": "PJAnjvL467LtS32AMmDWetNaP1AjNZddnx",
"weight": 1
},
{
"address": "PJAnjvL467LtS32AMmDWetNaP1AjNZddnx",
"weight": 1
}
]
}
],
"owner": {
"type": 0,
"permission_name": "owner",
"threshold": 1,
"keys": [
{
"address": "PJAnjvL467LtS32AMmDWetNaP1AjNZddnx",
"weight": 1
}
]
},
"visible": true
}
curl --location --request POST '/wallet/accountpermissionupdate' \
--header 'Content-Type: application/json' \
--data-raw '{
"owner_address": "PJAnjvL467LtS32AMmDWetNaP1AjNZddnx",
"actives": [
{
"type": 2,
"permission_name": "active0",
"threshold": 2,
"operations": "7fff1fc0037e0000000000000000000000000000000000000000000000000000",
"keys": [
{
"address": "PJAnjvL467LtS32AMmDWetNaP1AjNZddnx",
"weight": 1
},
{
"address": "PJAnjvL467LtS32AMmDWetNaP1AjNZddnx",
"weight": 1
}
]
}
],
"owner": {
"type": 0,
"permission_name": "owner",
"threshold": 1,
"keys": [
{
"address": "PJAnjvL467LtS32AMmDWetNaP1AjNZddnx",
"weight": 1
}
]
},
"visible": true
}'
{
"visible": true,
"txID": "e386dda23b280ddaa4674e54aece5ee6b7f5f12ff467b5208e08f9ada143761f",
"raw_data": {
"contract": [
{
"parameter": {
"value": {
"owner": {
"keys": [
{
"address": "PJAnjvL467LtS32AMmDWetNaP1AjNZddnx",
"weight": 1
}
],
"threshold": 1,
"permission_name": "owner"
},
"owner_address": "PJAnjvL467LtS32AMmDWetNaP1AjNZddnx",
"actives": [
{
"operations": "7fff1fc0037e0000000000000000000000000000000000000000000000000000",
"keys": [
{
"address": "PJAnjvL467LtS32AMmDWetNaP1AjNZddnx",
"weight": 1
},
{
"address": "PJAnjvL467LtS32AMmDWetNaP1AjNZddnx",
"weight": 1
}
],
"threshold": 2,
"type": "Active",
"permission_name": "active0"
}
]
},
"type_url": "type.googleapis.com/protocol.AccountPermissionUpdateContract"
},
"type": "AccountPermissionUpdateContract"
}
],
"ref_block_bytes": "aac7",
"ref_block_hash": "f1b64763e0c45f6c",
"expiration": 1736427966000,
"timestamp": 1736427906154
},
"raw_data_hex": "0a02aac72208f1b64763e0c45f6c40b09cb0d9c4325aea01082e12e5010a3c747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e4163636f756e745065726d697373696f6e557064617465436f6e747261637412a4010a1541fd49eda0f23ff7ec1d03b52c3a45991c24cd440e12241a056f776e657220013a190a1541fd49eda0f23ff7ec1d03b52c3a45991c24cd440e1001226508021a0761637469766530200232207fff1fc0037e00000000000000000000000000000000000000000000000000003a190a1541fd49eda0f23ff7ec1d03b52c3a45991c24cd440e10013a190a154198927ffb9f554dc4a453c64b2e553a02d6df514b100170eac8acd9c432"
}