{"id":25703429,"url":"https://github.com/dashpay/platform-tutorials","last_synced_at":"2025-04-30T06:46:22.668Z","repository":{"id":43943089,"uuid":"476799204","full_name":"dashpay/platform-tutorials","owner":"dashpay","description":"Code for the tutorials found on https://docs.dash.org/platform","archived":false,"fork":false,"pushed_at":"2025-01-16T20:17:26.000Z","size":416,"stargazers_count":2,"open_issues_count":4,"forks_count":6,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-30T06:46:01.975Z","etag":null,"topics":["blockchain","crytpocurrency","dash","tutorial-code"],"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/dashpay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-04-01T16:46:08.000Z","updated_at":"2025-01-16T20:10:11.000Z","dependencies_parsed_at":"2024-04-09T21:36:51.117Z","dependency_job_id":"8e14b04d-2d7d-46c2-a2b9-8c12177d770c","html_url":"https://github.com/dashpay/platform-tutorials","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpay%2Fplatform-tutorials","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpay%2Fplatform-tutorials/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpay%2Fplatform-tutorials/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpay%2Fplatform-tutorials/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashpay","download_url":"https://codeload.github.com/dashpay/platform-tutorials/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251658195,"owners_count":21622819,"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","crytpocurrency","dash","tutorial-code"],"created_at":"2025-02-25T05:29:35.363Z","updated_at":"2025-04-30T06:46:22.647Z","avatar_url":"https://github.com/dashpay.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# platform-readme-tutorials\n\n[![SDK Version](https://img.shields.io/github/package-json/dependency-version/dashpay/platform-readme-tutorials/dash)](https://github.com/dashpay/platform-readme-tutorials/blob/main/package.json)\n\nCode for the tutorials found on the\n[Platform documentation site](https://docs.dash.org/platform).\n\n## Install\n\nNote: [NodeJS](https://nodejs.org/en/download/) (v20+) must be installed to run\nthe tutorial code.\n\n### Clone this repository\n\n```shell\ngit clone https://github.com/dashpay/platform-readme-tutorials.git\n```\n\n### Install project dependencies\n\nDo a clean install of project dependencies:\n\n```shell\nnpm ci\n```\n\n## Usage\n\n1. Create an `.env` file (See [`.env.example`](./.env.example) for an example\n   `.env` file). Set `NETWORK` to the desired network type (normally 'testnet').\n1. Check connection: `node connect.js`\n1. Create wallet: `node create-wallet.js`\n1. Go to the [Testnet faucet](https://testnet-faucet.dash.org/) and add funds to\n   the address reported in the previous step\n1. Open the `.env` file (See [`.env.example`](./.env.example) for an example\n   `.env` file) and set `MNEMONIC` to the wallet mnemonic from step 3.\n1. If doing withdrawals, open your `.env` file and set `WITHDRAWAL_ADDRESS` to\n   the Core chain address where you would like to receive funds withdrawn from\n   Platform.\n1. (Optional) To minimize wallet sync time, open your `.env` file and set\n   `SYNC_START_HEIGHT` to a Core chain block height just below the height of\n   your wallet's first transaction. Otherwise you can skip this step and use the\n   default value from [`.env.example`](./.env.example).\n\nProceed with the tutorials\n[Identities and Names tutorials](./1-Identities-and-Names/) first and the\n[Contracts And Documents tutorials](./2-Contracts-and-Documents/) next. They\nalign with the tutorials section found on the\n[documentation site](https://dashplatform.readme.io/docs/tutorials-introduction).\nMany client configuration options are included as comments in\n[`setupDashClient.js`](./setupDashClient.js) if more advanced configuration is\nrequired.\n\nAfter [creating an identity](./1-Identities-and-Names/identity-register.js), set\nthe `IDENTITY_ID` value in your `.env` file to your new identity ID. After\n[registering a data contract](./2-Contracts-and-Documents/contract-register-minimal.js),\nset the `CONTRACT_ID` value in your `.env` file to your new contract ID. To do\ncredit transfers between identities, create a second identity and set the\n`RECIPIENT_ID` value in your `.env` file to its ID.\n\n## Contributing\n\nPRs accepted.\n\n## License\n\n[MIT](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashpay%2Fplatform-tutorials","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashpay%2Fplatform-tutorials","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashpay%2Fplatform-tutorials/lists"}