{"id":17203940,"url":"https://github.com/ivanceras/polywrap-substrate","last_synced_at":"2025-04-06T06:43:52.994Z","repository":{"id":76197751,"uuid":"528810841","full_name":"ivanceras/polywrap-substrate","owner":"ivanceras","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-02T20:11:24.000Z","size":823,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2024-05-23T03:32:03.171Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ivanceras.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}},"created_at":"2022-08-25T10:59:41.000Z","updated_at":"2022-08-25T11:00:26.000Z","dependencies_parsed_at":"2023-02-27T13:15:31.228Z","dependency_job_id":"2b32be05-735e-46b7-8bbb-d7f5604c77e9","html_url":"https://github.com/ivanceras/polywrap-substrate","commit_stats":{"total_commits":84,"total_committers":2,"mean_commits":42.0,"dds":"0.011904761904761862","last_synced_commit":"98518b6f1a25caf03d52b043674a5c8bc4fa00d8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanceras%2Fpolywrap-substrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanceras%2Fpolywrap-substrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanceras%2Fpolywrap-substrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanceras%2Fpolywrap-substrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivanceras","download_url":"https://codeload.github.com/ivanceras/polywrap-substrate/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246893306,"owners_count":20850927,"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-10-15T02:19:56.718Z","updated_at":"2025-04-06T06:43:52.974Z","avatar_url":"https://github.com/ivanceras.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Polywrap substrate\n\nExpose a substrate chain as a graphql endpoint\n\n## Prerequisite\nClone and run `substrate-node-template`\n\n```shell\ngit clone --depth=1 https://github.com/substrate-developer-hub/substrate-node-template\ncd substrate-node-template\ncargo run --release -- --dev\n```\n\n## Building and running\n\n```shell\ngit clone -b develop https://github.com/ChainSafe/polywrap-substrate.git\ncd polywrap-substrate\ncargo run -p server --release\n```\n\nNavigate to: http://localhost:8000\n\nInteract with the graphql endpoint with this example query to get the block\n```graphql\n{\n  block(url: \"http://localhost:9933\", number: 0) {\n    block\n  }\n}\n```\n# Show the metadata\n\n```graphql\n{\n  metadata(url: \"http://localhost:9933\") {\n    metadata\n    pallets\n    events\n    errors\n  }\n}\n```\n\n# Show the rpc Methods\n\n```graphql\n{\n  rpcMethods(url: \"http://localhost:9933\")\n}\n```\n\n# You can even call multiple methods in the same graphql\n```graphql\n{\n  block(url: \"http://localhost:9933\", number: 0) {\n    block\n  }\n  rpcMethods(url: \"http://localhost:9933\")\n  metadata(url: \"http://localhost:9933\") {\n    metadata\n    pallets\n    events\n    errors\n  }\n}\n```\n\n## Testing\nRun all the unit tests\n```shell\ncargo test --all\n```\n\n# Links\n- https://github.com/w3f/Grants-Program/blob/master/applications/substrate_core_polywrapper.md\n- https://github.com/polywrap/integrations/tree/substrate-integration\n- https://github.com/ChainSafe/polywrap-substrate\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanceras%2Fpolywrap-substrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanceras%2Fpolywrap-substrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanceras%2Fpolywrap-substrate/lists"}