{"id":13728426,"url":"https://github.com/stellar/hack-stellar","last_synced_at":"2025-05-08T00:31:44.885Z","repository":{"id":39230642,"uuid":"240050170","full_name":"stellar/hack-stellar","owner":"stellar","description":null,"archived":true,"fork":false,"pushed_at":"2022-06-01T12:01:36.000Z","size":80,"stargazers_count":14,"open_issues_count":9,"forks_count":13,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-08-04T19:10:08.448Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/stellar.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}},"created_at":"2020-02-12T15:44:03.000Z","updated_at":"2024-07-01T18:33:27.000Z","dependencies_parsed_at":"2022-08-28T03:14:18.214Z","dependency_job_id":null,"html_url":"https://github.com/stellar/hack-stellar","commit_stats":null,"previous_names":["tyvdh/hack-stellar"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Fhack-stellar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Fhack-stellar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Fhack-stellar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Fhack-stellar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stellar","download_url":"https://codeload.github.com/stellar/hack-stellar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224679924,"owners_count":17351892,"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-08-03T02:00:42.211Z","updated_at":"2024-11-14T19:31:09.068Z","avatar_url":"https://github.com/stellar.png","language":"TypeScript","funding_links":[],"categories":["Developer Resources"],"sub_categories":[],"readme":"# Hack Stellar Boilerplate\n\nThis Hack Stellar app is a boilerplate collection of basic Stellar functions. You can either hack this [Stencil](https://stenciljs.com) project into whatever you're trying to build or just cut and paste out the functions from here into your own project.\n\n[View a demo](https://hack-stellar.now.sh)\n\n## Getting Started\n\nTo start building with this project clone this repo and install the deps:\n\n```bash\nnpm i\n```\n\nand run:\n\n```bash\nnpm start\n```\n\nTo build the app for production, run:\n\n```bash\nnpm run build\n```\n\n## [Stellar Functions](https://github.com/tyvdh/hack-stellar/blob/master/src/components/app-home/app-home.tsx#L48-L176) Featured in this Boilerplate\n\n```ts\nkeypairGenerate() {}\n```\nDead simple Stellar keypair generator method. There are lots of ways to generate valid Stellar keypairs but if all you're looking for is a quick random keypair this is the method for you.\n\n```ts\nasync accountFund() {}\n```\nWhile on testnet we have a fancy little friendbot server method we can call to pay ourselves 10,000 XLM. Once you're in a production environment you'll need to use an `accountPay` method in order to get accounts created and funded. This is just a quick way to boot up your testing environment.\n\n```ts\nasync accountUpdate() {}\n```\nOnce we have a funded account live on the ledger we can call that account and GET its current state. There's lots of data in an account object understandably so you'll likely want to [brush up on these fields](https://www.stellar.org/developers/guides/concepts/accounts.html).\n\n```ts\nasync accountCreate() {}\n```\nA core Stellar transaction operation is creating new accounts. It's just like a payment operation except it's always XLM and always funding new accounts which don't exist on the ledger.\n\n```ts\nasync accountPay() {}\n```\nAnother central operation of Stellar transactions is making payments. In this method we're paying 100 XLM to the account we just created with an intial 10 XLM. The next step would be to explore [custom assets](https://www.stellar.org/developers/guides/concepts/assets.html) so you can make and receive payments in assets other than the native XLM.\n\n---\n\n### Helpful links:\n#### Docs\n- [https://www.stellar.org/developers](https://www.stellar.org/developers)\n- [https://stellar.github.io/js-stellar-sdk](https://stellar.github.io/js-stellar-sdk/)\n- [https://github.com/stellar/js-stellar-sdk](https://github.com/stellar/js-stellar-sdk)\n#### Explore\n- [https://stellar.expert](https://stellar.expert/)\n- [https://stellarbeat.io](https://stellarbeat.io/)\n- [https://www.stellar.org/laboratory](https://www.stellar.org/laboratory/)\n#### Wallets\n- [https://solarwallet.io](https://solarwallet.io/)\n- [https://testnet.interstellar.exchange](https://testnet.interstellar.exchange/)\n- [https://stellarterm.com/testnet](https://stellarterm.com/testnet)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellar%2Fhack-stellar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstellar%2Fhack-stellar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellar%2Fhack-stellar/lists"}