From c7aae13dc222e6313d55a18eba11c2d951c40456 Mon Sep 17 00:00:00 2001 From: bgravenorst Date: Tue, 10 Jun 2025 06:50:39 +1000 Subject: [PATCH 01/11] Add automated CC tables and pricing content. Signed-off-by: bgravenorst --- services/get-started/pricing/credit-cost.md | 214 ------------------ services/get-started/pricing/credit-cost.mdx | 101 +++++++++ .../_partials/_eth_accounts-description.mdx | 5 +- src/components/CreditCost/CreditCostPrice.js | 24 ++ src/components/CreditCost/CreditCostTable.js | 51 +++++ src/lib/data.js | 131 +++++++++++ 6 files changed, 311 insertions(+), 215 deletions(-) delete mode 100644 services/get-started/pricing/credit-cost.md create mode 100644 services/get-started/pricing/credit-cost.mdx create mode 100644 src/components/CreditCost/CreditCostPrice.js create mode 100644 src/components/CreditCost/CreditCostTable.js diff --git a/services/get-started/pricing/credit-cost.md b/services/get-started/pricing/credit-cost.md deleted file mode 100644 index d572ff8a985..00000000000 --- a/services/get-started/pricing/credit-cost.md +++ /dev/null @@ -1,214 +0,0 @@ ---- -description: API method credit cost. ---- - -# Credit costs - -The following tables outline the credit costs associated with various RPC methods across different -networks. The credit calculation logic is designed to ensure accurate and fair pricing based on the -specific network and method being used. - -:::caution important - -Requests for [archive data](../../concepts/archive-data.md) (older than 128 blocks) -currently cost the same as non-archive data, but this might change in the near future. -::: - -The process used to determine the credit cost for each request is as follows: - -1. **Initial check for a specific credit value** - When you make a request, the system first checks if there is a specific credit value assigned for the network and method used. - This ensures that any unique resource requirements or costs associated with a particular network are accurately reflected. - -1. **Fallback to the Ethereum method's credit value** - If no specific credit value is found for the network, the system applies the Ethereum method's credit value. - Ethereum serves as the baseline for pricing core RPC methods. - -1. **Fallback to the default credit value** - If the method is not found in the Ethereum table either, the system applies a default credit value. - Initially set to 80 credits, this default value ensures all requests are accounted for, even if specific pricing information is not available. - -## Error code costs - -When making requests that return status code errors, some errors count towards your credit usage. - -- **`429` errors**: These are not charged and can occur if you've exceeded your allowed throughput limit (requests per second). -- **`402` errors**: These are not charged and can occur if you've exceeded your allowed daily credit usage. -- **`4xx` errors**: These are errors caused by human input, and consume 5 credits. -- **`5xx` errors**: These are server errors, and do not consume any credit charges. - -## Ethereum - -The Ethereum methods serve as a baseline for pricing RPC methods. If a credit cost is not available for -a specific network, then use the default Ethereum method's credit cost. - -### Standard Ethereum-compliant JSON-RPC methods - -| RPC method | Credit cost | -|-------------------------------------------|-------------| -| `eth_accounts` | 80 | -| `eth_blobBaseFee` | 300 | -| `eth_blockNumber` | 80 | -| `eth_call` | 80 | -| `eth_chainId` | 5 | -| `eth_createAccessList` | 80 | -| `eth_estimateGas` | 300 | -| `eth_feeHistory` | 80 | -| `eth_gasPrice` | 80 | -| `eth_getBalance` | 80 | -| `eth_getBlockByHash` | 80 | -| `eth_getBlockByNumber` | 80 | -| `eth_getBlockReceipts` | 1000 | -| `eth_getBlockTransactionCountByHash` | 150 | -| `eth_getBlockTransactionCountByNumber` | 150 | -| `eth_getCode` | 80 | -| `eth_getLogs` | 255 | -| `eth_getProof` | 150 | -| `eth_getStorageAt` | 80 | -| `eth_getTransactionByBlockHashAndIndex` | 150 | -| `eth_getTransactionByBlockNumberAndIndex` | 150 | -| `eth_getTransactionByHash` | 80 | -| `eth_getTransactionCount` | 80 | -| `eth_getTransactionReceipt` | 80 | -| `eth_getUncleByBlockHashAndIndex` | 150 | -| `eth_getUncleByBlockNumberAndIndex` | 150 | -| `eth_getUncleCountByBlockHash` | 150 | -| `eth_getUncleCountByBlockNumber` | 150 | -| `eth_getWork` | 80 | -| `eth_hashrate` | 5 | -| `eth_maxPriorityFeePerGas` | 80 | -| `eth_mining` | 5 | -| `eth_protocolVersion` | 5 | -| `eth_sendRawTransaction` | 80 | -| `eth_sign` | 80 | -| `eth_simulateV1` | 300 | -| `eth_submitWork` | 80 | -| `eth_subscribe` | 5 | -| `eth_syncing` | 5 | -| `eth_unsubscribe` | 10 | -| `net_listening` | 5 | -| `net_peerCount` | 80 | -| `net_version` | 5 | -| `web3_clientVersion` | 80 | - -### Trace methods - -| RPC method | Credit cost | -|---------------------|-------------| -| `trace_block` | 300 | -| `trace_call` | 300 | -| `trace_callMany` | 300 | -| `trace_filter` | 300 | -| `trace_transaction` | 300 | - - -### Filter methods - -| RPC method | Credit cost | -|-----------------------------------|-------------| -| `eth_getFilterChanges` | 140 | -| `eth_getFilterLogs` | 255 | -| `eth_newBlockFilter` | 80 | -| `eth_newFilter` | 80 | -| `eth_uninstallFilter` | 80 | - -### Debug methods - -| RPC method | Credit cost | -|----------------------------|-------------| -| `debug_storageRangeAt` | 1000 | -| `debug_traceBlock` | 1000 | -| `debug_traceBlockByHash` | 1000 | -| `debug_traceBlockByNumber` | 1000 | -| `debug_traceCall` | 1000 | -| `debug_traceTransaction` | 1000 | - - -### Subscription events - -You can subscribe and unsubscribe to events using [`eth_subscribe`](../../reference/ethereum/json-rpc-methods/subscription-methods/eth_subscribe.mdx) and [`eth_unsubscribe`](../../reference/ethereum/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx). - -The credit costs for the `logs` and `newHeads` events are charged per block, whereas `newPendingTransaction` events -are charged at approximately one second intervals. - -| Subscription events | Credit cost | -|-------------------------|-------------| -| `logs` | 300 | -| `newHeads` | 50 | -| `newPendingTransaction` | 200 | - -## Linea - -| RPC method | Credit cost | -|-------------------------------------------|-------------| -| `linea_estimateGas` | 100 | - - -## Polygon - -| RPC method | Credit cost | -|----------------------------|-------------| -| `bor_getAuthor` | 80 | -| `bor_getCurrentProposer` | 80 | -| `bor_getCurrentValidators` | 80 | -| `bor_getRootHash` | 80 | -| `bor_getSignersAtHash` | 80 | - -## Starknet - -| RPC Method | Credit cost | -|--------------------------------------------|-------------| -| `starknet_addDeclareTransaction` | 700 | -| `starknet_addDeployAccountTransaction` | 700 | -| `starknet_addInvokeTransaction` | 700 | -| `starknet_blockHashAndNumber` | 80 | -| `starknet_blockNumber` | 80 | -| `starknet_call` | 80 | -| `starknet_chainId` | 5 | -| `starknet_estimateFee` | 240 | -| `starknet_getBlockTransactionCount` | 80 | -| `starknet_getBlockWithTxHashes` | 80 | -| `starknet_getBlockWithTxs` | 80 | -| `starknet_getClass` | 80 | -| `starknet_getClassAt` | 80 | -| `starknet_getClassHashAt` | 80 | -| `starknet_getEvents` | 200 | -| `starknet_getNonce` | 80 | -| `starknet_getStateUpdate` | 80 | -| `starknet_getStorageAt` | 80 | -| `starknet_getTransactionByBlockIdAndIndex` | 80 | -| `starknet_getTransactionByHash` | 80 | -| `starknet_getTransactionReceipt` | 80 | -| `starknet_pendingTransactions` | 160 | -| `starknet_simulateTransactions` | 160 | -| `starknet_specVersion` | 5 | -| `starknet_syncing` | 5 | - - -## ZKsync Era - -| RPC method | Credit cost | -|-------------------------------|-------------| -| `zks_estimateFee` | 80 | -| `zks_estimateGasL1ToL2` | 80 | -| `zks_getAllAccountBalances` | 80 | -| `zks_getBlockDetails` | 80 | -| `zks_getBridgeContracts` | 80 | -| `zks_getBytecodeByHash` | 80 | -| `zks_getL1BatchBlockRange` | 80 | -| `zks_getL1BatchDetails` | 80 | -| `zks_getL2ToL1LogProof` | 80 | -| `zks_getL2ToL1MsgProof` | 80 | -| `zks_getMainContract` | 80 | -| `zks_getProof` | 80 | -| `zks_getRawBlockTransactions` | 80 | -| `zks_getTestnetPaymaster` | 80 | -| `zks_getTransactionDetails` | 80 | -| `zks_L1BatchNumber` | 80 | -| `zks_L1ChainId` | 80 | - -## Gas API - -| API endpoint | Credit cost | -|---------------------|--------------| -| `baseFeeHistory` | 80 | -| `baseFeePercentile` | 80 | -| `busyThreshold` | 80 | -| `suggestedGasFees` | 80 | diff --git a/services/get-started/pricing/credit-cost.mdx b/services/get-started/pricing/credit-cost.mdx new file mode 100644 index 00000000000..90829d283cc --- /dev/null +++ b/services/get-started/pricing/credit-cost.mdx @@ -0,0 +1,101 @@ +--- +description: API method credit cost. +--- + +import React from 'react'; +import CreditCostTable from '@site/src/components/CreditCost/CreditCostTable.js'; + +# Credit costs + +The following tables outline the credit costs associated with various RPC methods across different +networks. The credit calculation logic is designed to ensure accurate and fair pricing based on the +specific network and method being used. + +:::caution important + +Requests for [archive data](../../concepts/archive-data.md) (older than 128 blocks) +currently cost the same as non-archive data, but this might change in the near future. +::: + +The process used to determine the credit cost for each request is as follows: + +1. **Initial check for a specific credit value** - When you make a request, the system first checks if there is a specific credit value assigned for the network and method used. + This ensures that any unique resource requirements or costs associated with a particular network are accurately reflected. + +1. **Fallback to the Ethereum method's credit value** - If no specific credit value is found for the network, the system applies the Ethereum method's credit value. + Ethereum serves as the baseline for pricing core RPC methods. + +1. **Fallback to the default credit value** - If the method is not found in the Ethereum table either, the system applies a default credit value. + Initially set to 80 credits, this default value ensures all requests are accounted for, even if specific pricing information is not available. + +## Error code costs + +When making requests that return status code errors, some errors count towards your credit usage. + +- **`429` errors**: These are not charged and can occur if you've exceeded your allowed throughput limit (requests per second). +- **`402` errors**: These are not charged and can occur if you've exceeded your allowed daily credit usage. +- **`4xx` errors**: These are errors caused by human input, and consume 5 credits. +- **`5xx` errors**: These are server errors, and do not consume any credit charges. + +## Ethereum + +The Ethereum methods serve as a baseline for pricing RPC methods. If a credit cost is not available for +a specific network, then use the default Ethereum method's credit cost. + +### Standard Ethereum-compliant JSON-RPC methods + + + + +### Trace methods + + + + +### Filter methods + +| RPC method | Credit cost | +|-----------------------------------|-------------| +| `eth_getFilterChanges` | 140 | +| `eth_getFilterLogs` | 255 | +| `eth_newBlockFilter` | 80 | +| `eth_newFilter` | 80 | +| `eth_uninstallFilter` | 80 | + +### Debug methods + + + + + +### Subscription events + +You can subscribe and unsubscribe to events using [`eth_subscribe`](../../reference/ethereum/json-rpc-methods/subscription-methods/eth_subscribe.mdx) and [`eth_unsubscribe`](../../reference/ethereum/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx). + +The credit costs for the `logs` and `newHeads` events are charged per block, whereas `newPendingTransaction` events +are charged at approximately one second intervals. + + + +## Linea + + + + +## Polygon + + + +## Starknet + + + + + +## ZKsync Era + + + +## Gas API + + diff --git a/services/reference/_partials/_eth_accounts-description.mdx b/services/reference/_partials/_eth_accounts-description.mdx index 84392a009bc..250f4fefdcd 100644 --- a/services/reference/_partials/_eth_accounts-description.mdx +++ b/services/reference/_partials/_eth_accounts-description.mdx @@ -1 +1,4 @@ -Returns a list of addresses owned by the client. +import React from 'react'; +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns a list of addresses owned by the client. diff --git a/src/components/CreditCost/CreditCostPrice.js b/src/components/CreditCost/CreditCostPrice.js new file mode 100644 index 00000000000..86e2d340ace --- /dev/null +++ b/src/components/CreditCost/CreditCostPrice.js @@ -0,0 +1,24 @@ +// src/components/CreditCost.js + +import React from 'react'; +import { API_COSTS } from '@site/src/lib/data'; + +const CreditCost = ({ network, method }) => { + // Get the credit cost for the given network and method, defaulting to 80 if not found + const cost = API_COSTS[network] && API_COSTS[network][method] !== undefined + ? API_COSTS[network][method] + : 80; // Default to 80 if no cost is found + + return ( + + This method consumes{' '} + + {cost} credits + {' '} + from your daily balance. + + ); +}; + +export default CreditCost; + diff --git a/src/components/CreditCost/CreditCostTable.js b/src/components/CreditCost/CreditCostTable.js new file mode 100644 index 00000000000..fd2a7f45e0f --- /dev/null +++ b/src/components/CreditCost/CreditCostTable.js @@ -0,0 +1,51 @@ +import React from 'react'; +import { API_COSTS } from '@site/src/lib/data'; + +// Function to render the tables +const renderTable = (methods, categoryName, header) => { + if (!methods || Object.keys(methods).length === 0) return null; + + return ( +
+ + + + {/* Use dynamic header */} + + + + + {Object.keys(methods).map((method) => ( + + + + + ))} + +
{header}Credit cost
{method} + {methods[method]} credits +
+
+ ); +}; + +const CreditCostTable = ({ methods }) => { + // Map methods prop to the corresponding category in API_COSTS + const methodCategory = API_COSTS[methods]; + + if (!methodCategory) { + return

No data available for the specified method category.

; + } + + // Set header dynamically based on the category + let header = 'RPC method'; + if (methods === 'gasApi') { + header = 'API endpoint'; // Change header for 'gasApi' + } else if (methods === 'evm_subscription') { + header = 'Subscription events'; // Change header for 'evm_subscription' + } + + return renderTable(methodCategory, methods, header); +}; + +export default CreditCostTable; diff --git a/src/lib/data.js b/src/lib/data.js index 759d9507585..d45897ad627 100644 --- a/src/lib/data.js +++ b/src/lib/data.js @@ -136,3 +136,134 @@ export const NETWORK_LINKS = [ logo: `${LOGO_PATH}/logo-zksync.svg`, }, ]; + +export const API_COSTS = { + evm: { + 'eth_accounts': 80, + 'eth_blobBaseFee': 300, + 'eth_blockNumber': 80, + 'eth_call': 80, + 'eth_chainId': 5, + 'eth_createAccessList': 80, + 'eth_estimateGas': 300, + 'eth_feeHistory': 80, + 'eth_gasPrice': 80, + 'eth_getBalance': 80, + 'eth_getBlockByHash': 80, + 'eth_getBlockByNumber': 80, + 'eth_getBlockReceipts': 1000, + 'eth_getBlockTransactionCountByHash': 150, + 'eth_getBlockTransactionCountByNumber': 150, + 'eth_getCode': 80, + 'eth_getLogs': 255, + 'eth_getProof': 150, + 'eth_getStorageAt': 80, + 'eth_getTransactionByBlockHashAndIndex': 150, + 'eth_getTransactionByBlockNumberAndIndex': 150, + 'eth_getTransactionByHash': 80, + 'eth_getTransactionCount': 80, + 'eth_getTransactionReceipt': 80, + 'eth_getUncleByBlockHashAndIndex': 150, + 'eth_getUncleByBlockNumberAndIndex': 150, + 'eth_getUncleCountByBlockHash': 150, + 'eth_getUncleCountByBlockNumber': 150, + 'eth_getWork': 80, + 'eth_hashrate': 5, + 'eth_maxPriorityFeePerGas': 80, + 'eth_mining': 5, + 'eth_protocolVersion': 5, + 'eth_sendRawTransaction': 80, + 'eth_sign': 80, + 'eth_simulateV1': 300, + 'eth_submitWork': 80, + 'eth_subscribe': 5, + 'eth_syncing': 5, + 'eth_unsubscribe': 10, + 'net_listening': 5, + 'net_peerCount': 80, + 'net_version': 5, + 'web3_clientVersion': 80, + }, + evm_trace: { + 'trace_block': 300, + 'trace_call': 300, + 'trace_callMany': 300, + 'trace_filter': 300, + 'trace_transaction': 300, + }, + evm_debug: { + 'debug_storageRangeAt': 1000, + 'debug_traceBlock': 1000, + 'debug_traceBlockByHash': 1000, + 'debug_traceBlockByNumber': 1000, + 'debug_traceCall': 1000, + 'debug_traceTransaction': 1000, + }, + evm_subscription: { + 'logs': 300, + 'newHeads': 50, + 'newPendingTransaction': 200, + }, + linea: { + 'linea_estimateGas': 100, + }, + polygon: { + 'bor_getAuthor': 80, + 'bor_getCurrentProposer': 80, + 'bor_getCurrentValidators': 80, + 'bor_getRootHash': 80, + 'bor_getSignersAtHash': 80, + }, + starknet: { + 'starknet_addDeclareTransaction': 700, + 'starknet_addDeployAccountTransaction': 700, + 'starknet_addInvokeTransaction': 700, + 'starknet_blockHashAndNumber': 80, + 'starknet_blockNumber': 80, + 'starknet_call': 80, + 'starknet_chainId': 5, + 'starknet_estimateFee': 240, + 'starknet_getBlockTransactionCount': 80, + 'starknet_getBlockWithTxHashes': 80, + 'starknet_getBlockWithTxs': 80, + 'starknet_getClass': 80, + 'starknet_getClassAt': 80, + 'starknet_getClassHashAt': 80, + 'starknet_getEvents': 200, + 'starknet_getNonce': 80, + 'starknet_getStateUpdate': 80, + 'starknet_getStorageAt': 80, + 'starknet_getTransactionByBlockIdAndIndex': 80, + 'starknet_getTransactionByHash': 80, + 'starknet_getTransactionReceipt': 80, + 'starknet_pendingTransactions': 160, + 'starknet_simulateTransactions': 160, + 'starknet_specVersion': 5, + 'starknet_syncing': 5, + }, + zksync: { + 'zks_estimateFee': 80, + 'zks_estimateGasL1ToL2': 80, + 'zks_getAllAccountBalances': 80, + 'zks_getBlockDetails': 80, + 'zks_getBridgeContracts': 80, + 'zks_getBytecodeByHash': 80, + 'zks_getL1BatchBlockRange': 80, + 'zks_getL1BatchDetails': 80, + 'zks_getL2ToL1LogProof': 80, + 'zks_getL2ToL1MsgProof': 80, + 'zks_getMainContract': 80, + 'zks_getProof': 80, + 'zks_getRawBlockTransactions': 80, + 'zks_getTestnetPaymaster': 80, + 'zks_getTransactionDetails': 80, + 'zks_L1BatchNumber': 80, + 'zks_L1ChainId': 80, + }, + gasApi: { + 'baseFeeHistory': 80, + 'baseFeePercentile': 80, + 'busyThreshold': 80, + 'suggestedGasFees': 80, + }, +}; \ No newline at end of file From d6f4a35d86bb93410163ff20c78baf1c1157b252 Mon Sep 17 00:00:00 2001 From: bgravenorst Date: Wed, 11 Jun 2025 10:00:15 +1000 Subject: [PATCH 02/11] Add initial component, Signed-off-by: bgravenorst --- .../reference/_partials/_eth_accounts-description.mdx | 1 - .../reference/_partials/_eth_blobbasefee-description.mdx | 4 +++- .../reference/_partials/_eth_blocknumber-description.mdx | 4 +++- services/reference/_partials/_eth_call-description.mdx | 4 +++- .../reference/_partials/_eth_chainid-description.mdx | 5 ++++- .../_partials/_eth_createaccesslist-description.mdx | 9 +++++++-- .../reference/_partials/_eth_estimategas-description.mdx | 7 ++++++- .../reference/_partials/_eth_feehistory-description.mdx | 4 +++- .../reference/_partials/_eth_gasprice-description.mdx | 4 +++- .../reference/_partials/_eth_getbalance-description.mdx | 4 +++- .../_partials/_eth_getblockbyhash-description.mdx | 4 +++- .../_partials/_eth_getblockbynumber-description.mdx | 4 +++- .../_partials/_eth_getblockreceipts-description.mdx | 5 ++++- .../_eth_getblocktransactioncountbyhash-description.mdx | 4 +++- ..._eth_getblocktransactioncountbynumber-description.mdx | 4 +++- .../reference/_partials/_eth_getcode-description.mdx | 4 +++- .../reference/_partials/_eth_getlogs-description.mdx | 4 +++- .../reference/_partials/_eth_getproof-description.mdx | 4 +++- .../_partials/_eth_getstorageat-description.mdx | 4 +++- ...eth_gettransactionbyblockhashandindex-description.mdx | 4 +++- ...h_gettransactionbyblocknumberandindex-description.mdx | 4 +++- 21 files changed, 69 insertions(+), 22 deletions(-) diff --git a/services/reference/_partials/_eth_accounts-description.mdx b/services/reference/_partials/_eth_accounts-description.mdx index 250f4fefdcd..be46b7e2037 100644 --- a/services/reference/_partials/_eth_accounts-description.mdx +++ b/services/reference/_partials/_eth_accounts-description.mdx @@ -1,4 +1,3 @@ -import React from 'react'; import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; Returns a list of addresses owned by the client. diff --git a/services/reference/_partials/_eth_blobbasefee-description.mdx b/services/reference/_partials/_eth_blobbasefee-description.mdx index 507022cb163..c2bb755ddae 100644 --- a/services/reference/_partials/_eth_blobbasefee-description.mdx +++ b/services/reference/_partials/_eth_blobbasefee-description.mdx @@ -1 +1,3 @@ -Returns the expected base fee for blobs in the next block. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the expected base fee for blobs in the next block. diff --git a/services/reference/_partials/_eth_blocknumber-description.mdx b/services/reference/_partials/_eth_blocknumber-description.mdx index 43b963a7a1a..1fa8be31dc3 100644 --- a/services/reference/_partials/_eth_blocknumber-description.mdx +++ b/services/reference/_partials/_eth_blocknumber-description.mdx @@ -1 +1,3 @@ -Returns the current latest block number. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the current latest block number. diff --git a/services/reference/_partials/_eth_call-description.mdx b/services/reference/_partials/_eth_call-description.mdx index 68a9b0f5cbc..4e1067df6d6 100644 --- a/services/reference/_partials/_eth_call-description.mdx +++ b/services/reference/_partials/_eth_call-description.mdx @@ -1,4 +1,6 @@ -Executes a new message call immediately without creating a transaction on the blockchain. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Executes a new message call immediately without creating a transaction on the blockchain. :::warning Gas parameter is capped diff --git a/services/reference/_partials/_eth_chainid-description.mdx b/services/reference/_partials/_eth_chainid-description.mdx index 29620428245..c3e16edc209 100644 --- a/services/reference/_partials/_eth_chainid-description.mdx +++ b/services/reference/_partials/_eth_chainid-description.mdx @@ -1 +1,4 @@ -Returns the currently configured chain ID, a value used in replay-protected transaction signing as introduced by [EIP-155](https://eips.ethereum.org/EIPS/eip-155). +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the currently configured chain ID, a value used in replay-protected transaction signing as introduced +by [EIP-155](https://eips.ethereum.org/EIPS/eip-155). diff --git a/services/reference/_partials/_eth_createaccesslist-description.mdx b/services/reference/_partials/_eth_createaccesslist-description.mdx index 9f2c288ee7b..7c9ed157a35 100644 --- a/services/reference/_partials/_eth_createaccesslist-description.mdx +++ b/services/reference/_partials/_eth_createaccesslist-description.mdx @@ -1,6 +1,11 @@ -Creates an [EIP-2930](https://eips.ethereum.org/EIPS/eip-2930) access list that you can include in a [transaction](../../concepts/transaction-types.md). +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; -Use this method to optimize your smart contract interactions. Access lists are a part of Ethereum's EIP-2930, which aims to improve the network's scalability and reduce gas costs by specifying an explicit list of addresses and storage keys that a transaction intends to access. +Creates an [EIP-2930](https://eips.ethereum.org/EIPS/eip-2930) access list that you can include in a +[transaction](../../concepts/transaction-types.md). + +Use this method to optimize your smart contract interactions. Access lists are a part of Ethereum's +EIP-2930, which aims to improve the network's scalability and reduce gas costs by specifying an explicit +list of addresses and storage keys that a transaction intends to access. :::tip Optimizing Ethereum Transactions diff --git a/services/reference/_partials/_eth_estimategas-description.mdx b/services/reference/_partials/_eth_estimategas-description.mdx index 54b4d4a0882..24c91667b8a 100644 --- a/services/reference/_partials/_eth_estimategas-description.mdx +++ b/services/reference/_partials/_eth_estimategas-description.mdx @@ -1,4 +1,9 @@ -Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain. Note that the estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics and node performance. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. +The transaction will not be added to the blockchain. Note that the estimate may be significantly more +than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics +and node performance. :::warning Gas parameter is capped diff --git a/services/reference/_partials/_eth_feehistory-description.mdx b/services/reference/_partials/_eth_feehistory-description.mdx index 2baf4c89646..af6a6979020 100644 --- a/services/reference/_partials/_eth_feehistory-description.mdx +++ b/services/reference/_partials/_eth_feehistory-description.mdx @@ -1 +1,3 @@ -Returns historical gas information, allowing you to track trends over time. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns historical gas information, allowing you to track trends over time. diff --git a/services/reference/_partials/_eth_gasprice-description.mdx b/services/reference/_partials/_eth_gasprice-description.mdx index 9db52abaf8b..a17d8d9a408 100644 --- a/services/reference/_partials/_eth_gasprice-description.mdx +++ b/services/reference/_partials/_eth_gasprice-description.mdx @@ -1 +1,3 @@ -Returns the current gas price in wei. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the current gas price in wei. diff --git a/services/reference/_partials/_eth_getbalance-description.mdx b/services/reference/_partials/_eth_getbalance-description.mdx index 0645c40ee52..2f14bfb0cef 100644 --- a/services/reference/_partials/_eth_getbalance-description.mdx +++ b/services/reference/_partials/_eth_getbalance-description.mdx @@ -1 +1,3 @@ -Returns the balance of the account of a given address. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the balance of the account of a given address. diff --git a/services/reference/_partials/_eth_getblockbyhash-description.mdx b/services/reference/_partials/_eth_getblockbyhash-description.mdx index 9a62ca864d5..dce60f878ae 100644 --- a/services/reference/_partials/_eth_getblockbyhash-description.mdx +++ b/services/reference/_partials/_eth_getblockbyhash-description.mdx @@ -1 +1,3 @@ -Returns information about a block given its block hash. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns information about a block given its block hash. diff --git a/services/reference/_partials/_eth_getblockbynumber-description.mdx b/services/reference/_partials/_eth_getblockbynumber-description.mdx index e434de78b53..90fd7138dc3 100644 --- a/services/reference/_partials/_eth_getblockbynumber-description.mdx +++ b/services/reference/_partials/_eth_getblockbynumber-description.mdx @@ -1 +1,3 @@ -Returns information about a block given its block number. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns information about a block given its block number. diff --git a/services/reference/_partials/_eth_getblockreceipts-description.mdx b/services/reference/_partials/_eth_getblockreceipts-description.mdx index ed1ea04d407..b3040759cde 100644 --- a/services/reference/_partials/_eth_getblockreceipts-description.mdx +++ b/services/reference/_partials/_eth_getblockreceipts-description.mdx @@ -1 +1,4 @@ -Returns all transaction receipts for a given block, the amount of gas used, and any event logs that might have been produced by a smart contract during the transaction. \ No newline at end of file +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns all transaction receipts for a given block, the amount of gas used, and any event logs that +might have been produced by a smart contract during the transaction. \ No newline at end of file diff --git a/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx b/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx index 5e2186c497f..ca956c5a233 100644 --- a/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx +++ b/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx @@ -1 +1,3 @@ -Returns the number of transactions in the block with the given block hash. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the number of transactions in the block with the given block hash. diff --git a/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx b/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx index a476d1ac354..623bfd5abfe 100644 --- a/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx +++ b/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx @@ -1 +1,3 @@ -Returns the number of transactions in the block with the given block number. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the number of transactions in the block with the given block number. diff --git a/services/reference/_partials/_eth_getcode-description.mdx b/services/reference/_partials/_eth_getcode-description.mdx index 6693110dd42..dd2d74dfdad 100644 --- a/services/reference/_partials/_eth_getcode-description.mdx +++ b/services/reference/_partials/_eth_getcode-description.mdx @@ -1 +1,3 @@ -Returns the compiled byte code of a smart contract, if any, at a given address. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the compiled byte code of a smart contract, if any, at a given address. diff --git a/services/reference/_partials/_eth_getlogs-description.mdx b/services/reference/_partials/_eth_getlogs-description.mdx index 42d64e88da7..7a8a71f6494 100644 --- a/services/reference/_partials/_eth_getlogs-description.mdx +++ b/services/reference/_partials/_eth_getlogs-description.mdx @@ -1 +1,3 @@ -Returns an array of all the logs matching the given filter object. See also the below [Constraints](#constraints) section. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns an array of all the logs matching the given filter object. See also the below [Constraints](#constraints) section. diff --git a/services/reference/_partials/_eth_getproof-description.mdx b/services/reference/_partials/_eth_getproof-description.mdx index 30ecc67cf10..3a7d7e6ce93 100644 --- a/services/reference/_partials/_eth_getproof-description.mdx +++ b/services/reference/_partials/_eth_getproof-description.mdx @@ -1 +1,3 @@ -Returns the account and storage values, including the Merkle proof, of the specified account. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the account and storage values, including the Merkle proof, of the specified account. diff --git a/services/reference/_partials/_eth_getstorageat-description.mdx b/services/reference/_partials/_eth_getstorageat-description.mdx index faa3175c24a..cfe2b28b6dc 100644 --- a/services/reference/_partials/_eth_getstorageat-description.mdx +++ b/services/reference/_partials/_eth_getstorageat-description.mdx @@ -1 +1,3 @@ -Returns the value from a storage position at a given address. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the value from a storage position at a given address. diff --git a/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx b/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx index 60539c04659..d653e0b93c4 100644 --- a/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx +++ b/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx @@ -1 +1,3 @@ -Returns information about a transaction given block hash and transaction index position. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns information about a transaction given block hash and transaction index position. diff --git a/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx b/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx index 6c7fc633fad..14a482f90cc 100644 --- a/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx +++ b/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx @@ -1 +1,3 @@ -Returns information about a transaction given block number and transaction index position. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns information about a transaction given block number and transaction index position. From 0d8279ea013b620db7aa2fc95488b1c9e6c7e3a9 Mon Sep 17 00:00:00 2001 From: bgravenorst Date: Wed, 11 Jun 2025 13:29:30 +1000 Subject: [PATCH 03/11] Add EVM method info. Signed-off-by: bgravenorst --- .../_eth_gettransactionbyhash-description.mdx | 4 +++- .../_eth_gettransactioncount-description.mdx | 4 +++- .../_eth_gettransactionreceipt-description.mdx | 4 +++- .../_eth_getunclebyblockhashandindex-description.mdx | 4 +++- ..._eth_getunclebyblocknumberandindex-description.mdx | 4 +++- .../_eth_getunclecountbyblockhash-description.mdx | 4 +++- .../_eth_getunclecountbyblocknumber-description.mdx | 4 +++- .../reference/_partials/_eth_getwork-description.mdx | 4 +++- .../reference/_partials/_eth_hashrate-description.mdx | 4 +++- .../_eth_maxpriorityfeepergas-description.mdx | 4 +++- .../reference/_partials/_eth_mining-description.mdx | 4 +++- .../_partials/_eth_protocolversion-description.mdx | 4 +++- .../_partials/_eth_sendrawtransaction-description.mdx | 4 +++- .../_partials/_eth_submitwork-description.mdx | 4 +++- .../reference/_partials/_eth_syncing-description.mdx | 4 +++- .../_partials/_net_listening-description.mdx | 4 +++- .../_partials/_net_peercount-description.mdx | 4 +++- .../reference/_partials/_net_version-description.mdx | 4 +++- .../_partials/_web3_clientversion-description.mdx | 4 +++- .../_eth_getfilterchanges-description.mdx | 5 ++++- .../filter-methods/_eth_getfilterlogs-description.mdx | 4 +++- .../_eth_newblockfilter-description.mdx | 4 +++- .../filter-methods/_eth_newfilter-description.mdx | 5 ++++- .../_eth_uninstallfilter-description.mdx | 6 +++++- .../_eth_subscribe-description.mdx | 4 +++- .../_eth_unsubscribe-description.mdx | 5 ++++- .../trace-methods/_trace_block-description.mdx | 5 ++++- .../trace-methods/_trace_call-description.mdx | 6 ++++-- .../trace-methods/_trace_callmany-description.mdx | 5 ++++- .../trace-methods/_trace_filter-description.mdx | 4 +++- .../trace-methods/_trace_transaction-description.mdx | 7 ++++++- .../_eth_getstorageat-description.mdx | 8 -------- .../_eth_gettransactionbyhash-description.mdx | 8 -------- .../_eth_gettransactionreceipt-description.mdx | 8 -------- .../json-rpc-methods/eth_getstorageat.mdx | 9 ++++++++- .../json-rpc-methods/eth_gettransactionbyhash.mdx | 11 ++++++++++- .../json-rpc-methods/eth_gettransactionreceipt.mdx | 9 ++++++++- .../_eth_gettransactionbyhash-description.mdx | 7 ------- .../_eth_sendrawtransaction-description.mdx | 7 ------- .../json-rpc-methods/eth_gettransactionbyhash.mdx | 8 +++++++- .../json-rpc-methods/eth_sendrawtransaction.mdx | 8 +++++++- 41 files changed, 144 insertions(+), 75 deletions(-) delete mode 100644 services/reference/bnb-smart-chain/json-rpc-methods/_eth_getstorageat-description.mdx delete mode 100644 services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyhash-description.mdx delete mode 100644 services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionreceipt-description.mdx delete mode 100644 services/reference/ethereum/json-rpc-methods/_eth_gettransactionbyhash-description.mdx delete mode 100644 services/reference/ethereum/json-rpc-methods/_eth_sendrawtransaction-description.mdx diff --git a/services/reference/_partials/_eth_gettransactionbyhash-description.mdx b/services/reference/_partials/_eth_gettransactionbyhash-description.mdx index 7bf5c059817..24c39b6da21 100644 --- a/services/reference/_partials/_eth_gettransactionbyhash-description.mdx +++ b/services/reference/_partials/_eth_gettransactionbyhash-description.mdx @@ -1 +1,3 @@ -Returns information about a transaction for a given hash. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns information about a transaction for a given hash. diff --git a/services/reference/_partials/_eth_gettransactioncount-description.mdx b/services/reference/_partials/_eth_gettransactioncount-description.mdx index 69535db32f5..6ef169da767 100644 --- a/services/reference/_partials/_eth_gettransactioncount-description.mdx +++ b/services/reference/_partials/_eth_gettransactioncount-description.mdx @@ -1 +1,3 @@ -Returns the number of transactions sent from an address. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the number of transactions sent from an address. diff --git a/services/reference/_partials/_eth_gettransactionreceipt-description.mdx b/services/reference/_partials/_eth_gettransactionreceipt-description.mdx index 90bf584c68a..54d0309decb 100644 --- a/services/reference/_partials/_eth_gettransactionreceipt-description.mdx +++ b/services/reference/_partials/_eth_gettransactionreceipt-description.mdx @@ -1 +1,3 @@ -Returns the receipt of a transaction given transaction hash. Note that the receipt is not available for pending transactions. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the receipt of a transaction given transaction hash. Note that the receipt is not available for pending transactions. diff --git a/services/reference/_partials/_eth_getunclebyblockhashandindex-description.mdx b/services/reference/_partials/_eth_getunclebyblockhashandindex-description.mdx index 32895d9aa6a..5e2c7145deb 100644 --- a/services/reference/_partials/_eth_getunclebyblockhashandindex-description.mdx +++ b/services/reference/_partials/_eth_getunclebyblockhashandindex-description.mdx @@ -1 +1,3 @@ -Returns information about an uncle of a block given the block hash and the uncle index position. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns information about an uncle of a block given the block hash and the uncle index position. diff --git a/services/reference/_partials/_eth_getunclebyblocknumberandindex-description.mdx b/services/reference/_partials/_eth_getunclebyblocknumberandindex-description.mdx index 5a3914cbf97..dd21d477dba 100644 --- a/services/reference/_partials/_eth_getunclebyblocknumberandindex-description.mdx +++ b/services/reference/_partials/_eth_getunclebyblocknumberandindex-description.mdx @@ -1 +1,3 @@ -Returns information about an uncle of a block given the block number and the uncle index position. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns information about an uncle of a block given the block number and the uncle index position. \ No newline at end of file diff --git a/services/reference/_partials/_eth_getunclecountbyblockhash-description.mdx b/services/reference/_partials/_eth_getunclecountbyblockhash-description.mdx index 4e34e1dc1fa..ede6a1cbdcf 100644 --- a/services/reference/_partials/_eth_getunclecountbyblockhash-description.mdx +++ b/services/reference/_partials/_eth_getunclecountbyblockhash-description.mdx @@ -1 +1,3 @@ -Returns the number of uncles in a block from a block matching the given block hash. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the number of uncles in a block from a block matching the given block hash. diff --git a/services/reference/_partials/_eth_getunclecountbyblocknumber-description.mdx b/services/reference/_partials/_eth_getunclecountbyblocknumber-description.mdx index 7a75b367abc..2ec9c921d4c 100644 --- a/services/reference/_partials/_eth_getunclecountbyblocknumber-description.mdx +++ b/services/reference/_partials/_eth_getunclecountbyblocknumber-description.mdx @@ -1 +1,3 @@ -Returns the number of uncles in a block from a block matching the given block number. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the number of uncles in a block from a block matching the given block number. diff --git a/services/reference/_partials/_eth_getwork-description.mdx b/services/reference/_partials/_eth_getwork-description.mdx index e9456fb846d..57cfc77bacd 100644 --- a/services/reference/_partials/_eth_getwork-description.mdx +++ b/services/reference/_partials/_eth_getwork-description.mdx @@ -1 +1,3 @@ -Returns the hash of the current block, the seed hash, and the boundary condition to be met ("target"). +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the hash of the current block, the seed hash, and the boundary condition to be met ("target"). diff --git a/services/reference/_partials/_eth_hashrate-description.mdx b/services/reference/_partials/_eth_hashrate-description.mdx index 04d5477970c..546d6132bde 100644 --- a/services/reference/_partials/_eth_hashrate-description.mdx +++ b/services/reference/_partials/_eth_hashrate-description.mdx @@ -1 +1,3 @@ -Returns the number of hashes per second that the node is mining with. Only applicable when the node is mining. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the number of hashes per second that the node is mining with. Only applicable when the node is mining. diff --git a/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx b/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx index 1a3928ce94a..3b13dc2b525 100644 --- a/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx +++ b/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx @@ -1 +1,3 @@ -Returns an estimate of how much priority fee, in wei, you need to be included in a block. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns an estimate of how much priority fee, in wei, you need to be included in a block. diff --git a/services/reference/_partials/_eth_mining-description.mdx b/services/reference/_partials/_eth_mining-description.mdx index 28961a21604..9b4f548273f 100644 --- a/services/reference/_partials/_eth_mining-description.mdx +++ b/services/reference/_partials/_eth_mining-description.mdx @@ -1 +1,3 @@ -Returns true if client is actively mining new blocks. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns true if client is actively mining new blocks. diff --git a/services/reference/_partials/_eth_protocolversion-description.mdx b/services/reference/_partials/_eth_protocolversion-description.mdx index 425946f4ffb..ed2c2cc1e11 100644 --- a/services/reference/_partials/_eth_protocolversion-description.mdx +++ b/services/reference/_partials/_eth_protocolversion-description.mdx @@ -1 +1,3 @@ -Returns the current Ethereum protocol version. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the current Ethereum protocol version. diff --git a/services/reference/_partials/_eth_sendrawtransaction-description.mdx b/services/reference/_partials/_eth_sendrawtransaction-description.mdx index b9ea82ce662..862967a36f2 100644 --- a/services/reference/_partials/_eth_sendrawtransaction-description.mdx +++ b/services/reference/_partials/_eth_sendrawtransaction-description.mdx @@ -1 +1,3 @@ -Submits a pre-signed transaction for broadcast to the Ethereum network. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Submits a pre-signed transaction for broadcast to the Ethereum network. diff --git a/services/reference/_partials/_eth_submitwork-description.mdx b/services/reference/_partials/_eth_submitwork-description.mdx index a63d784b490..3cecb688480 100644 --- a/services/reference/_partials/_eth_submitwork-description.mdx +++ b/services/reference/_partials/_eth_submitwork-description.mdx @@ -1 +1,3 @@ -Used for submitting a proof-of-work solution. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Used for submitting a proof-of-work solution. diff --git a/services/reference/_partials/_eth_syncing-description.mdx b/services/reference/_partials/_eth_syncing-description.mdx index c71522b4741..f91004ce369 100644 --- a/services/reference/_partials/_eth_syncing-description.mdx +++ b/services/reference/_partials/_eth_syncing-description.mdx @@ -1 +1,3 @@ -Returns an object with data about the sync status or `false`. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns an object with data about the sync status or `false`. diff --git a/services/reference/_partials/_net_listening-description.mdx b/services/reference/_partials/_net_listening-description.mdx index 9bb51ea3cea..90dbdb9ccf2 100644 --- a/services/reference/_partials/_net_listening-description.mdx +++ b/services/reference/_partials/_net_listening-description.mdx @@ -1 +1,3 @@ -Returns `true` if client is actively listening for network connections. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns `true` if client is actively listening for network connections. diff --git a/services/reference/_partials/_net_peercount-description.mdx b/services/reference/_partials/_net_peercount-description.mdx index 737759c3b9b..216da5ff5db 100644 --- a/services/reference/_partials/_net_peercount-description.mdx +++ b/services/reference/_partials/_net_peercount-description.mdx @@ -1 +1,3 @@ -Returns the number of peers currently connected to the client. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the number of peers currently connected to the client. diff --git a/services/reference/_partials/_net_version-description.mdx b/services/reference/_partials/_net_version-description.mdx index 39a99785497..f7899f4ff2c 100644 --- a/services/reference/_partials/_net_version-description.mdx +++ b/services/reference/_partials/_net_version-description.mdx @@ -1 +1,3 @@ -Returns the current network ID. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the current network ID. diff --git a/services/reference/_partials/_web3_clientversion-description.mdx b/services/reference/_partials/_web3_clientversion-description.mdx index 73b595da935..3afe56303a3 100644 --- a/services/reference/_partials/_web3_clientversion-description.mdx +++ b/services/reference/_partials/_web3_clientversion-description.mdx @@ -1 +1,3 @@ -Returns the current client version. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the current client version. diff --git a/services/reference/_partials/filter-methods/_eth_getfilterchanges-description.mdx b/services/reference/_partials/filter-methods/_eth_getfilterchanges-description.mdx index 10d51f2b723..efba826c13c 100644 --- a/services/reference/_partials/filter-methods/_eth_getfilterchanges-description.mdx +++ b/services/reference/_partials/filter-methods/_eth_getfilterchanges-description.mdx @@ -1,2 +1,5 @@ -Polling method for a filter, which returns an array of logs which occurred since the last poll. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Polling method for a filter, which returns an array of logs which occurred since the last poll. + Filter must be created by calling either [`eth_newFilter`](../eth_newfilter) or [`eth_newBlockFilter`](../eth_newblockfilter). diff --git a/services/reference/_partials/filter-methods/_eth_getfilterlogs-description.mdx b/services/reference/_partials/filter-methods/_eth_getfilterlogs-description.mdx index 45e3e59e2e7..d4904d0abda 100644 --- a/services/reference/_partials/filter-methods/_eth_getfilterlogs-description.mdx +++ b/services/reference/_partials/filter-methods/_eth_getfilterlogs-description.mdx @@ -1 +1,3 @@ -Returns an array of all logs matching the filter with the given filter ID. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns an array of all logs matching the filter with the given filter ID. diff --git a/services/reference/_partials/filter-methods/_eth_newblockfilter-description.mdx b/services/reference/_partials/filter-methods/_eth_newblockfilter-description.mdx index d5f82f7be10..e2f330391b1 100644 --- a/services/reference/_partials/filter-methods/_eth_newblockfilter-description.mdx +++ b/services/reference/_partials/filter-methods/_eth_newblockfilter-description.mdx @@ -1,5 +1,7 @@ +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + Creates a filter in the node, to notify when a new block arrives. To check if the state has -changed, call [`eth_getFilterChanges`](../eth_getfilterchanges). +changed, call [`eth_getFilterChanges`](../eth_getfilterchanges). :::warning Expires after 15 minutes of inactivity Filters that are not polled using [`eth_getFilterChanges`](../eth_getfilterchanges) automatically diff --git a/services/reference/_partials/filter-methods/_eth_newfilter-description.mdx b/services/reference/_partials/filter-methods/_eth_newfilter-description.mdx index 99700021abd..daf02fa0a79 100644 --- a/services/reference/_partials/filter-methods/_eth_newfilter-description.mdx +++ b/services/reference/_partials/filter-methods/_eth_newfilter-description.mdx @@ -1,4 +1,7 @@ -Creates a filter object based on the given filter options, to notify when the state changes (logs). To check if the state has changed, call [`eth_getFilterChanges`](../eth_getfilterchanges). +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Creates a filter object based on the given filter options, to notify when the state changes (logs). +To check if the state has changed, call [`eth_getFilterChanges`](../eth_getfilterchanges). :::warning Expires after 15 minutes of inactivity Filters that are not polled using [`eth_getFilterChanges`](../eth_getfilterchanges) automatically diff --git a/services/reference/_partials/filter-methods/_eth_uninstallfilter-description.mdx b/services/reference/_partials/filter-methods/_eth_uninstallfilter-description.mdx index 7090b7eb6b4..c28a4645f4c 100644 --- a/services/reference/_partials/filter-methods/_eth_uninstallfilter-description.mdx +++ b/services/reference/_partials/filter-methods/_eth_uninstallfilter-description.mdx @@ -1 +1,5 @@ -Uninstalls a filter with given ID. This method should always be called when watching is no longer needed. Additionally, filters time out when they aren't requested with [`eth_getFilterChanges`](../../ethereum/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx) for a period of time. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Uninstalls a filter with given ID. This method should always be called when watching is no longer needed. +Additionally, filters time out when they aren't requested with +[`eth_getFilterChanges`](../../ethereum/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx) for a period of time. diff --git a/services/reference/_partials/subscription-methods/_eth_subscribe-description.mdx b/services/reference/_partials/subscription-methods/_eth_subscribe-description.mdx index 35c54020be3..24c2bd01fbc 100644 --- a/services/reference/_partials/subscription-methods/_eth_subscribe-description.mdx +++ b/services/reference/_partials/subscription-methods/_eth_subscribe-description.mdx @@ -1,2 +1,4 @@ +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + Creates a new subscription for particular events. The node returns a subscription ID. For each event -that matches the subscription, a notification with relevant data is sent together with the subscription ID. +that matches the subscription, a notification with relevant data is sent together with the subscription ID. diff --git a/services/reference/_partials/subscription-methods/_eth_unsubscribe-description.mdx b/services/reference/_partials/subscription-methods/_eth_unsubscribe-description.mdx index e6670afea3f..2328eb82f38 100644 --- a/services/reference/_partials/subscription-methods/_eth_unsubscribe-description.mdx +++ b/services/reference/_partials/subscription-methods/_eth_unsubscribe-description.mdx @@ -1 +1,4 @@ -Cancel subscriptions by calling this method with the subscription ID. It returns a boolean indicating that the subscription was canceled successfully. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Cancel subscriptions by calling this method with the subscription ID. It returns a boolean indicating +that the subscription was canceled successfully. diff --git a/services/reference/_partials/trace-methods/_trace_block-description.mdx b/services/reference/_partials/trace-methods/_trace_block-description.mdx index 6d3ca6d3bf1..674dbd32537 100644 --- a/services/reference/_partials/trace-methods/_trace_block-description.mdx +++ b/services/reference/_partials/trace-methods/_trace_block-description.mdx @@ -1 +1,4 @@ -Get trace information about all the transactions in a given block. This can be useful for debugging purposes or for analyzing the behavior of a blockchain. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Get trace information about all the transactions in a given block. This can be useful for debugging +purposes or for analyzing the behavior of a blockchain. diff --git a/services/reference/_partials/trace-methods/_trace_call-description.mdx b/services/reference/_partials/trace-methods/_trace_call-description.mdx index 99230ba8b58..c479c165030 100644 --- a/services/reference/_partials/trace-methods/_trace_call-description.mdx +++ b/services/reference/_partials/trace-methods/_trace_call-description.mdx @@ -1,2 +1,4 @@ -Executes the given call and returns a number of possible traces for it. Use this API to retrieve detailed information about the transaction execution, including -state changes and logs generated during the process. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Executes the given call and returns a number of possible traces for it. Use this API to retrieve detailed +information about the transaction execution, including state changes and logs generated during the process. diff --git a/services/reference/_partials/trace-methods/_trace_callmany-description.mdx b/services/reference/_partials/trace-methods/_trace_callmany-description.mdx index 06d6c293e30..b482db495da 100644 --- a/services/reference/_partials/trace-methods/_trace_callmany-description.mdx +++ b/services/reference/_partials/trace-methods/_trace_callmany-description.mdx @@ -1 +1,4 @@ -Performs multiple call-traces on top of the same block. You can analyze the interactions between different transactions and contracts. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Performs multiple call-traces on top of the same block. You can analyze the interactions between +different transactions and contracts. diff --git a/services/reference/_partials/trace-methods/_trace_filter-description.mdx b/services/reference/_partials/trace-methods/_trace_filter-description.mdx index 467bf68707f..df82352bb1f 100644 --- a/services/reference/_partials/trace-methods/_trace_filter-description.mdx +++ b/services/reference/_partials/trace-methods/_trace_filter-description.mdx @@ -1 +1,3 @@ -Returns traces matching the specified filter. The response is limited to 10000 traces per response. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns traces matching the specified filter. The response is limited to 10000 traces per response. diff --git a/services/reference/_partials/trace-methods/_trace_transaction-description.mdx b/services/reference/_partials/trace-methods/_trace_transaction-description.mdx index 829972e0fc1..e8bea09b78e 100644 --- a/services/reference/_partials/trace-methods/_trace_transaction-description.mdx +++ b/services/reference/_partials/trace-methods/_trace_transaction-description.mdx @@ -1 +1,6 @@ -Provides transaction processing of type [`trace`](../../ethereum/json-rpc-methods/trace-methods/index.md#trace) for the specified transaction. Use this API to improve smart contract performance by analyzing its internal transactions and execution steps. You can use this information to identify bottlenecks and optimize the contract for better performance. +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Provides transaction processing of type [`trace`](../../ethereum/json-rpc-methods/trace-methods/index.md#trace) +for the specified transaction. Use this API to improve smart contract performance by analyzing its +internal transactions and execution steps. You can use this information to identify bottlenecks and +optimize the contract for better performance. diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getstorageat-description.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getstorageat-description.mdx deleted file mode 100644 index 494f3ad838e..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getstorageat-description.mdx +++ /dev/null @@ -1,8 +0,0 @@ -Returns the value from a storage position at a given address. - -:::info Binance Smart Chain archive support - -- **Mainnet:** Near head requests (latest 128 blocks) and archive requests are supported. -- **Testnet:** Only near head requests are supported; archive requests are not available. - -::: diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyhash-description.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyhash-description.mdx deleted file mode 100644 index 8c0025bbca8..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyhash-description.mdx +++ /dev/null @@ -1,8 +0,0 @@ -Returns information about a transaction for a given hash. - -:::info Binance Smart Chain archive support - -- **Mainnet:** Near head requests (latest 128 blocks) and archive requests are supported. -- **Testnet:** Only near head requests are supported; archive requests are not available. - -::: \ No newline at end of file diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionreceipt-description.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionreceipt-description.mdx deleted file mode 100644 index f799cbda5e2..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionreceipt-description.mdx +++ /dev/null @@ -1,8 +0,0 @@ -Returns the receipt of a transaction given transaction hash. Note that the receipt is not available for pending transactions. - -:::info Binance Smart Chain archive support - -- **Mainnet:** Near head requests (latest 128 blocks) and archive requests are supported. -- **Testnet:** Only near head requests are supported; archive requests are not available. - -::: \ No newline at end of file diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getstorageat.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_getstorageat.mdx index d5167ee506f..e39ca2759c8 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getstorageat.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/eth_getstorageat.mdx @@ -7,12 +7,19 @@ description: Gets storage value for an address on BNB Smart Chain. import Tabs from "@theme/Tabs" import TabItem from "@theme/TabItem" -import Description from "./_eth_getstorageat-description.mdx"; +import Description from "/services/reference/_partials/_eth_getstorageat-description.mdx"; # `eth_getStorageAt` +:::info Binance Smart Chain archive support + +- **Mainnet:** Near head requests (latest 128 blocks) and archive requests are supported. +- **Testnet:** Only near head requests are supported; archive requests are not available. + +::: + ## Parameters import Params from "/services/reference/_partials/_eth_getstorageat-parameters.mdx"; diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionbyhash.mdx index be284c1ca37..ed3d469cff9 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionbyhash.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionbyhash.mdx @@ -7,10 +7,19 @@ description: Gets a transaction by hash on BNB Smart Chain. import Tabs from "@theme/Tabs" import TabItem from "@theme/TabItem" -import Description from "./_eth_gettransactionbyhash-description.mdx"; +import Description from "/services/reference/_partials/_eth_gettransactionbyhash-description.mdx"; + +# eth_getTransactionByHash +:::info Binance Smart Chain archive support + +- **Mainnet:** Near head requests (latest 128 blocks) and archive requests are supported. +- **Testnet:** Only near head requests are supported; archive requests are not available. + +::: + ## Parameters import Params from "/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx"; diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionreceipt.mdx index 73cee7b4025..297b20d5764 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionreceipt.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionreceipt.mdx @@ -7,12 +7,19 @@ description: Gets transaction receipt by transaction hash on BNB Smart Chain. import Tabs from "@theme/Tabs" import TabItem from "@theme/TabItem" -import Description from "./_eth_gettransactionreceipt-description.mdx"; +import Description from "/services/reference/_partials/_eth_gettransactionreceipt-description.mdx"; # `eth_getTransactionReceipt` +:::info Binance Smart Chain archive support + +- **Mainnet:** Near head requests (latest 128 blocks) and archive requests are supported. +- **Testnet:** Only near head requests are supported; archive requests are not available. + +::: + ## Parameters import Params from "/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx"; diff --git a/services/reference/ethereum/json-rpc-methods/_eth_gettransactionbyhash-description.mdx b/services/reference/ethereum/json-rpc-methods/_eth_gettransactionbyhash-description.mdx deleted file mode 100644 index 2ee6f7799e0..00000000000 --- a/services/reference/ethereum/json-rpc-methods/_eth_gettransactionbyhash-description.mdx +++ /dev/null @@ -1,7 +0,0 @@ -Returns information about a transaction for a given hash. - -:::tip MEV protection -Maximal Extractable Value (MEV) protection is available for all Infura customers on Mainnet. -This means `r`, `s`, and `v` signature fields might return empty hex values (`0x0`) -while the transaction is pending on Mainnet. -::: \ No newline at end of file diff --git a/services/reference/ethereum/json-rpc-methods/_eth_sendrawtransaction-description.mdx b/services/reference/ethereum/json-rpc-methods/_eth_sendrawtransaction-description.mdx deleted file mode 100644 index ad9a897cf0a..00000000000 --- a/services/reference/ethereum/json-rpc-methods/_eth_sendrawtransaction-description.mdx +++ /dev/null @@ -1,7 +0,0 @@ -Submits a pre-signed transaction for broadcast to the Ethereum network. - -:::tip MEV protection -Maximal Extractable Value (MEV) protection is available for all Infura customers on Mainnet. The method -is automatically routed to a virtual mempool before the transaction is included in a public block, protecting -against MEV strategies such as front running and sandwich attacks. -::: \ No newline at end of file diff --git a/services/reference/ethereum/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/ethereum/json-rpc-methods/eth_gettransactionbyhash.mdx index 6090755ec1d..a5b0f28c266 100644 --- a/services/reference/ethereum/json-rpc-methods/eth_gettransactionbyhash.mdx +++ b/services/reference/ethereum/json-rpc-methods/eth_gettransactionbyhash.mdx @@ -7,12 +7,18 @@ description: Gets a transaction by hash on Ethereum. import Tabs from "@theme/Tabs" import TabItem from "@theme/TabItem" -import Description from "./_eth_gettransactionbyhash-description.mdx" +import Description from "/services/reference/_partials/_eth_gettransactionbyhash-description.mdx" # `eth_getTransactionByHash` +:::tip MEV protection +Maximal Extractable Value (MEV) protection is available for all Infura customers on Mainnet. +This means `r`, `s`, and `v` signature fields might return empty hex values (`0x0`) +while the transaction is pending on Mainnet. +::: + ## Parameters import Params from "/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx" diff --git a/services/reference/ethereum/json-rpc-methods/eth_sendrawtransaction.mdx b/services/reference/ethereum/json-rpc-methods/eth_sendrawtransaction.mdx index 3c5aa639a79..975f2120cad 100644 --- a/services/reference/ethereum/json-rpc-methods/eth_sendrawtransaction.mdx +++ b/services/reference/ethereum/json-rpc-methods/eth_sendrawtransaction.mdx @@ -7,12 +7,18 @@ description: Submits pre-signed transaction on Ethereum. import Tabs from "@theme/Tabs" import TabItem from "@theme/TabItem" -import Description from "./_eth_sendrawtransaction-description.mdx" +import Description from "/services/reference/_partials/_eth_sendrawtransaction-description.mdx" # `eth_sendRawTransaction` +:::tip MEV protection +Maximal Extractable Value (MEV) protection is available for all Infura customers on Mainnet. +This means `r`, `s`, and `v` signature fields might return empty hex values (`0x0`) +while the transaction is pending on Mainnet. +::: + ## Parameters import Params from "/services/reference/_partials/_eth_sendrawtransaction-parameters.mdx" From d7d32bd4e60540364204962005e5f978588c6905 Mon Sep 17 00:00:00 2001 From: bgravenorst Date: Wed, 30 Apr 2025 09:19:08 +1000 Subject: [PATCH 04/11] Add initial method. Signed-off-by: bgravenorst --- .../_debug_traceblockbyhash-description.mdx | 1 + .../_debug_traceblockbyhash-example.mdx | 1 + .../_debug_traceblockbyhash-parameters.mdx | 7 +++ .../_debug_traceblockbyhash-request.mdx | 22 +++++++ .../_debug_traceblockbyhash-response.mdx | 63 +++++++++++++++++++ .../_debug_traceblockbyhash-returns.mdx | 2 + 6 files changed, 96 insertions(+) create mode 100644 services/reference/_partials/debug-methods/_debug_traceblockbyhash-description.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_traceblockbyhash-example.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_traceblockbyhash-parameters.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_traceblockbyhash-request.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_traceblockbyhash-response.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_traceblockbyhash-returns.mdx diff --git a/services/reference/_partials/debug-methods/_debug_traceblockbyhash-description.mdx b/services/reference/_partials/debug-methods/_debug_traceblockbyhash-description.mdx new file mode 100644 index 00000000000..6f0488833ba --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblockbyhash-description.mdx @@ -0,0 +1 @@ +Returns tracing results by executing all transactions in the block specified by the block hash. \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_traceblockbyhash-example.mdx b/services/reference/_partials/debug-methods/_debug_traceblockbyhash-example.mdx new file mode 100644 index 00000000000..061467dfe81 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblockbyhash-example.mdx @@ -0,0 +1 @@ +Replace `` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/). diff --git a/services/reference/_partials/debug-methods/_debug_traceblockbyhash-parameters.mdx b/services/reference/_partials/debug-methods/_debug_traceblockbyhash-parameters.mdx new file mode 100644 index 00000000000..766f4b25889 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblockbyhash-parameters.mdx @@ -0,0 +1,7 @@ +- `blockHash`: (string) _[required]_ hash of the block to trace. +- Optional tracing options object with the following fields: + - `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or + [`prestateTracer`](../debug/index.md#prestatetracer). + - `tracerConfig`: (object) _[optional]_ tracer configuration options: + - `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any + sub-calls. It eliminates the additional processing for each call frame. diff --git a/services/reference/_partials/debug-methods/_debug_traceblockbyhash-request.mdx b/services/reference/_partials/debug-methods/_debug_traceblockbyhash-request.mdx new file mode 100644 index 00000000000..c1f4f0f8cb1 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblockbyhash-request.mdx @@ -0,0 +1,22 @@ +import Tabs from "@theme/Tabs" +import TabItem from "@theme/TabItem" + + + + +```bash +curl https://linea-mainnet.infura.io/v3/ \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash", "params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' +``` + + + + +```bash +wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash","params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' +``` + + + diff --git a/services/reference/_partials/debug-methods/_debug_traceblockbyhash-response.mdx b/services/reference/_partials/debug-methods/_debug_traceblockbyhash-response.mdx new file mode 100644 index 00000000000..95beaeba488 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblockbyhash-response.mdx @@ -0,0 +1,63 @@ +import Tabs from "@theme/Tabs" +import TabItem from "@theme/TabItem" + + + + +```json +{ + "jsonrpc": "2.0", + "id": 1, + "result": [ + { + "result": { + "calls": [ + { + "from": "0xa0013f511c70f01c077a8f809e36b905a0d16c95", + "gas": "0x1feac", + "gasUsed": "0x9d5", + "input": "0x0902f1ac", + "output": "0x0000000000000000000000000000000000000000000000025aa314728293841e00000000000000000000000000000000000000000000000000000007a5cc7a260000000000000000000000000000000000000000000000000000000064b8c380", + "to": "0x75a97d88ff19e07da99023ef0e35e35f51869de0", + "type": "STATICCALL" + }, + { + "calls": [ + { + "from": "0xf56dc6695cf1f5c364edebc7dc7077ac9b586068", + "gas": "0x1bc78", + "gasUsed": "0x6c8f", + "input": "0x23b872dd000000000000000000000000c2aa3359b78bd4223f3434bcf6b0f3b5f5d71c8f00000000000000000000000075a97d88ff19e07da99023ef0e35e35f51869de00000000000000000000000000000000000000000000000000000000002faf080", + "output": "0x0000000000000000000000000000000000000000000000000000000000000001", + "to": "0x1c92ff898f7c34fc6ed884aec3859fd6c655c1f0", + "type": "DELEGATECALL", + "value": "0x0" + } + ], + "from": "0xa0013f511c70f01c077a8f809e36b905a0d16c95", + "gas": "0x1dfd5", + "gasUsed": "0x8907", + "input": "0x23b872dd000000000000000000000000c2aa3359b78bd4223f3434bcf6b0f3b5f5d71c8f00000000000000000000000075a97d88ff19e07da99023ef0e35e35f51869de00000000000000000000000000000000000000000000000000000000002faf080", + "output": "0x0000000000000000000000000000000000000000000000000000000000000001", + "to": "0xf56dc6695cf1f5c364edebc7dc7077ac9b586068", + "type": "CALL", + "value": "0x0" + } + ], + "from": "0xc2aa3359b78bd4223f3434bcf6b0f3b5f5d71c8f", + "gas": "0x273bd", + "gasUsed": "0x22499", + "input": "0x38ed17390000000000000000000000000000000000000000000000000000000002faf08000000000000000000000000000000000000000000000000000e8291f2bdfeff000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000c2aa3359b78bd4223f3434bcf6b0f3b5f5d71c8f0000000000000000000000000000000000000000000000000000000064b8cdb80000000000000000000000000000000000000000000000000000000000000002000000000000000000000000f56dc6695cf1f5c364edebc7dc7077ac9b586068000000000000000000000000ed4ccdd10b8b97ba9555a6767613bfb98aaf72c4", + "output": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000002faf08000000000000000000000000000000000000000000000000000e9c8a628b94ade", + "to": "0xa0013f511c70f01c077a8f809e36b905a0d16c95", + "type": "CALL", + "value": "0x0" + } + } + ... + ] +} +``` + + + diff --git a/services/reference/_partials/debug-methods/_debug_traceblockbyhash-returns.mdx b/services/reference/_partials/debug-methods/_debug_traceblockbyhash-returns.mdx new file mode 100644 index 00000000000..57a5528e4d3 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblockbyhash-returns.mdx @@ -0,0 +1,2 @@ +Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or +[`prestateTracer`](../debug/index.md#prestatetracer) object. From 4664dc2447dafa487bb119f91afd3952e079c2be Mon Sep 17 00:00:00 2001 From: bgravenorst Date: Wed, 11 Jun 2025 16:47:03 +1000 Subject: [PATCH 05/11] Add debug methods. Signed-off-by: bgravenorst --- services/get-started/pricing/credit-cost.mdx | 8 +---- .../_debug_storagerangeat-description.mdx | 3 ++ .../_debug_storagerangeat-example.mdx | 1 + .../_debug_storagerangeat-parameters.mdx | 5 +++ .../_debug_storagerangeat-request.mdx | 22 +++++++++++++ .../_debug_storagerangeat-response.mdx | 15 +++++++++ .../_debug_storagerangeat-returns.mdx | 1 + .../_debug_traceblock-description.mdx | 3 ++ .../_debug_traceblock-example.mdx | 1 + .../_debug_traceblock-parameters.mdx | 7 +++++ .../_debug_traceblock-request.mdx | 22 +++++++++++++ .../_debug_traceblock-response.mdx | 19 ++++++++++++ .../_debug_traceblock-returns.mdx | 2 ++ .../_debug_traceblockbyhash-description.mdx | 4 ++- .../_debug_traceblockbynumber-description.mdx | 3 ++ .../_debug_traceblockbynumber-example.mdx | 1 + .../_debug_traceblockbynumber-parameters.mdx | 13 ++++++++ .../_debug_traceblockbynumber-request.mdx | 22 +++++++++++++ .../_debug_traceblockbynumber-response.mdx | 31 +++++++++++++++++++ .../_debug_traceblockbynumber-returns.mdx | 2 ++ .../_debug_tracecall-description.mdx | 9 ++++++ .../_debug_tracecall-example.mdx | 1 + .../_debug_tracecall-parameters.mdx | 25 +++++++++++++++ .../_debug_tracecall-request.mdx | 22 +++++++++++++ .../_debug_tracecall-response.mdx | 15 +++++++++ .../_debug_tracecall-returns.mdx | 2 ++ .../_debug_tracetransaction-description.mdx | 3 ++ .../_debug_tracetransaction-example.mdx | 1 + .../_debug_tracetransaction-parameters.mdx | 9 ++++++ .../_debug_tracetransaction-request.mdx | 22 +++++++++++++ .../_debug_tracetransaction-response.mdx | 15 +++++++++ .../_debug_tracetransaction-returns.mdx | 2 ++ .../_eth_getfilterchanges-description.mdx | 2 +- .../_eth_getfilterlogs-description.mdx | 2 +- .../_eth_newblockfilter-description.mdx | 2 +- .../_eth_newfilter-description.mdx | 2 +- .../_eth_uninstallfilter-description.mdx | 2 +- .../_trace_block-description.mdx | 2 +- .../trace-methods/_trace_call-description.mdx | 2 +- .../_trace_callmany-description.mdx | 2 +- .../_trace_filter-description.mdx | 2 +- .../_trace_transaction-description.mdx | 2 +- src/lib/data.js | 7 +++++ 43 files changed, 320 insertions(+), 18 deletions(-) create mode 100644 services/reference/_partials/debug-methods/_debug_storagerangeat-description.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_storagerangeat-example.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_storagerangeat-parameters.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_storagerangeat-request.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_storagerangeat-response.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_storagerangeat-returns.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_traceblock-description.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_traceblock-example.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_traceblock-parameters.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_traceblock-request.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_traceblock-response.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_traceblock-returns.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_traceblockbynumber-description.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_traceblockbynumber-example.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_traceblockbynumber-parameters.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_traceblockbynumber-request.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_traceblockbynumber-response.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_traceblockbynumber-returns.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_tracecall-description.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_tracecall-example.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_tracecall-parameters.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_tracecall-request.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_tracecall-response.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_tracecall-returns.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_tracetransaction-description.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_tracetransaction-example.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_tracetransaction-parameters.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_tracetransaction-request.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_tracetransaction-response.mdx create mode 100644 services/reference/_partials/debug-methods/_debug_tracetransaction-returns.mdx diff --git a/services/get-started/pricing/credit-cost.mdx b/services/get-started/pricing/credit-cost.mdx index 90829d283cc..f80632f19e3 100644 --- a/services/get-started/pricing/credit-cost.mdx +++ b/services/get-started/pricing/credit-cost.mdx @@ -54,13 +54,7 @@ a specific network, then use the default Ethereum method's credit cost. ### Filter methods -| RPC method | Credit cost | -|-----------------------------------|-------------| -| `eth_getFilterChanges` | 140 | -| `eth_getFilterLogs` | 255 | -| `eth_newBlockFilter` | 80 | -| `eth_newFilter` | 80 | -| `eth_uninstallFilter` | 80 | + ### Debug methods diff --git a/services/reference/_partials/debug-methods/_debug_storagerangeat-description.mdx b/services/reference/_partials/debug-methods/_debug_storagerangeat-description.mdx new file mode 100644 index 00000000000..a2ce55c175f --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_storagerangeat-description.mdx @@ -0,0 +1,3 @@ +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the contract storage for the specified range. \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_storagerangeat-example.mdx b/services/reference/_partials/debug-methods/_debug_storagerangeat-example.mdx new file mode 100644 index 00000000000..02c1cbe2926 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_storagerangeat-example.mdx @@ -0,0 +1 @@ +Replace `` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/). \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_storagerangeat-parameters.mdx b/services/reference/_partials/debug-methods/_debug_storagerangeat-parameters.mdx new file mode 100644 index 00000000000..f84835b346d --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_storagerangeat-parameters.mdx @@ -0,0 +1,5 @@ +- `blockHash` : (string) _[required]_ hash of the block to trace. +- `txIndex`: (number) _[required]_ transaction index from which to start. +- `address`: (string) _[required]_ contract address. +- `startKey`: (string) _[required]_ - hash of the storage key at which to start. +- `limit`: (number) _[required]_ number of storage entries to return. \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_storagerangeat-request.mdx b/services/reference/_partials/debug-methods/_debug_storagerangeat-request.mdx new file mode 100644 index 00000000000..29fd2d6ad13 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_storagerangeat-request.mdx @@ -0,0 +1,22 @@ +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + + + + +```bash +curl https://mantle-mainnet.infura.io/v3/ \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "debug_storageRangeAt", "params": ["0x7aaff18735842066baee6a2eb53961a69e67f5e012072c81c05a0fd793069a6c", 0, "0x371c7ec6D8039ff7933a2AA28EB827Ffe1F52f07", "0x0000000000000000000000000000000000000000000000000000000000000000", 1], "id": 1}' +``` + + + + +```bash +wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x'{"jsonrpc": "2.0", "method": "debug_storageRangeAt", "params": ["0x7aaff18735842066baee6a2eb53961a69e67f5e012072c81c05a0fd793069a6c", 0, "0x371c7ec6D8039ff7933a2AA28EB827Ffe1F52f07", "0x0000000000000000000000000000000000000000000000000000000000000000", 1], "id": 1}' +``` + + + \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_storagerangeat-response.mdx b/services/reference/_partials/debug-methods/_debug_storagerangeat-response.mdx new file mode 100644 index 00000000000..bddf7d0088f --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_storagerangeat-response.mdx @@ -0,0 +1,15 @@ +```json +{ + "jsonrpc": "2.0", + "id": 1, + "result": { + "storage": { + "0x0001187ffafb4707176f1c510f173cdcc2a48cb15bdc894c424897555968a831": { + "key": "0x85929f3b98e0d49f6ba064139f82d0fa9b5cf0eaf629d07b9a7301e222a63173", + "value": "0x00000000000000000000000000000000000000000000000000000000b478ed24" + } + }, + "nextKey": "0x000b5c2024e6480c554272610fdfb9437f2aee44f6f04d396469e6adbcedc03b" + } +} +``` \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_storagerangeat-returns.mdx b/services/reference/_partials/debug-methods/_debug_storagerangeat-returns.mdx new file mode 100644 index 00000000000..aafd0b7848f --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_storagerangeat-returns.mdx @@ -0,0 +1 @@ +An object with the storage hash values, and for each of them the key and value it represents. \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_traceblock-description.mdx b/services/reference/_partials/debug-methods/_debug_traceblock-description.mdx new file mode 100644 index 00000000000..7c840ab2329 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblock-description.mdx @@ -0,0 +1,3 @@ +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns a full trace of all invoked opcodes of all transactions included in the block. \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_traceblock-example.mdx b/services/reference/_partials/debug-methods/_debug_traceblock-example.mdx new file mode 100644 index 00000000000..02c1cbe2926 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblock-example.mdx @@ -0,0 +1 @@ +Replace `` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/). \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_traceblock-parameters.mdx b/services/reference/_partials/debug-methods/_debug_traceblock-parameters.mdx new file mode 100644 index 00000000000..f302454aa10 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblock-parameters.mdx @@ -0,0 +1,7 @@ +- `block`: (string) RLP of the block +- Optional tracing options object with the following fields: + - `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or + [`prestateTracer`](../debug/index.md#prestatetracer). + - `tracerConfig`: (object) _[optional]_ tracer configuration options: + - `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any + sub-calls. It eliminates the additional processing for each call frame. \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_traceblock-request.mdx b/services/reference/_partials/debug-methods/_debug_traceblock-request.mdx new file mode 100644 index 00000000000..c9ee192252a --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblock-request.mdx @@ -0,0 +1,22 @@ +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + + + + +```bash +curl https://scroll-mainnet.infura.io/v3/ \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "debug_traceBlock", "params": ["0xf90277f90208a05a41d0e66b4120775176c09fcf39e7c0520517a13d2b57b18d33d342df038bfca01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794e6a7a1d47ff21b6321162aea7c6cb457d5476bcaa00e0df2706b0a4fb8bd08c9246d472abbe850af446405d9eba1db41db18b4a169a04513310fcb9f6f616972a3b948dc5d547f280849a87ebb5af0191f98b87be598a0fe2bf2a941abf41d72637e5b91750332a30283efd40c424dc522b77e6f0ed8c4b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000860153886c1bbd82b44382520b8252088455c426598b657468706f6f6c2e6f7267a0b48c515a9dde8d346c3337ea520aa995a4738bb595495506125449c1149d6cf488ba4f8ecd18aab215f869f86780862d79883d2000825208945df9b87991262f6ba471f09758cde1c0fc1de734827a69801ca088ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0a045e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33ac0", {"tracer": "callTracer"}], "id": 1}' +``` + + + + +```bash +wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x'{"jsonrpc": "2.0", "method": "debug_traceBlock", "params": ["0xf90277f90208a05a41d0e66b4120775176c09fcf39e7c0520517a13d2b57b18d33d342df038bfca01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794e6a7a1d47ff21b6321162aea7c6cb457d5476bcaa00e0df2706b0a4fb8bd08c9246d472abbe850af446405d9eba1db41db18b4a169a04513310fcb9f6f616972a3b948dc5d547f280849a87ebb5af0191f98b87be598a0fe2bf2a941abf41d72637e5b91750332a30283efd40c424dc522b77e6f0ed8c4b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000860153886c1bbd82b44382520b8252088455c426598b657468706f6f6c2e6f7267a0b48c515a9dde8d346c3337ea520aa995a4738bb595495506125449c1149d6cf488ba4f8ecd18aab215f869f86780862d79883d2000825208945df9b87991262f6ba471f09758cde1c0fc1de734827a69801ca088ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0a045e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33ac0", {"tracer": "callTracer"}], "id": 1}' +``` + + + \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_traceblock-response.mdx b/services/reference/_partials/debug-methods/_debug_traceblock-response.mdx new file mode 100644 index 00000000000..62c884a0bde --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblock-response.mdx @@ -0,0 +1,19 @@ +```json +{ + "id": 1, + "jsonrpc": "2.0", + "result": [ + { + "result": { + "from": "0x8894e0a0c962cb723c1976a4421c95949be2d4e3", + "gas": "0x2d48c", + "gasUsed": "0xc7ab", + "to": "0x55d398326f99059ff775485246999027b3197955", + "input": "0xa9059cbb0000000000000000000000003b9f33b3a9d382fa60283c555bde8f78855957be00000000000000000000000000000000000000000000000d4e7f4f79da7c0000", + "output": "0x0000000000000000000000000000000000000000000000000000000000000001", + "value": "0x0", + "type": "CALL" + } + } + ] +} \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_traceblock-returns.mdx b/services/reference/_partials/debug-methods/_debug_traceblock-returns.mdx new file mode 100644 index 00000000000..c6651004971 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblock-returns.mdx @@ -0,0 +1,2 @@ +Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or +[`prestateTracer`](../debug/index.md#prestatetracer) object. \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_traceblockbyhash-description.mdx b/services/reference/_partials/debug-methods/_debug_traceblockbyhash-description.mdx index 6f0488833ba..abd022ba5e2 100644 --- a/services/reference/_partials/debug-methods/_debug_traceblockbyhash-description.mdx +++ b/services/reference/_partials/debug-methods/_debug_traceblockbyhash-description.mdx @@ -1 +1,3 @@ -Returns tracing results by executing all transactions in the block specified by the block hash. \ No newline at end of file +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns tracing results by executing all transactions in the block specified by the block hash. \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_traceblockbynumber-description.mdx b/services/reference/_partials/debug-methods/_debug_traceblockbynumber-description.mdx new file mode 100644 index 00000000000..d976d841ec3 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblockbynumber-description.mdx @@ -0,0 +1,3 @@ +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns tracing results by executing all transactions in the specified block number. \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_traceblockbynumber-example.mdx b/services/reference/_partials/debug-methods/_debug_traceblockbynumber-example.mdx new file mode 100644 index 00000000000..061467dfe81 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblockbynumber-example.mdx @@ -0,0 +1 @@ +Replace `` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/). diff --git a/services/reference/_partials/debug-methods/_debug_traceblockbynumber-parameters.mdx b/services/reference/_partials/debug-methods/_debug_traceblockbynumber-parameters.mdx new file mode 100644 index 00000000000..7529d27e673 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblockbynumber-parameters.mdx @@ -0,0 +1,13 @@ +- `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). + + :::warning + `safe` isn't supported. Use `finalized` instead. + Learn more about [Linea's layer 2 finalization](https://docs.linea.build/developers/guides/finalized-block). + ::: + +- Optional tracing options object with the following fields: + - `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or + [`prestateTracer`](../debug/index.md#prestatetracer). + - `tracerConfig`: (object) _[optional]_ tracer configuration options: + - `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any + sub-calls. It eliminates the additional processing for each call frame. \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_traceblockbynumber-request.mdx b/services/reference/_partials/debug-methods/_debug_traceblockbynumber-request.mdx new file mode 100644 index 00000000000..a51179788f7 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblockbynumber-request.mdx @@ -0,0 +1,22 @@ +import Tabs from "@theme/Tabs" +import TabItem from "@theme/TabItem" + + + + +```bash +curl https://linea-mainnet.infura.io/v3/ \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' +``` + + + +```bash +wscat -c wss://linea-mainnet.infura.io/ws/v3/ \ +-x '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' +``` + + + \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_traceblockbynumber-response.mdx b/services/reference/_partials/debug-methods/_debug_traceblockbynumber-response.mdx new file mode 100644 index 00000000000..f02c70a5b76 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblockbynumber-response.mdx @@ -0,0 +1,31 @@ +```json +{ + "jsonrpc": "2.0", + "id": 1, + "result": [ + { + "result": { + "from": "0xa5ba45f484bc67fe293cf01f7d92d5ba3514dd42", + "gas": "0x5208", + "gasUsed": "0x5208", + "input": "0x", + "to": "0x45a318273749d6eb00f5f6ca3bc7cd3de26d642a", + "type": "CALL", + "value": "0x2ca186f5fda8004" + } + }, + { + "result": { + "from": "0x25f2650cc9e8ad863bf5da6a7598e24271574e29", + "gas": "0xfe0e", + "gasUsed": "0xafee", + "input": "0xd0e30db0", + "to": "0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f", + "type": "CALL", + "value": "0x2386f26fc10000" + } + }, + ... + ] +} +``` \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_traceblockbynumber-returns.mdx b/services/reference/_partials/debug-methods/_debug_traceblockbynumber-returns.mdx new file mode 100644 index 00000000000..c6651004971 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_traceblockbynumber-returns.mdx @@ -0,0 +1,2 @@ +Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or +[`prestateTracer`](../debug/index.md#prestatetracer) object. \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_tracecall-description.mdx b/services/reference/_partials/debug-methods/_debug_tracecall-description.mdx new file mode 100644 index 00000000000..f084f96b253 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_tracecall-description.mdx @@ -0,0 +1,9 @@ +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns the number of possible tracing result by executing an `eth_call` within the context of the +given block execution. + +:::caution Limited access +Infura restricts `debug_traceCall` to a select set of customers. Please +[contact the Infura support team](https://support.infura.io/ipfs) to ask about custom plans. +::: \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_tracecall-example.mdx b/services/reference/_partials/debug-methods/_debug_tracecall-example.mdx new file mode 100644 index 00000000000..02c1cbe2926 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_tracecall-example.mdx @@ -0,0 +1 @@ +Replace `` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/). \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_tracecall-parameters.mdx b/services/reference/_partials/debug-methods/_debug_tracecall-parameters.mdx new file mode 100644 index 00000000000..db5c61b8b5d --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_tracecall-parameters.mdx @@ -0,0 +1,25 @@ +- Transaction object with the following fields: + - `from`: (string) address (20 bytes) the transaction is sent from. + - `to`: (string) _[required]_ address (20 bytes) the transaction is directed to. + - `gas`: (string) hexadecimal value of the gas provided for the transaction execution. `eth_call` consumes zero + gas, but this parameter may be needed by some executions. + - `gasPrice`: (string) hexadecimal value of the `gasPrice` used for each paid gas. + - `maxPriorityFeePerGas`: (string) maximum fee, in wei, the sender is willing to pay per gas above the base fee. + - `maxFeePerGas`: (string) maximum total fee (base fee + priority fee), in wei, the sender is willing to pay per gas. + - `value`: (string) hexadecimal of the value sent with this transaction. + - `data`: (string) hash of the method signature and encoded parameters. + See [Ethereum contract ABI specification](https://docs.soliditylang.org/en/latest/abi-spec.html). +- `block parameter`: [_Required_] hexadecimal block number, or one of the string tags + `latest`, `earliest`, `pending`, or `finalized`. + See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). + + :::warning + `safe` isn't supported. Use `finalized` instead. + ::: + +- Optional tracing options object with the following fields: + - `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or + [`prestateTracer`](../debug/index.md#prestatetracer). + - `tracerConfig`: (object) _[optional]_ tracer configuration options: + - `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any + sub-calls. It eliminates the additional processing for each call frame. \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_tracecall-request.mdx b/services/reference/_partials/debug-methods/_debug_tracecall-request.mdx new file mode 100644 index 00000000000..f2686e53b6a --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_tracecall-request.mdx @@ -0,0 +1,22 @@ +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + + + + +```bash +curl https://scroll-mainnet.infura.io/v3/ \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' +``` + + + + +```bash +wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' +``` + + + \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_tracecall-response.mdx b/services/reference/_partials/debug-methods/_debug_tracecall-response.mdx new file mode 100644 index 00000000000..76187684efc --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_tracecall-response.mdx @@ -0,0 +1,15 @@ +```json +{ + "jsonrpc": "2.0", + "id": 1, + "result": { + "from": "0x0000000000000000000000000000000000000000", + "gas": "0x28cc0", + "gasUsed": "0x3635000", + "to": "0x6b175474e89094c44da98b954eedeac495271d0f", + "input": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be", + "value": "0x0", + "type": "CALL" + } +} +``` \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_tracecall-returns.mdx b/services/reference/_partials/debug-methods/_debug_tracecall-returns.mdx new file mode 100644 index 00000000000..c6651004971 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_tracecall-returns.mdx @@ -0,0 +1,2 @@ +Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or +[`prestateTracer`](../debug/index.md#prestatetracer) object. \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_tracetransaction-description.mdx b/services/reference/_partials/debug-methods/_debug_tracetransaction-description.mdx new file mode 100644 index 00000000000..7188bedbc0f --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_tracetransaction-description.mdx @@ -0,0 +1,3 @@ +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; + +Returns tracing results for the specified transaction. \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_tracetransaction-example.mdx b/services/reference/_partials/debug-methods/_debug_tracetransaction-example.mdx new file mode 100644 index 00000000000..02c1cbe2926 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_tracetransaction-example.mdx @@ -0,0 +1 @@ +Replace `` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/). \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_tracetransaction-parameters.mdx b/services/reference/_partials/debug-methods/_debug_tracetransaction-parameters.mdx new file mode 100644 index 00000000000..858252d8796 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_tracetransaction-parameters.mdx @@ -0,0 +1,9 @@ +- `transactionHash`: (string) _[required]_ hash of the block to trace. +- Optional tracing options object with the following fields: + - `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or + [`prestateTracer`](../debug/index.md#prestatetracer). + - `tracerConfig`: (object) _[optional]_ tracer configuration options: + - `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any + sub-calls. It eliminates the additional processing for each call frame. + - `timeout`: (string) _[optional]_ string of decimals numbers to set the timeout. The default is 5 seconds. The maximum + timeout is 10 seconds. Valid units are `ns`, `us`, `ms`, `s`. For example, `3s30ms`. \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_tracetransaction-request.mdx b/services/reference/_partials/debug-methods/_debug_tracetransaction-request.mdx new file mode 100644 index 00000000000..e75213fcc49 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_tracetransaction-request.mdx @@ -0,0 +1,22 @@ +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + + + + +```bash +curl https://linea-mainnet.infura.io/v3/ \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0x5d3faa9b9605a8fb04d989a79bfe6d3b708bdcfc66048d2fe18ed2dda4a8297c", {"tracer": "callTracer"}], "id": 1}' +``` + + + + +```bash +wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0x5d3faa9b9605a8fb04d989a79bfe6d3b708bdcfc66048d2fe18ed2dda4a8297c", {"tracer": "callTracer"}], "id": 1}' +``` + + + \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_tracetransaction-response.mdx b/services/reference/_partials/debug-methods/_debug_tracetransaction-response.mdx new file mode 100644 index 00000000000..c5b687c16d0 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_tracetransaction-response.mdx @@ -0,0 +1,15 @@ +```json +{ + "jsonrpc": "2.0", + "id": 1, + "result": { + "from": "0xa5ba45f484bc67fe293cf01f7d92d5ba3514dd42", + "gas": "0x5208", + "gasUsed": "0x5208", + "input": "0x", + "to": "0x45a318273749d6eb00f5f6ca3bc7cd3de26d642a", + "type": "CALL", + "value": "0x2ca186f5fda8004" + } +} +``` \ No newline at end of file diff --git a/services/reference/_partials/debug-methods/_debug_tracetransaction-returns.mdx b/services/reference/_partials/debug-methods/_debug_tracetransaction-returns.mdx new file mode 100644 index 00000000000..c6651004971 --- /dev/null +++ b/services/reference/_partials/debug-methods/_debug_tracetransaction-returns.mdx @@ -0,0 +1,2 @@ +Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or +[`prestateTracer`](../debug/index.md#prestatetracer) object. \ No newline at end of file diff --git a/services/reference/_partials/filter-methods/_eth_getfilterchanges-description.mdx b/services/reference/_partials/filter-methods/_eth_getfilterchanges-description.mdx index efba826c13c..e2da05caa61 100644 --- a/services/reference/_partials/filter-methods/_eth_getfilterchanges-description.mdx +++ b/services/reference/_partials/filter-methods/_eth_getfilterchanges-description.mdx @@ -1,5 +1,5 @@ import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; -Polling method for a filter, which returns an array of logs which occurred since the last poll. +Polling method for a filter, which returns an array of logs which occurred since the last poll. Filter must be created by calling either [`eth_newFilter`](../eth_newfilter) or [`eth_newBlockFilter`](../eth_newblockfilter). diff --git a/services/reference/_partials/filter-methods/_eth_getfilterlogs-description.mdx b/services/reference/_partials/filter-methods/_eth_getfilterlogs-description.mdx index d4904d0abda..8acc9eb2039 100644 --- a/services/reference/_partials/filter-methods/_eth_getfilterlogs-description.mdx +++ b/services/reference/_partials/filter-methods/_eth_getfilterlogs-description.mdx @@ -1,3 +1,3 @@ import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; -Returns an array of all logs matching the filter with the given filter ID. +Returns an array of all logs matching the filter with the given filter ID. diff --git a/services/reference/_partials/filter-methods/_eth_newblockfilter-description.mdx b/services/reference/_partials/filter-methods/_eth_newblockfilter-description.mdx index e2f330391b1..e17839a43a6 100644 --- a/services/reference/_partials/filter-methods/_eth_newblockfilter-description.mdx +++ b/services/reference/_partials/filter-methods/_eth_newblockfilter-description.mdx @@ -1,7 +1,7 @@ import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; Creates a filter in the node, to notify when a new block arrives. To check if the state has -changed, call [`eth_getFilterChanges`](../eth_getfilterchanges). +changed, call [`eth_getFilterChanges`](../eth_getfilterchanges). :::warning Expires after 15 minutes of inactivity Filters that are not polled using [`eth_getFilterChanges`](../eth_getfilterchanges) automatically diff --git a/services/reference/_partials/filter-methods/_eth_newfilter-description.mdx b/services/reference/_partials/filter-methods/_eth_newfilter-description.mdx index daf02fa0a79..32b8cbdff18 100644 --- a/services/reference/_partials/filter-methods/_eth_newfilter-description.mdx +++ b/services/reference/_partials/filter-methods/_eth_newfilter-description.mdx @@ -1,7 +1,7 @@ import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; Creates a filter object based on the given filter options, to notify when the state changes (logs). -To check if the state has changed, call [`eth_getFilterChanges`](../eth_getfilterchanges). +To check if the state has changed, call [`eth_getFilterChanges`](../eth_getfilterchanges). :::warning Expires after 15 minutes of inactivity Filters that are not polled using [`eth_getFilterChanges`](../eth_getfilterchanges) automatically diff --git a/services/reference/_partials/filter-methods/_eth_uninstallfilter-description.mdx b/services/reference/_partials/filter-methods/_eth_uninstallfilter-description.mdx index c28a4645f4c..118e70d8164 100644 --- a/services/reference/_partials/filter-methods/_eth_uninstallfilter-description.mdx +++ b/services/reference/_partials/filter-methods/_eth_uninstallfilter-description.mdx @@ -2,4 +2,4 @@ import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; Uninstalls a filter with given ID. This method should always be called when watching is no longer needed. Additionally, filters time out when they aren't requested with -[`eth_getFilterChanges`](../../ethereum/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx) for a period of time. +[`eth_getFilterChanges`](../../ethereum/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx) for a period of time. diff --git a/services/reference/_partials/trace-methods/_trace_block-description.mdx b/services/reference/_partials/trace-methods/_trace_block-description.mdx index 674dbd32537..c93bea36f2b 100644 --- a/services/reference/_partials/trace-methods/_trace_block-description.mdx +++ b/services/reference/_partials/trace-methods/_trace_block-description.mdx @@ -1,4 +1,4 @@ import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; Get trace information about all the transactions in a given block. This can be useful for debugging -purposes or for analyzing the behavior of a blockchain. +purposes or for analyzing the behavior of a blockchain. diff --git a/services/reference/_partials/trace-methods/_trace_call-description.mdx b/services/reference/_partials/trace-methods/_trace_call-description.mdx index c479c165030..87f49d87ca4 100644 --- a/services/reference/_partials/trace-methods/_trace_call-description.mdx +++ b/services/reference/_partials/trace-methods/_trace_call-description.mdx @@ -1,4 +1,4 @@ import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; Executes the given call and returns a number of possible traces for it. Use this API to retrieve detailed -information about the transaction execution, including state changes and logs generated during the process. +information about the transaction execution, including state changes and logs generated during the process. diff --git a/services/reference/_partials/trace-methods/_trace_callmany-description.mdx b/services/reference/_partials/trace-methods/_trace_callmany-description.mdx index b482db495da..73568d2b9c4 100644 --- a/services/reference/_partials/trace-methods/_trace_callmany-description.mdx +++ b/services/reference/_partials/trace-methods/_trace_callmany-description.mdx @@ -1,4 +1,4 @@ import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; Performs multiple call-traces on top of the same block. You can analyze the interactions between -different transactions and contracts. +different transactions and contracts. diff --git a/services/reference/_partials/trace-methods/_trace_filter-description.mdx b/services/reference/_partials/trace-methods/_trace_filter-description.mdx index df82352bb1f..84ebdbc95e5 100644 --- a/services/reference/_partials/trace-methods/_trace_filter-description.mdx +++ b/services/reference/_partials/trace-methods/_trace_filter-description.mdx @@ -1,3 +1,3 @@ import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; -Returns traces matching the specified filter. The response is limited to 10000 traces per response. +Returns traces matching the specified filter. The response is limited to 10000 traces per response. diff --git a/services/reference/_partials/trace-methods/_trace_transaction-description.mdx b/services/reference/_partials/trace-methods/_trace_transaction-description.mdx index e8bea09b78e..fb442094ea5 100644 --- a/services/reference/_partials/trace-methods/_trace_transaction-description.mdx +++ b/services/reference/_partials/trace-methods/_trace_transaction-description.mdx @@ -3,4 +3,4 @@ import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; Provides transaction processing of type [`trace`](../../ethereum/json-rpc-methods/trace-methods/index.md#trace) for the specified transaction. Use this API to improve smart contract performance by analyzing its internal transactions and execution steps. You can use this information to identify bottlenecks and -optimize the contract for better performance. +optimize the contract for better performance. diff --git a/src/lib/data.js b/src/lib/data.js index d45897ad627..e8e96074f3b 100644 --- a/src/lib/data.js +++ b/src/lib/data.js @@ -204,6 +204,13 @@ export const API_COSTS = { 'newHeads': 50, 'newPendingTransaction': 200, }, + evm_filter: { + 'eth_getFilterChanges': 140, + 'eth_getFilterLogs': 255, + 'eth_newBlockFilter': 80, + 'eth_newFilter': 80, + 'eth_uninstallFilter': 80, + }, linea: { 'linea_estimateGas': 100, }, From af9fe0457f016724fa616f3501e746910dd46348 Mon Sep 17 00:00:00 2001 From: bgravenorst Date: Thu, 12 Jun 2025 09:28:53 +1000 Subject: [PATCH 06/11] Add debug methods. Signed-off-by: bgravenorst --- .../_debug_storagerangeat-request.mdx | 4 +- .../_debug_traceblock-request.mdx | 4 +- .../_debug_traceblockbyhash-request.mdx | 4 +- .../_debug_traceblockbynumber-request.mdx | 4 +- .../_debug_tracecall-request.mdx | 4 +- .../_debug_tracetransaction-request.mdx | 4 +- .../debug/_debug_traceblockbyhash-request.mdx | 22 ++++ .../_debug_traceblockbynumber-request.mdx | 22 ++++ .../debug/_debug_tracetransaction-request.mdx | 22 ++++ .../debug/debug_traceblockbyhash.md | 108 ------------------ .../debug/debug_traceblockbyhash.mdx | 44 +++++++ .../debug/debug_traceblockbynumber.md | 90 --------------- .../debug/debug_traceblockbynumber.mdx | 44 +++++++ .../debug/debug_tracetransaction.md | 71 ------------ .../debug/debug_tracetransaction.mdx | 44 +++++++ .../linea/json-rpc-methods/debug/index.md | 6 +- .../debug/_debug_storagerangeat-request.mdx | 22 ++++ ...block.md => _debug_traceblock-request.mdx} | 56 +-------- .../debug/_debug_traceblockbyhash-request.mdx | 22 ++++ .../_debug_traceblockbynumber-request.mdx | 22 ++++ .../debug/_debug_tracecall-request.mdx | 22 ++++ .../debug/_debug_tracetransaction-request.mdx | 22 ++++ .../debug/debug_storagerangeat.md | 68 ----------- .../debug/debug_storagerangeat.mdx | 44 +++++++ .../debug/debug_traceblock.mdx | 44 +++++++ .../debug/debug_traceblockbyhash.md | 84 -------------- .../debug/debug_traceblockbyhash.mdx | 44 +++++++ .../debug/debug_traceblockbynumber.md | 88 -------------- .../debug/debug_traceblockbynumber.mdx | 44 +++++++ .../json-rpc-methods/debug/debug_tracecall.md | 87 -------------- .../debug/debug_tracecall.mdx | 44 +++++++ .../debug/debug_tracetransaction.md | 86 -------------- .../debug/debug_tracetransaction.mdx | 44 +++++++ ...block.md => _debug_traceblock-request.mdx} | 56 +-------- .../debug/_debug_traceblockbyhash-request.mdx | 22 ++++ .../_debug_traceblockbynumber-request.mdx | 22 ++++ .../debug/_debug_tracecall-request.mdx | 22 ++++ .../debug/debug_traceblock.mdx | 44 +++++++ .../debug/debug_traceblockbyhash.md | 90 --------------- .../debug/debug_traceblockbyhash.mdx | 44 +++++++ .../debug/debug_traceblockbynumber.md | 88 -------------- .../debug/debug_traceblockbynumber.mdx | 44 +++++++ .../json-rpc-methods/debug/debug_tracecall.md | 97 ---------------- .../debug/debug_tracecall.mdx | 44 +++++++ 44 files changed, 831 insertions(+), 1082 deletions(-) create mode 100644 services/reference/linea/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx create mode 100644 services/reference/linea/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx create mode 100644 services/reference/linea/json-rpc-methods/debug/_debug_tracetransaction-request.mdx delete mode 100644 services/reference/linea/json-rpc-methods/debug/debug_traceblockbyhash.md create mode 100644 services/reference/linea/json-rpc-methods/debug/debug_traceblockbyhash.mdx delete mode 100644 services/reference/linea/json-rpc-methods/debug/debug_traceblockbynumber.md create mode 100644 services/reference/linea/json-rpc-methods/debug/debug_traceblockbynumber.mdx delete mode 100644 services/reference/linea/json-rpc-methods/debug/debug_tracetransaction.md create mode 100644 services/reference/linea/json-rpc-methods/debug/debug_tracetransaction.mdx create mode 100644 services/reference/mantle/json-rpc-methods/debug/_debug_storagerangeat-request.mdx rename services/reference/mantle/json-rpc-methods/debug/{debug_traceblock.md => _debug_traceblock-request.mdx} (64%) create mode 100644 services/reference/mantle/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx create mode 100644 services/reference/mantle/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx create mode 100644 services/reference/mantle/json-rpc-methods/debug/_debug_tracecall-request.mdx create mode 100644 services/reference/mantle/json-rpc-methods/debug/_debug_tracetransaction-request.mdx delete mode 100644 services/reference/mantle/json-rpc-methods/debug/debug_storagerangeat.md create mode 100644 services/reference/mantle/json-rpc-methods/debug/debug_storagerangeat.mdx create mode 100644 services/reference/mantle/json-rpc-methods/debug/debug_traceblock.mdx delete mode 100644 services/reference/mantle/json-rpc-methods/debug/debug_traceblockbyhash.md create mode 100644 services/reference/mantle/json-rpc-methods/debug/debug_traceblockbyhash.mdx delete mode 100644 services/reference/mantle/json-rpc-methods/debug/debug_traceblockbynumber.md create mode 100644 services/reference/mantle/json-rpc-methods/debug/debug_traceblockbynumber.mdx delete mode 100644 services/reference/mantle/json-rpc-methods/debug/debug_tracecall.md create mode 100644 services/reference/mantle/json-rpc-methods/debug/debug_tracecall.mdx delete mode 100644 services/reference/mantle/json-rpc-methods/debug/debug_tracetransaction.md create mode 100644 services/reference/mantle/json-rpc-methods/debug/debug_tracetransaction.mdx rename services/reference/scroll/json-rpc-methods/debug/{debug_traceblock.md => _debug_traceblock-request.mdx} (64%) create mode 100644 services/reference/scroll/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx create mode 100644 services/reference/scroll/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx create mode 100644 services/reference/scroll/json-rpc-methods/debug/_debug_tracecall-request.mdx create mode 100644 services/reference/scroll/json-rpc-methods/debug/debug_traceblock.mdx delete mode 100644 services/reference/scroll/json-rpc-methods/debug/debug_traceblockbyhash.md create mode 100644 services/reference/scroll/json-rpc-methods/debug/debug_traceblockbyhash.mdx delete mode 100644 services/reference/scroll/json-rpc-methods/debug/debug_traceblockbynumber.md create mode 100644 services/reference/scroll/json-rpc-methods/debug/debug_traceblockbynumber.mdx delete mode 100644 services/reference/scroll/json-rpc-methods/debug/debug_tracecall.md create mode 100644 services/reference/scroll/json-rpc-methods/debug/debug_tracecall.mdx diff --git a/services/reference/_partials/debug-methods/_debug_storagerangeat-request.mdx b/services/reference/_partials/debug-methods/_debug_storagerangeat-request.mdx index 29fd2d6ad13..b261f2753d6 100644 --- a/services/reference/_partials/debug-methods/_debug_storagerangeat-request.mdx +++ b/services/reference/_partials/debug-methods/_debug_storagerangeat-request.mdx @@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"; ```bash -curl https://mantle-mainnet.infura.io/v3/ \ +curl https://mainnet.infura.io/v3/ \ -X POST \ -H "Content-Type: application/json" \ -d '{"jsonrpc": "2.0", "method": "debug_storageRangeAt", "params": ["0x7aaff18735842066baee6a2eb53961a69e67f5e012072c81c05a0fd793069a6c", 0, "0x371c7ec6D8039ff7933a2AA28EB827Ffe1F52f07", "0x0000000000000000000000000000000000000000000000000000000000000000", 1], "id": 1}' @@ -15,7 +15,7 @@ curl https://mantle-mainnet.infura.io/v3/ \ ```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x'{"jsonrpc": "2.0", "method": "debug_storageRangeAt", "params": ["0x7aaff18735842066baee6a2eb53961a69e67f5e012072c81c05a0fd793069a6c", 0, "0x371c7ec6D8039ff7933a2AA28EB827Ffe1F52f07", "0x0000000000000000000000000000000000000000000000000000000000000000", 1], "id": 1}' +wscat -c wss://mainnet.infura.io/ws/v3/ -x'{"jsonrpc": "2.0", "method": "debug_storageRangeAt", "params": ["0x7aaff18735842066baee6a2eb53961a69e67f5e012072c81c05a0fd793069a6c", 0, "0x371c7ec6D8039ff7933a2AA28EB827Ffe1F52f07", "0x0000000000000000000000000000000000000000000000000000000000000000", 1], "id": 1}' ``` diff --git a/services/reference/_partials/debug-methods/_debug_traceblock-request.mdx b/services/reference/_partials/debug-methods/_debug_traceblock-request.mdx index c9ee192252a..f33429b3a5c 100644 --- a/services/reference/_partials/debug-methods/_debug_traceblock-request.mdx +++ b/services/reference/_partials/debug-methods/_debug_traceblock-request.mdx @@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"; ```bash -curl https://scroll-mainnet.infura.io/v3/ \ +curl https://mainnet.infura.io/v3/ \ -X POST \ -H "Content-Type: application/json" \ -d '{"jsonrpc": "2.0", "method": "debug_traceBlock", "params": ["0xf90277f90208a05a41d0e66b4120775176c09fcf39e7c0520517a13d2b57b18d33d342df038bfca01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794e6a7a1d47ff21b6321162aea7c6cb457d5476bcaa00e0df2706b0a4fb8bd08c9246d472abbe850af446405d9eba1db41db18b4a169a04513310fcb9f6f616972a3b948dc5d547f280849a87ebb5af0191f98b87be598a0fe2bf2a941abf41d72637e5b91750332a30283efd40c424dc522b77e6f0ed8c4b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000860153886c1bbd82b44382520b8252088455c426598b657468706f6f6c2e6f7267a0b48c515a9dde8d346c3337ea520aa995a4738bb595495506125449c1149d6cf488ba4f8ecd18aab215f869f86780862d79883d2000825208945df9b87991262f6ba471f09758cde1c0fc1de734827a69801ca088ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0a045e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33ac0", {"tracer": "callTracer"}], "id": 1}' @@ -15,7 +15,7 @@ curl https://scroll-mainnet.infura.io/v3/ \ ```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x'{"jsonrpc": "2.0", "method": "debug_traceBlock", "params": ["0xf90277f90208a05a41d0e66b4120775176c09fcf39e7c0520517a13d2b57b18d33d342df038bfca01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794e6a7a1d47ff21b6321162aea7c6cb457d5476bcaa00e0df2706b0a4fb8bd08c9246d472abbe850af446405d9eba1db41db18b4a169a04513310fcb9f6f616972a3b948dc5d547f280849a87ebb5af0191f98b87be598a0fe2bf2a941abf41d72637e5b91750332a30283efd40c424dc522b77e6f0ed8c4b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000860153886c1bbd82b44382520b8252088455c426598b657468706f6f6c2e6f7267a0b48c515a9dde8d346c3337ea520aa995a4738bb595495506125449c1149d6cf488ba4f8ecd18aab215f869f86780862d79883d2000825208945df9b87991262f6ba471f09758cde1c0fc1de734827a69801ca088ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0a045e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33ac0", {"tracer": "callTracer"}], "id": 1}' +wscat -c wss://mainnet.infura.io/ws/v3/ -x'{"jsonrpc": "2.0", "method": "debug_traceBlock", "params": ["0xf90277f90208a05a41d0e66b4120775176c09fcf39e7c0520517a13d2b57b18d33d342df038bfca01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794e6a7a1d47ff21b6321162aea7c6cb457d5476bcaa00e0df2706b0a4fb8bd08c9246d472abbe850af446405d9eba1db41db18b4a169a04513310fcb9f6f616972a3b948dc5d547f280849a87ebb5af0191f98b87be598a0fe2bf2a941abf41d72637e5b91750332a30283efd40c424dc522b77e6f0ed8c4b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000860153886c1bbd82b44382520b8252088455c426598b657468706f6f6c2e6f7267a0b48c515a9dde8d346c3337ea520aa995a4738bb595495506125449c1149d6cf488ba4f8ecd18aab215f869f86780862d79883d2000825208945df9b87991262f6ba471f09758cde1c0fc1de734827a69801ca088ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0a045e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33ac0", {"tracer": "callTracer"}], "id": 1}' ``` diff --git a/services/reference/_partials/debug-methods/_debug_traceblockbyhash-request.mdx b/services/reference/_partials/debug-methods/_debug_traceblockbyhash-request.mdx index c1f4f0f8cb1..3b64cc8e786 100644 --- a/services/reference/_partials/debug-methods/_debug_traceblockbyhash-request.mdx +++ b/services/reference/_partials/debug-methods/_debug_traceblockbyhash-request.mdx @@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem" ```bash -curl https://linea-mainnet.infura.io/v3/ \ +curl https://mainnet.infura.io/v3/ \ -X POST \ -H "Content-Type: application/json" \ -d '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash", "params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' @@ -15,7 +15,7 @@ curl https://linea-mainnet.infura.io/v3/ \ ```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash","params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' +wscat -c wss://mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash","params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' ``` diff --git a/services/reference/_partials/debug-methods/_debug_traceblockbynumber-request.mdx b/services/reference/_partials/debug-methods/_debug_traceblockbynumber-request.mdx index a51179788f7..16ff6776a76 100644 --- a/services/reference/_partials/debug-methods/_debug_traceblockbynumber-request.mdx +++ b/services/reference/_partials/debug-methods/_debug_traceblockbynumber-request.mdx @@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem" ```bash -curl https://linea-mainnet.infura.io/v3/ \ +curl https://mainnet.infura.io/v3/ \ -X POST \ -H "Content-Type: application/json" \ -d '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' @@ -14,7 +14,7 @@ curl https://linea-mainnet.infura.io/v3/ \ ```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ \ +wscat -c wss://mainnet.infura.io/ws/v3/ \ -x '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' ``` diff --git a/services/reference/_partials/debug-methods/_debug_tracecall-request.mdx b/services/reference/_partials/debug-methods/_debug_tracecall-request.mdx index f2686e53b6a..87d067e499d 100644 --- a/services/reference/_partials/debug-methods/_debug_tracecall-request.mdx +++ b/services/reference/_partials/debug-methods/_debug_tracecall-request.mdx @@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"; ```bash -curl https://scroll-mainnet.infura.io/v3/ \ +curl https://mainnet.infura.io/v3/ \ -X POST \ -H "Content-Type: application/json" \ -d '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' @@ -15,7 +15,7 @@ curl https://scroll-mainnet.infura.io/v3/ \ ```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' +wscat -c wss://mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' ``` diff --git a/services/reference/_partials/debug-methods/_debug_tracetransaction-request.mdx b/services/reference/_partials/debug-methods/_debug_tracetransaction-request.mdx index e75213fcc49..d57428a5e11 100644 --- a/services/reference/_partials/debug-methods/_debug_tracetransaction-request.mdx +++ b/services/reference/_partials/debug-methods/_debug_tracetransaction-request.mdx @@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"; ```bash -curl https://linea-mainnet.infura.io/v3/ \ +curl https://mainnet.infura.io/v3/ \ -X POST \ -H "Content-Type: application/json" \ -d '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0x5d3faa9b9605a8fb04d989a79bfe6d3b708bdcfc66048d2fe18ed2dda4a8297c", {"tracer": "callTracer"}], "id": 1}' @@ -15,7 +15,7 @@ curl https://linea-mainnet.infura.io/v3/ \ ```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0x5d3faa9b9605a8fb04d989a79bfe6d3b708bdcfc66048d2fe18ed2dda4a8297c", {"tracer": "callTracer"}], "id": 1}' +wscat -c wss://mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0x5d3faa9b9605a8fb04d989a79bfe6d3b708bdcfc66048d2fe18ed2dda4a8297c", {"tracer": "callTracer"}], "id": 1}' ``` diff --git a/services/reference/linea/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx b/services/reference/linea/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx new file mode 100644 index 00000000000..c1f4f0f8cb1 --- /dev/null +++ b/services/reference/linea/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx @@ -0,0 +1,22 @@ +import Tabs from "@theme/Tabs" +import TabItem from "@theme/TabItem" + + + + +```bash +curl https://linea-mainnet.infura.io/v3/ \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash", "params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' +``` + + + + +```bash +wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash","params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' +``` + + + diff --git a/services/reference/linea/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx b/services/reference/linea/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx new file mode 100644 index 00000000000..a51179788f7 --- /dev/null +++ b/services/reference/linea/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx @@ -0,0 +1,22 @@ +import Tabs from "@theme/Tabs" +import TabItem from "@theme/TabItem" + + + + +```bash +curl https://linea-mainnet.infura.io/v3/ \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' +``` + + + +```bash +wscat -c wss://linea-mainnet.infura.io/ws/v3/ \ +-x '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' +``` + + + \ No newline at end of file diff --git a/services/reference/linea/json-rpc-methods/debug/_debug_tracetransaction-request.mdx b/services/reference/linea/json-rpc-methods/debug/_debug_tracetransaction-request.mdx new file mode 100644 index 00000000000..e75213fcc49 --- /dev/null +++ b/services/reference/linea/json-rpc-methods/debug/_debug_tracetransaction-request.mdx @@ -0,0 +1,22 @@ +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + + + + +```bash +curl https://linea-mainnet.infura.io/v3/ \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0x5d3faa9b9605a8fb04d989a79bfe6d3b708bdcfc66048d2fe18ed2dda4a8297c", {"tracer": "callTracer"}], "id": 1}' +``` + + + + +```bash +wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0x5d3faa9b9605a8fb04d989a79bfe6d3b708bdcfc66048d2fe18ed2dda4a8297c", {"tracer": "callTracer"}], "id": 1}' +``` + + + \ No newline at end of file diff --git a/services/reference/linea/json-rpc-methods/debug/debug_traceblockbyhash.md b/services/reference/linea/json-rpc-methods/debug/debug_traceblockbyhash.md deleted file mode 100644 index 8916c23b0ca..00000000000 --- a/services/reference/linea/json-rpc-methods/debug/debug_traceblockbyhash.md +++ /dev/null @@ -1,108 +0,0 @@ ---- -description: Return tracing results by executing all transactions in the block -title: Linea debug_traceBlockByHash -sidebar_label: debug_traceBlockByHash ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `debug_traceBlockByHash` - -Returns tracing results by executing all transactions in the block specified by the block hash. - -## Parameters - -- `blockHash`: (string) _[required]_ hash of the block to trace. -- Optional tracing options object with the following fields: - - `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or - [`prestateTracer`](../debug/index.md#prestatetracer). - - `tracerConfig`: (object) _[optional]_ tracer configuration options: - - `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any - sub-calls. It eliminates the additional processing for each call frame. - -## Returns - -Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or -[`prestateTracer`](../debug/index.md#prestatetracer) object. - -## Example - -### Request - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash", "params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash","params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -### Result - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": [ - { - "result": { - "calls": [ - { - "from": "0xa0013f511c70f01c077a8f809e36b905a0d16c95", - "gas": "0x1feac", - "gasUsed": "0x9d5", - "input": "0x0902f1ac", - "output": "0x0000000000000000000000000000000000000000000000025aa314728293841e00000000000000000000000000000000000000000000000000000007a5cc7a260000000000000000000000000000000000000000000000000000000064b8c380", - "to": "0x75a97d88ff19e07da99023ef0e35e35f51869de0", - "type": "STATICCALL" - }, - { - "calls": [ - { - "from": "0xf56dc6695cf1f5c364edebc7dc7077ac9b586068", - "gas": "0x1bc78", - "gasUsed": "0x6c8f", - "input": "0x23b872dd000000000000000000000000c2aa3359b78bd4223f3434bcf6b0f3b5f5d71c8f00000000000000000000000075a97d88ff19e07da99023ef0e35e35f51869de00000000000000000000000000000000000000000000000000000000002faf080", - "output": "0x0000000000000000000000000000000000000000000000000000000000000001", - "to": "0x1c92ff898f7c34fc6ed884aec3859fd6c655c1f0", - "type": "DELEGATECALL", - "value": "0x0" - } - ], - "from": "0xa0013f511c70f01c077a8f809e36b905a0d16c95", - "gas": "0x1dfd5", - "gasUsed": "0x8907", - "input": "0x23b872dd000000000000000000000000c2aa3359b78bd4223f3434bcf6b0f3b5f5d71c8f00000000000000000000000075a97d88ff19e07da99023ef0e35e35f51869de00000000000000000000000000000000000000000000000000000000002faf080", - "output": "0x0000000000000000000000000000000000000000000000000000000000000001", - "to": "0xf56dc6695cf1f5c364edebc7dc7077ac9b586068", - "type": "CALL", - "value": "0x0" - } - ], - "from": "0xc2aa3359b78bd4223f3434bcf6b0f3b5f5d71c8f", - "gas": "0x273bd", - "gasUsed": "0x22499", - "input": "0x38ed17390000000000000000000000000000000000000000000000000000000002faf08000000000000000000000000000000000000000000000000000e8291f2bdfeff000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000c2aa3359b78bd4223f3434bcf6b0f3b5f5d71c8f0000000000000000000000000000000000000000000000000000000064b8cdb80000000000000000000000000000000000000000000000000000000000000002000000000000000000000000f56dc6695cf1f5c364edebc7dc7077ac9b586068000000000000000000000000ed4ccdd10b8b97ba9555a6767613bfb98aaf72c4", - "output": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000002faf08000000000000000000000000000000000000000000000000000e9c8a628b94ade", - "to": "0xa0013f511c70f01c077a8f809e36b905a0d16c95", - "type": "CALL", - "value": "0x0" - } - } - ... - ] -} -``` diff --git a/services/reference/linea/json-rpc-methods/debug/debug_traceblockbyhash.mdx b/services/reference/linea/json-rpc-methods/debug/debug_traceblockbyhash.mdx new file mode 100644 index 00000000000..023296f0403 --- /dev/null +++ b/services/reference/linea/json-rpc-methods/debug/debug_traceblockbyhash.mdx @@ -0,0 +1,44 @@ +--- +description: Return tracing results by executing all transactions in the block specified by the block hash. +title: Mantle debug_traceBlockByHash +sidebar_label: debug_traceBlockByHash +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +# `debug_traceBlockByHash` + +import Description from "/services/reference/_partials/debug-methods/_debug_traceblockbyhash-description.mdx" + + + +## Parameters + +import Params from "/services/reference/_partials/debug-methods/_debug_traceblockbyhash-parameters.mdx" + + + +## Returns + +import Returns from "/services/reference/_partials/debug-methods/_debug_traceblockbyhash-returns.mdx" + + + +## Example + +import Example from "/services/reference/_partials/debug-methods/_debug_traceblockbyhash-example.mdx" + + + +### Request + +import Request from "./_debug_traceblockbyhash-request.mdx" + + + +### Response + +import Response from "/services/reference/_partials/debug-methods/_debug_traceblockbyhash-response.mdx" + + diff --git a/services/reference/linea/json-rpc-methods/debug/debug_traceblockbynumber.md b/services/reference/linea/json-rpc-methods/debug/debug_traceblockbynumber.md deleted file mode 100644 index bbc1a7c387d..00000000000 --- a/services/reference/linea/json-rpc-methods/debug/debug_traceblockbynumber.md +++ /dev/null @@ -1,90 +0,0 @@ ---- -description: Return tracing results by executing all transactions in a specified block number. -title: Linea debug_traceBlockByNumber -sidebar_label: debug_traceBlockByNumber ---- -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -# `debug_traceBlockByNumber` - -Returns tracing results by executing all transactions in the specified block number. - -## Parameters - -- `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - - :::warning - `safe` isn't supported. Use `finalized` instead. - Learn more about [Linea's layer 2 finalization](https://docs.linea.build/developers/guides/finalized-block). - ::: - -- Optional tracing options object with the following fields: - - `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or - [`prestateTracer`](../debug/index.md#prestatetracer). - - `tracerConfig`: (object) _[optional]_ tracer configuration options: - - `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any - sub-calls. It eliminates the additional processing for each call frame. - -## Returns - -Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or -[`prestateTracer`](../debug/index.md#prestatetracer) object. - -## Example - -### Request - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' -``` - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ \ --x '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' -``` - - - - -### Result - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": [ - { - "result": { - "from": "0xa5ba45f484bc67fe293cf01f7d92d5ba3514dd42", - "gas": "0x5208", - "gasUsed": "0x5208", - "input": "0x", - "to": "0x45a318273749d6eb00f5f6ca3bc7cd3de26d642a", - "type": "CALL", - "value": "0x2ca186f5fda8004" - } - }, - { - "result": { - "from": "0x25f2650cc9e8ad863bf5da6a7598e24271574e29", - "gas": "0xfe0e", - "gasUsed": "0xafee", - "input": "0xd0e30db0", - "to": "0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f", - "type": "CALL", - "value": "0x2386f26fc10000" - } - }, - ... - ] -} -``` diff --git a/services/reference/linea/json-rpc-methods/debug/debug_traceblockbynumber.mdx b/services/reference/linea/json-rpc-methods/debug/debug_traceblockbynumber.mdx new file mode 100644 index 00000000000..f640f412265 --- /dev/null +++ b/services/reference/linea/json-rpc-methods/debug/debug_traceblockbynumber.mdx @@ -0,0 +1,44 @@ +--- +description: Return tracing results by executing all transactions in the specified block number. +title: Mantle debug_traceBlockByNumber +sidebar_label: debug_traceBlockByNumber +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +# `debug_traceBlockByNumber` + +import Description from "/services/reference/_partials/debug-methods/_debug_traceblockbynumber-description.mdx" + + + +## Parameters + +import Params from "/services/reference/_partials/debug-methods/_debug_traceblockbynumber-parameters.mdx" + + + +## Returns + +import Returns from "/services/reference/_partials/debug-methods/_debug_traceblockbynumber-returns.mdx" + + + +## Example + +import Example from "/services/reference/_partials/debug-methods/_debug_traceblockbynumber-example.mdx" + + + +### Request + +import Request from "./_debug_traceblockbynumber-request.mdx" + + + +### Response + +import Response from "/services/reference/_partials/debug-methods/_debug_traceblockbynumber-response.mdx" + + diff --git a/services/reference/linea/json-rpc-methods/debug/debug_tracetransaction.md b/services/reference/linea/json-rpc-methods/debug/debug_tracetransaction.md deleted file mode 100644 index 5bedcf9251f..00000000000 --- a/services/reference/linea/json-rpc-methods/debug/debug_tracetransaction.md +++ /dev/null @@ -1,71 +0,0 @@ ---- -description: Returns tracing results for the specified transaction. -title: Linea debug_traceTransaction -sidebar_label: debug_traceTransaction ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `debug_traceTransaction` - -Returns tracing results for the specified transaction. - -## Parameters - -- `transactionHash`: (string) _[required]_ hash of the block to trace. -- Optional tracing options object with the following fields: - - `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or - [`prestateTracer`](../debug/index.md#prestatetracer). - - `tracerConfig`: (object) _[optional]_ tracer configuration options: - - `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any - sub-calls. It eliminates the additional processing for each call frame. - - `timeout`: (string) _[optional]_ string of decimals numbers to set the timeout. The default is 5 seconds. The maximum - timeout is 10 seconds. Valid units are `ns`, `us`, `ms`, `s`. For example, `3s30ms`. - -# Returns - -Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or -[`prestateTracer`](../debug/index.md#prestatetracer) object. - -## Example - -### Request - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0x5d3faa9b9605a8fb04d989a79bfe6d3b708bdcfc66048d2fe18ed2dda4a8297c", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0x5d3faa9b9605a8fb04d989a79bfe6d3b708bdcfc66048d2fe18ed2dda4a8297c", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -### Result - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": { - "from": "0xa5ba45f484bc67fe293cf01f7d92d5ba3514dd42", - "gas": "0x5208", - "gasUsed": "0x5208", - "input": "0x", - "to": "0x45a318273749d6eb00f5f6ca3bc7cd3de26d642a", - "type": "CALL", - "value": "0x2ca186f5fda8004" - } -} -``` diff --git a/services/reference/linea/json-rpc-methods/debug/debug_tracetransaction.mdx b/services/reference/linea/json-rpc-methods/debug/debug_tracetransaction.mdx new file mode 100644 index 00000000000..63d9b158e32 --- /dev/null +++ b/services/reference/linea/json-rpc-methods/debug/debug_tracetransaction.mdx @@ -0,0 +1,44 @@ +--- +description: Returns tracing results for the specified transaction. +title: Mantle debug_traceTransaction +sidebar_label: debug_traceTransaction +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +# `debug_traceTransaction` + +import Description from "/services/reference/_partials/debug-methods/_debug_tracetransaction-description.mdx" + + + +## Parameters + +import Params from "/services/reference/_partials/debug-methods/_debug_tracetransaction-parameters.mdx" + + + +## Returns + +import Returns from "/services/reference/_partials/debug-methods/_debug_tracetransaction-returns.mdx" + + + +## Example + +import Example from "/services/reference/_partials/debug-methods/_debug_tracetransaction-example.mdx" + + + +### Request + +import Request from "./_debug_tracetransaction-request.mdx" + + + +### Response + +import Response from "/services/reference/_partials/debug-methods/_debug_tracetransaction-response.mdx" + + diff --git a/services/reference/linea/json-rpc-methods/debug/index.md b/services/reference/linea/json-rpc-methods/debug/index.md index 1a8ed6e9257..46c2c8d6c1f 100644 --- a/services/reference/linea/json-rpc-methods/debug/index.md +++ b/services/reference/linea/json-rpc-methods/debug/index.md @@ -8,9 +8,9 @@ sidebar_label: Debug methods The debug API methods allow you to inspect and debug the network. Infura supports the following debug methods on the Linea network: -- [`debug_traceBlockByHash`](debug_traceblockbyhash.md) -- [`debug_traceBlockByNumber`](debug_traceblockbynumber.md) -- [`debug_traceTransaction`](debug_tracetransaction.md) +- [`debug_traceBlockByHash`](debug_traceblockbyhash.mdx) +- [`debug_traceBlockByNumber`](debug_traceblockbynumber.mdx) +- [`debug_traceTransaction`](debug_tracetransaction.mdx) ## Debug tracing types diff --git a/services/reference/mantle/json-rpc-methods/debug/_debug_storagerangeat-request.mdx b/services/reference/mantle/json-rpc-methods/debug/_debug_storagerangeat-request.mdx new file mode 100644 index 00000000000..29fd2d6ad13 --- /dev/null +++ b/services/reference/mantle/json-rpc-methods/debug/_debug_storagerangeat-request.mdx @@ -0,0 +1,22 @@ +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + + + + +```bash +curl https://mantle-mainnet.infura.io/v3/ \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "debug_storageRangeAt", "params": ["0x7aaff18735842066baee6a2eb53961a69e67f5e012072c81c05a0fd793069a6c", 0, "0x371c7ec6D8039ff7933a2AA28EB827Ffe1F52f07", "0x0000000000000000000000000000000000000000000000000000000000000000", 1], "id": 1}' +``` + + + + +```bash +wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x'{"jsonrpc": "2.0", "method": "debug_storageRangeAt", "params": ["0x7aaff18735842066baee6a2eb53961a69e67f5e012072c81c05a0fd793069a6c", 0, "0x371c7ec6D8039ff7933a2AA28EB827Ffe1F52f07", "0x0000000000000000000000000000000000000000000000000000000000000000", 1], "id": 1}' +``` + + + \ No newline at end of file diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_traceblock.md b/services/reference/mantle/json-rpc-methods/debug/_debug_traceblock-request.mdx similarity index 64% rename from services/reference/mantle/json-rpc-methods/debug/debug_traceblock.md rename to services/reference/mantle/json-rpc-methods/debug/_debug_traceblock-request.mdx index 7b4a5592f41..24f82f99a7c 100644 --- a/services/reference/mantle/json-rpc-methods/debug/debug_traceblock.md +++ b/services/reference/mantle/json-rpc-methods/debug/_debug_traceblock-request.mdx @@ -1,37 +1,6 @@ ---- -description: Return a full trace of all invoked opcodes of all transactions included in the block. -title: Mantle debug_traceBlock -sidebar_label: debug_traceBlock ---- - import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; -# `debug_traceBlock` - -Returns full trace of all invoked opcodes of all transactions included in the block. - -## Parameters - -- `block`: (string) RLP of the block -- Optional tracing options object with the following fields: - - `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or - [`prestateTracer`](../debug/index.md#prestatetracer). - - `tracerConfig`: (object) _[optional]_ tracer configuration options: - - `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any - sub-calls. It eliminates the additional processing for each call frame. - -## Returns - -Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or -[`prestateTracer`](../debug/index.md#prestatetracer) object. - -## Example - -Replace `` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/). - -### Request - @@ -50,27 +19,4 @@ wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x'{"jsonrpc": "2.0 ``` - - -### Result - -```json -{ - "id": 1, - "jsonrpc": "2.0", - "result": [ - { - "result": { - "from": "0x8894e0a0c962cb723c1976a4421c95949be2d4e3", - "gas": "0x2d48c", - "gasUsed": "0xc7ab", - "to": "0x55d398326f99059ff775485246999027b3197955", - "input": "0xa9059cbb0000000000000000000000003b9f33b3a9d382fa60283c555bde8f78855957be00000000000000000000000000000000000000000000000d4e7f4f79da7c0000", - "output": "0x0000000000000000000000000000000000000000000000000000000000000001", - "value": "0x0", - "type": "CALL" - } - } - ] -} -``` + \ No newline at end of file diff --git a/services/reference/mantle/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx b/services/reference/mantle/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx new file mode 100644 index 00000000000..271a0ffa1fb --- /dev/null +++ b/services/reference/mantle/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx @@ -0,0 +1,22 @@ +import Tabs from "@theme/Tabs" +import TabItem from "@theme/TabItem" + + + + +```bash +curl https://mantle-mainnet.infura.io/v3/ \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash", "params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' +``` + + + + +```bash +wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash","params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' +``` + + + diff --git a/services/reference/mantle/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx b/services/reference/mantle/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx new file mode 100644 index 00000000000..2894e50dc39 --- /dev/null +++ b/services/reference/mantle/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx @@ -0,0 +1,22 @@ +import Tabs from "@theme/Tabs" +import TabItem from "@theme/TabItem" + + + + +```bash +curl https://mantle-mainnet.infura.io/v3/ \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' +``` + + + +```bash +wscat -c wss://mantle-mainnet.infura.io/ws/v3/ \ +-x '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' +``` + + + \ No newline at end of file diff --git a/services/reference/mantle/json-rpc-methods/debug/_debug_tracecall-request.mdx b/services/reference/mantle/json-rpc-methods/debug/_debug_tracecall-request.mdx new file mode 100644 index 00000000000..5479fdf5383 --- /dev/null +++ b/services/reference/mantle/json-rpc-methods/debug/_debug_tracecall-request.mdx @@ -0,0 +1,22 @@ +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + + + + +```bash +curl https://mantle-mainnet.infura.io/v3/ \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' +``` + + + + +```bash +wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' +``` + + + \ No newline at end of file diff --git a/services/reference/mantle/json-rpc-methods/debug/_debug_tracetransaction-request.mdx b/services/reference/mantle/json-rpc-methods/debug/_debug_tracetransaction-request.mdx new file mode 100644 index 00000000000..b204336dc9b --- /dev/null +++ b/services/reference/mantle/json-rpc-methods/debug/_debug_tracetransaction-request.mdx @@ -0,0 +1,22 @@ +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + + + + +```bash +curl https://mantle-mainnet.infura.io/v3/ \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0x5d3faa9b9605a8fb04d989a79bfe6d3b708bdcfc66048d2fe18ed2dda4a8297c", {"tracer": "callTracer"}], "id": 1}' +``` + + + + +```bash +wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0x5d3faa9b9605a8fb04d989a79bfe6d3b708bdcfc66048d2fe18ed2dda4a8297c", {"tracer": "callTracer"}], "id": 1}' +``` + + + \ No newline at end of file diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_storagerangeat.md b/services/reference/mantle/json-rpc-methods/debug/debug_storagerangeat.md deleted file mode 100644 index cb0c9af26da..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/debug_storagerangeat.md +++ /dev/null @@ -1,68 +0,0 @@ ---- -description: Return the contract storage for the specified range. -title: Mantle debug_storageRangeAt -sidebar_label: debug_storageRangeAt ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `debug_storageRangeAt` - -Returns the contract storage for the specified range. - -## Parameters - -- `blockHash` : (string) _[required]_ hash of the block to trace. -- `txIndex`: (number) _[required]_ transaction index from which to start. -- `address`: (string) _[required]_ contract address. -- `startKey`: (string) _[required]_ - hash of the storage key at which to start. -- `limit`: (number) _[required]_ number of storage entries to return. - -## Returns - -An object with the storage hash values, and for each of them the key and value it represents: - -## Example - -Replace `` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/). - -### Request - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_storageRangeAt", "params": ["0x7aaff18735842066baee6a2eb53961a69e67f5e012072c81c05a0fd793069a6c", 0, "0x371c7ec6D8039ff7933a2AA28EB827Ffe1F52f07", "0x0000000000000000000000000000000000000000000000000000000000000000", 1], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x'{"jsonrpc": "2.0", "method": "debug_storageRangeAt", "params": ["0x7aaff18735842066baee6a2eb53961a69e67f5e012072c81c05a0fd793069a6c", 0, "0x371c7ec6D8039ff7933a2AA28EB827Ffe1F52f07", "0x0000000000000000000000000000000000000000000000000000000000000000", 1], "id": 1}' -``` - - - - -### Result - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": { - "storage": { - "0x0001187ffafb4707176f1c510f173cdcc2a48cb15bdc894c424897555968a831": { - "key": "0x85929f3b98e0d49f6ba064139f82d0fa9b5cf0eaf629d07b9a7301e222a63173", - "value": "0x00000000000000000000000000000000000000000000000000000000b478ed24" - } - }, - "nextKey": "0x000b5c2024e6480c554272610fdfb9437f2aee44f6f04d396469e6adbcedc03b" - } -} -``` diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_storagerangeat.mdx b/services/reference/mantle/json-rpc-methods/debug/debug_storagerangeat.mdx new file mode 100644 index 00000000000..40f61ffd196 --- /dev/null +++ b/services/reference/mantle/json-rpc-methods/debug/debug_storagerangeat.mdx @@ -0,0 +1,44 @@ +--- +description: Return the contract storage for the specified range. +title: Mantle debug_storageRangeAt +sidebar_label: debug_storageRangeAt +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +# `debug_storageRangeAt` + +import Description from "/services/reference/_partials/debug-methods/_debug_storagerangeat-description.mdx" + + + +## Parameters + +import Params from "/services/reference/_partials/debug-methods/_debug_storagerangeat-parameters.mdx" + + + +## Returns + +import Returns from "/services/reference/_partials/debug-methods/_debug_storagerangeat-returns.mdx" + + + +## Example + +import Example from "/services/reference/_partials/debug-methods/_debug_storagerangeat-example.mdx" + + + +### Request + +import Request from "./_debug_storagerangeat-request.mdx" + + + +### Response + +import Response from "/services/reference/_partials/debug-methods/_debug_storagerangeat-response.mdx" + + diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_traceblock.mdx b/services/reference/mantle/json-rpc-methods/debug/debug_traceblock.mdx new file mode 100644 index 00000000000..d2d97633d24 --- /dev/null +++ b/services/reference/mantle/json-rpc-methods/debug/debug_traceblock.mdx @@ -0,0 +1,44 @@ +--- +description: Return a full trace of all invoked opcodes of all transactions included in the block. +title: Mantle debug_traceBlock +sidebar_label: debug_traceBlock +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +# `debug_traceBlock` + +import Description from "/services/reference/_partials/debug-methods/_debug_traceblock-description.mdx" + + + +## Parameters + +import Params from "/services/reference/_partials/debug-methods/_debug_traceblock-parameters.mdx" + + + +## Returns + +import Returns from "/services/reference/_partials/debug-methods/_debug_traceblock-returns.mdx" + + + +## Example + +import Example from "/services/reference/_partials/debug-methods/_debug_traceblock-example.mdx" + + + +### Request + +import Request from "./_debug_traceblock-request.mdx" + + + +### Response + +import Response from "/services/reference/_partials/debug-methods/_debug_traceblock-response.mdx" + + diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbyhash.md b/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbyhash.md deleted file mode 100644 index 00b35f31f93..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbyhash.md +++ /dev/null @@ -1,84 +0,0 @@ ---- -description: Return tracing results by executing all transactions in the block specified by the block hash. -title: Mantle debug_traceBlockByHash -sidebar_label: debug_traceBlockByHash ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `debug_traceBlockByHash` - -Returns tracing results by executing all transactions in the block specified by the block hash. - -## Parameters - -- `blockHash`: (string) _[required]_ hash of the block to trace. -- Optional tracing options object with the following fields: - - `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or - [`prestateTracer`](../debug/index.md#prestatetracer). - - `tracerConfig`: (object) _[optional]_ tracer configuration options: - - `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any - sub-calls. It eliminates the additional processing for each call frame. - -## Returns - -Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or -[`prestateTracer`](../debug/index.md#prestatetracer) object. - -## Example - -Replace `` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/). - -### Request - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash", "params": ["0xec8cb29209d9170b31008738ec9e80acc22257249cfd0f4bce19590cd09834c8", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x'{"jsonrpc": "2.0", "method": "debug_traceBlockByHash", "params": ["0xec8cb29209d9170b31008738ec9e80acc22257249cfd0f4bce19590cd09834c8", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -### Result - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": [ - { - "result": { - "from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001", - "gas": "0xee8c8", - "gasUsed": "0xd7f9", - "to": "0x4200000000000000000000000000000000000015", - "input": "0x015d8eb900000000000000000000000000000000000000000000000000000000012c62af000000000000000000000000000000000000000000000000000000006621c18b00000000000000000000000000000000000000000000000000000001de9ff92bbca330c2c309ce531df6a0861dfbb166848c5634054dc1552c9b54e6f98a83b100000000000000000000000000000000000000000000000000000000000000000000000000000000000000002f40d796917ffb642bd2e2bdd2c762a5e40fd74900000000000000000000000000000000000000000000000000000000000000bc0000000000000000000000000000000000000000000000000000000000002710", - "calls": [ - { - "from": "0x4200000000000000000000000000000000000015", - "gas": "0xe9a0d", - "gasUsed": "0x6af8", - "to": "0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30015", - "input": "0x015d8eb900000000000000000000000000000000000000000000000000000000012c62af000000000000000000000000000000000000000000000000000000006621c18b00000000000000000000000000000000000000000000000000000001de9ff92bbca330c2c309ce531df6a0861dfbb166848c5634054dc1552c9b54e6f98a83b100000000000000000000000000000000000000000000000000000000000000000000000000000000000000002f40d796917ffb642bd2e2bdd2c762a5e40fd74900000000000000000000000000000000000000000000000000000000000000bc0000000000000000000000000000000000000000000000000000000000002710", - "value": "0x0", - "type": "DELEGATECALL" - } - ], - "value": "0x0", - "type": "CALL" - } - } -``` diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbyhash.mdx b/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbyhash.mdx new file mode 100644 index 00000000000..023296f0403 --- /dev/null +++ b/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbyhash.mdx @@ -0,0 +1,44 @@ +--- +description: Return tracing results by executing all transactions in the block specified by the block hash. +title: Mantle debug_traceBlockByHash +sidebar_label: debug_traceBlockByHash +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +# `debug_traceBlockByHash` + +import Description from "/services/reference/_partials/debug-methods/_debug_traceblockbyhash-description.mdx" + + + +## Parameters + +import Params from "/services/reference/_partials/debug-methods/_debug_traceblockbyhash-parameters.mdx" + + + +## Returns + +import Returns from "/services/reference/_partials/debug-methods/_debug_traceblockbyhash-returns.mdx" + + + +## Example + +import Example from "/services/reference/_partials/debug-methods/_debug_traceblockbyhash-example.mdx" + + + +### Request + +import Request from "./_debug_traceblockbyhash-request.mdx" + + + +### Response + +import Response from "/services/reference/_partials/debug-methods/_debug_traceblockbyhash-response.mdx" + + diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbynumber.md b/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbynumber.md deleted file mode 100644 index 1451417cc3d..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbynumber.md +++ /dev/null @@ -1,88 +0,0 @@ ---- -description: Return tracing results by executing all transactions in the specified block number. -title: Mantle debug_traceBlockByNumber -sidebar_label: debug_traceBlockByNumber ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `debug_traceBlockByNumber` - -Returns tracing results by executing all transactions in the specified block number. - -## Parameters - -- `blockNumber`: (string) _[required]_ block number as a hexadecimal string, or one of the string tags `latest`, `earliest` - , or `pending`, as [described in the default block parameters](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). -- Optional tracing options object with the following fields: - - `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or - [`prestateTracer`](../debug/index.md#prestatetracer). - - `tracerConfig`: (object) _[optional]_ tracer configuration options: - - `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any - sub-calls. It eliminates the additional processing for each call frame. - -## Returns - -Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or -[`prestateTracer`](../debug/index.md#prestatetracer) object. - -## Example - -Replace `` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/). - -### Request - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceBlockByNumber", "params": ["0x4d0c", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceBlockByNumber", "params": ["0x4d0c", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -### Result - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": [ - { - "result": { - "from": "0xa5ba45f484bc67fe293cf01f7d92d5ba3514dd42", - "gas": "0x5208", - "gasUsed": "0x5208", - "input": "0x", - "to": "0x45a318273749d6eb00f5f6ca3bc7cd3de26d642a", - "type": "CALL", - "value": "0x2ca186f5fda8004" - } - }, - { - "result": { - "from": "0x25f2650cc9e8ad863bf5da6a7598e24271574e29", - "gas": "0xfe0e", - "gasUsed": "0xafee", - "input": "0xd0e30db0", - "to": "0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f", - "type": "CALL", - "value": "0x2386f26fc10000" - } - } - ... - ] -} -``` diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbynumber.mdx b/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbynumber.mdx new file mode 100644 index 00000000000..f640f412265 --- /dev/null +++ b/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbynumber.mdx @@ -0,0 +1,44 @@ +--- +description: Return tracing results by executing all transactions in the specified block number. +title: Mantle debug_traceBlockByNumber +sidebar_label: debug_traceBlockByNumber +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +# `debug_traceBlockByNumber` + +import Description from "/services/reference/_partials/debug-methods/_debug_traceblockbynumber-description.mdx" + + + +## Parameters + +import Params from "/services/reference/_partials/debug-methods/_debug_traceblockbynumber-parameters.mdx" + + + +## Returns + +import Returns from "/services/reference/_partials/debug-methods/_debug_traceblockbynumber-returns.mdx" + + + +## Example + +import Example from "/services/reference/_partials/debug-methods/_debug_traceblockbynumber-example.mdx" + + + +### Request + +import Request from "./_debug_traceblockbynumber-request.mdx" + + + +### Response + +import Response from "/services/reference/_partials/debug-methods/_debug_traceblockbynumber-response.mdx" + + diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_tracecall.md b/services/reference/mantle/json-rpc-methods/debug/debug_tracecall.md deleted file mode 100644 index 6a291720f77..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/debug_tracecall.md +++ /dev/null @@ -1,87 +0,0 @@ ---- -description: Returns the number of possible tracing results in the context of the given block execution. -title: Mantle debug_traceCall -sidebar_label: debug_traceCall ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `debug_traceCall` - -Returns the number of possible tracing result by executing an `eth_call` within the context of the -given block execution. - -## Parameters - -- Transaction object with the following fields: - - `from`: (string) address (20 bytes) the transaction is sent from. - - `to`: (string) _[required]_ address (20 bytes) the transaction is directed to. - - `gas`: (string) hexadecimal value of the gas provided for the transaction execution. `eth_call` consumes zero - gas, but this parameter may be needed by some executions. - - `gasPrice`: (string) hexadecimal value of the `gasPrice` used for each paid gas. - - `maxPriorityFeePerGas`: (string) maximum fee, in wei, the sender is willing to pay per gas above the base fee. - See [EIP-1559 transactions](../../../../concepts/transaction-types.md#eip-1559-transactions). - - `maxFeePerGas`: (string) maximum total fee (base fee + priority fee), in wei, the sender is willing to pay per gas. - See [EIP-1559 transactions](../../../../concepts/transaction-types.md#eip-1559-transactions). - - `value`: (string) hexadecimal of the value sent with this transaction. - - `data`: (string) hash of the method signature and encoded parameters. - See [Ethereum contract ABI specification](https://docs.soliditylang.org/en/latest/abi-spec.html). -- `block parameter`: [_Required_] hexadecimal block number, or one of the string tags - `latest`, `earliest`, `pending`, `safe`, or `finalized`. - See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). -- Optional tracing options object with the following fields: - - `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or - [`prestateTracer`](../debug/index.md#prestatetracer). - - `tracerConfig`: (object) _[optional]_ tracer configuration options: - - `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any - sub-calls. It eliminates the additional processing for each call frame. - -## Returns - -Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or -[`prestateTracer`](../debug/index.md#prestatetracer) object. - -## Example - -Replace `` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/). - -### Request - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -### Result - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": { - "from": "0x0000000000000000000000000000000000000000", - "gas": "0x28cc0", - "gasUsed": "0x3635000", - "to": "0x6b175474e89094c44da98b954eedeac495271d0f", - "input": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be", - "value": "0x0", - "type": "CALL" - } -} -``` diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_tracecall.mdx b/services/reference/mantle/json-rpc-methods/debug/debug_tracecall.mdx new file mode 100644 index 00000000000..f82e75611ea --- /dev/null +++ b/services/reference/mantle/json-rpc-methods/debug/debug_tracecall.mdx @@ -0,0 +1,44 @@ +--- +description: Returns the number of possible tracing results in the context of the given block execution. +title: Mantle debug_traceCall +sidebar_label: debug_traceCall +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +# `debug_traceCall` + +import Description from "/services/reference/_partials/debug-methods/_debug_tracecall-description.mdx" + + + +## Parameters + +import Params from "/services/reference/_partials/debug-methods/_debug_tracecall-parameters.mdx" + + + +## Returns + +import Returns from "/services/reference/_partials/debug-methods/_debug_tracecall-returns.mdx" + + + +## Example + +import Example from "/services/reference/_partials/debug-methods/_debug_tracecall-example.mdx" + + + +### Request + +import Request from "./_debug_tracecall-request.mdx" + + + +### Response + +import Response from "/services/reference/_partials/debug-methods/_debug_tracecall-response.mdx" + + diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_tracetransaction.md b/services/reference/mantle/json-rpc-methods/debug/debug_tracetransaction.md deleted file mode 100644 index 6df1dd723f0..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/debug_tracetransaction.md +++ /dev/null @@ -1,86 +0,0 @@ ---- -description: Returns tracing results for the specified transaction. -title: Mantle debug_traceTransaction -sidebar_label: debug_traceTransaction ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `debug_traceTransaction` - -Returns tracing results for the specified transaction. - -## Parameters - -- `transactionHash`: (string) _[required]_ hash of the block to trace. -- Optional tracing options object with the following fields: - - `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or - [`prestateTracer`](../debug/index.md#prestatetracer). - - `tracerConfig`: (object) _[optional]_ tracer configuration options: - - `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any - sub-calls. It eliminates the additional processing for each call frame. - - `timeout`: (string) _[optional]_ string of decimals numbers to set the timeout. The default is 5 seconds. The maximum - timeout is 10 seconds. Valid units are `ns`, `us`, `ms`, `s`. For example, `3s30ms`. - -# Returns - -Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or -[`prestateTracer`](../debug/index.md#prestatetracer) object. - -## Example - -Replace `` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/). - -### Request - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0xdcecf3f9fc68c92276d6c4b40c17b185f8a3fcb9d1a959a495d38d480782404b", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0xdcecf3f9fc68c92276d6c4b40c17b185f8a3fcb9d1a959a495d38d480782404b", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -### Result - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": { - "from": "0x3e9bde7e023b4f9de05975b566cd41c771f3fb49", - "gas": "0x3fdd6", - "gasUsed": "0xd418142", - "to": "0x09bc4e0d864854c6afb6eb9a9cdf58ac190d0df9", - "input": "0x095ea7b30000000000000000000000002f6f07cdcf3588944bf4c42ac74ff24bf56e7590ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", - "output": "0x0000000000000000000000000000000000000000000000000000000000000001", - "calls": [ - { - "from": "0x09bc4e0d864854c6afb6eb9a9cdf58ac190d0df9", - "gas": "0x3d278", - "gasUsed": "0x79be", - "to": "0x9aff718f2a4ed4c310d6d2da0d2fb30a5f6a9ddc", - "input": "0x095ea7b30000000000000000000000002f6f07cdcf3588944bf4c42ac74ff24bf56e7590ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", - "output": "0x0000000000000000000000000000000000000000000000000000000000000001", - "value": "0x0", - "type": "DELEGATECALL" - } - ], - "value": "0x0", - "type": "CALL" - } -} -``` diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_tracetransaction.mdx b/services/reference/mantle/json-rpc-methods/debug/debug_tracetransaction.mdx new file mode 100644 index 00000000000..63d9b158e32 --- /dev/null +++ b/services/reference/mantle/json-rpc-methods/debug/debug_tracetransaction.mdx @@ -0,0 +1,44 @@ +--- +description: Returns tracing results for the specified transaction. +title: Mantle debug_traceTransaction +sidebar_label: debug_traceTransaction +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +# `debug_traceTransaction` + +import Description from "/services/reference/_partials/debug-methods/_debug_tracetransaction-description.mdx" + + + +## Parameters + +import Params from "/services/reference/_partials/debug-methods/_debug_tracetransaction-parameters.mdx" + + + +## Returns + +import Returns from "/services/reference/_partials/debug-methods/_debug_tracetransaction-returns.mdx" + + + +## Example + +import Example from "/services/reference/_partials/debug-methods/_debug_tracetransaction-example.mdx" + + + +### Request + +import Request from "./_debug_tracetransaction-request.mdx" + + + +### Response + +import Response from "/services/reference/_partials/debug-methods/_debug_tracetransaction-response.mdx" + + diff --git a/services/reference/scroll/json-rpc-methods/debug/debug_traceblock.md b/services/reference/scroll/json-rpc-methods/debug/_debug_traceblock-request.mdx similarity index 64% rename from services/reference/scroll/json-rpc-methods/debug/debug_traceblock.md rename to services/reference/scroll/json-rpc-methods/debug/_debug_traceblock-request.mdx index 523b0bebd18..c9ee192252a 100644 --- a/services/reference/scroll/json-rpc-methods/debug/debug_traceblock.md +++ b/services/reference/scroll/json-rpc-methods/debug/_debug_traceblock-request.mdx @@ -1,37 +1,6 @@ ---- -description: Returns a full trace of all invoked opcodes of all transactions included in the block. -title: Scroll Scroll debug_traceBlock -sidebar_label: debug_traceBlock ---- - import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; -# `debug_traceBlock` - -Returns a full trace of all invoked opcodes of all transactions included in the block. - -## Parameters - -- `block`: (string) RLP of the block -- Optional tracing options object with the following fields: - - `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or - [`prestateTracer`](../debug/index.md#prestatetracer). - - `tracerConfig`: (object) _[optional]_ tracer configuration options: - - `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any - sub-calls. It eliminates the additional processing for each call frame. - -## Returns - -Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or -[`prestateTracer`](../debug/index.md#prestatetracer) object. - -## Example - -Replace `` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/). - -### Request - @@ -50,27 +19,4 @@ wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x'{"jsonrpc": "2.0 ``` - - -### Result - -```json -{ - "id": 1, - "jsonrpc": "2.0", - "result": [ - { - "result": { - "from": "0x8894e0a0c962cb723c1976a4421c95949be2d4e3", - "gas": "0x2d48c", - "gasUsed": "0xc7ab", - "to": "0x55d398326f99059ff775485246999027b3197955", - "input": "0xa9059cbb0000000000000000000000003b9f33b3a9d382fa60283c555bde8f78855957be00000000000000000000000000000000000000000000000d4e7f4f79da7c0000", - "output": "0x0000000000000000000000000000000000000000000000000000000000000001", - "value": "0x0", - "type": "CALL" - } - } - ] -} -``` + \ No newline at end of file diff --git a/services/reference/scroll/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx b/services/reference/scroll/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx new file mode 100644 index 00000000000..9c8c958a564 --- /dev/null +++ b/services/reference/scroll/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx @@ -0,0 +1,22 @@ +import Tabs from "@theme/Tabs" +import TabItem from "@theme/TabItem" + + + + +```bash +curl https://scroll-mainnet.infura.io/v3/ \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash", "params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' +``` + + + + +```bash +wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash","params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' +``` + + + diff --git a/services/reference/scroll/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx b/services/reference/scroll/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx new file mode 100644 index 00000000000..c6aefeef830 --- /dev/null +++ b/services/reference/scroll/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx @@ -0,0 +1,22 @@ +import Tabs from "@theme/Tabs" +import TabItem from "@theme/TabItem" + + + + +```bash +curl https://scroll-mainnet.infura.io/v3/ \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' +``` + + + +```bash +wscat -c wss://scroll-mainnet.infura.io/ws/v3/ \ +-x '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' +``` + + + \ No newline at end of file diff --git a/services/reference/scroll/json-rpc-methods/debug/_debug_tracecall-request.mdx b/services/reference/scroll/json-rpc-methods/debug/_debug_tracecall-request.mdx new file mode 100644 index 00000000000..f2686e53b6a --- /dev/null +++ b/services/reference/scroll/json-rpc-methods/debug/_debug_tracecall-request.mdx @@ -0,0 +1,22 @@ +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + + + + +```bash +curl https://scroll-mainnet.infura.io/v3/ \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' +``` + + + + +```bash +wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' +``` + + + \ No newline at end of file diff --git a/services/reference/scroll/json-rpc-methods/debug/debug_traceblock.mdx b/services/reference/scroll/json-rpc-methods/debug/debug_traceblock.mdx new file mode 100644 index 00000000000..d2d97633d24 --- /dev/null +++ b/services/reference/scroll/json-rpc-methods/debug/debug_traceblock.mdx @@ -0,0 +1,44 @@ +--- +description: Return a full trace of all invoked opcodes of all transactions included in the block. +title: Mantle debug_traceBlock +sidebar_label: debug_traceBlock +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +# `debug_traceBlock` + +import Description from "/services/reference/_partials/debug-methods/_debug_traceblock-description.mdx" + + + +## Parameters + +import Params from "/services/reference/_partials/debug-methods/_debug_traceblock-parameters.mdx" + + + +## Returns + +import Returns from "/services/reference/_partials/debug-methods/_debug_traceblock-returns.mdx" + + + +## Example + +import Example from "/services/reference/_partials/debug-methods/_debug_traceblock-example.mdx" + + + +### Request + +import Request from "./_debug_traceblock-request.mdx" + + + +### Response + +import Response from "/services/reference/_partials/debug-methods/_debug_traceblock-response.mdx" + + diff --git a/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbyhash.md b/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbyhash.md deleted file mode 100644 index 9bc0a3fae79..00000000000 --- a/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbyhash.md +++ /dev/null @@ -1,90 +0,0 @@ ---- -description: Returns tracing results by executing all transactions in the block specified by the block hash. -title: Scroll Scroll debug_traceBlockByHash -sidebar_label: debug_traceBlockByHash ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `debug_traceBlockByHash` - -Returns tracing results by executing all transactions in the block specified by the block hash. - -:::caution Limited access - -Infura restricts `debug_traceCall` to a select set of customers. Please -[contact the Infura support team](https://support.infura.io/ipfs) to ask about custom plans. - -::: - -## Parameters - -- `blockHash`: (string) _[required]_ hash of the block to trace. -- Optional tracing options object with the following fields: - - `tracer`: (string) _[optional]_ type of tracer. Supports `flatCallTracer`or - `customTracer`. - - `tracerConfig`: (object) _[optional]_ tracer configuration options: - - `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any - sub-calls. It eliminates the additional processing for each call frame. - -## Returns - -Depending on the specified tracer type, returns the tracer object. - -## Example - -Replace `` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/). - -### Request - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash", "params": ["0xec8cb29209d9170b31008738ec9e80acc22257249cfd0f4bce19590cd09834c8", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x'{"jsonrpc": "2.0", "method": "debug_traceBlockByHash", "params": ["0xec8cb29209d9170b31008738ec9e80acc22257249cfd0f4bce19590cd09834c8", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -### Result - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": [ - { - "result": { - "from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001", - "gas": "0xee8c8", - "gasUsed": "0xd7f9", - "to": "0x4200000000000000000000000000000000000015", - "input": "0x015d8eb900000000000000000000000000000000000000000000000000000000012c62af000000000000000000000000000000000000000000000000000000006621c18b00000000000000000000000000000000000000000000000000000001de9ff92bbca330c2c309ce531df6a0861dfbb166848c5634054dc1552c9b54e6f98a83b100000000000000000000000000000000000000000000000000000000000000000000000000000000000000002f40d796917ffb642bd2e2bdd2c762a5e40fd74900000000000000000000000000000000000000000000000000000000000000bc0000000000000000000000000000000000000000000000000000000000002710", - "calls": [ - { - "from": "0x4200000000000000000000000000000000000015", - "gas": "0xe9a0d", - "gasUsed": "0x6af8", - "to": "0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30015", - "input": "0x015d8eb900000000000000000000000000000000000000000000000000000000012c62af000000000000000000000000000000000000000000000000000000006621c18b00000000000000000000000000000000000000000000000000000001de9ff92bbca330c2c309ce531df6a0861dfbb166848c5634054dc1552c9b54e6f98a83b100000000000000000000000000000000000000000000000000000000000000000000000000000000000000002f40d796917ffb642bd2e2bdd2c762a5e40fd74900000000000000000000000000000000000000000000000000000000000000bc0000000000000000000000000000000000000000000000000000000000002710", - "value": "0x0", - "type": "DELEGATECALL" - } - ], - "value": "0x0", - "type": "CALL" - } - } -``` diff --git a/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbyhash.mdx b/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbyhash.mdx new file mode 100644 index 00000000000..023296f0403 --- /dev/null +++ b/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbyhash.mdx @@ -0,0 +1,44 @@ +--- +description: Return tracing results by executing all transactions in the block specified by the block hash. +title: Mantle debug_traceBlockByHash +sidebar_label: debug_traceBlockByHash +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +# `debug_traceBlockByHash` + +import Description from "/services/reference/_partials/debug-methods/_debug_traceblockbyhash-description.mdx" + + + +## Parameters + +import Params from "/services/reference/_partials/debug-methods/_debug_traceblockbyhash-parameters.mdx" + + + +## Returns + +import Returns from "/services/reference/_partials/debug-methods/_debug_traceblockbyhash-returns.mdx" + + + +## Example + +import Example from "/services/reference/_partials/debug-methods/_debug_traceblockbyhash-example.mdx" + + + +### Request + +import Request from "./_debug_traceblockbyhash-request.mdx" + + + +### Response + +import Response from "/services/reference/_partials/debug-methods/_debug_traceblockbyhash-response.mdx" + + diff --git a/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbynumber.md b/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbynumber.md deleted file mode 100644 index dfc483a0979..00000000000 --- a/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbynumber.md +++ /dev/null @@ -1,88 +0,0 @@ ---- -description: Returns tracing results by executing all transactions in the specified block number. -title: Scroll Scroll debug_traceBlockByNumber -sidebar_label: debug_traceBlockByNumber ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `debug_traceBlockByNumber` - -Returns tracing results by executing all transactions in the specified block number. - -## Parameters - -- `blockNumber`: (string) _[required]_ block number as a hexadecimal string, or one of the string tags `latest`, `earliest` - , or `pending`, as [described in the default block parameters](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). -- Optional tracing options object with the following fields: - - `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or - [`prestateTracer`](../debug/index.md#prestatetracer). - - `tracerConfig`: (object) _[optional]_ tracer configuration options: - - `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any - sub-calls. It eliminates the additional processing for each call frame. - -## Returns - -Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or -[`prestateTracer`](../debug/index.md#prestatetracer) object. - -## Example - -Replace `` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/). - -### Request - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceBlockByNumber", "params": ["0x4d0c", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceBlockByNumber", "params": ["0x4d0c", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -### Result - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": [ - { - "result": { - "from": "0xa5ba45f484bc67fe293cf01f7d92d5ba3514dd42", - "gas": "0x5208", - "gasUsed": "0x5208", - "input": "0x", - "to": "0x45a318273749d6eb00f5f6ca3bc7cd3de26d642a", - "type": "CALL", - "value": "0x2ca186f5fda8004" - } - }, - { - "result": { - "from": "0x25f2650cc9e8ad863bf5da6a7598e24271574e29", - "gas": "0xfe0e", - "gasUsed": "0xafee", - "input": "0xd0e30db0", - "to": "0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f", - "type": "CALL", - "value": "0x2386f26fc10000" - } - } - ... - ] -} -``` diff --git a/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbynumber.mdx b/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbynumber.mdx new file mode 100644 index 00000000000..f640f412265 --- /dev/null +++ b/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbynumber.mdx @@ -0,0 +1,44 @@ +--- +description: Return tracing results by executing all transactions in the specified block number. +title: Mantle debug_traceBlockByNumber +sidebar_label: debug_traceBlockByNumber +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +# `debug_traceBlockByNumber` + +import Description from "/services/reference/_partials/debug-methods/_debug_traceblockbynumber-description.mdx" + + + +## Parameters + +import Params from "/services/reference/_partials/debug-methods/_debug_traceblockbynumber-parameters.mdx" + + + +## Returns + +import Returns from "/services/reference/_partials/debug-methods/_debug_traceblockbynumber-returns.mdx" + + + +## Example + +import Example from "/services/reference/_partials/debug-methods/_debug_traceblockbynumber-example.mdx" + + + +### Request + +import Request from "./_debug_traceblockbynumber-request.mdx" + + + +### Response + +import Response from "/services/reference/_partials/debug-methods/_debug_traceblockbynumber-response.mdx" + + diff --git a/services/reference/scroll/json-rpc-methods/debug/debug_tracecall.md b/services/reference/scroll/json-rpc-methods/debug/debug_tracecall.md deleted file mode 100644 index 8119b9ef4ce..00000000000 --- a/services/reference/scroll/json-rpc-methods/debug/debug_tracecall.md +++ /dev/null @@ -1,97 +0,0 @@ ---- -description: Returns the number of possible tracing results in the context of the given block execution. -title: Scroll Scroll debug_traceCall -sidebar_label: debug_traceCall ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `debug_traceCall` - -Returns the number of possible tracing result by executing an `eth_call` within the context of the -given block execution. - -:::caution Limited access - -Infura restricts `debug_traceCall` to a select set of customers. Please -[contact the Infura support team](https://support.infura.io/ipfs) to ask about custom plans. - -::: - -## Parameters - -- Transaction object with the following fields: - - `from`: (string) address (20 bytes) the transaction is sent from. - - `to`: (string) _[required]_ address (20 bytes) the transaction is directed to. - - `gas`: (string) hexadecimal value of the gas provided for the transaction execution. `eth_call` consumes zero - gas, but this parameter may be needed by some executions. - - `gasPrice`: (string) hexadecimal value of the `gasPrice` used for each paid gas. - - `maxPriorityFeePerGas`: (string) maximum fee, in wei, the sender is willing to pay per gas above the base fee. - - `maxFeePerGas`: (string) maximum total fee (base fee + priority fee), in wei, the sender is willing to pay per gas. - - `value`: (string) hexadecimal of the value sent with this transaction. - - `data`: (string) hash of the method signature and encoded parameters. - See [Ethereum contract ABI specification](https://docs.soliditylang.org/en/latest/abi-spec.html). -- `block parameter`: [_Required_] hexadecimal block number, or one of the string tags - `latest`, `earliest`, `pending`, or `finalized`. - See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: - -- Optional tracing options object with the following fields: - - `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or - [`prestateTracer`](../debug/index.md#prestatetracer). - - `tracerConfig`: (object) _[optional]_ tracer configuration options: - - `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any - sub-calls. It eliminates the additional processing for each call frame. - -## Returns - -Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or -[`prestateTracer`](../debug/index.md#prestatetracer) object. - -## Example - -Replace `` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/). - -### Request - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -### Result - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": { - "from": "0x0000000000000000000000000000000000000000", - "gas": "0x28cc0", - "gasUsed": "0x3635000", - "to": "0x6b175474e89094c44da98b954eedeac495271d0f", - "input": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be", - "value": "0x0", - "type": "CALL" - } -} -``` diff --git a/services/reference/scroll/json-rpc-methods/debug/debug_tracecall.mdx b/services/reference/scroll/json-rpc-methods/debug/debug_tracecall.mdx new file mode 100644 index 00000000000..f82e75611ea --- /dev/null +++ b/services/reference/scroll/json-rpc-methods/debug/debug_tracecall.mdx @@ -0,0 +1,44 @@ +--- +description: Returns the number of possible tracing results in the context of the given block execution. +title: Mantle debug_traceCall +sidebar_label: debug_traceCall +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +# `debug_traceCall` + +import Description from "/services/reference/_partials/debug-methods/_debug_tracecall-description.mdx" + + + +## Parameters + +import Params from "/services/reference/_partials/debug-methods/_debug_tracecall-parameters.mdx" + + + +## Returns + +import Returns from "/services/reference/_partials/debug-methods/_debug_tracecall-returns.mdx" + + + +## Example + +import Example from "/services/reference/_partials/debug-methods/_debug_tracecall-example.mdx" + + + +### Request + +import Request from "./_debug_tracecall-request.mdx" + + + +### Response + +import Response from "/services/reference/_partials/debug-methods/_debug_tracecall-response.mdx" + + From dde8e8e60b35f2f82619cef98fe41cf2f11ffff0 Mon Sep 17 00:00:00 2001 From: bgravenorst Date: Thu, 12 Jun 2025 09:33:41 +1000 Subject: [PATCH 07/11] Fix links. Signed-off-by: bgravenorst --- services/reference/scroll/json-rpc-methods/debug/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/reference/scroll/json-rpc-methods/debug/index.md b/services/reference/scroll/json-rpc-methods/debug/index.md index 2ef9e0edb41..5d22e6b27fd 100644 --- a/services/reference/scroll/json-rpc-methods/debug/index.md +++ b/services/reference/scroll/json-rpc-methods/debug/index.md @@ -8,10 +8,10 @@ sidebar_label: Debug methods The debug API methods allow you to inspect and debug the network. Infura supports the following debug methods on the Scroll network: -- [`debug_traceBlock`](debug_traceblock.md) -- [`debug_traceBlockByHash`](debug_traceblockbyhash.md) -- [`debug_traceBlockByNumber`](debug_traceblockbynumber.md) -- [`debug_traceCall`](debug_tracecall.md) +- [`debug_traceBlock`](debug_traceblock.mdx) +- [`debug_traceBlockByHash`](debug_traceblockbyhash.mdx) +- [`debug_traceBlockByNumber`](debug_traceblockbynumber.mdx) +- [`debug_traceCall`](debug_tracecall.mdx) ## Debug tracing types From 5cebdd03aa30223fabac7adad823ff79a134a83c Mon Sep 17 00:00:00 2001 From: bgravenorst Date: Thu, 12 Jun 2025 10:50:42 +1000 Subject: [PATCH 08/11] Add Gas API. Signed-off-by: bgravenorst --- .../gas-api/api-reference/basefeehistory.md | 4 ++-- .../gas-api/api-reference/basefeepercentile.md | 3 ++- .../reference/gas-api/api-reference/busythreshold.md | 3 ++- .../gas-api/api-reference/gasprices-type2.md | 3 ++- .../linea/json-rpc-methods/linea_estimategas.mdx | 3 ++- .../reference/mantle/json-rpc-methods/debug/index.md | 12 ++++++------ src/lib/data.js | 1 + 7 files changed, 17 insertions(+), 12 deletions(-) diff --git a/services/reference/gas-api/api-reference/basefeehistory.md b/services/reference/gas-api/api-reference/basefeehistory.md index 47d994ff65a..4521e81a238 100644 --- a/services/reference/gas-api/api-reference/basefeehistory.md +++ b/services/reference/gas-api/api-reference/basefeehistory.md @@ -1,13 +1,13 @@ --- description: Get the base fee history. --- - +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; # Get the base fee history -Returns the base fee history of the specified blockchain network for the previous 500 blocks. +Returns the base fee history of the specified blockchain network for the previous 500 blocks. The base fee is a part of the EIP-1559 upgrade to the Ethereum network, and it represents the minimum price a user must pay for their transaction to be included in a block. diff --git a/services/reference/gas-api/api-reference/basefeepercentile.md b/services/reference/gas-api/api-reference/basefeepercentile.md index da916dbcf41..def7454f2c6 100644 --- a/services/reference/gas-api/api-reference/basefeepercentile.md +++ b/services/reference/gas-api/api-reference/basefeepercentile.md @@ -2,12 +2,13 @@ description: Get the base fee percentile for a chain. --- +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; # Get the base fee percentile -Returns the base fee percentile (50th percentile) of the specified blockchain network. +Returns the base fee percentile (50th percentile) of the specified blockchain network. For example, if the API returns a value of `20` Gwei, it means that 50% of the historical base fees are less than or equal to `20` Gwei. diff --git a/services/reference/gas-api/api-reference/busythreshold.md b/services/reference/gas-api/api-reference/busythreshold.md index a441fd89d1a..aeb7d8c78e5 100644 --- a/services/reference/gas-api/api-reference/busythreshold.md +++ b/services/reference/gas-api/api-reference/busythreshold.md @@ -2,12 +2,13 @@ description: Get the busy threshold. --- +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; # Get the busy threshold -Returns the busy threshold for the specified blockchain network. +Returns the busy threshold for the specified blockchain network. For example, a `busyThreshold` value of `30` Gwei indicates that 90% of the historical base fees on the network have been below `30` Gwei. diff --git a/services/reference/gas-api/api-reference/gasprices-type2.md b/services/reference/gas-api/api-reference/gasprices-type2.md index 0ee37997312..2005868eb0c 100644 --- a/services/reference/gas-api/api-reference/gasprices-type2.md +++ b/services/reference/gas-api/api-reference/gasprices-type2.md @@ -2,13 +2,14 @@ description: Get the estimated gas prices for a chain. --- +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; # Get EIP-1559 gas prices Returns the estimated [EIP-1559](https://eips.ethereum.org/EIPS/eip-1559) gas fees for the specified -blockchain network. +blockchain network. **GET** `https://gas.api.infura.io/networks/${chainId}/suggestedGasFees` diff --git a/services/reference/linea/json-rpc-methods/linea_estimategas.mdx b/services/reference/linea/json-rpc-methods/linea_estimategas.mdx index 10021051855..88e1053996a 100644 --- a/services/reference/linea/json-rpc-methods/linea_estimategas.mdx +++ b/services/reference/linea/json-rpc-methods/linea_estimategas.mdx @@ -3,13 +3,14 @@ title: linea_estimateGas sidebar_label: linea_estimateGas --- +import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; # `linea_estimateGas` Generates and returns the estimated amount of gas required to allow the transaction to complete and be -published on Ethereum. The method does not submit the transaction to the blockchain. +published on Ethereum. The method does not submit the transaction to the blockchain. The `priorityFeePerGas` returned by this method includes the cost of submitting the transaction to Ethereum, which can vary based on the size of the `calldata`. diff --git a/services/reference/mantle/json-rpc-methods/debug/index.md b/services/reference/mantle/json-rpc-methods/debug/index.md index 87db81e5466..2e844f225cf 100644 --- a/services/reference/mantle/json-rpc-methods/debug/index.md +++ b/services/reference/mantle/json-rpc-methods/debug/index.md @@ -8,12 +8,12 @@ sidebar_label: Debug methods The debug API methods allow you to inspect and debug the network. Infura supports the following debug methods on the Mantle network: -- [`debug_storageRangeAt`](debug_storagerangeat.md) -- [`debug_traceBlock`](debug_traceblock.md) -- [`debug_traceBlockByHash`](debug_traceblockbyhash.md) -- [`debug_traceBlockByNumber`](debug_traceblockbynumber.md) -- [`debug_traceTransaction`](debug_tracetransaction.md) -- [`debug_traceCall`](debug_tracecall.md) +- [`debug_storageRangeAt`](debug_storagerangeat.mdx) +- [`debug_traceBlock`](debug_traceblock.mdx) +- [`debug_traceBlockByHash`](debug_traceblockbyhash.mdx) +- [`debug_traceBlockByNumber`](debug_traceblockbynumber.mdx) +- [`debug_traceTransaction`](debug_tracetransaction.mdx) +- [`debug_traceCall`](debug_tracecall.mdx) ## Debug tracing types diff --git a/src/lib/data.js b/src/lib/data.js index e8e96074f3b..87573c67c47 100644 --- a/src/lib/data.js +++ b/src/lib/data.js @@ -213,6 +213,7 @@ export const API_COSTS = { }, linea: { 'linea_estimateGas': 100, + 'linea_getTransactionExclusionStatusV1': 160, }, polygon: { 'bor_getAuthor': 80, From c01d50272e8c127aacda1da4fa2c1abb8a700244 Mon Sep 17 00:00:00 2001 From: Byron Gravenorst <50852695+bgravenorst@users.noreply.github.com> Date: Fri, 13 Jun 2025 09:53:37 +1000 Subject: [PATCH 09/11] Update services/get-started/pricing/credit-cost.mdx Co-authored-by: Alexandra Carrillo <12214231+alexandratran@users.noreply.github.com> --- services/get-started/pricing/credit-cost.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/get-started/pricing/credit-cost.mdx b/services/get-started/pricing/credit-cost.mdx index f80632f19e3..09751fad069 100644 --- a/services/get-started/pricing/credit-cost.mdx +++ b/services/get-started/pricing/credit-cost.mdx @@ -42,7 +42,7 @@ When making requests that return status code errors, some errors count towards y The Ethereum methods serve as a baseline for pricing RPC methods. If a credit cost is not available for a specific network, then use the default Ethereum method's credit cost. -### Standard Ethereum-compliant JSON-RPC methods +### Standard Ethereum-compliant methods From b0e99ef99f89e1fcea97d33dd582941b097b5b1a Mon Sep 17 00:00:00 2001 From: Byron Gravenorst <50852695+bgravenorst@users.noreply.github.com> Date: Fri, 13 Jun 2025 09:53:44 +1000 Subject: [PATCH 10/11] Update src/components/CreditCost/CreditCostPrice.js Co-authored-by: Alexandra Carrillo <12214231+alexandratran@users.noreply.github.com> --- src/components/CreditCost/CreditCostPrice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CreditCost/CreditCostPrice.js b/src/components/CreditCost/CreditCostPrice.js index 86e2d340ace..55ddd393c3e 100644 --- a/src/components/CreditCost/CreditCostPrice.js +++ b/src/components/CreditCost/CreditCostPrice.js @@ -12,7 +12,7 @@ const CreditCost = ({ network, method }) => { return ( This method consumes{' '} - + {cost} credits {' '} from your daily balance. From 673764e720cd6cd6ecc1ed279c09fdf1e2f0dced Mon Sep 17 00:00:00 2001 From: bgravenorst Date: Fri, 13 Jun 2025 10:19:05 +1000 Subject: [PATCH 11/11] Update wording. Signed-off-by: bgravenorst --- src/components/CreditCost/CreditCostPrice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CreditCost/CreditCostPrice.js b/src/components/CreditCost/CreditCostPrice.js index 55ddd393c3e..ee611989aab 100644 --- a/src/components/CreditCost/CreditCostPrice.js +++ b/src/components/CreditCost/CreditCostPrice.js @@ -11,7 +11,7 @@ const CreditCost = ({ network, method }) => { return ( - This method consumes{' '} + This method uses{' '} {cost} credits {' '}