From a7652cfda6f9ed0234d4be980c6b43676ffea5f5 Mon Sep 17 00:00:00 2001 From: Jason Athanasoglou Date: Thu, 5 Mar 2026 10:03:51 +0200 Subject: [PATCH] Add Fantom JSON-RPC methods --- pkg/methods/specs/fantom.json | 53 +++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 pkg/methods/specs/fantom.json diff --git a/pkg/methods/specs/fantom.json b/pkg/methods/specs/fantom.json new file mode 100644 index 0000000..2526b81 --- /dev/null +++ b/pkg/methods/specs/fantom.json @@ -0,0 +1,53 @@ +{ + "openrpc": "1.0.0", + "info": { + "title": "Fantom JSON-RPC methods", + "version": "1.0.0" + }, + "spec": { + "name": "fantom" + }, + "spec-imports": [ + "eth" + ], + "methods": [ + { + "name": "ftm_effectiveBaseFee", + "settings": { + "cacheable": false + }, + "params": [] + }, + { + "name": "ftm_currentEpoch", + "settings": { + "cacheable": false + }, + "params": [] + }, + { + "name": "ftm_getEpochBlock", + "params": [], + "tag-parser": { + "type": "blockNumber", + "path": ".[0]" + } + }, + { + "name": "ftm_getRules", + "params": [], + "tag-parser": { + "type": "blockNumber", + "path": ".[0]" + } + }, + { + "name": "ftm_getEpochStats", + "params": [], + "tag-parser": { + "type": "blockNumber", + "path": ".[0]" + } + } + ] +}