subAccountModify
Modify settings and permissions for an existing sub-account.
Sample Data#
{
"signature": {
"r": "0xa1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456",
"s": "0x6543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba987",
"v": 27
},
"action": {
"type": "subAccountModify",
"subAccountUser": "0x1234567890abcdef1234567890abcdef12345678",
"name": "Trading Bot 1"
},
"nonce": 1767949700000
}
Field Reference#
Action Fields#
| Field | Type | Description |
|---|---|---|
type | string | Always "subAccountModify" |
subAccountUser | string | Sub-account address to modify |
name | string | New name for the sub-account |
Use Cases#
Sub-Account Management#
Track sub-account modifications:
def process_subAccountModify_action(action):
sub_account = action.get('subAccountUser')
name = action.get('name')
print(f"Sub-account modified: {sub_account[:10]}... -> {name}")
Related Action Types#
- createSubAccount - Create sub-accounts
- subAccountTransfer - Fund sub-accounts