AccountPermissionUpdate

修改账户权限.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

返回值

Transaction对象 - JSON object:未签名的交易,包含的字段请参考交易章节,由于交易类型为AccountPermissionUpdateContract,所以交易中的raw_data.contract[0].parameter.value中包含的字段如下:

字段类型描述
owner_addressstring账户地址。
ownerPermission账户的 Owner 权限。Permission 对象包含:
  • type (int): 权限类型。
  • permission_name (string): 权限名称 (例如 ""owner"")
  • threshold (int64): 验证操作所需的最小签名总权重
  • parent_id (int32): 父权限 ID (默认为 0)。
  • operations (string): 32 字节 hex 字符串,代表允许的操作。
  • keys (Key[]): 关联的地址和权重列表 (最多 5 个)。
witnessPermission超级代表 (SR) 账户的 Witness 权限详情。
activesPermission[]账户的 Active 权限列表。
Body Params
string
required

账户所有者的地址 (格式: Base58 或 Hex)。例如:TJZuV6A9QRdtVeJBvewCF9fLF2qnRSEv3y

json
required

账户的 Active 权限列表。例如:[{ "type": 2, "permission_name": "active0", "threshold": 2, "operations": "7fff1fc0037e0000000000000000000000000000000000000000000000000000", "keys": [{ "address": "TJZuV6A9QRdtVeJBvewCF9fLF2qnRSEv3y", "weight": 1 }, { "address": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1", "weight": 1 }] }]

json
required

账户的 Owner 权限对象。例如:{ "type": 0, "permission_name": "owner", "threshold":1, "keys": [{ "address": "TJZuV6A9QRdtVeJBvewCF9fLF2qnRSEv3y", "weight": 1 }] }

json

Witness 权限对象 (用于超级代表)。例如:{"type": 1, "permission_name": "witness", "threshold": 1, "keys": [{ "address": "TJZuV6A9QRdtVeJBvewCF9fLF2qnRSEv3y", "weight": 1 }]}

boolean

设置为 true 则地址将以 Base58 格式显示;设置为 false 则以 Hex 格式显示。(默认值: false)

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json