
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
This relayer service enables interaction with *** networks through transaction submissions. It offers multi*** support and an extensible architecture for adding new chains.
User Docs | Quickstart
.env file with the required environment variables & config/config.json file with the required configuration. See how to set it up in https://github.com/OpenZeppelin/openzeppelin-relayer?tab=readme-ov-file#config-files for more information.config/config.json file. See how to set it up in https://github.com/OpenZeppelin/openzeppelin-relayer?tab=readme-ov-file#creating-a-signer for more information.config/config.json file. See how to set it up in https://github.com/OpenZeppelin/openzeppelin-relayer?tab=readme-ov-file#configure-webhook-url for more information.config/config.json file. See how to set it up in https://github.com/OpenZeppelin/openzeppelin-relayer?tab=readme-ov-file#configure-webhook-signing-key for more information.config/config.json file. See how to set it up in https://github.com/OpenZeppelin/openzeppelin-relayer?tab=readme-ov-file#configure-api-key for more information.⚠️ Redis is automatically started when using docker compose. If you are not using docker compose, you need to create a dedicated network and start redis manually.
You can pull the latest image using the following command:
bashdocker pull openzeppelin/openzeppelin-relayer:latest
You can run the image using the following command:
bashdocker run --env-file .env -d \ --name relayer \ --network relayer-net \ -p 8080:8080 \ -v ./config:/app/config:ro \ openzeppelin/openzeppelin-relayer:latest
Once the container is running, you can access the service at http://localhost:8080.
You can test the relayer by sending a request using a curl call. See https://github.com/OpenZeppelin/openzeppelin-relayer?tab=readme-ov-file#test-the-relayer for more information.
You can stop the container using the following command:
bashdocker stop relayer
You can remove the container using the following command:
bashdocker rm relayer
You can remove the image using the following command:
bashdocker rmi openzeppelin/openzeppelin-relayer:latest
We welcome contributions to the OpenZeppelin Relayer. Please read our https://github.com/OpenZeppelin/openzeppelin-relayer/?tab=readme-ov-file#contributing for more information.
The relayer runs its HTTP server on actix workers and its background transaction pipeline on a separate multi-thread tokio runtime. Size both to the container's vCPU quota with these env vars:
| Variable | Meaning | Default |
|---|---|---|
TOKIO_WORKER_THREADS | Pipeline runtime worker threads | max(1, vCPU − ACTIX_WORKERS) |
ACTIX_WORKERS | HTTP server workers | max(1, vCPU / 2) |
ACTIX_WORKERS + TOKIO_WORKER_THREADS should be ≤ the allocated vCPU. At startup
the relayer logs the resolved vcpu, actix_workers, and tokio_worker_threads, and
WARNs if the budget exceeds the quota.
Auto-detection (available_parallelism) returns host cores, not the cgroup quota,
on AWS Fargate (cpu.shares) — so on Fargate you must pin these explicitly.
Per-platform:
TOKIO_WORKER_THREADS/ACTIX_WORKERS in the task definition to
match the task vCPU; watch CloudWatch CPU throttling.--no-cpu-throttling
(run.googleapis.com/cpu-throttling: false) and min-instances >= 1, otherwise the
background pipeline is starved of CPU between HTTP requests. Set the worker counts to the
configured CPU.container_cpu_cfs_throttled_seconds_total.When using AWS KMS signers, set an explicit region in the signer config so region
resolution never falls back to the IMDS metadata endpoint.
See the https://github.com/OpenZeppelin/openzeppelin-relayer/?tab=readme-ov-file#observability for more information on how to set up observability for the relayer.
This project is licensed under the GNU Affero General Public License v3.0 - see the https://github.com/OpenZeppelin/openzeppelin-relayer/blob/main/LICENSE file for details.
For security concerns, please refer to our https://github.com/OpenZeppelin/openzeppelin-relayer/blob/main/SECURITY.md.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务