{"id":19460092,"url":"https://github.com/offchainlabs/arbitrum-subgraphs","last_synced_at":"2025-04-25T07:32:34.661Z","repository":{"id":37963678,"uuid":"402442091","full_name":"OffchainLabs/arbitrum-subgraphs","owner":"OffchainLabs","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-12T16:07:53.000Z","size":431,"stargazers_count":21,"open_issues_count":2,"forks_count":16,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-03T17:53:37.645Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OffchainLabs.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}},"created_at":"2021-09-02T14:02:29.000Z","updated_at":"2025-02-28T05:15:27.000Z","dependencies_parsed_at":"2023-12-22T16:02:02.821Z","dependency_job_id":"2a530f8b-4f9e-4ada-980d-0f2d2e109bed","html_url":"https://github.com/OffchainLabs/arbitrum-subgraphs","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OffchainLabs%2Farbitrum-subgraphs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OffchainLabs%2Farbitrum-subgraphs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OffchainLabs%2Farbitrum-subgraphs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OffchainLabs%2Farbitrum-subgraphs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OffchainLabs","download_url":"https://codeload.github.com/OffchainLabs/arbitrum-subgraphs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250775580,"owners_count":21485385,"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-11-10T17:35:34.782Z","updated_at":"2025-04-25T07:32:34.355Z","avatar_url":"https://github.com/OffchainLabs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arbitrum subgraphs\n\nThis project contains subgraphs to track Arbitrum token bridge and cross chain messaging.\n\n## arb-bridge-eth\n\nTracks ETH and token deposits from L1 to L2, both classic and nitro versions. It also tracks retryable tickets. Entity `sender` field is always original address of the deposit/retryable creator, not aliased or unaliased version of address.\n\n`Nitro`  \nQuery endpoint: https://api.thegraph.com/subgraphs/name/gvladika/arb-bridge-eth-nitro  \nPlayground: https://thegraph.com/hosted-service/subgraph/gvladika/arb-bridge-eth-nitro\n\n`Nova`  \nQuery endpoint: https://api.thegraph.com/subgraphs/name/gvladika/arb-bridge-eth-nova  \nPlayground: https://thegraph.com/hosted-service/subgraph/gvladika/arb-bridge-eth-nova\n\n`Goerli Nitro`  \nQuery endpoint: https://api.thegraph.com/subgraphs/name/gvladika/arb-bridge-eth-goerli  \nPlayground: https://thegraph.com/hosted-service/subgraph/gvladika/arb-bridge-eth-goerli\n\n`Sepolia`  \nQuery endpoint: https://api.thegraph.com/subgraphs/name/fionnachan/arb-bridge-eth-sepolia  \nPlayground: https://thegraph.com/hosted-service/subgraph/fionnachan/arb-bridge-eth-sepolia\n\n#### Query example - get first 3 deposits (including Eth deposits and token deposits)\n\n```\n  deposits(first: 3) {\n    type\n    sender\n    receiver\n    ethValue\n    l1Token {\n      id\n      name\n      symbol\n    }\n    sequenceNumber\n    tokenAmount\n    isClassic\n    timestamp\n    transactionHash\n    blockCreatedAt\n  }\n```\n\nResult:\n\n```\n{\n  \"data\": {\n    \"deposits\": [\n      {\n        \"type\": \"EthDeposit\",\n        \"sender\": \"0x3808d4d05ae4d21d20bbd0143e8f41e09b3ce309\",\n        \"receiver\": \"0x3808d4d05ae4d21d20bbd0143e8f41e09b3ce309\",\n        \"ethValue\": \"1000000000000000\",\n        \"l1Token\": null,\n        \"sequenceNumber\": \"9277\",\n        \"tokenAmount\": null,\n        \"isClassic\": false,\n        \"timestamp\": \"1662276473\",\n        \"transactionHash\": \"0x00000947484b2117be463199be889da38caf1a231d29e6128d81d12e6a0a1cee\",\n        \"blockCreatedAt\": \"15470347\"\n      },\n      {\n        \"type\": \"TokenDeposit\",\n        \"sender\": \"0xa2e06c19ee14255889f0ec0ca37f6d0778d06754\",\n        \"receiver\": \"0xa2e06c19ee14255889f0ec0ca37f6d0778d06754\",\n        \"ethValue\": \"0\",\n        \"l1Token\": {\n          \"id\": \"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2\",\n          \"name\": \"Wrapped Ether\",\n          \"symbol\": \"WETH\"\n        },\n        \"sequenceNumber\": \"20556\",\n        \"tokenAmount\": \"600000000000000000\",\n        \"isClassic\": false,\n        \"timestamp\": \"1662696576\",\n        \"transactionHash\": \"0x00000a61331187be51ab9ae792d74f601a5a21fb112f5b9ac5bccb23d4d5aaba\",\n        \"blockCreatedAt\": \"15500657\"\n      },\n      {\n        \"type\": \"EthDeposit\",\n        \"sender\": \"0x49211e8da72a9549541c7914f85837b294abf992\",\n        \"receiver\": \"0x49211e8da72a9549541c7914f85837b294abf992\",\n        \"ethValue\": \"24000000000000000\",\n        \"l1Token\": null,\n        \"sequenceNumber\": \"390496\",\n        \"tokenAmount\": null,\n        \"isClassic\": true,\n        \"timestamp\": \"1648568434\",\n        \"transactionHash\": \"0x00000a813d47f2c478dcc3298d5361cb3aed817648f25cace6d0c1a59d2b8309\",\n        \"blockCreatedAt\": \"14481946\"\n      }\n    ]\n  }\n}\n```\n\n## arbitrum-precompiles\n\n// TODO\n\n## arb-retryables\n\nTracks Nitro retryables on L2 side. It includes ticket status for every retryable, execution params as well as retryable submission params (through parsing tx calldata).\n\n`Nitro`  \nQuery endpoint: https://api.thegraph.com/subgraphs/name/gvladika/arbitrum-retryables  \nPlayground: https://thegraph.com/hosted-service/subgraph/gvladika/arbitrum-retryables\n\n`Nova`  \nTo be added (Nova is not supported by Graph hosted service atm)\n\n`Goerli Nitro`  \nQuery endpoint: https://api.thegraph.com/subgraphs/name/gvladika/arbitrum-retryables-goerli\nPlayground: https://thegraph.com/hosted-service/subgraph/gvladika/arbitrum-retryables-goerli\n\n`Sepolia`  \nQuery endpoint: https://api.thegraph.com/subgraphs/name/fionnachan/arbitrum-retryables-sepolia\nPlayground: https://thegraph.com/hosted-service/subgraph/fionnachan/arbitrum-retryables-sepolia\n\n#### Query example - get last 10 retryables tickets which failed to redeem\n\n```\n{\n  retryables(orderBy: createdAtTimestamp, orderDirection: desc, first:3, where: {status: \"RedeemFailed\"}) {\n    id\n    retryTxHash\n  }\n}\n```\n\nResult:\n\n```\n{\n  \"data\": {\n    \"retryables\": [\n      {\n        \"id\": \"0x97016fdc9ec92b6899ea5b685bbfd21435e5843b19a3d375fce79e08d4c914d1\",\n        \"retryTxHash\": \"0xafdeba836ec4ae1b9234c943bc434069e686773ea8977fefcd16114f17e4251b\"\n      },\n      {\n        \"id\": \"0x9d6c19f5fb9055d64b37b9a58c56806bbc5a973d0cdca18cfbfa7b609d4812f1\",\n        \"retryTxHash\": \"0xdaebe273820c3ab7197682c532f0e112ad2a97680ea3ed9b78710e0adf8b3ea5\"\n      },\n      {\n        \"id\": \"0xc3803fd826e9b834a31c8ef52426292bb3d56bc23695d82657dfe74215e8d94a\",\n        \"retryTxHash\": \"0x2150aaa2a6715b3a0611651f4162191de1aab6c93095956e43f38b553c161343\"\n      }\n    ]\n  }\n}\n```\n\n#### Query example - get total stats\n\n```\n{\n  totalRetryableStats(id: \"NitroStats\") {\n    id\n    totalCreated\n    autoRedeemed\n    successfullyRedeemed\n    failedToRedeem\n    canceled\n  }\n}\n```\n\nResult:\n\n```\n{\n  \"data\": {\n    \"totalRetryableStats\": {\n      \"id\": \"NitroStats\",\n      \"totalCreated\": \"83845\",\n      \"autoRedeemed\": \"83710\",\n      \"successfullyRedeemed\": \"83822\",\n      \"failedToRedeem\": \"21\",\n      \"canceled\": \"0\"\n    }\n  }\n}\n```\n\n#### Query example - get latest 2 retryables including all the fields\n\n```\n{\n  retryables(orderBy: createdAtTimestamp, orderDirection: desc, first:2) {\n    id\n    status\n    retryTxHash\n    timeoutTimestamp\n    createdAtTimestamp\n    createdAtBlockNumber\n    createdAtTxHash\n    redeemedAtTimestamp\n    isAutoRedeemed\n    sequenceNum\n    donatedGas\n    gasDonor\n    maxRefund\n    submissionFeeRefund\n    requestId\n    l1BaseFee\n    deposit\n    callvalue\n    gasFeeCap\n    gasLimit\n    maxSubmissionFee\n    feeRefundAddress\n    beneficiary\n    retryTo\n    retryData\n  }\n}\n```\n\nResult:\n\n```\n{\n  \"data\": {\n    \"retryables\": [\n      {\n        \"id\": \"0xdef8e761a76ee0c466536c5fa7c4d3a13df912cbacb879cfe2d6d9e17a4a8884\",\n        \"status\": \"Redeemed\",\n        \"retryTxHash\": \"0x1dd3570cdb33b954fd0c94c4a37fe1cec2c1a73946df6bf3c8539dfb2153b0b2\",\n        \"timeoutTimestamp\": \"1677077599\",\n        \"createdAtTimestamp\": \"1676472799\",\n        \"createdAtBlockNumber\": \"61174964\",\n        \"createdAtTxHash\": \"0xdef8e761a76ee0c466536c5fa7c4d3a13df912cbacb879cfe2d6d9e17a4a8884\",\n        \"redeemedAtTimestamp\": \"1676472799\",\n        \"isAutoRedeemed\": true,\n        \"sequenceNum\": \"0\",\n        \"donatedGas\": \"284615\",\n        \"gasDonor\": \"0xfd81392229b6252cf761459d370c239be3afc54f\",\n        \"maxRefund\": \"1776913467122000\",\n        \"submissionFeeRefund\": \"84592690642000\",\n        \"requestId\": \"0x000000000000000000000000000000000000000000000000000000000007813b\",\n        \"l1BaseFee\": \"42296345321\",\n        \"deposit\": \"1800859226480000\",\n        \"callvalue\": \"0\",\n        \"gasFeeCap\": \"130000000\",\n        \"gasLimit\": \"284615\",\n        \"maxSubmissionFee\": \"100000000000000\",\n        \"feeRefundAddress\": \"0xfd81392229b6252cf761459d370c239be3afc54f\",\n        \"beneficiary\": \"0xfd81392229b6252cf761459d370c239be3afc54f\",\n        \"retryTo\": \"0xfd81392229b6252cf761459d370c239be3afc54f\",\n        \"retryData\": \"0x4ff746f60000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002054655cabed180b3705ececcde806c0879b5b60ebb4705b013cb80bf3d3960736\"\n      },\n      ...\n    ]\n  }\n}\n```\n\n## layer1-token-gateway\n\n// TODO\n\n## layer2-token-gateway\n\n// TODO\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffchainlabs%2Farbitrum-subgraphs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foffchainlabs%2Farbitrum-subgraphs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffchainlabs%2Farbitrum-subgraphs/lists"}