Solana
Interacting with the Blockchain using MoonSDK on Solana
Prerequisites
Installation
npm install @solana/web3.js @moonup/moon-sdkInitialization
import web3, { PublicKey, Transaction } from '@solana/web3.js';
import { MoonSDK } from '@moonup/moon-sdk';const sdk = new MoonSDK({
apiKey: 'your_moon_api_key',
});Creating a Solana Transaction
Signing the Transaction
Sending the Transaction
Full Example
Conclusion
Last updated