Skip to content

Commit ef2c3a2

Browse files
authored
Merge branch 'main' into passkey-removal
2 parents 19dd9fb + 826843e commit ef2c3a2

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

embedded-wallets/connect-blockchain/solana/javascript.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,13 @@ console.log(result.toString())
279279

280280
## Fetch User's Private Key
281281

282-
`solanaPrivateKey` is used to fetch the private key of the logged in user. It is only available for `in-app` adapters like `auth`.
282+
`solana_privateKey` is used to fetch the private key of the logged in user. It is only available for `in-app` adapters like `auth`.
283283

284284
```tsx
285285
// Assuming user is already logged in.
286286
async getPrivateKey() {
287287
const privateKey = await web3auth.provider.request({
288-
method: "solanaPrivateKey"
288+
method: "solana_privateKey"
289289
});
290290

291291
// Do something with privateKey

embedded-wallets/sdk/js/_solana-integration-snippets.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,13 @@ console.log(result.toString())
218218

219219
## Fetch User's Private Key
220220

221-
`solanaPrivateKey` is used to fetch the private key of the logged in user. It is only available for `in-app` adapters like `auth`.
221+
`solana_privateKey` is used to fetch the private key of the logged in user. It is only available for `in-app` adapters like `auth`.
222222

223223
```tsx
224224
// Assuming user is already logged in.
225225
async getPrivateKey() {
226226
const privateKey = await web3auth.provider.request({
227-
method: "solanaPrivateKey"
227+
method: "solana_privateKey"
228228
});
229229

230230
// Do something with privateKey

embedded-wallets/sdk/node/private-key.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ Private keys provide full control over user assets. Handle them securely:
2222

2323
The provider offers different methods to access private keys depending on your blockchain needs:
2424

25-
| Method | Description | Use Case |
26-
| ------------------ | ------------------------------ | ----------------------------------------- |
27-
| `private_key` | Ethereum-formatted private key | EVM chains (Ethereum, Polygon, BSC, etc.) |
28-
| `solanaPrivateKey` | Solana private key | Solana blockchain |
29-
| `private_key` | Raw private key | Any blockchain |
25+
| Method | Description | Use Case |
26+
| ------------------- | ------------------------------ | ----------------------------------------- |
27+
| `private_key` | Ethereum-formatted private key | EVM chains (Ethereum, Polygon, BSC, etc.) |
28+
| `solana_privateKey` | Solana private key | Solana blockchain |
29+
| `private_key` | Raw private key | Any blockchain |
3030

3131
## EVM Chains (Ethereum, Polygon, BSC, etc.)
3232

@@ -104,8 +104,8 @@ const hash = await walletClient.sendTransaction({
104104
### Get Solana Private Key
105105

106106
```javascript
107-
const solanaPrivateKey = await provider.request({ method: 'solanaPrivateKey' })
108-
console.log('Solana Private Key:', solanaPrivateKey) // Base58 encoded
107+
const solana_privateKey = await provider.request({ method: 'solana_privateKey' })
108+
console.log('Solana Private Key:', solana_privateKey) // Base58 encoded
109109
```
110110

111111
### Use with Solana Web3.js
@@ -122,10 +122,10 @@ const {
122122
const bs58 = require('bs58')
123123

124124
// Get private key
125-
const solanaPrivateKey = await provider.request({ method: 'solanaPrivateKey' })
125+
const solana_privateKey = await provider.request({ method: 'solana_privateKey' })
126126

127127
// Create keypair from private key
128-
const secretKey = bs58.decode(solanaPrivateKey)
128+
const secretKey = bs58.decode(solana_privateKey)
129129
const keypair = Keypair.fromSecretKey(secretKey)
130130

131131
// Connect to Solana

0 commit comments

Comments
 (0)