⛏️generateWallet
Description
The generateWallet
function generates a new key pair using the Ed25519 cryptographic algorithm.
It then returns the public key, private key, and account hash for the newly generated wallet
Parameters
This function does not take any parameters.
Response
Name | Type | Description |
---|---|---|
| string | The private key of the newly generated wallet |
| string | The public key of the newly generated wallet |
| string | The account hash of the newly generated wallet on the specified blockchain network |
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 generateWallet
request using the Nest SDK:
Response
Use Cases
Decentralized Applications: The function can be used by decentralized applications to generate new public-private key pairs for user accounts and facilitate transactions on blockchain networks.
Blockchain Development: The function can be used by developers to quickly generate test accounts and keys for development and testing purposes.
Blockchain Education: The function can be used by educators and students to demonstrate and learn about public-private key pairs and their role in blockchain transactions.
Last updated