Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 27 additions & 16 deletions docs/polygon-methods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ Our pricing is simple: 1 RU per full request, 2 RUs per archive. For which EVM m

See also [interactive Polygon API call examples](/reference/polygon-getting-started).

Polygon runs on the Bor client, which does not implement the Erigon-only Parity `trace_*` or `erigon_*` namespaces. Migrate the `trace_*` methods to their `debug_*` equivalents:

| Parity `trace_*` method | Replacement on Bor |
| --- | --- |
| `trace_transaction` | [`debug_traceTransaction`](/reference/polygon-tracetransaction) with `callTracer` |
| `trace_block` | [`debug_traceBlockByNumber`](/reference/polygon-traceblockbynumber) with `callTracer` |
| `trace_call` | [`debug_traceCall`](/reference/polygon-tracecall) with `callTracer` |
| `trace_filter`, `trace_replayBlockTransactions`, `trace_replayTransaction` | [`debug_traceBlockByNumber`](/reference/polygon-traceblockbynumber) per block, or [`eth_getLogs`](/docs/understanding-eth-getlogs-limitations) for event ranges |

The `debug_trace*` methods return equivalent execution traces on Bor. The `erigon_*` convenience methods have no Bor equivalent — use the standard `eth_*` methods instead.

| Method | Availability | Comment |
| ---------------------------------------- | ------------ | ------- |
| eth\_accounts | <Icon icon="square-check" iconType="solid" /> | |
Expand Down Expand Up @@ -55,14 +66,14 @@ See also [interactive Polygon API call examples](/reference/polygon-getting-star
| txpool\_status | <Icon icon="xmark" iconType="solid" /> | |
| web3\_clientVersion | <Icon icon="square-check" iconType="solid" /> | |
| web3\_sha3 | <Icon icon="square-check" iconType="solid" /> | |
| erigon\_blockNumber | <Icon icon="square-check" iconType="solid" /> | |
| erigon\_forks | <Icon icon="square-check" iconType="solid" /> | |
| erigon\_getBlockByTimestamp | <Icon icon="square-check" iconType="solid" /> | |
| erigon\_getBlockReceiptsByBlockHash | <Icon icon="square-check" iconType="solid" /> | |
| erigon\_getHeaderByHash | <Icon icon="square-check" iconType="solid" /> | |
| erigon\_getHeaderByNumber | <Icon icon="square-check" iconType="solid" /> | |
| erigon\_getLatestLogs | <Icon icon="square-check" iconType="solid" /> | |
| erigon\_getLogsByHash | <Icon icon="square-check" iconType="solid" /> | |
| erigon\_blockNumber | <Icon icon="xmark" iconType="solid" /> | Use `eth_*` |
| erigon\_forks | <Icon icon="xmark" iconType="solid" /> | Use `eth_*` |
| erigon\_getBlockByTimestamp | <Icon icon="xmark" iconType="solid" /> | Use `eth_*` |
| erigon\_getBlockReceiptsByBlockHash | <Icon icon="xmark" iconType="solid" /> | Use `eth_*` |
| erigon\_getHeaderByHash | <Icon icon="xmark" iconType="solid" /> | Use `eth_*` |
| erigon\_getHeaderByNumber | <Icon icon="xmark" iconType="solid" /> | Use `eth_*` |
| erigon\_getLatestLogs | <Icon icon="xmark" iconType="solid" /> | Use `eth_*` |
| erigon\_getLogsByHash | <Icon icon="xmark" iconType="solid" /> | Use `eth_*` |
| debug\_getBadBlocks | <Icon icon="square-check" iconType="solid" /> | |
| debug\_storageRangeAt | <Icon icon="square-check" iconType="solid" /> | |
| debug\_getTrieFlushInterval | <Icon icon="square-check" iconType="solid" /> | |
Expand All @@ -71,14 +82,14 @@ See also [interactive Polygon API call examples](/reference/polygon-getting-star
| debug\_traceBlockByNumber | <Icon icon="square-check" iconType="solid" /> | |
| debug\_traceCall | <Icon icon="square-check" iconType="solid" /> | |
| debug\_traceTransaction | <Icon icon="square-check" iconType="solid" /> | |
| trace\_block | <Icon icon="square-check" iconType="solid" /> | |
| trace\_call | <Icon icon="square-check" iconType="solid" /> | |
| trace\_callMany | <Icon icon="square-check" iconType="solid" /> | |
| trace\_filter | <Icon icon="square-check" iconType="solid" /> | |
| trace\_rawTransaction | <Icon icon="square-check" iconType="solid" /> | |
| trace\_replayBlockTransactions | <Icon icon="square-check" iconType="solid" /> | |
| trace\_replayTransaction | <Icon icon="square-check" iconType="solid" /> | |
| trace\_transaction | <Icon icon="square-check" iconType="solid" /> | |
| trace\_block | <Icon icon="xmark" iconType="solid" /> | Use `debug_trace*` |
| trace\_call | <Icon icon="xmark" iconType="solid" /> | Use `debug_trace*` |
| trace\_callMany | <Icon icon="xmark" iconType="solid" /> | Use `debug_trace*` |
| trace\_filter | <Icon icon="xmark" iconType="solid" /> | Use `debug_trace*` |
| trace\_rawTransaction | <Icon icon="xmark" iconType="solid" /> | Use `debug_trace*` |
| trace\_replayBlockTransactions | <Icon icon="xmark" iconType="solid" /> | Use `debug_trace*` |
| trace\_replayTransaction | <Icon icon="xmark" iconType="solid" /> | Use `debug_trace*` |
| trace\_transaction | <Icon icon="xmark" iconType="solid" /> | Use `debug_trace*` |
| bor\_getAuthor | <Icon icon="square-check" iconType="solid" /> | |
| bor\_getCurrentProposer | <Icon icon="square-check" iconType="solid" /> | |
| bor\_getCurrentValidators | <Icon icon="square-check" iconType="solid" /> | |
Expand Down
4 changes: 4 additions & 0 deletions reference/polygon-trace_block.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ description: "Polygon API method that returns traces for all the transactions wi

Polygon API method that returns traces for all the transactions within a specific block. Developers can use the `trace_block` method to gain insight into the behavior of smart contracts within a block, analyze gas usage and optimize their contracts accordingly. This method is only available on an Erigon instance.

<Warning>
**Not available on Polygon.** Chainstack serves Polygon on the Bor client (archive uses Bor with PBSS), which does not implement the Erigon-only `trace_*` namespace. Use [`debug_traceBlockByNumber`](/reference/polygon-traceblockbynumber) with the `callTracer`, which returns equivalent per-transaction call traces for a block on Bor.
</Warning>

<Visibility for="humans">
<Check>
**Get your own node endpoint today**
Expand Down
4 changes: 4 additions & 0 deletions reference/polygon-trace_transaction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ description: "Polygon API method that traces a specific transaction. trace_trans

Polygon API method that traces a specific transaction. It provides a detailed record of all the steps taken by the Ethereum Virtual Machine (EVM) during the execution, including all the operations performed and the changes made to the blockchain state. This method is available on Erigon only.

<Warning>
**Not available on Polygon.** Chainstack serves Polygon on the Bor client (archive uses Bor with PBSS), which does not implement the Erigon-only `trace_*` namespace. Use [`debug_traceTransaction`](/reference/polygon-tracetransaction) with the `callTracer`, which returns an equivalent call trace on Bor.
</Warning>

<Visibility for="humans">
<Check>
**Get your own node endpoint today**
Expand Down