🔗evm
Description
The getKeys
function takes a mnemonic as input and returns a private key and an address associated with that mnemonic.
Parameters
Parameter | Type | Description |
---|---|---|
| string | A string of 12, 15, 18, 21, or 24 words mnemonic. |
Response
Field | Type | Description |
---|---|---|
| number | Indicates whether the function executed successfully (1) or encountered an error (0). |
| object | Contains the private key and address associated with the input mnemonic. |
| string | The private key associated with the input mnemonic. |
| 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