Skip to main content
Returns whether two-factor authentication is on, the account’s factors, and the number of unused recovery keys.

Operation Type (for Signing)

Request Body

FieldTypeNeedDescriptionExample
”account”stringrequiredUser’s wallet address42trU9A5…
“signature”stringrequiredCryptographic signature5j1Vy9Uq…
“timestamp”integerrequiredCurrent timestamp in milliseconds1716200000000
”agent_wallet”stringoptionalAgent wallet address69trU9A5…
“expiry_window”integeroptionalSignature expiry in milliseconds30000
You can sign this request with the account key or with an agent wallet. The account must be a main account.

Signing

The data object is empty. For the request above, the message to sign is:

Response

  • Status 200: Success
While 2FA is on, factor changes also need a proof. protected_actions lists only withdrawals. Each entry in factors has these fields: An account that never turned on 2FA returns empty lists and "recovery_keys_remaining": 0.
  • Status 400: Invalid request parameters or signature
  • Status 403: The account is a subaccount, or it does not exist
  • Status 500: Internal server error
  • Status 503: The two-factor service is unavailable. Retry later

Code Example (Python)