Child Chain Permissions

Add Account Permission

Grants a permission to an account.

Method: POST

https://ardr.nownodes.io/nxt?requestType=addAccountPermission

Example body (x-www-form-urlencoded)

requestType = addAccountPermission
secretPhrase = IWontTellYou
chain = 6
recipient = ARDOR-W3LP-38DN-DCGZ-D46VG
permission = CHAIN_USER
feeNQT = 1000000
deadline = 60

Example response: 200

{
    "errorDescription": "Unknown account",
    "errorCode": 5
}

Get Account Permissions

Queries the permissions of an account.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getAccountPermissions&chain=2&account=ARDOR-W3LP-38DN-DCGZ-D46VG

Example response: 200

{
    "hasPermissions": [],
    "hasEffectivePermissions": [],
    "canGrantPermissions": [],
    "requestProcessingTime": 8
}

Get Chain Permissions

Queries the permissions of a chain.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getChainPermissions&chain=6&permission=MASTER_ADMIN

Example response: 200

{
    "permissions": [],
    "requestProcessingTime": 2
}

Remove Account Permission

Revokes a permission to an account.

Method: POST

https://ardr.nownodes.io/nxt?requestType=removeAccountPermission

Example body (x-www-form-urlencoded)

requestType = removeAccountPermission
secretPhrase = IWontTellYou
chain = 6
recipient = ARDOR-W3LP-38DN-DCGZ-D46VG
permission = CHAIN_USER
feeNQT = 1000000
deadline = 60

Example response: 200

{
    "errorDescription": "Unknown account",
    "errorCode": 5
}

Last updated