AccountManagement
Last updated
Was this helpful?
Last updated
Was this helpful?
Handles functionality related to Account Management
AccountManagement
Parameters:
opts?
Return an Account instance from an address
Parameters:
â–ª args: object
address
string
Get the free/locked POLYX balance of an Account
note
can be subscribed to
Parameters:
args?
undefined | object
Parameters:
callback
Parameters:
â–ª args: object
account
Return the signing Account, or null if no signing Account has been set
Return a list that contains all the signing Accounts associated to the SDK instance's Signing Manager
throws
— if there is no Signing Manager attached to the SDK
Send an invitation to an Account to join the signing Identity as a secondary Account
Parameters:
args
opts?
Disassociate the signing Account from its Identity. This operation can only be done if the signing Account is a secondary Account
Parameters:
opts?
Modify all permissions of a list of secondary Accounts associated with the signing Identity
Parameters:
args
opts?
Remove a list of secondary Accounts associated with the signing Identity
Parameters:
args
opts?
Revoke all permissions of a list of secondary Accounts associated with the signing Identity
Parameters:
â–ª args: object
secondaryAccounts
Send an Authorization Request to an Account to subsidize its transaction fees
Parameters:
args
opts?
Unfreeze all of the secondary Accounts in the signing Identity. This will restore their permissions as they were before being frozen
Parameters:
opts?
â–¸ freezeSecondaryAccounts(opts?
: ): Promise‹‹void››
Defined in
Freeze all of the secondary Accounts in the signing Identity. This means revoking their permission to perform any operation on the blockchain and freezing their funds until the Accounts are unfrozen via
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹void››
â–¸ getAccount(args
: object):
Defined in
Returns:
â–¸ getAccountBalance(args?
: undefined | object): Promise‹›
Defined in
Returns: Promise‹›
â–¸ getAccountBalance(callback
: ‹›): Promise‹›
Defined in
‹›
Returns: Promise‹›
â–¸ getAccountBalance(args
: object, callback
: ‹›): Promise‹›
Defined in
string |
▪ callback: ‹›
Returns: Promise‹›
â–¸ getSigningAccount(): | null
Defined in
Returns: | null
▸ getSigningAccounts(): Promise‹[]›
Defined in
Returns: Promise‹[]›
â–¸ inviteAccount(args
: , opts?
: ): Promise‹‹››
Defined in
note
this will create an which has to be accepted by the targetAccount
. An or can fetch its pending Authorization Requests by calling . Also, an Account or Identity can directly fetch the details of an Authorization Request by calling
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹››
â–¸ leaveIdentity(opts?
: ): Promise‹‹void››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹void››
â–¸ modifyPermissions(args
: , opts?
: ): Promise‹‹void››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹void››
â–¸ removeSecondaryAccounts(args
: , opts?
: ): Promise‹‹void››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹void››
â–¸ revokePermissions(args
: object, opts?
: ): Promise‹‹void››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
[]
â–ªOptional
opts:
Returns: Promise‹‹void››
â–¸ subsidizeAccount(args
: , opts?
: ): Promise‹‹››
Defined in
note
this will create an which has to be accepted by the beneficiary
Account. An or can fetch its pending Authorization Requests by calling . Also, an Account or Identity can directly fetch the details of an Authorization Request by calling
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹››
â–¸ unfreezeSecondaryAccounts(opts?
: ): Promise‹‹void››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹void››