{"id":19121150,"url":"https://github.com/maticnetwork/subgraphs","last_synced_at":"2025-08-24T05:11:51.477Z","repository":{"id":38458619,"uuid":"297855564","full_name":"maticnetwork/subgraphs","owner":"maticnetwork","description":"Subgraph for Matic contracts","archived":false,"fork":false,"pushed_at":"2023-11-22T18:21:29.000Z","size":953,"stargazers_count":63,"open_issues_count":5,"forks_count":46,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-06-22T01:47:56.971Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/maticnetwork.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,"governance":null}},"created_at":"2020-09-23T04:48:51.000Z","updated_at":"2025-03-13T00:22:54.000Z","dependencies_parsed_at":"2023-11-22T19:29:06.812Z","dependency_job_id":"dc49ebf8-ad96-4207-9b5a-9e4eb933c4c0","html_url":"https://github.com/maticnetwork/subgraphs","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"purl":"pkg:github/maticnetwork/subgraphs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maticnetwork%2Fsubgraphs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maticnetwork%2Fsubgraphs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maticnetwork%2Fsubgraphs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maticnetwork%2Fsubgraphs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maticnetwork","download_url":"https://codeload.github.com/maticnetwork/subgraphs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maticnetwork%2Fsubgraphs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271796072,"owners_count":24822886,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"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":[],"created_at":"2024-11-09T05:16:14.437Z","updated_at":"2025-08-24T05:11:51.424Z","avatar_url":"https://github.com/maticnetwork.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Subgraphs\nSubgraph for Matic contracts\n\nPlease take a look at [Graph protocol](https://github.com/graphprotocol/graph-node) for more information.\n\n## Polygon hosted node endpoints\n\n**Root**\n- Mainnet: `https://thegraph.com/hosted-service/subgraph/maticnetwork/mainnet-root-subgraphs`\n- Goerli: `https://thegraph.com/hosted-service/subgraph/maticnetwork/mumbai-root-subgraphs`\n\n## For Mumbai hosted node endpoints\n- Graph node: `https://mumbai-graph.matic.today`\n- GraphQL endpoint: `https://api.mumbai-graph.matic.today/subgraphs/name/\u003cYOUR_GITHUB_USERNAME\u003e/\u003cSUBGRAPH_NAME\u003e/graphql`\n- HTTP endpoint: `https://api.mumbai-graph.matic.today/subgraphs/name/\u003cYOUR_GITHUB_USERNAME\u003e/\u003cSUBGRAPH_NAME\u003e`\n- IPFS endpoint: `https://ipfs.infura.io:5001/`\n\n## Subgraphs\n\nThis repository contains subgraphs for two chains: `root` (Ethereum) and `child` (Matic) with respective testnets. \n\n**To prepare root (Ethereum) subgraphs**\n\n```bash\ncd root\n\n# install dependencies\nnpm install\n\n# For goerli\nnpm run prepare:goerli\n\n# For mainnet\n# npm run prepare:mainnet\n```\n\n**To prepare child (Matic) subgraphs**\n\n```bash\ncd child\n\n# install dependencies\nnpm install\n\n# For mumbai\nnpm run prepare:mumbai\n\n# For mainnet\n# npm run prepare:mainnet\n```\n\n### Build\n\n```bash\n# generate code\nnpm run codegen\n\n# build\nnpm run build\n```\n\n### Deploy locally\n\n**For goerli**\n\n```bash\n# create sub graph in local node\nnpm run graph -- create --node http://localhost:8020/ maticnetwork/goerli-matic-subgraph\n\n# deploy sub graph locally\nnpm run graph -- deploy --node http://localhost:8020/ --ipfs https://ipfs.infura.io:5001/ maticnetwork/goerli-matic-subgraph \n```\n\n### Deploy on Graph's hosted node\n\n**For goerli**\n\n```bash\n# create sub graph in local node\nnpm run graph -- create --node https://api.thegraph.com/deploy/  maticnetwork/goerli-matic-subgraph\n\n# deploy sub graph locally\nnpm run graph -- deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ maticnetwork/goerli-matic-subgraph \n```\n\n**For mumbai**\n\n```bash\n# create sub graph in local node\nnpm run graph -- create --node https://mumbai-graph.matic.today  nglglhtr/mumbai-matic-subgraph\n\n# deploy sub graph locally\nnpm run graph -- deploy --node https://mumbai-graph.matic.today --ipfs https://ipfs.infura.io:5001/ nglglhtr/mumbai-matic-subgraph\n```\n\n## Run local graph node\n\n```bash\n$ cargo run -p graph-node --release -- \\\n    --postgres-url postgresql://localhost:5432/token-transfer \\\n    --ethereum-rpc http://localhost:8545/ \\\n    --ipfs 127.0.0.1:5001 \\\n    --subgraph \u003cIPFS_HASH from .ipfs.hash\u003e\n```\n\nYou can open graphiQL UI at http://localhost:8000\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaticnetwork%2Fsubgraphs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaticnetwork%2Fsubgraphs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaticnetwork%2Fsubgraphs/lists"}