⛏️generateAccount
Description
The generateWallet
function utilizes the Solana Keypair library to generate a new public and private key pair. It conveniently returns an object that includes the generated public and private keys represented as strings.
Parameter
This function does not take any parameters
Response
Property | Type | Description |
---|---|---|
| string | The generated public key in Base58 encoding |
| string | The generated private key in Base58 encoding |
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 generateAccount
request using the NEST® SDK:
Response
Use Cases
Decentralized Applications (DApps): Developers building decentralized applications on the Solana blockchain can utilize this function to generate new public and private key pairs for their users.
Crypto Wallets: Crypto wallets can leverage the
generateWallet
function to generate new key pairs for users who wish to create a new wallet.Cryptocurrency Exchanges: Cryptocurrency exchanges can integrate the
generateWallet
function to generate new key pairs for users who want to create a new account on their platform.
Last updated