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

# Get Secp256k1 private key

To retrieve the secp256k1 private key of the user, use `getPrivkey` method. The method returns an EVM compatible private key which can be used to sign transactions on EVM compatible chains.

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

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

```
