{"id":25081105,"url":"https://github.com/odegnome/nft-on-sui","last_synced_at":"2026-01-12T06:45:17.931Z","repository":{"id":170894506,"uuid":"577817132","full_name":"odegnome/nft-on-sui","owner":"odegnome","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-16T12:53:53.000Z","size":176,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T04:42:40.388Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Move","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/odegnome.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":"2022-12-13T15:39:19.000Z","updated_at":"2022-12-27T03:29:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"7fa18a75-d2ad-423c-ad7b-8d09255137ef","html_url":"https://github.com/odegnome/nft-on-sui","commit_stats":null,"previous_names":["coder-rg/nft-on-sui","odegnome/nft-on-sui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odegnome%2Fnft-on-sui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odegnome%2Fnft-on-sui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odegnome%2Fnft-on-sui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odegnome%2Fnft-on-sui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/odegnome","download_url":"https://codeload.github.com/odegnome/nft-on-sui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246604614,"owners_count":20804100,"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":"2025-02-07T04:36:41.189Z","updated_at":"2026-01-12T06:45:17.926Z","avatar_url":"https://github.com/odegnome.png","language":"Move","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NFT on Sui\n\n1. First and foremost, make sure that the package is compiling, by running the\nfollowing commands:\n\n```sh\nsui move build\nsui move test\n```\n\n2. Then to test on sui devnet, publish the package(requires a sui accouunt and some balance to pay gas):\n\n```sh\nsui client publish . --gas-budget 10000 --verify-dependencies\n```\n\nOutput should be similar to:\n\n```sh\nSuccessfully verified dependencies on-chain against source.\n----- Certificate ----\nTransaction Hash: LN4OyVfxqL/p0TsaxC9qGaEidXuTFxCwlp8xvsbpIWw=\nTransaction Signature: AA==@Pr6f9T86AHpM3udbbCaYupt7I4DRnlXAaI0w1gz6+ndSG/2PzXtHRkl9MgghXbuRN1aQNu87lMAiwdZgsljmCw==@pKhGEfmW/5SBVVM8TugZ0rjQqJrnUCgE5IZnVeigqgg=\nSigned Authorities Bitmap: RoaringBitmap\u003c[0, 2, 3]\u003e\nTransaction Kind : Publish\n----- Transaction Effects ----\nStatus : Success\nCreated Objects:\n  - ID: 0xb12c700f1a51fcafa2bc61ef0113d48edf18f980 , Owner: Immutable\nMutated Objects:\n  - ID: 0x0db8113be0c7cf16c1194dad7792c836d9cee9e4 , Owner: Account Address ( 0xc404301d2c5a9791d25b65f58c1383f765af1011 )\n```\n\n3. Let's create a new collection in our new contract\n\n```sh\nsui client call --function new_collection --module main --package 0xb12c700f1a51fcafa2bc61ef0113d48edf18f980 --args \\\"Watches\\\" 1671193699 \\\"Me\\\" 2 --gas-budget 10000\n```\n\nOutput should be similar to :\n\n```sh\n----- Certificate ----\nTransaction Hash: FjgGO0+f2ut9ZXwT4MGzQ+CCAJvkpK1Zwdap2/xO++c=\nTransaction Signature: AA==@TPnv1xPk//p35PVNIWbsIBSIgxZ4vUZRpcxOY5EnQh/Jz22vA8YDAblXiXU30mollfJVj5Q8lLHckKvmmlkSCA==@pKhGEfmW/5SBVVM8TugZ0rjQqJrnUCgE5IZnVeigqgg=\nSigned Authorities Bitmap: RoaringBitmap\u003c[1, 2, 3]\u003e\nTransaction Kind : Call\nPackage ID : 0xb12c700f1a51fcafa2bc61ef0113d48edf18f980\nModule : main\nFunction : new_collection\nArguments : [\"Watches\", 1671193699, \"Me\", 2]\nType Arguments : []\n----- Transaction Effects ----\nStatus : Success\nCreated Objects:\n  - ID: 0x564c06d41d599e0e8af0ec88abca83643b8dcea1 , Owner: Account Address ( 0xc404301d2c5a9791d25b65f58c1383f765af1011 )\nMutated Objects:\n  - ID: 0x0db8113be0c7cf16c1194dad7792c836d9cee9e4 , Owner: Account Address ( 0xc404301d2c5a9791d25b65f58c1383f765af1011 )\n```\n\n4. Now, let's mint a new NFT inside this collection\n\n```sh\nsui client call --function new_pigment --module main --package 0xb12c700f1a51fcafa2bc61ef0113d48edf18f980 --args \\\"CASIO\\\" \\\"figment://casio-5208\\\" \\\"0x564c06d41d599e0e8af0ec88abca83643b8dcea1\\\" --gas-budget 10000\n```\n\n```sh\n----- Certificate ----\nTransaction Hash: /67wS9OZMNTLnNhuQCgcacphc2H0n4NKMQQbrZDNqf0=\nTransaction Signature: AA==@Yl2QXSm22pUCCtP/N9fVF4lNl9JcpHa6jDmU1g5CcIkbRu1yhGIDOTEP3Y1+AkCdKPHawMB7xTQgwKwvk/0QDQ==@pKhGEfmW/5SBVVM8TugZ0rjQqJrnUCgE5IZnVeigqgg=\nSigned Authorities Bitmap: RoaringBitmap\u003c[0, 2, 3]\u003e\nTransaction Kind : Call\nPackage ID : 0xb12c700f1a51fcafa2bc61ef0113d48edf18f980\nModule : main\nFunction : new_pigment\nArguments : [\"CASIO\", \"figment://casio-5208\", \"0x564c06d41d599e0e8af0ec88abca83643b8dcea1\"]\nType Arguments : []\n----- Transaction Effects ----\nStatus : Success\nCreated Objects:\n  - ID: 0xd045ae4a5b2e5b6729de3bf102f1b092cbd80169 , Owner: Account Address ( 0xc404301d2c5a9791d25b65f58c1383f765af1011 )\nMutated Objects:\n  - ID: 0x0db8113be0c7cf16c1194dad7792c836d9cee9e4 , Owner: Account Address ( 0xc404301d2c5a9791d25b65f58c1383f765af1011 )\n  - ID: 0x564c06d41d599e0e8af0ec88abca83643b8dcea1 , Owner: Account Address ( 0xc404301d2c5a9791d25b65f58c1383f765af1011 )\n```\n\n5. Repeat this process two more times and on the second try, it will show an error.\n\n```sh\nsui client call --function new_pigment --module main --package 0xb12c700f1a51fcafa2bc61ef0113d48edf18f980 --args \\\"ROLEX\\\" \\\"figment://rolex-34\\\" \\\"0x564c06d41d599e0e8af0ec88abca83643b8dcea1\\\" --gas-budget 10000\n```\n\n```sh\n----- Certificate ----\nTransaction Hash: b74WlhGOjFVQw4gaCfXOwITdJoI+Ak00ainnp2gbgSY=\nTransaction Signature: AA==@gyfaANdh0EdmCQyqbyAygN+1/ReDb/ApDTV8vPt9Nzh0j4lJwQ7GPL2S9+lbIryJeC/JO5DyUx4UvOZWQr0oBw==@pKhGEfmW/5SBVVM8TugZ0rjQqJrnUCgE5IZnVeigqgg=\nSigned Authorities Bitmap: RoaringBitmap\u003c[1, 2, 3]\u003e\nTransaction Kind : Call\nPackage ID : 0xb12c700f1a51fcafa2bc61ef0113d48edf18f980\nModule : main\nFunction : new_pigment\nArguments : [\"ROLEX\", \"figment://rolex-34\", \"0x564c06d41d599e0e8af0ec88abca83643b8dcea1\"]\nType Arguments : []\n----- Transaction Effects ----\nStatus : Success\nCreated Objects:\n  - ID: 0x639fdfd5d2f07e01aa0d335330e7e7d7bdc1b3bd , Owner: Account Address ( 0xc404301d2c5a9791d25b65f58c1383f765af1011 )\nMutated Objects:\n  - ID: 0x0db8113be0c7cf16c1194dad7792c836d9cee9e4 , Owner: Account Address ( 0xc404301d2c5a9791d25b65f58c1383f765af1011 )\n  - ID: 0x564c06d41d599e0e8af0ec88abca83643b8dcea1 , Owner: Account Address ( 0xc404301d2c5a9791d25b65f58c1383f765af1011 )\n```\n\n```sh\nsui client call --function new_pigment --module main --package 0xb12c700f1a51fcafa2bc61ef0113d48edf18f980 --args \\\"ROLEX\\\" \\\"figment://rolex-34\\\" \\\"0x564c06d41d599e0e8af0ec88abca83643b8dcea1\\\" --gas-budget 10000\n```\n\n```sh\nError calling module: Failure {\n    error: \"MoveAbort(MoveLocation { module: ModuleId { address: b12c700f1a51fcafa2bc61ef0113d48edf18f980, name: Identifier(\\\"main\\\") }, function: 2, instruction: 16 }, 1)\",\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodegnome%2Fnft-on-sui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fodegnome%2Fnft-on-sui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodegnome%2Fnft-on-sui/lists"}