{"id":20023947,"url":"https://github.com/thebojda/nft_minter","last_synced_at":"2026-01-25T01:02:54.682Z","repository":{"id":236821351,"uuid":"793216592","full_name":"TheBojda/nft_minter","owner":"TheBojda","description":"Mint NFT from the given JSON, and store the content on Ethereum Swarm in Beeson","archived":false,"fork":false,"pushed_at":"2024-08-15T16:14:30.000Z","size":116,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-05T02:35:48.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/TheBojda.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,"zenodo":null}},"created_at":"2024-04-28T18:42:16.000Z","updated_at":"2024-07-23T06:55:15.000Z","dependencies_parsed_at":"2025-05-05T02:34:38.766Z","dependency_job_id":"7ee8152c-1c5b-41d7-93a4-eb64c25a265d","html_url":"https://github.com/TheBojda/nft_minter","commit_stats":null,"previous_names":["thebojda/nft_minter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheBojda/nft_minter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheBojda%2Fnft_minter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheBojda%2Fnft_minter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheBojda%2Fnft_minter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheBojda%2Fnft_minter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheBojda","download_url":"https://codeload.github.com/TheBojda/nft_minter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheBojda%2Fnft_minter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28740399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T22:12:27.248Z","status":"ssl_error","status_checked_at":"2026-01-24T22:12:10.529Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-13T08:48:44.902Z","updated_at":"2026-01-25T01:02:54.663Z","avatar_url":"https://github.com/TheBojda.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nft_minter\nMint NFT from the given JSON, and store the content on Ethereum Swarm in Beeson\n\nUsage (testing):\n\n```\nyarn blockchain (in a separated terminal)\n```\n\nCopy the private key to .env/OWNER_PRIVATE_KEY\n\nSet .env/JSON_RPC_PROVIDER to the provider URL (usually `http://127.0.0.1:8545`)\n\n```\nyarn bee (in a separated terminal)\n```\n\n```\ncurl -X POST http://localhost:1633/stamps/10000000/18\n```\n\nCopy the postage batch ID to .env/POSTAGE_BATCH_ID\n\nPoint .env/SWARM_API_URL to Bee API URL (usually `http://localhost:1633`)\n\n```\nyarn deploy\n```\n\nCopy the contract address to .env/CONTRACT_ADDRESS\n\n```\nyarn start\n```\n\n**Testing with CURL**\n\nMinting NFT:\n\n```\ncurl -X POST http://localhost:3000/mint -H \"Content-Type: application/json\" -d '{\"to\": \"0x70997970C51812dc3A010C7d01b50e0d17dc79C8\", \"content\": {\"foo\": \"bar\"}}'\n```\n\nExample result:\n\n```json\n{\n    \"message\": \"NFT minted successfully!\",\n    \"tokenId\": \"0xafad2547ea3a4e18e86638b6b72120f55889f97c65699d54af735ac60f729f25\",\n    \"swarmReference\": \"8a9486899faa8bb0b4f9256cc276b6fbe738c0ab9c2b55c490bbb8fc6a1f0c1e\"\n}\n```\n\nGetting NFT metadata by NFT ID:\n\n```\ncurl -X GET http://localhost:3000/metadata/0xafad2547ea3a4e18e86638b6b72120f55889f97c65699d54af735ac60f729f25\n```\n\nExample result:\n\n```json\n{\n    \"swarmReference\": \"8a9486899faa8bb0b4f9256cc276b6fbe738c0ab9c2b55c490bbb8fc6a1f0c1e\",\n    \"content\": {\n        \"foo\": \"bar\",\n        \"_nftID\": \"0xafad2547ea3a4e18e86638b6b72120f55889f97c65699d54af735ac60f729f25\"\n    }\n}\n```\n\nGetting NFT history by owner address:\n\n```\ncurl -X GET http://localhost:3000/history/0x70997970C51812dc3A010C7d01b50e0d17dc79C8\n```\n\nExample result:\n\n```json\n{\n    \"0x064798ccbb56c1677162fbde30e0e3ec247d59f7c9861cd6e33bc59bfd469011\": [\n        \"69f734d9e38c95115b873a7e4225973a7b813fe5ae49de7440149c3bf9af51cb\"\n    ],\n    \"0xafad2547ea3a4e18e86638b6b72120f55889f97c65699d54af735ac60f729f25\": [\n        \"8a9486899faa8bb0b4f9256cc276b6fbe738c0ab9c2b55c490bbb8fc6a1f0c1e\"\n    ]\n}\n```\n\nEvery key is an NFT ID, and the value is an array of Swarm hases generated from the MetadataUpdated events.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebojda%2Fnft_minter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthebojda%2Fnft_minter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebojda%2Fnft_minter/lists"}