{"repo":"Al366io/solana-transactions-wrapper","free":true,"listed":false,"github":"https://github.com/Al366io/solana-transactions-wrapper","clone":"git clone https://github.com/Al366io/solana-transactions-wrapper.git","description":"Handy tool to execute buy/sell transactions on the SOLANA chain","language":"TypeScript","stars":61,"topics":["jupiter","library","solana","swap","wrapper","blockchain"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"solana-transactions-wrapper Handy tool to execute buy/sell transactions on the SOLANA chain. Installation Install the package with npm: npm install solana-transactions-wrapper Usage Importing the package import { buy token, sell token, get tokens balances, get token balance } from 'solana-transactions-wrapper'; Buying a token Parameters: config: The buy function accepts a config object, as per buyConfig object type. The buyConfig object type is defined as follows: type buyConfig = { RPC ENDPOINT: string; WALLET PRIVATE KEY: string; ADDRESS OF TOKEN TO BUY: string; AMOUNT OF SOLANA TO SPEND: number; SLIPPAGE: number; PRIORITIZATION FEE LAMPORTS?: number \"auto\"; } Usage: await buy token(config: buyConfig) Logs Example: Connection established 🚀 Wallet fetched ✅ Trying to buy token using \"amount\" SOL... Transaction sent with txid: \"transaction id\" Waiting for confirmation... 🕒 Transaction confirmed ✅ Selling a token Parameters: config: The sell function accepts a config object, as per sellConfig object type. The sellConfig object type is defined as follows: type sellConfig = { SELL ALL: boolean; RPC ENDPOINT: string; WALLET PRIVATE KEY: string; ADDRESS OF TOKEN TO SELL: string; AMOUNT OF TOKEN TO SELL?: number; SLIPPAGE: number; PRIORITIZATION FEE LAMPORTS?: number \"auto\"; } Usage: await sell token(config: sellConfig) Logs Example: Connection established 🚀 Wallet fetched ✅ Selling \"amount\" of \"token address\"... Transaction sent with txid: \"transaction id\" Waiting for confirmat","default_branch":null,"files":null,"tree":[],"storefront":"/r/Al366io","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Al366io/solana-transactions-wrapper/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}