⛏️getAccountFromSecretKey
Description
The getWalletFromSecretKey
takes a secret key as input and generates a public key and a private key. The generated keys can be used to interact with various blockchain networks.
Parameter
Parameter | Type | Description |
---|---|---|
| string | A string representation of a secret key |
Response
Property | Type | Description |
---|---|---|
| string | A string representation of a public key |
| string | A string representation of a private key. |
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 getAccountFromSecretKey
request using the NEST® SDK:
Response
Use Cases
Crypto Wallets: Crypto wallets can leverage this function to generate a secure public and private key pair for a user's account.
Decentralized Applications (DApps): DApps can integrate the getAccountFromSecretKey function to generate a public and private key pair for users to interact with the application.
Blockchain Developers: Blockchain developers can utilize the getAccountFromSecretKey function to generate a public and private key pair for testing and development purposes.
Last updated