For AI agents: a documentation index is available at /llms.txt. A markdown version of this page is available at the same URL with .md appended (or via Accept: text/markdown).
Skip to main content

Get Secp256k1 private key

Using the privKey() method in the web3auth instance you can get the secp256k1 private key.

Method

get privKey(): string;

Usage

const privateKey = web3auth.privKey()

Response

"0ajjsdsd...."