Replies: 1 comment 1 reply
-
|
Yes, exporting a private key depends on the blockchain E.g. here's a code snippet for doing it on ethereum //Assuming user is already logged in.
async getPrivateKey() {
const privateKey = await web3auth.provider.request({
method: ""eth_private_key""
});
//Do something with privateKey
}Here's one for solana async getPrivateKey() {
const privateKey = await web3auth.provider.request({
method: ""solanaPrivateKey""
});
//Do something with privateKey
}And here's one for other non-evm and non-solana chains async getPrivateKey() {
const privateKey = await web3authProvider.request({
method: ""private_key""
});
//Fetch Address with privateKey
}You can read more here https://web3auth.io/docs/connect-blockchain/ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to know how can one export the private key from web3auth. Also, is this dependent on the blockchain?
Beta Was this translation helpful? Give feedback.
All reactions