{"id":24667989,"url":"https://github.com/vvizardev/burn-to-get-nft-sc","last_synced_at":"2026-05-03T22:33:57.341Z","repository":{"id":254011082,"uuid":"822935289","full_name":"vvizardev/burn-to-get-nft-sc","owner":"vvizardev","description":"burn-to-get-nft-sc : This is the anchor program to get NFTs by burning other tier's NFT","archived":false,"fork":false,"pushed_at":"2024-10-05T19:15:13.000Z","size":135,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-29T08:42:33.282Z","etag":null,"topics":["anchor","burn","get","nft","rust","smartcontract","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vvizardev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-02T05:55:12.000Z","updated_at":"2024-10-05T19:15:17.000Z","dependencies_parsed_at":"2024-08-20T22:17:07.382Z","dependency_job_id":"d0e971b8-f0ff-4f43-a11f-5636f89cbecd","html_url":"https://github.com/vvizardev/burn-to-get-nft-sc","commit_stats":null,"previous_names":["solkeen/burn-to-get-nft-sc","wizasol/burn-to-get-nft-sc","vvizardev/burn-to-get-nft-sc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vvizardev/burn-to-get-nft-sc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fburn-to-get-nft-sc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fburn-to-get-nft-sc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fburn-to-get-nft-sc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fburn-to-get-nft-sc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vvizardev","download_url":"https://codeload.github.com/vvizardev/burn-to-get-nft-sc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fburn-to-get-nft-sc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32587819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["anchor","burn","get","nft","rust","smartcontract","typescript"],"created_at":"2025-01-26T08:25:08.850Z","updated_at":"2026-05-03T22:33:57.324Z","avatar_url":"https://github.com/vvizardev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BurnToGet_program\nThis is the anchor program to get NFTs by burning other tier's NFT\n\n\u003ch4\u003e 📞 Cᴏɴᴛᴀᴄᴛ ᴍᴇ Oɴ ʜᴇʀᴇ: 👆🏻 \u003c/h4\u003e\n\n\u003cp\u003e \n    \u003ca href=\"mailto:nakao95911@gmail.com\" target=\"_blank\"\u003e\n        \u003cimg alt=\"Email\"\n        src=\"https://img.shields.io/badge/Email-00599c?style=for-the-badge\u0026logo=gmail\u0026logoColor=white\"/\u003e\n    \u003c/a\u003e\n     \u003ca href=\"https://x.com/_wizardev\" target=\"_blank\"\u003e\u003cimg alt=\"Twitter\"\n        src=\"https://img.shields.io/badge/Twitter-000000?style=for-the-badge\u0026logo=x\u0026logoColor=white\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://discordapp.com/users/471524111512764447\" target=\"_blank\"\u003e\u003cimg alt=\"Discord\"\n        src=\"https://img.shields.io/badge/Discord-7289DA?style=for-the-badge\u0026logo=discord\u0026logoColor=white\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://t.me/wizardev\" target=\"_blank\"\u003e\u003cimg alt=\"Telegram\"\n        src=\"https://img.shields.io/badge/Telegram-26A5E4?style=for-the-badge\u0026logo=telegram\u0026logoColor=white\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Install Dependencies\n- Install `node` and `yarn`\n- Install `ts-node` as global command\n- Confirm the solana wallet preparation: `/home/---/.config/solana/id.json` in test case\n\n## Usage\n- Main script source for all functionality is here: `/cli/script.ts`\n- Program account types are declared here: `/cli/types.ts`\n- Idl to make the JS binding easy is here: `/target/types/burning.ts`\n\nAble to test the script functions working in this way.\n- Change commands properly in the main functions of the `script.ts` file to call the other functions\n- Confirm the `ANCHOR_WALLET` environment variable of the `ts-node` script in `package.json`\n- Run `yarn ts-node`\n\n# Features\n\n##  How to deploy this program?\nFirst of all, you have to git clone in your PC.\nIn the folder `burning`, in the terminal \n1. `yarn`\n\n2. `anchor build`\n   In the last sentence you can see:  \n```\nTo deploy this program:\n  $ solana program deploy /home/ubuntu/apollo/B2S_Contract/burning/target/deploy/burning.so\nThe program address will default to this keypair (override with --program-id):\n  /home/ubuntu/apollo/B2S_Contract/burning/target/deploy/burning-keypair.json\n```  \n3. `solana-keygen pubkey /home/ubuntu/apollo/B2S_Contract/burning/target/deploy/burning-keypair.json`\n4. You can get the pubkey of the `program ID : ex.\"5N...x6k\"`\n5. Please add this pubkey to the lib.rs\n  `line 17: declare_id!(\"5N...x6k\");`\n6. Please add this pubkey to the Anchor.toml\n  `line 4: staking = \"5N...x6k\"`\n7. Please add this pubkey to the types.ts\n  `line 6: export const BURNING_PROGRAM_ID = new PublicKey(\"5N...x6k\");`\n  \n8. `anchor build` again\n9. `solana program deploy /home/.../backend/target/deploy/burning.so`\n\n\u003cp align = \"center\"\u003e\nThen, you can enjoy this program 🎭\n\u003c/p\u003e\n\u003c/br\u003e\n\n## How to use?\n\n### A Project Owner\nFirst of all, open the directory and `yarn`\n\n#### Initproject\n\nYou can change you wallet address in the package.json.\nAnd de-comment the following statements\n```js\n    await initProject();\n\n    // await register(new PublicKey(\"2ZQ..WLk\"), [2, 2], [0,0], [2,1]);\n    // await burnToGet(\n    //     new PublicKey(\"2ZQ...WLk\"),\n    //     [\n    //          new PublicKey(\"5bd...C5P\"),\n    //          new PublicKey(\"8uT...5Gk\"),\n    //          new PublicKey(\"HG3...dyw\"),\n    //      ]\n    // )\n```\nThen, in the `/burning` folder\n```shell\nyarn ts-node\n```\n\n#### Register\n\nYou can send the NFT which will be listed in the marketplace. \n```js\nStyle Set:\nRandom      =\u003e 0\n\"Black\"     =\u003e 1\n\"Silver\"    =\u003e 2\n\"Gold\"      =\u003e 3\n\"Diamond\"   =\u003e 4\n\nArtist Set:\nRandom          =\u003e 0\n\"Big Pun\"       =\u003e 1 \n\"The Game\"      =\u003e 2\n\"April Walker\"  =\u003e 3\n\"Drink Champs\"  =\u003e 4\n\"Onyx\"          =\u003e 5\n\neg:\n// if users should burn Silver -\u003e 2, Gold/Onyx -\u003e 3, Diamond -\u003e 1\nstyle   = [2, 3, 4]\nartist  = [0, 5, 0]\namount  = [2, 3, 1]\n```\n\n```js\n    // await initProject();\n\n    await register(new PublicKey(\"2ZQ..WLk\"), [2, 3, 4], [0, 5, 0], [2, 3, 1]);\n    // await burnToGet(\n    //     new PublicKey(\"2ZQ...WLk\"),\n    //     [\n    //          new PublicKey(\"5bd...C5P\"),\n    //          new PublicKey(\"8uT...5Gk\"),\n    //          new PublicKey(\"HG3...dyw\"),\n    //      ]\n    // )\n```\nThen, in the `/burning` folder\n```shell\nyarn ts-node\n```\n\n#### BurnToGet\nUsers can burn NFTs to get the NFT. Users should burn total amount of NFTs.(eg. 2+3+1 = 6)\n\n```js\n    // await initProject();\n\n    // await register(new PublicKey(\"2ZQ..WLk\"), [2, 3, 4], [0, 5, 0], [2, 3, 1]);\n    await burnToGet(\n        new PublicKey(\"2ZQ...WLk\"),\n        [\n             new PublicKey(\"5bd...C5P\"),\n             new PublicKey(\"8uT...5Gk\"),\n             new PublicKey(\"HG3...dyw\"),\n             new PublicKey(\"54d...C5P\"),\n             new PublicKey(\"1uT...5Gk\"),\n             new PublicKey(\"kG3...dyw\"),\n         ]\n    )\n```\n\nThen, in the `/burning` folder\n```shell\nyarn ts-node\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvvizardev%2Fburn-to-get-nft-sc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvvizardev%2Fburn-to-get-nft-sc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvvizardev%2Fburn-to-get-nft-sc/lists"}