Documentation Index
Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt
Use this file to discover all available pages before exploring further.
function ExportWalletCopyKeyButton(props: ExportWalletCopyKeyButtonProps): null | Element;
A button that copies the private key of an EVM or Solana account.
Note that an EVM smart account’s private key cannot be exported. If a smart account address is provided, the button will not be rendered.
Parameters
| Parameter | Type | Description |
|---|
props | ExportWalletCopyKeyButtonProps | The props for the ExportWalletCopyKeyButton component. |
Returns
null | Element
The rendered component.
See
Example
// Render the ExportWalletCopyKeyButton component with custom labels
function ExportWalletCopyKeyButtonExample() {
const { evmAddress } = useEvmAddress();
if (!evmAddress) return null;
return (
<ExportWallet address={evmAddress}>
<ExportWalletCopyKeyButton label="Copy private key" copiedLabel="Private key copied" />
</ExportWallet>
);
}