{"id":28196002,"url":"https://github.com/primaryobjects/cardano-tutorial","last_synced_at":"2026-04-18T07:31:20.679Z","repository":{"id":268183853,"uuid":"899656305","full_name":"primaryobjects/cardano-tutorial","owner":"primaryobjects","description":"Easy tutorial for developing with the Cardano blockchain. Create a wallet. Send and receive ADA.","archived":false,"fork":false,"pushed_at":"2024-12-26T04:21:15.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-16T14:15:02.194Z","etag":null,"topics":["ada","blockchain","cardano","cardano-cli","cardano-community","cardano-wallet","dapp","javascript","lovelace","node-js","nodejs","tutorial","tutorials","web3"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/primaryobjects.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-12-06T18:13:08.000Z","updated_at":"2024-12-26T04:21:19.000Z","dependencies_parsed_at":"2024-12-15T01:27:02.345Z","dependency_job_id":"b918c143-ff8e-42fb-aef0-7eba58b5ea86","html_url":"https://github.com/primaryobjects/cardano-tutorial","commit_stats":null,"previous_names":["primaryobjects/cardano-tutorial"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/primaryobjects/cardano-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Fcardano-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Fcardano-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Fcardano-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Fcardano-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/primaryobjects","download_url":"https://codeload.github.com/primaryobjects/cardano-tutorial/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Fcardano-tutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31961078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ada","blockchain","cardano","cardano-cli","cardano-community","cardano-wallet","dapp","javascript","lovelace","node-js","nodejs","tutorial","tutorials","web3"],"created_at":"2025-05-16T14:15:04.533Z","updated_at":"2026-04-18T07:31:20.663Z","avatar_url":"https://github.com/primaryobjects.png","language":"JavaScript","readme":"Cardano Beginner Tutorial\n=========================\n\nAn easy [tutorial](https://medium.datadriveninvestor.com/creating-my-first-cardano-wallet-a-journey-into-blockchain-development-6c35d0712617?sk=53e5be550b95c9e369a6eaba12ce8c3f) for developing with the Cardano blockchain. Create a wallet. Send and receive ADA.\n\n## Quick Start\n\n1. Clone the [Plutus](https://github.com/IntersectMBO/plutus-tx-template.git) project to setup the code.\n\n    ```bash\n    git clone https://github.com/IntersectMBO/plutus-tx-template.git\n    ```\n2. Create a new directory `off-chain` and add required node js modules.\n\n    ```bash\n    mkdir off-chain\n    cd off-chain\n    npm add @meshsdk/core\n    npm add cbor\n    ```\n3. Create an account on [BlockFrost](https://blockfrost.io/dashboard) to avoid needing to run your own local blockchain node.\n4. Create a BlockFrost project named **hello-world** on the **Cardano preview** network.\n5. Create a file `.env` with the contents:\n    ```\n    BlockFrostProjectId=\u003cBLOCKFROST_PROJECT_ID\u003e\n    SenderSecretPathName=keys/seller2.skey\n    RecipientAddress=\u003cRECIPIENT_ADDRESS\u003e\n    ```\n\n    *Obtain the Project ID from your BlockFrost dashboard. Create a seller2.skey by running `generate.py`.*\n6. Create a local wallet by running the file [generate-keys.mjs](generate-keys.mjs).\n\n    ```bash\n    node generate-keys.mjs\n    ```\n\n    You should see output similar to the following:\n\n    ```\n    Generated key: \u003cWALLET_SECRET_KEY\u003e\n    generate-keys.mjs:8\n    Wallet instance created: MeshWallet {_wallet: EmbeddedWallet, _accountIndex: 0, _keyIndex: 0, _fetcher: undefined, _submitter: undefined, …}\n    generate-keys.mjs:12\n    Unused addresses: (1) ['\u003cWALLET_ADDRESS\u003e']\n    generate-keys.mjs:16\n    Generated address: addr_test1\u003cWALLET_ADDRESS\u003e\n    generate-keys.mjs:25\n    Public key hash: \u003cWALLET_PUBLIC_KEY\u003e\n    generate-keys.mjs:29\n    Creating seller.\n    generate-keys.mjs:42\n    Creating bidder1.\n    generate-keys.mjs:42\n    Creating bidder2.\n    ```\n7. Get free ADA for the new wallet by using the Cardano [Faucet](https://docs.cardano.org/cardano-testnets/tools/faucet/) on **Preview Testnet**. Enter the seller's **Address** from `keys/seller.addr` *(for example, `addr_test1\u003cWALLET_ADDRESS\u003e`)*.\n\n    You should see output similar to the following:\n\n    ```\n    Success\n    Your transaction has been successful and test funds have been sent to addr_test1\u003cWALLET_ADDRESS\u003e.\n\n    Please verify the following transaction hash: \u003cTRANSACTION_HASH\u003e\n    ```\n8. Verify the transaction for receiving ADA at [Cardanoscan](https://preview.cardanoscan.io). Paste in the transaction hash and click on the **UTXO** tab to see the ADA transferred to the wallet. *Return tokens after use to `addr_test1vqeux7xwusdju9dvsj8h7mca9aup2k439kfmwy773xxc2hcu7zy99`.*\n9. Send ADA to another wallet by using [send-lovelace.mjs](send-lovelace.mjs). *Note, amount is in **lovelace**, where 1 ADA = 1,000,000 lovelace.*\n\n    ```bash\n    node send-lovelace.mjs \u003cfrom_secret\u003e \u003cto_address\u003e \u003camount\u003e\n    ```\n\n    You should see output similar to the following, which may also be confirmed on [Cardanoscan](https://preview.cardanoscan.io):\n\n    ```\n    Ada sent. Recipient: addr_test\u003cTO_ADDRESS\u003e, Tx hash: \u003cTRANSACTION_HASH\u003e\n    ```\n10. Verify the transaction for sending ADA at [Cardanoscan](https://preview.cardanoscan.io). Paste in the transaction hash and click on the **UTXO** tab to see the ADA transferred to the wallet. *Return tokens after use to `addr_test1vqeux7xwusdju9dvsj8h7mca9aup2k439kfmwy773xxc2hcu7zy99`.*\n11. Check the balance of any of the generated wallets using [balance.mjs](balance.mjs):\n\n    ```bash\n    node balance.mjs addr_test1\u003cWALLET_ADDRESS\u003e\n    ```\n\n    You should see output similar to the following:\n\n    ```\n    Assets: {lovelace: '1000000'}\n    Balance for address addr_test\u003cWALLET_ADDRESS\u003e: 1 ADA\n    ```\n12. Confirm the wallet balance at [Cardanoscan](https://preview.cardanoscan.io) by entering the wallet address *(instead of a transaction hash)*.\n\n## License\n\nMIT\n\n## Author\n\nKory Becker\nhttp://primaryobjects.com\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimaryobjects%2Fcardano-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprimaryobjects%2Fcardano-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimaryobjects%2Fcardano-tutorial/lists"}