{"id":27089054,"url":"https://github.com/soldapper/solana-optimizer","last_synced_at":"2025-04-06T06:38:23.728Z","repository":{"id":245786699,"uuid":"819229431","full_name":"SolDapper/solana-optimizer","owner":"SolDapper","description":"A js class that builds, optimizes, and optionally serializes \u0026 base64 encodes a Solana transaction.","archived":false,"fork":false,"pushed_at":"2025-04-02T13:16:06.000Z","size":102,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-02T14:23:30.708Z","etag":null,"topics":["blockchain","optimization","solana","web3"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SolDapper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-06-24T05:18:00.000Z","updated_at":"2025-04-02T13:16:09.000Z","dependencies_parsed_at":"2025-02-08T01:26:20.597Z","dependency_job_id":"3e064be1-62f1-45e5-8552-4226070a309d","html_url":"https://github.com/SolDapper/solana-optimizer","commit_stats":null,"previous_names":["mcdegens-dao/mcbuild","soldapper/mcbuild","soldapper/solana-optimizer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolDapper%2Fsolana-optimizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolDapper%2Fsolana-optimizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolDapper%2Fsolana-optimizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolDapper%2Fsolana-optimizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SolDapper","download_url":"https://codeload.github.com/SolDapper/solana-optimizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445650,"owners_count":20939953,"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":["blockchain","optimization","solana","web3"],"created_at":"2025-04-06T06:38:23.252Z","updated_at":"2025-04-06T06:38:23.723Z","avatar_url":"https://github.com/SolDapper.png","language":"JavaScript","readme":"# solana-optimizer\nbuilds, optimizes, serializes, encodes a solana transaction for both apps and actions\n\n![powered by solana](https://camo.githubusercontent.com/4a0138729f5af10f6389f7030f00eca28d2963932c6c21e7f397f077d8a908d7/68747470733a2f2f6364366e61326c6d6132323267706967766971637072356e377565776778643775686f636b6f66656c666c7375616f70376f69712e617277656176652e6e65742f45507a516157774774614d3942716f674a3865745f516c6a58482d683343553470466c584b6748502d3545)\n\n# note\nrequires a helius rpc as it utilizes the getPriorityFeeEstimate method\n\n# example\n```javascript\nimport optimizer from 'solana-optimizer';\n// create your instructions and then:\n// optimize transaction\nconst _tx_ = {};\n_tx_.rpc = rpc;     \n_tx_.blink = false;                   // bool   : default false\n_tx_.account = payer;                 // string : required\n_tx_.instructions = [instruction];    // array  : required\n_tx_.signers = false;                 // array  : default false\n_tx_.serialize = false;               // bool   : default false\n_tx_.encode = false;                  // bool   : default false\n_tx_.table = false;                   // array  : default false\n_tx_.tolerance = 1.1;                 // float  : default 1.1    \n_tx_.compute = true;                  // bool   : default true\n_tx_.fees = true;                     // bool   : default true\n_tx_.priority = \"Medium\";             // string : VeryHigh,High,Medium,Low Min\n_tx_.memo = \"Awesome Memo Man!\";      // string : default false\nconst tx = await optimizer.tx(_tx_);  \nif(typeof tx.status!=\"undefined\"){console.log(tx);}\nelse{\n    const signed = await provider.signTransaction(tx);\n    const signature = await optimizer.send(rpc,signed);\n    console.log(\"signature\", signature);\n    console.log(\"awaiting status...\");\n    const status = await optimizer.status(rpc,signature);\n    if(status!=\"finalized\"){console.log(\"status\", status);}\n    else{console.log(status);}\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoldapper%2Fsolana-optimizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoldapper%2Fsolana-optimizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoldapper%2Fsolana-optimizer/lists"}