Let users lose their phone, not their funds.
Stellar Key Recovery is an independent SEP-30 recovery service. Plug it into your wallet and your users can get back into their accounts by authenticating with SEP-10, SEP-45, email or phone, without you or us ever holding their keys.
Built for wallet teams
Why a second, independent server
SEP-30 recovery is only as trustworthy as the separation between signers. If you run both recovery servers, you effectively hold the keys. We run the second signer on separate infrastructure, under a separate operator, so no single party can take over a user's account. That includes you, and it includes us.
account
Ways users can authorize
How registering and recovering work
Your wallet registers the user's account and its identities with us, and adds our signer to the account beside yours. To recover, the user authorizes as one of the identities, and we sign the transaction that adds their new key. Phone numbers and emails are confirmed with a code before they're registered.
SEP-10 With a Stellar account (G...)
- Log in as the owner Your wallet signs a SEP-10 challenge for the user's account.
GET, POST /v1/ auth/ sep10 - Register the Stellar account List a Stellar account (G...) as an identity: another of the user's, or someone they trust. It proves itself with SEP-10, so there is nothing to confirm.
POST /v1/ accounts/ {address} - Add our signer Add the signer in our response to the account, beside your own.
- Log in as the Stellar account The user signs a SEP-10 challenge with the account listed as their identity.
GET, POST /v1/ auth/ sep10 - Request our signature Send the transaction that adds the user's new key, and we sign it.
POST /v1/ accounts/ {address}/ sign/ {signing_address} - Submit it Add your own signature and submit the transaction: the user has a new key.
SEP-45 With a contract account (C...)
- Log in as the owner Your wallet signs a SEP-10 challenge for the user's account.
GET, POST /v1/ auth/ sep10 - Register the contract account List a contract account (C...) as an identity, such as the user's smart wallet. It proves itself with SEP-45, so there is nothing to confirm.
POST /v1/ accounts/ {address} - Add our signer Add the signer in our response to the account, beside your own.
- Log in as the contract account The contract account authorizes a SEP-45 challenge, and we check it by simulating the call on the network.
GET, POST /v1/ auth/ sep45 - Request our signature Send the transaction that adds the user's new key, and we sign it.
POST /v1/ accounts/ {address}/ sign/ {signing_address} - Submit it Add your own signature and submit the transaction: the user has a new key.
Email With a code sent to an email address
- Buy codes Pay for codes for the email address with x402, in XLM or USDC: one to confirm it, the rest for recoveries.
POST /v1/ auth/ email/ codes - Confirm the email address We send a code by email. The user enters it, and your wallet gets a token for the email address.
POST /v1/ auth/ email POST /v1/ auth/ email/ verify - Log in as the owner Your wallet signs a SEP-10 challenge for the user's account.
GET, POST /v1/ auth/ sep10 - Register the email address List the email address as an identity, with its token. Without the token, it is refused.
POST /v1/ accounts/ {address} - Add our signer Add the signer in our response to the account, beside your own.
- Request a code We send one of the email address's prepaid codes by email. If none are left, anyone can buy more.
POST /v1/ auth/ email - Verify it The user enters the code, and your wallet gets a token.
POST /v1/ auth/ email/ verify - Request our signature Send the transaction that adds the user's new key, and we sign it.
POST /v1/ accounts/ {address}/ sign/ {signing_address} - Submit it Add your own signature and submit the transaction: the user has a new key.
Phone With a code sent by SMS to a phone number
- Buy codes Pay for codes for the phone number with x402, in XLM or USDC: one to confirm it, the rest for recoveries.
POST /v1/ auth/ phone/ codes - Confirm the phone number We send a code by SMS. The user enters it, and your wallet gets a token for the phone number.
POST /v1/ auth/ phone POST /v1/ auth/ phone/ verify - Log in as the owner Your wallet signs a SEP-10 challenge for the user's account.
GET, POST /v1/ auth/ sep10 - Register the phone number List the phone number as an identity, with its token. Without the token, it is refused.
POST /v1/ accounts/ {address} - Add our signer Add the signer in our response to the account, beside your own.
- Request a code We send one of the phone number's prepaid codes by SMS. If none are left, anyone can buy more.
POST /v1/ auth/ phone - Verify it The user enters the code, and your wallet gets a token.
POST /v1/ auth/ phone/ verify - Request our signature Send the transaction that adds the user's new key, and we sign it.
POST /v1/ accounts/ {address}/ sign/ {signing_address} - Submit it Add your own signature and submit the transaction: the user has a new key.
Integrate with your AI assistant
Our MCP server gives your coding assistant what it needs to integrate with us, and checks what your wallet sends before it sends it. It only reads, and needs no account.
https://stellar-key-recovery.com/mcphttps://testnet.stellar-key-recovery.com/mcpAdd the URL to your assistant as a remote MCP server (HTTP). For example, in Claude Code:
claude mcp add --transport http stellar-key-recovery https://stellar-key-recovery.com/mcp