Skip to main content

Use App Wallet

important

The TEE mnemonic is generated by the KMS and bound to your app's enclave. Once injected, the mnemonic safety depends on the app not leaking it.

When deployed, EigenCompute apps receive a persistent and private wallet that serves as the cryptographic identity, allowing the app to sign transactions, hold funds, and operate autonomously.

The TEE mnemonic is generated by the KMS and only decryptable inside your specific TEE application. It is provided at runtime using the MNEMONIC environment variable. The wallet addresses are derived from the TEE mnemonic.

TEE Mnemonic

Derive Address from TEE Mnemonic

To derive the Etheruem wallet address from the MNEMONIC environment variable:

  • Using ethers.js:

    const mnemonic = process.env.MNEMONIC;
    if (!mnemonic) {
    throw new Error('MNEMONIC environment variable is not set');
    const wallet = ethers.Wallet.fromPhrase(mnemonic);
    throw new Error('Failed to get backend address from mnemonic');
  • Using viem.sh, refer to the mnemonicToAccount documentation.

To derive the Solana address from the MNEMONIC environment variable, refer to the Solana Wallets documentation.