Metacrafters challenge for module2. The purpose of this script is to compute the 50% SOL balance from the sender wallet and transfer it to another wallet. This script is more on transactions and how to execute it on Solana.
Public key being used in this sample code is 5XwLoxnXZSHQhQpMz7Cu19VkRwDW4gWg1VF2YgU2BzRy
If you wish to create your own public key, refer to challenge1-solana github repository.
-
Install the npm dependencies by running
npm install
on the root directory of the repository. -
Run
npm start
ornode index.js