Skip to content

Commit

Permalink
Adding Optimism
Browse files Browse the repository at this point in the history
  • Loading branch information
productshiv committed Apr 6, 2024
1 parent 0c8add2 commit 9edbcca
Show file tree
Hide file tree
Showing 38 changed files with 823 additions and 611 deletions.
109 changes: 0 additions & 109 deletions v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gettransactionbyhash.md

This file was deleted.

105 changes: 0 additions & 105 deletions v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gettransactionreceipt.md

This file was deleted.

16 changes: 0 additions & 16 deletions v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_maxpriorityfeepergas.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Klaytn"
slug: "rpc-klaytn"
title: "Optimism"
slug: "rpc-optimism"
excerpt: ""
category: 65c5e93c623cad004b45d505
hidden: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: "debug_getbadblocks"
slug: "rpc-klaytn-debug_getbadblocks"
excerpt: "Klaytn RPC"
slug: "rpc-optimism-debug_getbadblocks"
excerpt: "Optimism RPC"
category: 65c5e93c623cad004b45d505
hidden: false
metadata:
description: "Klaytn RPC"
description: "Optimism RPC"
image: []
keywords: "klaytn, rpc"
keywords: "optimism, rpc"
robots: "index"
createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)"
Expand All @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)"
```typescript
// yarn add @tatumio/tatum

import { TatumSDK, Klaytn, Network } from '@tatumio/tatum'
import { TatumSDK, Optimism, Network } from '@tatumio/tatum'

const tatum = await TatumSDK.init<Klaytn>({network: Network.KLAYTN})
const tatum = await TatumSDK.init<Optimism>({network: Network.OPTIMISM})

const result = await tatum.rpc.debugGetBadBlocks()

Expand All @@ -36,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs

### Overview

`debug_getBadBlocks` is an RPC method that provides a list of the most recent bad blocks encountered by the client on the network. This feature is valuable for developers and node operators, as it enables them to identify and address any issues or anomalies related to block validation and synchronization.
`debug_getBadBlocks` is na RPC method that provides a list of the most recent bad blocks encountered by the client on the network. This feature is valuable for developers and node operators, as it enables them to identify and address any issues or anomalies related to block validation and synchronization.

By accessing `debug_getBadBlocks`, they can diagnose potential problems and take appropriate actions to ensure the network's stability and integrity.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: "debug_storagerangeat"
slug: "rpc-klaytn-debug_storagerangeat"
excerpt: "Klaytn RPC"
slug: "rpc-optimism-debug_storagerangeat"
excerpt: "Optimism RPC"
category: 65c5e93c623cad004b45d505
hidden: false
metadata:
description: "Klaytn RPC"
description: "Optimism RPC"
image: []
keywords: "klaytn, rpc"
keywords: "optimism, rpc"
robots: "index"
createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)"
Expand All @@ -22,13 +22,13 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)"
```typescript
// yarn add @tatumio/tatum

import { TatumSDK, Klaytn, Network } from '@tatumio/tatum'

const tatum = await TatumSDK.init<Klaytn>({network: Network.KLAYTN})
import { TatumSDK, Optimism, Network } from '@tatumio/tatum'

const res = await tatum.rpc.debugStorageRangeAt(
'0xcb632c914a18d838113f1e0cbf3ebc58e837c9497113c247001ecd52b212768e',
1, '0x898f2afc07924f5a4f9612449e4c4f8eca527515', '0x0000000000000000000000000000000000000000000000000000000000000000', 1
const tatum = await TatumSDK.init<Optimism>({network: Network.OPTIMISM})

const result = await tatum.rpc.debugStorageRangeAt(
'0x00ccb8a97e104e09ebec66f9c58aca7d42df4fbb7cfcf1a9ff4cb7fc08814cd6',
1, '0x365a2dabcdb56f4f595c3af088b8975c26331448', '0x0000000000000000000000000000000000000000000000000000000000000000', 1
)

await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: "debug_traceblock"
slug: "rpc-klaytn-debug_traceblock"
excerpt: "Klaytn RPC"
slug: "rpc-optimism-debug_traceblock"
excerpt: "Optimism RPC"
category: 65c5e93c623cad004b45d505
hidden: false
metadata:
description: "Klaytn RPC"
description: "Optimism RPC"
image: []
keywords: "klaytn, rpc"
keywords: "optimism, rpc"
robots: "index"
createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)"
Expand All @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)"
```typescript
// yarn add @tatumio/tatum

import { TatumSDK, Klaytn, Network } from '@tatumio/tatum'
import { TatumSDK, Optimism, Network } from '@tatumio/tatum'

const tatum = await TatumSDK.init<Klaytn>({network: Network.KLAYTN})
const tatum = await TatumSDK.init<Optimism>({network: Network.OPTIMISM})

const result = await tatum.rpc.debugTraceBlock('0x80F8C7A' ,{
const result = await tatum.rpc.debugTraceBlock('0xAD7C5E' ,{
tracer: 'callTracer',
tracerConfig: {
onlyTopCall: true,
Expand Down
Loading

0 comments on commit 9edbcca

Please sign in to comment.