> ## 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.

# offlineExportKey

> Exports key offline without requiring server communication

## Function Signature

```typescript theme={"system"}
offlineExportKey(params: {
  chainName: string;
  keyShares: any[];
  derivationPath?: string;
}): Promise<any>
```

## Description

Exports key offline without requiring server communication. This function is useful for scenarios where you need to export keys without network connectivity.

## Parameters

### Required Parameters

* **`chainName`** (`string`) - The chain name (e.g., 'solana')
* **`keyShares`** (`any[]`) - Array of key shares

### Optional Parameters

* **`derivationPath`** (`string`) - Derivation path for the key (e.g., "m/44'/501'/0'/0'" for Solana)

## Returns

* **`Promise<any>`** - The exported key data

## Example

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

const svmClient = await authenticatedSvmClient();

const offlineKey = await svmClient.offlineExportKey({
  chainName: 'solana',
  keyShares: [
    {
      chainName: 'solana',
      keyShare: '0xYourKeyShare',
    },
  ],
  derivationPath: "m/44'/501'/0'/0'", // Solana derivation path
});

console.log('Offline key:', offlineKey);
```

## Error Handling

```typescript theme={"system"}
try {
  const offlineKey = await svmClient.offlineExportKey({
    chainName: 'solana',
    keyShares,
    derivationPath: "m/44'/501'/0'/0'",
  });
  console.log('Offline key exported successfully');
} catch (error) {
  console.error('Failed to export offline key:', error);
}
```

## Related Functions

* [`exportKey()`](/node/reference/svm/export-key) - Export key with server communication
* [`offlineExportPrivateKey()`](/node/reference/svm/offline-export-private-key) - Export private key offline
