{"id":29008449,"url":"https://github.com/jupiter-devrel/rust-examples","last_synced_at":"2025-08-03T00:09:26.696Z","repository":{"id":300553953,"uuid":"993652802","full_name":"Jupiter-DevRel/rust-examples","owner":"Jupiter-DevRel","description":"Rust Examples of Jupiter Exchange APIs","archived":false,"fork":false,"pushed_at":"2025-06-22T10:21:24.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-22T11:26:16.205Z","etag":null,"topics":["examples-rust","jupiter-apis","rust","solana"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Jupiter-DevRel.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,"zenodo":null}},"created_at":"2025-05-31T08:11:26.000Z","updated_at":"2025-06-22T10:21:27.000Z","dependencies_parsed_at":"2025-06-22T11:26:50.249Z","dependency_job_id":"c12eb3ba-725c-4a84-9c1f-0af00fefac32","html_url":"https://github.com/Jupiter-DevRel/rust-examples","commit_stats":null,"previous_names":["jupiter-devrel/rust-examples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jupiter-DevRel/rust-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jupiter-DevRel%2Frust-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jupiter-DevRel%2Frust-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jupiter-DevRel%2Frust-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jupiter-DevRel%2Frust-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jupiter-DevRel","download_url":"https://codeload.github.com/Jupiter-DevRel/rust-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jupiter-DevRel%2Frust-examples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261888087,"owners_count":23225141,"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":["examples-rust","jupiter-apis","rust","solana"],"created_at":"2025-06-25T14:05:40.871Z","updated_at":"2025-06-25T14:05:46.265Z","avatar_url":"https://github.com/Jupiter-DevRel.png","language":"Rust","readme":"# Jupiter Exchange API **Rust** Code Examples\n\nThis repository showcases fully‑working **Rust** scripts that exercise every Jupiter public API:\n\n* **Swap API** – quote, build \u0026 send transactions (standard or via *swap‑instructions*)\n* **Ultra API** – place \u0026 execute atomic orders with optional referral fees\n* **Trigger API** – create \u0026 execute on‑chain limit orders\n* **Recurring API** – create \u0026 execute dollar‑cost‑average (DCA) schedules\n\nOur goal is to provide clear, ready‑to‑run code that developers can copy, extend, and integrate into their own Solana apps.\n\n---\n\n## Getting Started\n\n```bash\n#clone this repository\n$ git clone https://github.com/Jupiter-DevRel/rust-examples.git\n$ cd rust-examples\n#Copy the file from .env.example to .env\n$ cp .env-example .env\n#Build everything once \n$ cargo build --workspace\n```\n\n### Running an example\n\nEach flow lives in its own binary crate under `examples/`. Invoke them from the workspace root:\n\n```bash\n# Standard quote → swap flow\ncargo run -p swap\n\n# Swap‑instructions flow (quote → swap‑instructions → send)\ncargo run -p swap_instruction\n\n# Ultra API order \u0026 execute\ncargo run -p ultra\n\n# Trigger API create \u0026 execute\ncargo run -p trigger\n\n# Recurring API create \u0026 execute\ncargo run -p recurring\n```\n\n\u003e **Note**\n\u003e Trigger and Recurring endpoints enforce minimum order sizes (\\~5 USDC and 50 USDC respectively). Increase the example amounts or fund your keypair before running those flows.\n\n---\n\n\n\n## Documentation \u0026 Resources\n\n* **Developer Docs:** [https://dev.jup.ag/docs](https://dev.jup.ag/docs)\n* **API Guides:** [https://dev.jup.ag/docs/api](https://dev.jup.ag/docs/api)\n* **Discord:** `#developer-support` channel for quick help\n\n---\n\n## Powered by the Jupiter DevRel Working Group\n\nThese examples are maintained by the Jupiter DevRel WG to help onboard and inspire the next wave of Solana builders. We can’t wait to see what you build – feel free to open issues or PRs!\n\nHappy coding! 🚀\n\n---\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjupiter-devrel%2Frust-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjupiter-devrel%2Frust-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjupiter-devrel%2Frust-examples/lists"}