{"id":20217289,"url":"https://github.com/settlemint/chaincode-typescript-empty-pdc","last_synced_at":"2025-11-29T21:11:34.358Z","repository":{"id":237983035,"uuid":"795036961","full_name":"settlemint/chaincode-typescript-empty-pdc","owner":"settlemint","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-01T04:41:21.000Z","size":397,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-01T05:24:57.689Z","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/settlemint.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-05-02T13:10:18.000Z","updated_at":"2025-03-01T04:41:24.000Z","dependencies_parsed_at":"2024-05-17T22:27:37.965Z","dependency_job_id":"844e6943-842d-4cb4-8e1e-a3576ed2ce1c","html_url":"https://github.com/settlemint/chaincode-typescript-empty-pdc","commit_stats":null,"previous_names":["settlemint/chaincode-typescript-empty-pdc"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settlemint%2Fchaincode-typescript-empty-pdc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settlemint%2Fchaincode-typescript-empty-pdc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settlemint%2Fchaincode-typescript-empty-pdc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settlemint%2Fchaincode-typescript-empty-pdc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/settlemint","download_url":"https://codeload.github.com/settlemint/chaincode-typescript-empty-pdc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241654587,"owners_count":19997893,"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":"2024-11-14T06:33:15.150Z","updated_at":"2025-11-29T21:11:34.304Z","avatar_url":"https://github.com/settlemint.png","language":"TypeScript","readme":"# Hyperledger Fabric Empty Smart PDC Contract Set\n\nAn empty Hyperledger Fabric smart contract set using Typescript.\n\n## Get started\n\nLaunch this smart contract set in the SettleMint Blockchain Transformation platform under the `Smart Contract Sets` section. This will automatically link it to your own blockchain node and make use of the private keys living in the platform.\n\n## Prerequisites\n\n1. Update `collection_config.json` with the right MSPId's of your network.\n2. Update `.env` `CC_SIGNATURE_POLICY` to match the MSPId's of your network.\n\n## Usage\n\nCreating an asset:\n\nThere are two ways to create an asset:\n\n```bash\nexport ASSET_PROPERTIES=$(echo -n \"{\\\"objectType\\\":\\\"ValuableAsset\\\",\\\"assetID\\\":\\\"asset1\\\",\\\"color\\\":\\\"green\\\",\\\"size\\\":20,\\\"appraisedValue\\\":100}\" | base64 | tr -d \\\\n)\nBTP_SERVICE_TOKEN=\u003cyour-access-token\u003e ./lib/btp-chaincode-lifecycle/chaincode.sh invoke 'CreateAsset' --transient \"{ \\\"asset_properties\\\": \\\"${ASSET_PROPERTIES}\\\"}\"\n```\n\nOr let the api do the base64 encoding for you:\n\n```bash\nBTP_SERVICE_TOKEN=\u003cyour-access-token\u003e ./lib/btp-chaincode-lifecycle/chaincode.sh invoke 'CreateAsset' --transient '{ \"asset_properties\": { \"objectType\": \"ValuableAsset\", \"assetID\": \"asset1\", \"color\": \"green\", \"size\": \"20\", \"appraisedValue\": \"100\" }}'\n```\n\nQuery the newly created asset:\n\n```bash\nBTP_SERVICE_TOKEN=\u003cyour-access-token\u003e ./lib/btp-chaincode-lifecycle/chaincode.sh query 'ReadAsset' --arguments 'asset1'\n```\n\nHere your access token is an application access token or a personal access token scoped to the nodes you wish to interact with.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettlemint%2Fchaincode-typescript-empty-pdc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsettlemint%2Fchaincode-typescript-empty-pdc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettlemint%2Fchaincode-typescript-empty-pdc/lists"}