> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# getExportId

> Retrieves the export ID for a wallet on a specific chain

## Function Signature

```typescript theme={"system"}
getExportId(params: {
  chainName: string;
  serverKeyShare: {
    chainName: string;
  };
}): Promise<string>
```

## Description

Retrieves the export ID for a wallet on a specific chain. This ID is used for exporting wallet data and private keys.

## Parameters

### Required Parameters

* **`chainName`** (`string`) - The name of the blockchain chain (e.g., 'base-sepolia')
* **`serverKeyShare`** (`object`) - Object containing chain information:
  * **`chainName`** (`string`) - The chain name for the server key share

## Returns

* **`Promise<string>`** - The export ID for the wallet

## Example

```typescript theme={"system"}
import { authenticatedEvmClient } from './client';

const evmClient = await authenticatedEvmClient();

const exportId = await evmClient.getExportId({
  chainName: 'base-sepolia',
  serverKeyShare: {
    chainName: 'base-sepolia',
  },
});

console.log('Export ID:', exportId);
```

## Error Handling

```typescript theme={"system"}
try {
  const exportId = await evmClient.getExportId({
    chainName: 'base-sepolia',
    serverKeyShare: {
      chainName: 'base-sepolia',
    },
  });
  console.log('Export ID retrieved successfully');
} catch (error) {
  console.error('Failed to get export ID:', error);
}
```

## Related Functions

* [`exportPrivateKey()`](/node/reference/evm/export-private-key) - Export private key using export ID
* [`exportKey()`](/node/reference/evm/export-key) - Export key with chain name
