🔗evm
Description
The getKeys
function takes a mnemonic as input and returns a private key and an address associated with that mnemonic.
Parameters
mnemonic
string
A string of 12, 15, 18, 21, or 24 words mnemonic.
Response
code
number
Indicates whether the function executed successfully (1) or encountered an error (0).
result
object
Contains the private key and address associated with the input mnemonic.
result.privateKey
string
The private key associated with the input mnemonic.
result.address
string
The address associated with the input mnemonic.
Example Request and Response
Prerequisites
Before making requests with Nest SDK, you must have it installed.
You can install Nest SDK using either npm
or yarn
. Use the following commands to install Nest SDK:
Request
Here is an example of how to make a getKeys
request using the Nest SDK:
Response
Use Cases
Cryptocurrency Wallet: This function can be used by cryptocurrency wallets to generate a private key and address for a user's account using a mnemonic that is easy to remember and write down.
Testing: It can also be used by blockchain developers to quickly generate private keys and addresses for testing and development purposes.
Last updated