derivationPath |
String |
Derivation paths are used to derive the public key from the secret recovery phrase. Only certain paths are accepted. If you provide the empty string "" as the value for the derivation path, then we will derive your public key with the same behavior as the default behavior of the Solana CLI. By default, we use "m/44/501/0/0". This is the path that the Phantom and Sollet wallets use. You can also arbitrarily increment the default path ("m/44/501/0/0") to generate more wallets (e.g., "m/44/501/0/1", "m/44/501/0/2", ... AND/OR "m/44/501/1/0", "m/44/501/2/0", ...). Phantom's Wallet increments the first digit (e.g., "m/44/501/0/0", "m/44/501/1/0", "m/44/501/2/0", ...) to generate more public key addresses. The SolFlare recommended path is "m/44/501/0". To learn more about derivation paths, check out <a href="https://learnmeabitcoin.com/technical/derivation-paths\" target="_blank">this tutorial. |
[optional] [default to 'm/44/501/0/0'] |
privateKey |
Object |
A private key corresponds to exactly one public key address. A private key can be used to move assets out of the wallet and sign transaction with the corresponding public key. A private key is an array of integers (e.g., [185,108,153,165,57,193,166,167,58,148,133,121,92,252,242,13,233,246,35,103,185,20,27,56,111,169,12,50,50,36,83,156,173,195,143,75,135,78,204,129,217,231,58,129,69,180,185,86,119,43,200,193,94,112,31,135,68,128,207,26,85,150,68,181] ). <a href="https://solflare.com\" target="_blank">Solflare is a popular wallet interface on Solana that allows you to export your private key in this format. |
|