{"id":21043102,"url":"https://github.com/mrinalxdev/solana-helper","last_synced_at":"2025-06-30T10:04:42.087Z","repository":{"id":235004395,"uuid":"789024385","full_name":"mrinalxdev/solana-helper","owner":"mrinalxdev","description":"an npm package to help with solana projects","archived":false,"fork":false,"pushed_at":"2024-05-27T14:25:07.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-30T06:07:18.334Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrinalxdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-19T14:57:10.000Z","updated_at":"2024-05-27T14:25:10.000Z","dependencies_parsed_at":"2024-04-22T01:20:34.844Z","dependency_job_id":"d9b22220-5e64-4e99-9f3d-b1257dedccdb","html_url":"https://github.com/mrinalxdev/solana-helper","commit_stats":null,"previous_names":["mrinalxdev/m_","mrinalxdev/discordbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrinalxdev/solana-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinalxdev%2Fsolana-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinalxdev%2Fsolana-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinalxdev%2Fsolana-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinalxdev%2Fsolana-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrinalxdev","download_url":"https://codeload.github.com/mrinalxdev/solana-helper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinalxdev%2Fsolana-helper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262753011,"owners_count":23358879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T14:10:58.052Z","updated_at":"2025-06-30T10:04:41.546Z","avatar_url":"https://github.com/mrinalxdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solana-Helper\n\n\u003e v0.5\n\u003e This is a package to do all the things with Solana blockchain development out of the box!\n\u003e Here is the list of the features in the current version\n\n```bash\n## Terminal\nnpm install solana-helper\n```\n\n```js\n// index.js\nconst SolanaHelper = require(\"solana-helper\");\n```\n\n- Initialization\n- Account Management\n- Transaction Handling\n- Smart Contract interactions Utility functions\n\nwith these Developers can build Solana application features like network switching, airdrop request, transaction simulation, program deployment etc.\nThis packaage easy-to-use,\n\nwith these Developers can build Solana application features like network switching, airdrop request, transaction simulation, program deployment etc.\nThis packaage easy-to-use, simple interface to work with the Solana blockchain, enabling developers to implementmore reliable and scalable dApps.simple interface to work with the Solana blockchain, enabling developers to implementmore reliable and scalable dApps.\n\n## Initialization\n\n```js\nconst solana = new SolanaHelper(\"https://api.mainnet-beta.solana.com\");\n```\n\nConnect to the Solana Blockchain network and Switch between different network endpoints dynamically.\n\n## Account Management\n\nWe have integrated handful features just like creating new accounts, restore accounts from secret keys\nFetching account details including balance and account info, requesting SOL sirdrops to accounts and fetching account details for multiple accounts.\n\n1. Creating a new Account\n```js\nconst newAccount = solana.createAccount();\n```\n\n2. Restoring an account from a secret key.\n```js\nconst restoredAccount = solana.createAccountFromSecretKey(secretKey);\n```\n\n3. Fetching account balance\n```js\nsolana.getAccountBalance(account.publicKey).then(balance =\u003e console.log(balance));\n```\n4. Requesting airdrop to an account\n```js\nsolana.requestAirdrop(account.publicKey, 1000000).then(signature =\u003e console.log(signature));\n```\n5. Fetching account details for multiple accounts\n```js\nsolana.getMultipleAccountInfo([account1.publicKey, account2.publicKey]).then(accountInfos =\u003e console.log(accountInfos));\n```\n\n## Transaction Handling\nTransaction handling in \"solana-helper\" includes sending transactions between accounts, getting transaction details, simulating transactions without sending them, and retrieving recent account transactions. These features facilitate efficient management and monitoring of transactions on the Solana blockchain.\n\n1. Sending a transaction between accounts\n```js\nsolana.sendTransaction(senderAccount, receiverAccount, 1000000).then(signature =\u003e console.log(signature));\n```\n\n2. Getting transaction details\n```js\nsolana.getTransactionDetails(transactionSignature).then(details =\u003e console.log(details));\n```\n\n3. Simulating a transaction without sending it.\n\n```js\nsolana.simulateTransaction(senderAccount, receiverAccount, 1000000).then(result =\u003e console.log(result));\n```\n\n4. Retrieving recent transaction for an account\n\n```js\nsolana.getRecentTransactions(account.publicKey).then(transactions =\u003e console.log(transactions));\n```\n## Smart Contract Interactions\nThis package simplifies smart contract interactions by facilitating the deployment of programs with multiple instructions, calling methods on contracts with parameters, and retrieving program account information. This streamlines the development process and enhances efficiency when interacting with Solana smart contracts.\n\n1. Deploying a program with multiple instructions\n\n```js\nsolana.deployProgramWithInstructions(programInstructions, senderAccount).then(signature =\u003e console.log(signature));\n```\n\n2. Calling a method on a smart contract with parameters.\n\n```js\nsolana.invokeContractMethod(contractProgramId, methodName, methodArguments, senderAccount).then(signature =\u003e console.log(signature));\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrinalxdev%2Fsolana-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrinalxdev%2Fsolana-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrinalxdev%2Fsolana-helper/lists"}