The Ultimate JavaScript SDK for Solona Web3 Development
Overview
Solone SDK is a library that provides the tools, utilities, and infrastructure you need to develop your app. It gives powerful @solana/web3.js web3 functions to develop the Decentralized application rapidly. And then bring it to scale. The Solone SDK enables access to @solana/web3.js functions in great experiences rather than heavy lifting.
The Solone SDK is currently is on initial development and testing phase. We will be releasing the versions on daily basis for upcoming. For more information on Solone and its features, see the website, twitter or discord.
Getting Started
The easiest way to integrate the Solone SDK into your JavaScript project is through the npm module.
Usage
Initialize
import { Solone } from 'solone-sdk';
const solone = new Solone('testnet');
solone.masterUrl = 'https://api.solone.io/web3Api/';
solone.masterKey = 'sol_fm58yVjjC9vY7q1NPQ5rMBFt68e7aqfC';
API
switchNetwork(network: Cluster)
to switch the current initialized network of solana eg: from testnet to mainnet-beta.
solone.switchNetwork('testnet');
solone.switchNetwork('mainnet-beta');
solone.switchNetwork('devnet');
createAccount(secret?: Unint8Array | string)
create a new wallet or wallet using a secret key.
solone.createAccount();
solone.createAccount(secretKey);
getAccountBalance(address: string | PublicKeyType)
get wallet balance using base58 or string public key of wallet.
solone.getAccountBalance(stringPublicKey);
solone.getAccountBalance(publicKey);
Store wallets
await solanaClient.addWallet('myWallet', [106,241,17,...,25,111,29,121,118]);
await solanaClient.addDestination('myReceiver', "8z4Wq1gz1u...kNZcDS77KLq");
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.