Skip to content

Add

Add an authenticator.

Method Declaration

Python
async def add_authenticator(
    self,
    wallet: Wallet,
    authenticator: Authenticator,
):
Unification Plan

Parameters

ParameterLocationTypeRequiredDescription
walletqueryWallettrueThe wallet to use for signing the transaction or authenticating the request.
authenticatorqueryAuthenticatortrueThe authenticator to be added.

Response

StatusMeaningSchema
200[OK]TxHash

Examples: Python | TypeScript | Rust

List

List down added authenticators.

Method Declaration

Python
async def get_authenticators(
    self,
    address: str,
) -> accountplus_query.GetAuthenticatorsResponse
Unification Plan

Parameters

ParameterLocationTypeRequiredDescription
accountqueryAddresstrueThe wallet address that owns the subaccount.

Response

StatusMeaningSchema
200OKAccountAuthenticator

Examples: Python | TypeScript | Rust

Remove

Remove an added authenticator.

Method Declaration

Python
async def remove_authenticator(self, wallet: Wallet, authenticator_id: int)
Unification Plan

Parameters

ParameterLocationTypeRequiredDescription
walletqueryWallettrueThe wallet to use for signing the transaction or authenticating the request.
authenticator_idqueryinttrueThe authenticator identifier.

Response

StatusMeaningSchema
200[OK]TxHash

Examples: Python | TypeScript | Rust