lib/eth/api.rb
# Copyright (c) 2016-2023 The Ruby-Eth Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Provides the {Eth} module.
module Eth
# Provides the `Eth::Api` module grouping known RPC commands.
module Api
# Implements the available RPC-APIs provided by Geth version 1.10.26.
COMMANDS = [
"account_ecRecover",
"account_new",
"account_signData",
"account_signTransaction",
"account_signTypedData",
"admin_addPeer",
"admin_addTrustedPeer",
"admin_clearHistory",
"admin_datadir",
"admin_exportChain",
"admin_getDatadir",
"admin_getNodeInfo",
"admin_getPeers",
"admin_importChain",
"admin_nodeInfo",
"admin_peerEvents",
"admin_peers",
"admin_removePeer",
"admin_removeTrustedPeer",
"admin_sleep",
"admin_sleepBlocks",
"admin_startHTTP",
"admin_startRPC",
"admin_startWS",
"admin_stopHTTP",
"admin_stopRPC",
"admin_stopWS",
"clef_deriveAccount",
"clef_listWallets",
"clef_openWallet",
"clique_discard",
"clique_getSigner",
"clique_getSigners",
"clique_getSignersAtHash",
"clique_getSnapshot",
"clique_getSnapshotAtHash",
"clique_proposals",
"clique_propose",
"clique_status",
"db_getHex",
"db_getString",
"db_putHex",
"db_putString",
"debug_accountRange",
"debug_backtraceAt",
"debug_blockProfile",
"debug_chaindbCompact",
"debug_chaindbProperty",
"debug_cpuProfile",
"debug_dbAncient",
"debug_dbAncients",
"debug_dbGet",
"debug_dumpBlock",
"debug_freeOSMemory",
"debug_freezeClient",
"debug_gcStats",
"debug_getAccessibleState",
"debug_getBadBlocks",
"debug_getBlockRlp",
"debug_getHeaderRlp",
"debug_getModifiedAccountsByHash",
"debug_getModifiedAccountsByNumber",
"debug_getRawBlock",
"debug_getRawHeader",
"debug_getRawReceipts",
"debug_getRawTransaction",
"debug_getTrieFlushInterval",
"debug_goTrace",
"debug_intermediateRoots",
"debug_memStats",
"debug_mutexProfile",
"debug_preimage",
"debug_printBlock",
"debug_seedHash",
"debug_setBlockProfileRate",
"debug_setGCPercent",
"debug_setHead",
"debug_setMutexProfileFraction",
"debug_setTrieFlushInterval",
"debug_stacks",
"debug_standardTraceBadBlockToFile",
"debug_standardTraceBlockToFile",
"debug_startCPUProfile",
"debug_startGoTrace",
"debug_stopCPUProfile",
"debug_stopGoTrace",
"debug_storageRangeAt",
"debug_subscribe",
"debug_traceBadBlock",
"debug_traceBlock",
"debug_traceBlockByHash",
"debug_traceBlockByNumber",
"debug_traceBlockFromFile",
"debug_traceCall",
"debug_traceChain",
"debug_traceTransaction",
"debug_verbosity",
"debug_vmodule",
"debug_writeBlockProfile",
"debug_writeMemProfile",
"debug_writeMutexProfile",
"dev_addWithdrawal",
"dev_setFeeRecipient",
"eth_accounts",
"eth_blobBaseFee",
"eth_blockNumber",
"eth_call",
"eth_chainId",
"eth_coinbase",
"eth_compile",
"eth_compileLLL",
"eth_compileSerpent",
"eth_compileSolidity",
"eth_contract",
"eth_createAccessList",
"eth_defaultAccount",
"eth_defaultBlock",
"eth_estimateGas",
"eth_feeHistory",
"eth_fillTransaction",
"eth_filter",
"eth_gasPrice",
"eth_getAccounts",
"eth_getBalance",
"eth_getBlobBaseFee",
"eth_getBlock",
"eth_getBlockByHash",
"eth_getBlockByNumber",
"eth_getBlockNumber",
"eth_getBlockReceipts",
"eth_getBlockTransactionCount",
"eth_getBlockTransactionCountByHash",
"eth_getBlockTransactionCountByNumber",
"eth_getBlockUncleCount",
"eth_getCode",
"eth_getCoinbase",
"eth_getCompilers",
"eth_getFilterChanges",
"eth_getFilterLogs",
"eth_getGasPrice",
"eth_getHashrate",
"eth_getHeaderByHash",
"eth_getHeaderByNumber",
"eth_getLogs",
"eth_getMaxPriorityFeePerGas",
"eth_getMining",
"eth_getPendingTransactions",
"eth_getProof",
"eth_getProtocolVersion",
"eth_getRawTransaction",
"eth_getRawTransactionFromBlock",
"eth_getStorageAt",
"eth_getSyncing",
"eth_getTransaction",
"eth_getTransactionByBlockHashAndIndex",
"eth_getTransactionByBlockNumberAndIndex",
"eth_getTransactionByHash",
"eth_getTransactionCount",
"eth_getTransactionFromBlock",
"eth_getTransactionReceipt",
"eth_getUncle",
"eth_getUncleByBlockHashAndIndex",
"eth_getUncleByBlockNumberAndIndex",
"eth_getUncleCountByBlockHash",
"eth_getUncleCountByBlockNumber",
"eth_getWork",
"eth_hashrate",
"eth_iban",
"eth_icapNamereg",
"eth_isSyncing",
"eth_maxPriorityFeePerGas",
"eth_mining",
"eth_namereg",
"eth_newBlockFilter",
"eth_newFilter",
"eth_newPendingTransactionFilter",
"eth_pendingTransactions",
"eth_protocolVersion",
"eth_resend",
"eth_sendIBANTransaction",
"eth_sendRawTransaction",
"eth_sendTransaction",
"eth_sign",
"eth_signTransaction",
"eth_simulateV1",
"eth_submitHashrate",
"eth_submitTransaction",
"eth_submitWork",
"eth_syncing",
"eth_uninstallFilter",
"eth_unsubscribe",
"les_addBalance",
"les_clientInfo",
"les_getCheckpoint",
"les_getCheckpointContractAddress",
"les_latestCheckpoint",
"les_priorityClientInfo",
"les_serverInfo",
"les_setClientParams",
"les_setDefaultParams",
"miner_getHashrate",
"miner_setEtherbase",
"miner_setExtra",
"miner_setGasLimit",
"miner_setGasPrice",
"miner_setRecommitInterval",
"miner_start",
"miner_stop",
"net_getListening",
"net_getPeerCount",
"net_getVersion",
"net_listening",
"net_peerCount",
"net_version",
"personal_deriveAccount",
"personal_ecRecover",
"personal_importRawKey",
"personal_initializeWallet",
"personal_initializeWallets",
"personal_listAccounts",
"personal_listWallets",
"personal_lockAccount",
"personal_newAccount",
"personal_openWallet",
"personal_sendTransaction",
"personal_sign",
"personal_signTransaction",
"personal_unlockAccount",
"personal_unpair",
"rpc_getModules",
"rpc_modules",
"shh_addToGroup",
"shh_getFilterChanges",
"shh_getMessages",
"shh_hasIdentity",
"shh_newFilter",
"shh_newGroup",
"shh_newIdentity",
"shh_post",
"shh_uninstallFilter",
"shh_version",
"txpool_content",
"txpool_contentFrom",
"txpool_getContent",
"txpool_getInspect",
"txpool_getStatus",
"txpool_inspect",
"txpool_status",
"web3_admin",
"web3_bzz",
"web3_clientVersion",
"web3_createBatch",
"web3_currentProvider",
"web3_db",
"web3_debug",
"web3_dev",
"web3_eth",
"web3_fromAscii",
"web3_fromDecimal",
"web3_fromICAP",
"web3_fromUtf8",
"web3_fromWei",
"web3_isAddress",
"web3_isChecksumAddress",
"web3_isConnected",
"web3_isIBAN",
"web3_miner",
"web3_net",
"web3_padLeft",
"web3_padRight",
"web3_personal",
"web3_providers",
"web3_reset",
"web3_rpc",
"web3_setProvider",
"web3_settings",
"web3_sha3",
"web3_shh",
"web3_toAscii",
"web3_toChecksumAddress",
"web3_toDecimal",
"web3_toHex",
"web3_toUtf8",
"web3_toWei",
"web3_txpool",
"web3_version",
]
end
end