OnFinality
新用户订阅 RPC,首月享 6.5 折优惠查看优惠
Fantom logo

Fantom RPC 端点与 API

Performance matters.

Fantom is a fast, high-throughput open-source smart contract platform for digital assets and decentralized applications (dApps). Its Opera mainnet uses a Directed Acyclic Graph (DAG) consensus mechanism called Lachesis, enabling near-instant finality and low transaction costs. Developers building on Fantom need reliable RPC endpoints to interact with the blockchain.

链 ID250
货币FTM
创建免费 API key:每天 400,000 响应单位,最高 40 响应单位/秒。不同方法的消耗权重不同。

公共接口速率限制为 5 req/sec

快速开始
curl -H 'Content-Type: application/json' -d '{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber"}' 'https://fantom.api.onfinality.io/public'
curl -H 'Content-Type: application/json' -d '{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber"}' 'https://fantom.api.onfinality.io/public'
HTTPs
https://fantom.api.onfinality.io/public
https://fantom.api.onfinality.io/public
WebSocket
wss://fantom.api.onfinality.io/public-ws
wss://fantom.api.onfinality.io/public-ws
开始接入

连接 Fantom

为 Fantom Opera 应用后端接入 OnFinality RPC,查询 EVM 合约、历史交易与归档状态。面向钱包、链上分析和既有业务集成提供托管链访问,方便团队按 Opera 数据需求维护应用服务。

试用公开接口

首次请求
curl 'https://fantom.api.onfinality.io/public' \
  -H 'Content-Type: application/json' \
  --data '{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber"}'

使用上方接口与请求完成初步检查,再测试应用实际需要的方法与流量模式。

02

创建自己的访问方式

  1. 打开控制台并选择当前网络。
  2. 创建端点,复制控制台提供的访问配置。
  3. 生产使用前验证应用方法、峰值流量与错误处理。
创建 Fantom RPC 端点
RPC API

RPC API 套餐与响应单位

根据响应单位额度和峰值速率选择共享 RPC 套餐;方法权重与网络支持范围需另行核对。

Developer

免费
包含响应单位
每天 400,000
速率限制
最高 40 RU/秒
超额 RU
不提供

Accelerate

$249/月
包含响应单位
每月 1 亿
速率限制
500 RU/秒
超额 RU
$3.75/百万
对比 RPC 套餐

套餐数据核对于 2026 年 11 月 8 日。RU 不总是等于原始请求次数,WebSocket 响应也计入限制。请核对当前价格与该网络的方法文档;节点费用及适用税费另计。

网络参考

Fantom 服务详情

网络服务能力
网络Fantom
协议ethereum
链 ID250
原生代币FTM
API 能力Archive
按工作负载选择

基于 Fantom 构建应用

根据应用请求、运维要求与上线流程规划接入方式。

应用集成

先完成连接检查,再验证应用需要的读取、交易或数据处理流程。

用量规划

增加流量前检查方法限制、套餐额度与使用量;不同方法可能消耗不同的响应单位。

运行维护

评估延迟、重试和服务可用性时,使用实际客户端地区与请求模式。

永远不用担心基础设施

OnFinality 消除了 DevOps 的繁重工作,让您能够更聪明、更快地构建。

开始