{"id":20245048,"url":"https://github.com/interlay/subxt-workshop","last_synced_at":"2025-10-25T14:11:37.611Z","repository":{"id":40639963,"uuid":"505861860","full_name":"interlay/subxt-workshop","owner":"interlay","description":"Subxt Workshop for Polkadot Decoded 2022","archived":false,"fork":false,"pushed_at":"2022-06-26T20:54:34.000Z","size":128,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-14T02:41:27.003Z","etag":null,"topics":["polkadot","rust","substrate","subxt","workshop"],"latest_commit_sha":null,"homepage":"https://decoded.polkadot.network/agenda/?date=2022-06-30\u0026location=berlin\u0026presentation=building-off-chain-software-with-subxt\u0026tz=berlin","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/interlay.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}},"created_at":"2022-06-21T13:45:47.000Z","updated_at":"2022-06-27T08:49:19.000Z","dependencies_parsed_at":"2022-08-30T08:52:10.376Z","dependency_job_id":null,"html_url":"https://github.com/interlay/subxt-workshop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/interlay/subxt-workshop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interlay%2Fsubxt-workshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interlay%2Fsubxt-workshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interlay%2Fsubxt-workshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interlay%2Fsubxt-workshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interlay","download_url":"https://codeload.github.com/interlay/subxt-workshop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interlay%2Fsubxt-workshop/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265872192,"owners_count":23842139,"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":["polkadot","rust","substrate","subxt","workshop"],"created_at":"2024-11-14T09:18:40.675Z","updated_at":"2025-10-25T14:11:32.558Z","avatar_url":"https://github.com/interlay.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Subxt Workshop (Polkadot Decoded 2022)\n\n## Getting Started\n\n### Install Rust\n\nFollow the [Substrate docs](https://docs.substrate.io/main-docs/install/rust-builds/).\n\n### Download Polkadot\n\n```shell\ncurl \"https://github.com/paritytech/polkadot/releases/download/v0.9.18/polkadot\" --output /usr/local/bin/polkadot --location\n```\n\n## Instructions\n\nRun the Polkadot node in a separate terminal:\n\n```shell\npolkadot --dev --tmp\n\n\u003e 2022-06-23 21:43:57 Parity Polkadot    \n\u003e 2022-06-23 21:43:57 ✌️  version 0.9.18-99cd17ddb2-x86_64-linux-gnu    \n\u003e 2022-06-23 21:43:57 ❤️  by Parity Technologies \u003cadmin@parity.io\u003e, 2017-2022    \n\u003e 2022-06-23 21:43:57 📋 Chain specification: Development    \n\u003e ...\n```\n\nRun the test suite:\n\n```shell\ncargo test\n```\n\nNotice the test failures, your task is to implement the helper functions.\nThe files in the [`tests/`](tests/) directory are ranked in order of difficulty.\n\n1. [Exercise 01](tests/01-get-block-number.rs) - Get the block number for a given `block_hash`.\n2. [Exercise 02](tests/02-get-balance.rs) - Get the `free` balance of an `account`.\n3. [Exercise 03](tests/03-get-total-frozen.rs) - Sum the total `frozen` balance.\n4. [Exercise 04](tests/04-get-first-n-accounts.rs) - Fetch the first `n` accounts from storage.\n5. [Exercise 05](tests/05-get-version.rs) - Return the embedded `RuntimeVersion`.\n6. [Exercise 06](tests/06-transfer-balance.rs) - Transfer an `amount` from the `signer` to `dest`.\n7. [Exercise 07](tests/07-estimate-inclusion-fee.rs) - Estimate the fees for an extrinsic using a custom RPC.\n8. [Exercise 08](tests/08-batch-transfer.rs) - Make multiple transfers in the same call.\n9. [Exercise 09](tests/09-propose-spend.rs) - Create a spending proposal and check the deposit.\n10. [Exercise 10](tests/10-approve-multisig.rs) - Listen and approve multisig operations.\n\n## Other Notes\n\n### Refresh Metadata\n\nThis is only required if you change the node / runtime.\n\n```shell\ncargo install subxt-cli\nsubxt metadata -f bytes \u003e polkadot_metadata.scale\n```\n\n### Examine Metadata\n\nVerbose but helpful expansion of the generated Rust code.\n\n```shell\ncargo install cargo-expand\ncargo expand\n```\n\n## Credits\n\nThanks to all subxt / substrate maintainers and contributors.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterlay%2Fsubxt-workshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finterlay%2Fsubxt-workshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterlay%2Fsubxt-workshop/lists"}