Convert content hashes
convert_content_hashConvert between a content hash URI (ipfs://, ipns://, bzz://, ar://, onion3://, sia://) and the hex value stored in an ENS contenthash record (ENSIP-7), both ways, and give an HTTP gateway URL for it. Give either uri or hex. Works offline.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "convert_content_hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | No | Encoded contenthash record value | |
| uri | No | Content URI, e.g. ipfs://bafy… |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | Yes | Bytes as 0x-prefixed hex | |
| uri | Yes | ||
| protocol | Yes | ||
| gatewayUrl | Yes | An HTTP URL that serves the content |