> For the complete documentation index, see [llms.txt](/llms.txt).

# Get Ed25519 private key

To retrieve the secp256k1 private key of the user., use `getEd25519PrivKey` method. This private key can be used to sign transactions on Solana, Near, Algorand, and other chains that use the ed25519 curve.

## Usage[​](#usage "Direct link to Usage")

```
let privateKey = web3Auth.getEd25519PrivKey();

```
