@@ -22,11 +22,11 @@ Private keys provide full control over user assets. Handle them securely:
2222
2323The 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 {
122122const 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 )
129129const keypair = Keypair .fromSecretKey (secretKey)
130130
131131// Connect to Solana
0 commit comments