Permissioned Keys
Add
Add an authenticator.
Method Declaration
Python
async def add_authenticator(
self,
wallet: Wallet,
authenticator: Authenticator,
):
Unification Plan
Parameters
Parameter | Location | Type | Required | Description |
---|---|---|---|---|
wallet | query | Wallet | true | The wallet to use for signing the transaction or authenticating the request. |
authenticator | query | Authenticator | true | The authenticator to be added. |
Response
Status | Meaning | Schema | Description |
---|---|---|---|
200 | [OK] | TxHash | The transaction hash. |
400 | Bad Request | The request was malformed or invalid. |
Examples: Python | TypeScript | Rust | Guide - Add an Authenticator
Remove
Remove an added authenticator.
Method Declaration
Python
async def remove_authenticator(self, wallet: Wallet, authenticator_id: int)
Unification Plan
Parameters
Parameter | Location | Type | Required | Description |
---|---|---|---|---|
wallet | query | Wallet | true | The wallet to use for signing the transaction or authenticating the request. |
authenticator_id | query | int | true | The authenticator identifier. |
Response
Status | Meaning | Schema | Description |
---|---|---|---|
200 | [OK] | TxHash | The transaction hash. |
400 | Bad Request | The request was malformed or invalid. | |
404 | Not Found | The authenticator was not found. |
Examples: Python | TypeScript | Rust | Guide - Remove an Authenticator
List
List down added authenticators.
Method Declaration
Python
async def get_authenticators(
self,
address: str,
) -> accountplus_query.GetAuthenticatorsResponse
Unification Plan
Parameters
Parameter | Location | Type | Required | Description |
---|---|---|---|---|
account | query | Address | true | The wallet address that owns the account. |
Response
Status | Meaning | Schema | Description |
---|---|---|---|
200 | OK | AccountAuthenticator ⛁ | The account authenticators. |
400 | Bad Request | The request was malformed or invalid. |
Examples: Python | TypeScript | Rust | Guide - List Authenticators