IPFS hash converter
Documentation for Indexers how to get subgraph's ipfs hash from id and vise versa
- Transform id to ipfsh hash using python:$ pip install base58$ pythonprint("0x"+base58.b58decode("ipfs_hash").hex()[4:])
- Get id using graphql requestquery {subgraphDeployments {id}}
- Transform ipfs hash to id using python$ pip install base58$ pythonprint(base58.b58encode(bytes.fromhex("1220"+"subgraph_id"[2:])).decode('utf-8'))
Last modified 2yr ago