diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_tracecall.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_tracecall.md deleted file mode 100644 index 80b9bdcb..00000000 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_tracecall.md +++ /dev/null @@ -1,139 +0,0 @@ ---- -title: "debug_tracecall" -slug: "rpc-horizen-eon-debug_tracecall" -excerpt: "Horizen Eon RPC" -category: 65c5e93c623cad004b45d505 -hidden: false -metadata: - description: "Horizen Eon RPC" - image: [] - keywords: "horizen-eon, 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)" ---- -[block:html]{"html":"
\n
Archive Method
\n

Only on the full archive nodes. Complex queries might take longer and incur additional cost

\n
"}[/block] - -### How to use it - -{% tabs %} -{% tab title="TypeScript/JavaScript" %} -{% code overflow="wrap" lineNumbers="true" %} -```typescript -// yarn add @tatumio/tatum - -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) - -const result = await tatum.rpc.debugTraceCall({ - "from": "0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86", - "to": "0xa41d19F4258a388c639B7CcD938FCE3fb7D05e87", - "gas": "0x76c0", - "gasPrice": "0x9184e72a000", - "value": "0x9184e72a", - "data": "0x606060..." - }, - "0xAD7C5E", - { - tracer: 'callTracer', - tracerConfig: { - onlyTopCall: true, - timeout: '5s', - } -} -) - -await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs -``` -{% endcode %} -{% endtab %} -{% endtabs %} - -### Overview - -`debug_traceCall` is an RPC method that allows you to execute a given call (message), tracing the steps of its execution. This can be helpful for developers and auditors who want to inspect and analyze the internal operations and state changes of a contract call without modifying the blockchain state. This method can assist in debugging and identifying potential issues with contract execution, as well as understanding how gas is consumed during the execution of a call. - -### Parameters - -The `debug_traceCall` method accepts the following parameters: - -* `transaction`: An object that contains the following fields: - * `from`: The address from which the call is initiated. Example: `"0xa7d9ddbe1f17865597fbd27ec712455208b6b76d"` - * `to`: The address of the contract to be called. Example: `"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"` - * `gas`: (Optional) The gas limit for the call. Example: `"0x76c0"` - * `gasPrice`: (Optional) The gas price for the call. Example: `"0x9184e72a000"` - * `value`: (Optional) The value to be transferred during the call. Example: `"0x9184e72a"` - * `data`: (Optional) The input data for the call, encoded as a hexadecimal string. Example: `"0x606060..."` -* `blockNumber`: The block number as a hexadecimal string for which the call should be traced. Example: `"0x1b4"` - -### Return Object - -The return object is an object containing the following fields: - -* `output`: The output data from the call. -* `gasUsed`: The total gas used by the call. -* `calls`: An array of objects, each representing a nested call made during the call. Each object contains: - * `from`: The address the call was made from. - * `gas`: The gas provided for the call. - * `gasUsed`: The gas used by the call. - * `to`: The address the call was made to. - * `input`: The input data for the call. - * `output`: The output data from the call. - * `type`: The type of the call (e.g., "STATICCALL"). - -{% hint style="info" %} -This method is available only on the full archive node. -{% endhint %} - -### JSON-RPC Request and Response Examples - -#### Request - -
{
-  "jsonrpc": "2.0",
-  "id": 1,
-  "method": "debug_traceCall",
-  "params": [
-    {
-      "from": "0xa7d9ddbe1f17865597fbd27ec712455208b6b76d",
-      "to": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
-      "gas": "0x76c0",
-      "gasPrice": "0x9184e72a000",
-      "value": "0x9184e72a",
-      "data": "0x606060..."
-    },
-    "0x1b4"
-  ]
-}
-
- -#### Response - -```json -{ - "jsonrpc": "2.0", - "id": 2, - "result": { - "from": "0x0a6d033f6628ef715732d61e059187b7330305ff", - "gas": "0x51fba", - "gasUsed": "0x41711", - "to": "0x19e870855cb8fd8f6689743d3c28311c0d62a24c", - "input": "0xcba9bc66000000000000000000000000f62ef040fb5ea7d0828ff50bced9a7720f1387c7000000000000000000000000325e343f1de602396e256b67efd1f61c3a6b38bd00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000001158e460913d000000000000000000000000000000000000000000000000000000100a08761e1547f0000000000000000000000000a6d033f6628ef715732d61e059187b7330305ff000000000000000000000000000000000000000000000000000000000000000300000000000000000000000055d398326f99059ff775485246999027b319795500000000000000000000000053e562b9b7e5e94b81f10e96ee70ad06df3d265700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "output": "0x0000000000000000000000000000000000000000000000000102b1eda6a2682d", - "calls": [ - { - "from": "0x19e870855cb8fd8f6689743d3c28311c0d62a24c", - "gas": "0x4f638", - "gasUsed": "0x4cf", - "to": "0x55d398326f99059ff775485246999027b3197955", - "input": "0x70a082310000000000000000000000000a6d033f6628ef715732d61e059187b7330305ff", - "output": "0x00000000000000000000000000000000000000000000002ca114a674b092dd94", - "type": "STATICCALL" - } - ], - "value": "0x0", - "type": "CALL" - } -} -``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_maxpriorityfeepergas.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_maxpriorityfeepergas.md deleted file mode 100644 index 7893df3a..00000000 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_maxpriorityfeepergas.md +++ /dev/null @@ -1,76 +0,0 @@ ---- -title: "eth_maxpriorityfeepergas" -slug: "rpc-horizen-eon-eth_maxpriorityfeepergas" -excerpt: "Horizen Eon RPC" -category: 65c5e93c623cad004b45d505 -hidden: false -metadata: - description: "Horizen Eon RPC" - image: [] - keywords: "horizen-eon, 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)" ---- -[block:html]{"html":"
\n
Archive Method
\n

Only on the full archive nodes. Complex queries might take longer and incur additional cost

\n
"}[/block] - -### How to use it - -{% tabs %} -{% tab title="TypeScript/JavaScript" %} -{% code overflow="wrap" lineNumbers="true" %} -```typescript -// yarn add @tatumio/tatum - -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) - -const gasPrice = await tatum.rpc.maxPriorityFeePerGas() - -await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs -``` -{% endcode %} -{% endtab %} -{% endtabs %} - -### Overview - -The `eth_maxPriorityFeePerGas` RPC method is used to retrieve the maximum priority fee per gas set by the user for a transaction. This method can be used to determine the maximum fee that can be paid for a transaction to be included in a block quickly. - -### Use case - -This method is particularly useful when the user wants to ensure that a transaction is processed quickly, even in a congested network where transaction fees may fluctuate rapidly. By setting a high maximum priority fee per gas, the user can ensure that the transaction is processed as quickly as possible. - -### Parameters - -`None.` - -## Return Object - -* `maxPriorityFeePerGas` - The maximum priority fee per gas the user is willing to pay, in wei. - -### JSON Examples - -#### Request - -```json -{ - "jsonrpc": "2.0", - "method": "eth_maxPriorityFeePerGas", - "params": [], - "id": 1 -} -``` - -#### Response - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": "0x3b9aca00" -} -``` - -\ diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn.md similarity index 83% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn.md index 43f8348f..115cc284 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn.md @@ -1,6 +1,6 @@ --- -title: "Horizen Eon" -slug: "rpc-horizen-eon" +title: "Klaytn" +slug: "rpc-klaytn" excerpt: "" category: 65c5e93c623cad004b45d505 hidden: false diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_getbadblocks.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_getbadblocks.md new file mode 100644 index 00000000..56f8cf7f --- /dev/null +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_getbadblocks.md @@ -0,0 +1,116 @@ +--- +title: "debug_getbadblocks" +slug: "rpc-klaytn-debug_getbadblocks" +excerpt: "Klaytn RPC" +category: 65c5e93c623cad004b45d505 +hidden: false +metadata: + description: "Klaytn RPC" + image: [] + keywords: "klaytn, 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)" +--- +[block:html]{"html":"
\n
Archive Method
\n

Only on the full archive nodes. Complex queries might take longer and incur additional cost

\n
"}[/block] + +### How to use it + +{% tabs %} +{% tab title="TypeScript/JavaScript" %} +{% code overflow="wrap" lineNumbers="true" %} +```typescript +// yarn add @tatumio/tatum + +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.KLAYTN}) + +const result = await tatum.rpc.debugGetBadBlocks() + +await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs +``` +{% endcode %} +{% endtab %} +{% endtabs %} + +### 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. + +By accessing `debug_getBadBlocks`, they can diagnose potential problems and take appropriate actions to ensure the network's stability and integrity. + +### Parameters + +* This method does not accept any parameters. + +### Return Object + +The output is an array of objects, with each object representing the trace result of a transaction within the block. These objects include essential details such as the transaction hash and a block object, which can be null if no block was found for the transaction: + +* `baseFeePerGas`: The integer representation of the difficulty for this block encoded as hexadecimal. +* `difficulty`: The integer representation of the difficulty for this block encoded as hexadecimal. +* `extraData`: The extra data field of this block. +* `gasLimit`: The maximum gas allowed in this block encoded as hexadecimal. +* `gasUsed`: The total used gas by all transactions in this block encoded as hexadecimal. +* `logsBloom`: The bloom filter for the logs of the block. Null if pending. +* `miner`: The address of the beneficiary to whom the mining rewards were given. +* `mixHash`: A 256-bit hash encoded as hexadecimal. +* `nonce`: The hash of the generated proof-of-work. Null if pending. +* `number`: The block number of the requested block encoded as hexadecimal. Null if pending. +* `parentHash`: The hash of the parent block. +* `receiptsRoot`: The root of the receipts trie of the block. +* `sha3Uncles`: The SHA3 of the uncles' data in the block. +* `size`: The size of this block in bytes as an Integer value encoded as hexadecimal. +* `stateRoot`: The root of the final state trie of the block. +* `timestamp`: The Unix timestamp for when the block was collated. +* `transactions`: An array of transaction objects with the following fields: + * `blockHash`: The hash of the block where this log was in. Null when it's a pending log. + * `blockNumber`: The block number where this log was in. Null when it's a pending log. + * `from`: The address of the sender. + * `gas`: The gas provided by the sender, encoded as hexadecimal. + * `gasPrice`: The gas price provided by the sender in wei, encoded as hexadecimal. + * `maxFeePerGas`: The maximum fee per gas set in the transaction. + * `maxPriorityFeePerGas`: The maximum priority gas fee set in the transaction. + * `hash`: The hash of the transaction. + * `input`: The data sent along with the transaction. + * `nonce`: The number of transactions made by the sender before this one encoded as hexadecimal. + * `to`: The address of the receiver. Null when it's a contract creation transaction. + * `transactionIndex`: The integer of the transaction's index position that the log was created from. Null when it's a pending log. + * `value`: The value transferred in wei encoded as hexadecimal. + * `type`: The transaction type. + * `accessList`: A list of addresses and storage keys that the transaction plans to access. + * `chainId`: The chain id of the transaction, if any. + * `v`: The standardized V field of the signature. + * `r`: The R field of the signature. + * `s`: The S field of the signature. +* `transactionsRoot`: The root of the transaction trie of the block. +* `uncles`: An array of uncle hashes. +* `rlp`: The RLP encoded header. + +{% hint style="info" %} +This method is available only on the full archive node. +{% endhint %} + +### JSON-RPC Request and Response Examples + +#### Request + +```json +{ + "id": 1, + "jsonrpc": "2.0", + "method": "debug_getBadBlocks", + "params": [] +} +``` + +#### Response + +```json +{ + "jsonrpc": "2.0", + "id": 1, + "result": [] +} +``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_storagerangeat.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_storagerangeat.md new file mode 100644 index 00000000..bcefa785 --- /dev/null +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_storagerangeat.md @@ -0,0 +1,97 @@ +--- +title: "debug_storagerangeat" +slug: "rpc-klaytn-debug_storagerangeat" +excerpt: "Klaytn RPC" +category: 65c5e93c623cad004b45d505 +hidden: false +metadata: + description: "Klaytn RPC" + image: [] + keywords: "klaytn, 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)" +--- +[block:html]{"html":"
\n
Archive Method
\n

Only on the full archive nodes. Complex queries might take longer and incur additional cost

\n
"}[/block] + +### How to use it + +{% tabs %} +{% tab title="TypeScript/JavaScript" %} +{% code overflow="wrap" lineNumbers="true" %} +```typescript +// yarn add @tatumio/tatum + +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.KLAYTN}) + +const res = await tatum.rpc.debugStorageRangeAt( + '0xcb632c914a18d838113f1e0cbf3ebc58e837c9497113c247001ecd52b212768e', + 1, '0x898f2afc07924f5a4f9612449e4c4f8eca527515', '0x0000000000000000000000000000000000000000000000000000000000000000', 1 +) + +await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs +``` +{% endcode %} +{% endtab %} +{% endtabs %} + +### Overview + +`debug_storageRangeAt` is an RPC method that allows you to retrieve the contract storage range for a given block and address. This can be useful for developers and auditors who want to inspect the storage state of a specific contract at a particular point in time. This method can also help in debugging and identifying potential issues with contract storage, as well as understanding how storage evolves as transactions are executed. + +### Parameters + +The `debug_storageRangeAt` method accepts the following parameters: + +* `blockHash`: The block hash for which the storage range should be retrieved. Example: `"0x3c4523b7e8c21e3d68f1c3af3d18e8a87c0d43e35b2c1b7f8f4e87e4d4db9c82"` +* `txIndex`: The transaction index within the specified block. Example: `1` +* `address`: The contract address for which the storage range should be retrieved. Example: `"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"` +* `begin`: The beginning of the storage range. Example: `"0x0000000000000000000000000000000000000000000000000000000000000000"` +* `end`: The end of the storage range. Example: `1` (inclusive) + +### Return Object + +The `debug_storageRangeAt` method returns an object with the following fields: + +* `storage`: An object that contains key-value pairs representing the contract storage, where the key is the storage slot and the value is the stored data. Example: `"0x00..01": "0x00..01"` +* `nextKey`: A key indicating the next storage slot if the requested range is too large, otherwise `null`. Example: `"0x00..02"` or `null` + +{% hint style="info" %} +This method is available only on the full archive node. +{% endhint %} + +### JSON-RPC Request and Response Examples + +#### Request + +```json +{ + "jsonrpc": "2.0", + "id": 1, + "method": "debug_storageRangeAt", + "params": [ + "0x3c4523b7e8c21e3d68f1c3af3d18e8a87c0d43e35b2c1b7f8f4e87e4d4db9c82", + "0x1", + "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", + "0x0000000000000000000000000000000000000000000000000000000000000000", 1 + ] +} +``` + +#### Response + +```json +{ + "jsonrpc": "2.0", + "id": 1, + "result": { + "storage": { + "0x0000000000000000000000000000000000000000000000000000000000000001": "0x0000000000000000000000000000000000000000000000000000000000000001", + "0x0000000000000000000000000000000000000000000000000000000000000002": "0x0000000000000000000000000000000000000000000000000000000000000002" + }, + "nextKey": "0x0000000000000000000000000000000000000000000000000000000000000065" + } +} +``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_traceblock.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_traceblock.md new file mode 100644 index 00000000..b11708fb --- /dev/null +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_traceblock.md @@ -0,0 +1,119 @@ +--- +title: "debug_traceblock" +slug: "rpc-klaytn-debug_traceblock" +excerpt: "Klaytn RPC" +category: 65c5e93c623cad004b45d505 +hidden: false +metadata: + description: "Klaytn RPC" + image: [] + keywords: "klaytn, 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)" +--- +[block:html]{"html":"
\n
Archive Method
\n

Only on the full archive nodes. Complex queries might take longer and incur additional cost

\n
"}[/block] + +### How to use it + +{% tabs %} +{% tab title="TypeScript/JavaScript" %} +{% code overflow="wrap" lineNumbers="true" %} +```typescript +// yarn add @tatumio/tatum + +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.KLAYTN}) + +const result = await tatum.rpc.debugTraceBlock('0x80F8C7A' ,{ + tracer: 'callTracer', + tracerConfig: { + onlyTopCall: true, + timeout: '5s', + } +}) + +await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs +``` +{% endcode %} +{% endtab %} +{% endtabs %} + +### Overview + +`debug_traceBlock` is an RPC method that allows developers to trace all transactions within a block using a given tracer. This is particularly useful for analyzing the behavior of all transactions in a block, investigating potential issues, and understanding the flow of execution within smart contracts. + +By using the `debug_traceBlock`, developers can obtain detailed insights into the execution flow of each transaction, allowing for in-depth analysis and debugging + +### Parameters + +* `block` - `String` + * RLP encoded block object. +* `options` (optional): An object containing configuration options for the tracer. + * `tracer`: The tracer object with the following fields: + * `callTracer`: The calltracer keeps track of all call frames, including depth 0 calls, made during a transaction. + * `prestateTracer`: The prestateTracer replays the transaction and tracks every part of the state that occurred during the transaction. + * `tracerConfig`: The object to specify the configurations of the tracer. + * onlyTopCall: When set to true, it traces only the primary (top-level) call and not any sub-calls, eliminating additional processing for each call frame. + +### Return Object + +The return object is an array of all invoked opcodes of all transaction that were included in this block. + +* `type`: The type of the call. +* `from`: The address from which the transaction is sent. +* `to`: The address to which the transaction is directed. +* `value`: The integer value sent with this transaction. +* `gas`: The integer value of the gas provided for the transaction execution. +* `gasUsed`: The integer value of the gas used. +* `input`: The data given at the time of input. +* `output`: The data returned as an output. +* `calls`: A list of sub-calls made during the transaction, including detailed trace information for each sub-call. + +{% hint style="info" %} +This method is available only on the full archive node. +{% endhint %} + +### JSON-RPC Request and Response Examples + +#### Request + +```json +{ + "id": 1, + "jsonrpc": "2.0", + "method": "debug_traceBlock", + "params": [ + "0x1dc....", + { + "tracer": "callTracer" + } + ] +} + +``` + +#### Response + +```json +{ + "id": 1, + "jsonrpc": "2.0", + "result": [ + { + "result": { + "from": "0x8894e0a0c962cb723c1976a4421c95949be2d4e3", + "gas": "0x2d48c", + "gasUsed": "0xc7ab", + "to": "0x55d398326f99059ff775485246999027b3197955", + "input": "0xa9059cbb0000000000000000000000003b9f33b3a9d382fa60283c555bde8f78855957be00000000000000000000000000000000000000000000000d4e7f4f79da7c0000", + "output": "0x0000000000000000000000000000000000000000000000000000000000000001", + "value": "0x0", + "type": "CALL" + } + } + ] +} + +``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_traceblockbyhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_traceblockbyhash.md similarity index 89% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_traceblockbyhash.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_traceblockbyhash.md index dd2e32da..0d6fbeec 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_traceblockbyhash.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_traceblockbyhash.md @@ -1,13 +1,13 @@ --- title: "debug_traceblockbyhash" -slug: "rpc-horizen-eon-debug_traceblockbyhash" -excerpt: "Horizen Eon RPC" +slug: "rpc-klaytn-debug_traceblockbyhash" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,20 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const result = await tatum.rpc.debugTraceBlockByHash( -'0x48dfcf43404dffdb3b93a0b0d9982b642b221187bc3ed5c023bdab6c0e863e3d', -{ - tracer: 'callTracer', - tracerConfig: { - onlyTopCall: true, - timeout: '5s', - } -} -) +const result = await tatum.rpc.debugTraceBlockByHashtatum.rpc.debugTraceBlockByHash('0xcb632c914a18d838113f1e0cbf3ebc58e837c9497113c247001ecd52b212768e') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_traceblockbynumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_traceblockbynumber.md similarity index 91% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_traceblockbynumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_traceblockbynumber.md index e113ac28..4f1c10be 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_traceblockbynumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_traceblockbynumber.md @@ -1,13 +1,13 @@ --- title: "debug_traceblockbynumber" -slug: "rpc-horizen-eon-debug_traceblockbynumber" -excerpt: "Horizen Eon RPC" +slug: "rpc-klaytn-debug_traceblockbynumber" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const result = await tatum.rpc.debugTraceBlockByNumber(357368) +const result = await tatum.rpc.debugTraceBlockByNumber('0x80F8C7A') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_tracetransaction.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_tracetransaction.md similarity index 92% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_tracetransaction.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_tracetransaction.md index 9c21e013..b652c2d2 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_tracetransaction.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/debug_tracetransaction.md @@ -1,13 +1,13 @@ --- title: "debug_tracetransaction" -slug: "rpc-horizen-eon-debug_tracetransaction" -excerpt: "Horizen Eon RPC" +slug: "rpc-klaytn-debug_tracetransaction" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const result = await tatum.rpc.debugTraceTransaction('0x6aefbd1a9c9e4c310cadde3bcdd809a14da87caa8fa4f10ca04d9e357a3907e9', { +const res = await tatum.rpc.debugTraceTransaction('0xa3fd3d2b01ee234899b487fb1480b7e14142dde55f07b7a079b9fdcf04733220', { tracer: 'callTracer', tracerConfig: { onlyTopCall: true, diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_call.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/eth_call.md similarity index 92% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_call.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/eth_call.md index d9d2952d..dd386f08 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_call.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/eth_call.md @@ -1,13 +1,13 @@ --- title: "eth_call" -slug: "rpc-horizen-eon-eth_call" -excerpt: "Horizen Eon RPC" +slug: "rpc-klaytn-eth_call" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) const result = await tatum.rpc.call({ "to": "0xD31a59c85aE9D8edEFeC411D448f90841571b89c", // Replace with the ERC-20 token contract address diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_blocknumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_blocknumber.md similarity index 67% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_blocknumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_blocknumber.md index b92ac8ab..ed268a7a 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_blocknumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_blocknumber.md @@ -1,13 +1,13 @@ --- -title: "eth_blocknumber" -slug: "rpc-horizen-eon-eth_blocknumber" -excerpt: "Horizen Eon RPC" +title: "klay_blocknumber" +slug: "rpc-klaytn-klay_blocknumber" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) const latestBlock = await tatum.rpc.blockNumber() @@ -36,9 +36,9 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_blockNumber` method returns the number of the most recent block on the blockchain. This method is commonly used to track the current state of the network, monitor for new blocks, or fetch historical data. +The `klay_blockNumber` method returns the number of the most recent block on the blockchain. This method is commonly used to track the current state of the network, monitor for new blocks, or fetch historical data. -Use cases for `eth_blockNumber` include: +Use cases for `klay_blockNumber` include: * Synchronising a local copy of the blockchain with the network * Checking the status of a transaction by comparing its block number to the current block number @@ -47,11 +47,11 @@ Use cases for `eth_blockNumber` include: ### Parameters -The `eth_blockNumber` method does not require any parameters. +The `klay_blockNumber` method does not require any parameters. ### Return Object -The `eth_blockNumber` method returns a single field: +The `klay_blockNumber` method returns a single field: * **`blockNumber`**: The number of the most recent block on the blockchain. The value is returned as a hexadecimal string. @@ -61,7 +61,7 @@ The `eth_blockNumber` method returns a single field: { "id": 1, "jsonrpc": "2.0", - "method": "eth_blockNumber", + "method": "klay_blockNumber", "params": [] } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_chainid.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_chainid.md similarity index 70% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_chainid.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_chainid.md index aef8871a..9696ec46 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_chainid.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_chainid.md @@ -1,13 +1,13 @@ --- -title: "eth_chainid" -slug: "rpc-horizen-eon-eth_chainid" -excerpt: "Horizen Eon RPC" +title: "klay_chainid" +slug: "rpc-klaytn-klay_chainid" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) const id = await tatum.rpc.chainId() @@ -36,13 +36,13 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_chainId` method is an JSON-RPC method that allows developers to retrieve the currently configured chain ID of the network they are connected to. The chain ID is a unique identifier for different networks, such as mainnet or various testnets. +The `klay_chainId` method is an JSON-RPC method that allows developers to retrieve the currently configured chain ID of the network they are connected to. The chain ID is a unique identifier for different networks, such as mainnet or various testnets. This method is particularly useful when building applications that interact with multiple networks or need to verify the network to prevent replay attacks. By checking the chain ID, an application can ensure it is interacting with the intended network. ### Parameters -The `eth_chainId` method does not have any input parameters. +The `klay_chainId` method does not have any input parameters. ### Return Object @@ -58,7 +58,7 @@ JSON-RPC request: { "jsonrpc": "2.0", "id": 1, - "method": "eth_chainId", + "method": "klay_chainId", "params": [] } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_estimategas.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_estimategas.md similarity index 70% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_estimategas.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_estimategas.md index 7a420bd6..b3a092b0 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_estimategas.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_estimategas.md @@ -1,13 +1,13 @@ --- -title: "eth_estimategas" -slug: "rpc-horizen-eon-eth_estimategas" -excerpt: "Horizen Eon RPC" +title: "klay_estimategas" +slug: "rpc-klaytn-klay_estimategas" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,15 +22,15 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) const estimate = await tatum.rpc.estimateGas({ - "from": "0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86", - "to": "0xa41d19F4258a388c639B7CcD938FCE3fb7D05e87", - "value": "0xde0b6b3a7640000", - "data": "0x606060" + "from": "0x3E18a8c3348447E3e69c847FbAA07117E2f46a1b", + "to": "0x3E18a8c3348447E3e69c847FbAA07117E2f46a1b", + "value": "0xde0b6b3a7640000", + "data": "0x606060" }) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs @@ -41,9 +41,9 @@ const estimate = await tatum.rpc.estimateGas({ ### Overview -`eth_estimateGas` is an JSON-RPC method that estimates the amount of gas required to execute a given transaction. This method can be used to determine the gas cost before sending a transaction, allowing developers to better predict the gas fees and avoid issues like out-of-gas errors. +`klay_estimateGas` is an JSON-RPC method that estimates the amount of gas required to execute a given transaction. This method can be used to determine the gas cost before sending a transaction, allowing developers to better predict the gas fees and avoid issues like out-of-gas errors. -Use cases for `eth_estimateGas` include: +Use cases for `klay_estimateGas` include: * Estimating gas costs for contract deployments * Estimating gas costs for contract function calls @@ -51,7 +51,7 @@ Use cases for `eth_estimateGas` include: ### Parameters -The `eth_estimateGas` method takes a single parameter, an object representing the transaction details. The fields in the transaction object include: +The `klay_estimateGas` method takes a single parameter, an object representing the transaction details. The fields in the transaction object include: * **`from`** (optional, string): The address that the transaction is sent from. * Example: `"from": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"` @@ -70,7 +70,7 @@ The `eth_estimateGas` method takes a single parameter, an object representing th ### Return Object -The return value of the `eth_estimateGas` method is a single field: +The return value of the `klay_estimateGas` method is a single field: * `gasEstimate` (string): The estimated gas cost for the transaction, represented as a hexadecimal string. * Example: `"0x5208"` @@ -83,7 +83,7 @@ The return value of the `eth_estimateGas` method is a single field: { "jsonrpc": "2.0", "id": 1, - "method": "eth_estimateGas", + "method": "klay_estimateGas", "params": [ { "from": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gasprice.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gasprice.md similarity index 50% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gasprice.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gasprice.md index 04754b1a..5957f0d3 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gasprice.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gasprice.md @@ -1,13 +1,13 @@ --- -title: "eth_gasprice" -slug: "rpc-horizen-eon-eth_gasprice" -excerpt: "Horizen Eon RPC" +title: "klay_gasprice" +slug: "rpc-klaytn-klay_gasprice" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) const gasPrice = await tatum.rpc.gasPrice() @@ -36,15 +36,15 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_gasPrice` method is an JSON-RPC method used to estimate the average gas price required for transactions in the network. This method provides a suggestion for the gas price to be used in a transaction to increase the likelihood of it being mined and included in a block in a reasonable amount of time. The `eth_gasPrice` method is particularly useful for developers and users who want to create and send transactions, as it helps them estimate the appropriate gas price to ensure timely processing. +The `klay_gasPrice` method is an JSON-RPC method used to estimate the average gas price required for transactions in the network. This method provides a suggestion for the gas price to be used in a transaction to increase the likelihood of it being mined and included in a block in a reasonable amount of time. The `klay_gasPrice` method is particularly useful for developers and users who want to create and send transactions, as it helps them estimate the appropriate gas price to ensure timely processing. ### Parameters -The `eth_gasPrice` method does not require any parameters. +The `klay_gasPrice` method does not require any parameters. ### Return Value -The `eth_gasPrice` method returns a single value as a hexadecimal string: +The `klay_gasPrice` method returns a single value as a hexadecimal string: * `gasPrice`: The estimated average gas price in wei. Example: `"0x4a817c800"` @@ -56,7 +56,7 @@ The `eth_gasPrice` method returns a single value as a hexadecimal string: { "id": 1, "jsonrpc": "2.0", - "method": "eth_gasPrice", + "method": "klay_gasPrice", "params": [] } ``` @@ -71,4 +71,4 @@ The `eth_gasPrice` method returns a single value as a hexadecimal string: } ``` -By using the `eth_gasPrice` method, developers and users can estimate the appropriate gas price for their transactions, improving the overall user experience and ensuring that their transactions are processed in a timely manner. +By using the `klay_gasPrice` method, developers and users can estimate the appropriate gas price for their transactions, improving the overall user experience and ensuring that their transactions are processed in a timely manner. diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getbalance.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getbalance.md similarity index 71% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getbalance.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getbalance.md index 5151da1b..b7c63124 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getbalance.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getbalance.md @@ -1,13 +1,13 @@ --- -title: "eth_getbalance" -slug: "rpc-horizen-eon-eth_getbalance" -excerpt: "Horizen Eon RPC" +title: "klay_getbalance" +slug: "rpc-klaytn-klay_getbalance" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const balance = await tatum.rpc.getBalance('0x99D270f4a42b296fB888f168a5985e1d9839B064') +const balance = await tatum.rpc.getBalance('0x11f56be8b506f546f65662279a8641a0f490df40') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getBalance` method is an JSON-RPC method that allows you to retrieve the balance of a specified address. This method can be used to query the balance of any address, whether it is a contract or an externally owned account (EOA). A common use case for this method is to display the current balance of a user's account in a wallet application or a decentralized application (DApp). +The `klay_getBalance` method is an JSON-RPC method that allows you to retrieve the balance of a specified address. This method can be used to query the balance of any address, whether it is a contract or an externally owned account (EOA). A common use case for this method is to display the current balance of a user's account in a wallet application or a decentralized application (DApp). ### Parameters @@ -49,7 +49,7 @@ The method requires two parameters: #### Transaction Details -For the purpose of this documentation, we'll also describe the `transactions` field of a full transaction object. The `eth_getBalance` method does not return transaction details, but we provide this information for completeness. +For the purpose of this documentation, we'll also describe the `transactions` field of a full transaction object. The `klay_getBalance` method does not return transaction details, but we provide this information for completeness. A full transaction object includes the following fields: @@ -70,7 +70,7 @@ A full transaction object includes the following fields: The method returns a single field: -* `result`: The Flare balance of the specified address in wei, as a hexadecimal string. +* `result`: The balance of the specified address in wei, as a hexadecimal string. * Example: `"0x1a2e1a"`, which corresponds to `1,726,666` wei. ### JSON-RPC Request and Response Examples @@ -81,7 +81,7 @@ The method returns a single field: { "jsonrpc": "2.0", "id": 1, - "method": "eth_getBalance", + "method": "klay_getBalance", "params": [ "0x99D270f4a42b296fB888f168a5985e1d9839B064", "latest" diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblockbyhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getblockbyhash.md similarity index 87% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblockbyhash.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getblockbyhash.md index bfa57581..d4f9a4e4 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblockbyhash.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getblockbyhash.md @@ -1,13 +1,13 @@ --- -title: "eth_getblockbyhash" -slug: "rpc-horizen-eon-eth_getblockbyhash" -excerpt: "Horizen Eon RPC" +title: "klay_getblockbyhash" +slug: "rpc-klaytn-klay_getblockbyhash" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const block = await tatum.rpc.getBlockByHash('0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6', true) +const block = await tatum.rpc.getBlockByHash('0xcb632c914a18d838113f1e0cbf3ebc58e837c9497113c247001ecd52b212768e', true) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,11 +36,11 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getBlockByHash` is an JSON-RPC method that allows developers to query a specific block in the blockchain by its block hash. This method can be used in various scenarios, such as analyzing historical transactions, validating the state of the blockchain, or monitoring the progress of mining activities. +`klay_getBlockByHash` is an JSON-RPC method that allows developers to query a specific block in the blockchain by its block hash. This method can be used in various scenarios, such as analyzing historical transactions, validating the state of the blockchain, or monitoring the progress of mining activities. ### Parameters -The `eth_getBlockByHash` method accepts two parameters: +The `klay_getBlockByHash` method accepts two parameters: 1. **`blockHash`**: The hash of the block you want to retrieve information about. * Type: `String` @@ -88,14 +88,14 @@ If `returnFullTransactionObjects` is `true`, the `transactions` field contains t ### JSON-RPC Request and Response Examples -Here are examples of JSON-RPC request and response for the `eth_getBlockByNumber` method: +Here are examples of JSON-RPC request and response for the `klay_getBlockByNumber` method: #### Request ```json { "jsonrpc": "2.0", - "method": "eth_getBlockByHash", + "method": "klay_getBlockByHash", "params": ["0x078610ca461480e4b78557f20e544084cccc4accb41f5c1b7ef792246b78c94b", true], "id": 1 } diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblockbynumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getblockbynumber.md similarity index 89% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblockbynumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getblockbynumber.md index 328f67ca..80bf06fe 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblockbynumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getblockbynumber.md @@ -1,13 +1,13 @@ --- -title: "eth_getblockbynumber" -slug: "rpc-horizen-eon-eth_getblockbynumber" -excerpt: "Horizen Eon RPC" +title: "klay_getblockbynumber" +slug: "rpc-klaytn-klay_getblockbynumber" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) const block = await tatum.rpc.getBlockByNumber('latest', true) @@ -36,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getBlockByNumber` is an JSON-RPC method that allows developers to query a specific block in the blockchain by its block number. This method can be used in various scenarios, such as analyzing historical transactions, validating the state of the blockchain, or monitoring the progress of mining activities. +`klay_getBlockByNumber` is an JSON-RPC method that allows developers to query a specific block in the blockchain by its block number. This method can be used in various scenarios, such as analyzing historical transactions, validating the state of the blockchain, or monitoring the progress of mining activities. ### Parameters @@ -88,7 +88,7 @@ If `returnFullTransactionObjects` is `true`, the `transactions` field contains t ### JSON-RPC Request and Response Examples -Here are examples of JSON-RPC request and response for the `eth_getBlockByNumber` method: +Here are examples of JSON-RPC request and response for the `klay_getBlockByNumber` method: #### Request @@ -96,7 +96,7 @@ Here are examples of JSON-RPC request and response for the `eth_getBlockByNumber { "id": 1, "jsonrpc": "2.0", - "method": "eth_getBlockByNumber", + "method": "klay_getBlockByNumber", "params": ["latest", true] } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblocktransactioncountbyhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getblocktransactioncountbyhash.md similarity index 68% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblocktransactioncountbyhash.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getblocktransactioncountbyhash.md index 6ca48fae..1eaea517 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblocktransactioncountbyhash.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getblocktransactioncountbyhash.md @@ -1,13 +1,13 @@ --- -title: "eth_getblocktransactioncountbyhash" -slug: "rpc-horizen-eon-eth_getblocktransactioncountbyhash" -excerpt: "Horizen Eon RPC" +title: "klay_getblocktransactioncountbyhash" +slug: "rpc-klaytn-klay_getblocktransactioncountbyhash" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const response = await tatum.rpc.getBlockTransactionCountByHash('0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6') +const response = await tatum.rpc.getBlockTransactionCountByHash('0xcb632c914a18d838113f1e0cbf3ebc58e837c9497113c247001ecd52b212768e') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getBlockTransactionCountByHash` is a RPC method used to fetch the number of transactions in a block by the block's hash. It is useful when you want to know the total number of transactions included in a specific block and don't want to retrieve the entire block data. This method can be used in various scenarios, such as monitoring the network activity or estimating transaction confirmation times. +`klay_getBlockTransactionCountByHash` is a RPC method used to fetch the number of transactions in a block by the block's hash. It is useful when you want to know the total number of transactions included in a specific block and don't want to retrieve the entire block data. This method can be used in various scenarios, such as monitoring the network activity or estimating transaction confirmation times. ### Parameters @@ -62,7 +62,7 @@ The method returns a single value: { "id": 1, "jsonrpc": "2.0", - "method": "eth_getBlockTransactionCountByHash", + "method": "klay_getBlockTransactionCountByHash", "params": [ "0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6" ] diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblocktransactioncountbynumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getblocktransactioncountbynumber.md similarity index 64% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblocktransactioncountbynumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getblocktransactioncountbynumber.md index 4d77fc43..9ceb29a6 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblocktransactioncountbynumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getblocktransactioncountbynumber.md @@ -1,13 +1,13 @@ --- -title: "eth_getblocktransactioncountbynumber" -slug: "rpc-horizen-eon-eth_getblocktransactioncountbynumber" -excerpt: "Horizen Eon RPC" +title: "klay_getblocktransactioncountbynumber" +slug: "rpc-klaytn-klay_getblocktransactioncountbynumber" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const response = await tatum.rpc.getBlockTransactionCountByNumber(371156) +const response = await tatum.rpc.getBlockTransactionCountByNumber('0x80F8C7A') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getBlockTransactionCountByNumber` JSON-RPC method allows you to retrieve the number of transactions in a specified block. This method is particularly useful when you need to analyze the transaction activity of a specific block. You can use it to gain insights into network usage, analyze the impact of specific events on the network, or monitor transaction congestion in certain blocks. +The `klay_getBlockTransactionCountByNumber` JSON-RPC method allows you to retrieve the number of transactions in a specified block. This method is particularly useful when you need to analyze the transaction activity of a specific block. You can use it to gain insights into network usage, analyze the impact of specific events on the network, or monitor transaction congestion in certain blocks. ### Parameters @@ -57,7 +57,7 @@ The return object is a hex-encoded value representing the number of transactions { "jsonrpc": "2.0", "id": 1, - "method": "eth_getBlockTransactionCountByNumber", + "method": "klay_getBlockTransactionCountByNumber", "params": [371156] } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getcode.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getcode.md similarity index 68% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getcode.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getcode.md index b9e20af7..94f13cfc 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getcode.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getcode.md @@ -1,13 +1,13 @@ --- -title: "eth_getcode" -slug: "rpc-horizen-eon-eth_getcode" -excerpt: "Horizen Eon RPC" +title: "klay_getcode" +slug: "rpc-klaytn-klay_getcode" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const code = await tatum.rpc.getCode('0x6eA7d015342b7eb7344F7ebf0150234f41F524d6') +const code = await tatum.rpc.getCode('0x898f2afc07924f5a4f9612449e4c4f8eca527515') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getCode` method is part of the JSON-RPC API, which allows users to interact with the blockchain. This method is specifically used to retrieve the contract code (bytecode) of an account at a specific block number. It is helpful when developers need to examine the bytecode of a deployed contract or validate that the contract code on the blockchain matches the intended code. +The `klay_getCode` method is part of the JSON-RPC API, which allows users to interact with the blockchain. This method is specifically used to retrieve the contract code (bytecode) of an account at a specific block number. It is helpful when developers need to examine the bytecode of a deployed contract or validate that the contract code on the blockchain matches the intended code. Use cases for this method could include: @@ -46,7 +46,7 @@ Use cases for this method could include: ### Parameters -The `eth_getCode` method accepts two parameters: +The `klay_getCode` method accepts two parameters: 1. **`address`** (string): The address of the contract whose bytecode you want to retrieve. This should be a 20-byte address, formatted as a hex string with a `0x` prefix. * Example: `"0x6eA7d015342b7eb7344F7ebf0150234f41F524d6"` @@ -58,7 +58,7 @@ The `eth_getCode` method accepts two parameters: ### Return Object -The `eth_getCode` method returns a string representing the contract bytecode. The returned value is a hex string with a `0x` prefix. +The `klay_getCode` method returns a string representing the contract bytecode. The returned value is a hex string with a `0x` prefix. * If the account has contract code, the returned string will contain the bytecode. * If the account is not a contract or does not exist, the returned string will be `0x`. @@ -71,7 +71,7 @@ The `eth_getCode` method returns a string representing the contract bytecode. Th { "id": 1, "jsonrpc": "2.0", - "method": "eth_getCode", + "method": "klay_getCode", "params": [ "0x6eA7d015342b7eb7344F7ebf0150234f41F524d6", "latest" diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getlogs.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getlogs.md similarity index 74% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getlogs.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getlogs.md index 3bbfd806..7b527b61 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getlogs.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getlogs.md @@ -1,13 +1,13 @@ --- -title: "eth_getlogs" -slug: "rpc-horizen-eon-eth_getlogs" -excerpt: "Horizen Eon RPC" +title: "klay_getlogs" +slug: "rpc-klaytn-klay_getlogs" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const logs = await tatum.rpc.getLogs({ address : '0x6eA7d015342b7eb7344F7ebf0150234f41F524d6'}) +const logs = await tatum.rpc.getLogs({ address : '0x898f2afc07924f5a4f9612449e4c4f8eca527515'}) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,13 +36,13 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getLogs` method is an JSON-RPC method that allows developers to query logs generated by the network, specifically event logs emitted by smart contracts. These logs are an essential part of the ecosystem as they provide a way for developers to monitor contract events and track contract state changes. +The `klay_getLogs` method is an JSON-RPC method that allows developers to query logs generated by the network, specifically event logs emitted by smart contracts. These logs are an essential part of the ecosystem as they provide a way for developers to monitor contract events and track contract state changes. -This method is particularly useful when building decentralized applications (dApps) that rely on events emitted by smart contracts, as it enables developers to retrieve logs based on specific filter criteria. By using `eth_getLogs`, developers can efficiently track and react to events happening on the blockchain. +This method is particularly useful when building decentralized applications (dApps) that rely on events emitted by smart contracts, as it enables developers to retrieve logs based on specific filter criteria. By using `klay_getLogs`, developers can efficiently track and react to events happening on the blockchain. ### Parameters -The `eth_getLogs` method takes a single input parameter: an object containing the filter criteria. The filter object can have the following fields: +The `klay_getLogs` method takes a single input parameter: an object containing the filter criteria. The filter object can have the following fields: * **`fromBlock`**: (optional) The starting block number for the search. Can be a block number or one of the following strings: `"earliest"`, `"latest"`, or `"pending"`. * Example: `"fromBlock": "0x1"` @@ -59,7 +59,7 @@ In addition to the above fields, the `transactions` field in the filter object c ### Return Object -The `eth_getLogs` method returns an array of log objects. Each log object contains the following fields: +The `klay_getLogs` method returns an array of log objects. Each log object contains the following fields: * **`removed`**: A boolean indicating whether the log was removed due to a chain reorganization. * Example: `"removed": false` @@ -88,7 +88,7 @@ The `eth_getLogs` method returns an array of log objects. Each log object contai { "id": 1, "jsonrpc": "2.0", - "method": "eth_getLogs", + "method": "klay_getLogs", "params": [ { "fromBlock": "0x1", @@ -122,4 +122,4 @@ The `eth_getLogs` method returns an array of log objects. Each log object contai } ``` -This documentation provides a comprehensive overview of the `eth_getLogs` JSON-RPC method, its parameters, return objects, and JSON-RPC examples. By using this method, developers can effectively query logs generated by the network and use the retrieved data to track and react to events happening on the blockchain. +This documentation provides a comprehensive overview of the `klay_getLogs` JSON-RPC method, its parameters, return objects, and JSON-RPC examples. By using this method, developers can effectively query logs generated by the network and use the retrieved data to track and react to events happening on the blockchain. diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getproof.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getproof.md similarity index 77% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getproof.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getproof.md index 2bb8f942..87944794 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getproof.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getproof.md @@ -1,13 +1,13 @@ --- -title: "eth_getproof" -slug: "rpc-horizen-eon-eth_getproof" -excerpt: "Horizen Eon RPC" +title: "klay_getproof" +slug: "rpc-klaytn-klay_getproof" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const result = await tatum.rpc.getProof("0xBB52B2B91488d60eFb6848bBadd000005A511E5C", +const result = await tatum.rpc.getProof("0x898f2afc07924f5a4f9612449e4c4f8eca527515", ["0x0000000000000000000000000000000000000000000000000000000000000000"], "latest") @@ -38,7 +38,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getProof` is a JSON-RPC method that retrieves the Merkle-Patricia proof for an account, storage key-value pairs, and account transaction count. It allows developers to verify the state of an account or storage value at a specific block without needing the entire state trie. This method is particularly useful for light clients or off-chain applications that require proof of an account's state or specific storage values. +The `klay_getProof` is a JSON-RPC method that retrieves the Merkle-Patricia proof for an account, storage key-value pairs, and account transaction count. It allows developers to verify the state of an account or storage value at a specific block without needing the entire state trie. This method is particularly useful for light clients or off-chain applications that require proof of an account's state or specific storage values. ### Parameters @@ -78,7 +78,7 @@ _Request_: { "id": 1, "jsonrpc": "2.0", - "method": "eth_getProof", + "method": "klay_getProof", "params": [ "0xBB52B2B91488d60eFb6848bBadd000005A511E5C", [ diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getstorageat.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getstorageat.md similarity index 67% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getstorageat.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getstorageat.md index 8108f45c..fbec29de 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getstorageat.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getstorageat.md @@ -1,13 +1,13 @@ --- -title: "eth_getstorageat" -slug: "rpc-horizen-eon-eth_getstorageat" -excerpt: "Horizen Eon RPC" +title: "klay_getstorageat" +slug: "rpc-klaytn-klay_getstorageat" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const response = await tatum.rpc.getStorageAt('0x6eA7d015342b7eb7344F7ebf0150234f41F524d6', '0x0') +const response = await tatum.rpc.getStorageAt('0x898f2afc07924f5a4f9612449e4c4f8eca527515', '0x0') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,11 +36,11 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getStorageAt` is an JSON-RPC method that allows you to query the storage value of a contract at a given position. It can be used to inspect the internal state of a smart contract. This method is particularly useful for developers, auditors, and analysts who want to examine contract storage values for various purposes, such as debugging, verifying contract behavior, or analyzing data. +`klay_getStorageAt` is an JSON-RPC method that allows you to query the storage value of a contract at a given position. It can be used to inspect the internal state of a smart contract. This method is particularly useful for developers, auditors, and analysts who want to examine contract storage values for various purposes, such as debugging, verifying contract behavior, or analyzing data. ### Parameters -`eth_getStorageAt` accepts three parameters: +`klay_getStorageAt` accepts three parameters: 1. **`address`**: The address of the contract you want to query. * Example: `"0x6eA7d015342b7eb7344F7ebf0150234f41F524d6"` @@ -61,7 +61,7 @@ The return object is a single string value, representing the storage value at th { "id": 1, "jsonrpc": "2.0", - "method": "eth_getStorageAt", + "method": "klay_getStorageAt", "params": [ "0x6eA7d015342b7eb7344F7ebf0150234f41F524d6", "0x0" diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionbyblockhashandindex.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gettransactionbyblockhashandindex.md similarity index 87% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionbyblockhashandindex.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gettransactionbyblockhashandindex.md index a0c0acb0..69f5a9bb 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionbyblockhashandindex.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gettransactionbyblockhashandindex.md @@ -1,13 +1,13 @@ --- -title: "eth_gettransactionbyblockhashandindex" -slug: "rpc-horizen-eon-eth_gettransactionbyblockhashandindex" -excerpt: "Horizen Eon RPC" +title: "klay_gettransactionbyblockhashandindex" +slug: "rpc-klaytn-klay_gettransactionbyblockhashandindex" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const tx = await tatum.rpc.getTransactionByBlockHashAndIndex('0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6', 0) +const tx = await tatum.rpc.getTransactionByBlockHashAndIndex('0xcb632c914a18d838113f1e0cbf3ebc58e837c9497113c247001ecd52b212768e', 0) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getTransactionByBlockHashAndIndex` is an JSON-RPC method that allows you to fetch the transaction details based on the block hash and the index of the transaction within that block. This method can be useful when you want to retrieve transaction details for a specific transaction without knowing its transaction hash. +`klay_getTransactionByBlockHashAndIndex` is an JSON-RPC method that allows you to fetch the transaction details based on the block hash and the index of the transaction within that block. This method can be useful when you want to retrieve transaction details for a specific transaction without knowing its transaction hash. Use cases for this method may include: @@ -46,7 +46,7 @@ Use cases for this method may include: ### Parameters -The `eth_getTransactionByBlockHashAndIndex` method accepts two parameters: +The `klay_getTransactionByBlockHashAndIndex` method accepts two parameters: 1. `blockHash` (required): The hash of the block containing the transaction. * Example: `"0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6"` @@ -77,7 +77,7 @@ Request: { "jsonrpc": "2.0", "id": 1, - "method": "eth_getTransactionByBlockHashAndIndex", + "method": "klay_getTransactionByBlockHashAndIndex", "params": [ "0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6", "0x0" diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionbyblocknumberandindex.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gettransactionbyblocknumberandindex.md similarity index 86% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionbyblocknumberandindex.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gettransactionbyblocknumberandindex.md index 44f9e108..b9b90da2 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionbyblocknumberandindex.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gettransactionbyblocknumberandindex.md @@ -1,13 +1,13 @@ --- -title: "eth_gettransactionbyblocknumberandindex" -slug: "rpc-horizen-eon-eth_gettransactionbyblocknumberandindex" -excerpt: "Horizen Eon RPC" +title: "klay_gettransactionbyblocknumberandindex" +slug: "rpc-klaytn-klay_gettransactionbyblocknumberandindex" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -iimport { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +iimport { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const tx = await tatum.rpc.getTransactionByBlockNumberAndIndex(371156, 0) +const tx = await tatum.rpc.getTransactionByBlockNumberAndIndex('0x80F8C7A', 0) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getTransactionByBlockHashAndIndex` is an JSON-RPC method that allows you to fetch the transaction details based on the block hash and the index of the transaction within that block. This method can be useful when you want to retrieve transaction details for a specific transaction without knowing its transaction hash. +`klay_getTransactionByBlockHashAndIndex` is an JSON-RPC method that allows you to fetch the transaction details based on the block hash and the index of the transaction within that block. This method can be useful when you want to retrieve transaction details for a specific transaction without knowing its transaction hash. Use cases for this method may include: @@ -46,7 +46,7 @@ Use cases for this method may include: ### Parameters -The `eth_getTransactionByBlockHashAndIndex` method accepts two parameters: +The `klay_getTransactionByBlockHashAndIndex` method accepts two parameters: 1. `blockNumber` (required): The hash of the block containing the transaction. * Example: 371156 @@ -77,7 +77,7 @@ Request: { "jsonrpc": "2.0", "id": 1, - "method": "eth_getTransactionByBlockNumberAndIndex", + "method": "klay_getTransactionByBlockNumberAndIndex", "params": [ 371156, 0 diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionbyhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gettransactionbyhash.md similarity index 85% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionbyhash.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gettransactionbyhash.md index e7f4682c..d710e463 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionbyhash.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gettransactionbyhash.md @@ -1,13 +1,13 @@ --- -title: "eth_gettransactionbyhash" -slug: "rpc-horizen-eon-eth_gettransactionbyhash" -excerpt: "Horizen Eon RPC" +title: "klay_gettransactionbyhash" +slug: "rpc-klaytn-klay_gettransactionbyhash" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const tx = await tatum.rpc.getTransactionByHash('0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7') +const tx = await tatum.rpc.getTransactionByHash('0xa3fd3d2b01ee234899b487fb1480b7e14142dde55f07b7a079b9fdcf04733220') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,11 +36,11 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getTransactionByHash` is an JSON-RPC method that allows you to query transaction details based on its hash. This method is useful when you want to retrieve information about a specific transaction, such as its sender, receiver, value, and more. Common use cases include tracking transaction status, monitoring incoming transactions, or analyzing historical transaction data. +`klay_getTransactionByHash` is an JSON-RPC method that allows you to query transaction details based on its hash. This method is useful when you want to retrieve information about a specific transaction, such as its sender, receiver, value, and more. Common use cases include tracking transaction status, monitoring incoming transactions, or analyzing historical transaction data. ### Parameters -The `eth_getTransactionByHash` method takes one parameter: +The `klay_getTransactionByHash` method takes one parameter: * **`transactionHash`**: The hash of the transaction you want to retrieve. This should be a 32-byte hash string with a `0x` prefix. * Example: `"0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7"` @@ -70,7 +70,7 @@ Request: ```json { "jsonrpc": "2.0", - "method": "eth_getTransactionByHash", + "method": "klay_getTransactionByHash", "params": ["0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7"], "id": 1 } diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactioncount.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gettransactioncount.md similarity index 69% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactioncount.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gettransactioncount.md index c6ef831e..518c34a1 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactioncount.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gettransactioncount.md @@ -1,13 +1,13 @@ --- -title: "eth_gettransactioncount" -slug: "rpc-horizen-eon-eth_gettransactioncount" -excerpt: "Horizen Eon RPC" +title: "klay_gettransactioncount" +slug: "rpc-klaytn-klay_gettransactioncount" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const result = await tatum.rpc.getTransactionCount('0xBB52B2B91488d60eFb6848bBadd000005A511E5C', 'latest') +const result = await tatum.rpc.getTransactionCount('0x11f56be8b506f546f65662279a8641a0f490df40', 'latest') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getTransactionCount` method is an JSON-RPC method that retrieves the number of transactions sent from a given address. It is a useful method for developers who need to keep track of an account's nonce value to avoid transaction collisions or incorrect order of execution. The nonce value is essential for ensuring transaction uniqueness and preventing replay attacks. +The `klay_getTransactionCount` method is an JSON-RPC method that retrieves the number of transactions sent from a given address. It is a useful method for developers who need to keep track of an account's nonce value to avoid transaction collisions or incorrect order of execution. The nonce value is essential for ensuring transaction uniqueness and preventing replay attacks. Use cases for this method include: @@ -46,7 +46,7 @@ Use cases for this method include: ### Parameters -The `eth_getTransactionCount` method accepts two parameters: +The `klay_getTransactionCount` method accepts two parameters: 1. **`address`** - The address whose transaction count will be retrieved. * Example: `"0xBB52B2B91488d60eFb6848bBadd000005A511E5C"` @@ -69,7 +69,7 @@ _Request_: { "jsonrpc": "2.0", "id": 1, - "method": "eth_getTransactionCount", + "method": "klay_getTransactionCount", "params": [ "0xBB52B2B91488d60eFb6848bBadd000005A511E5C", "latest" diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionreceipt.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gettransactionreceipt.md similarity index 78% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionreceipt.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gettransactionreceipt.md index 633bae2a..539c0c8e 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionreceipt.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_gettransactionreceipt.md @@ -1,13 +1,13 @@ --- -title: "eth_gettransactionreceipt" -slug: "rpc-horizen-eon-eth_gettransactionreceipt" -excerpt: "Horizen Eon RPC" +title: "klay_gettransactionreceipt" +slug: "rpc-klaytn-klay_gettransactionreceipt" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const tx = await tatum.rpc.getTransactionReceipt('0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7') +const tx = await tatum.rpc.getTransactionReceipt('0xa3fd3d2b01ee234899b487fb1480b7e14142dde55f07b7a079b9fdcf04733220') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getTransactionReceipt` is an JSON-RPC method that retrieves the transaction receipt of a given transaction hash. This method is particularly useful when you need to obtain detailed information about a transaction's execution, such as its status (success or failure), gas usage, and logs (events). Common use cases include checking the status of a transaction after it has been mined or inspecting the events emitted by a smart contract during a specific transaction. +`klay_getTransactionReceipt` is an JSON-RPC method that retrieves the transaction receipt of a given transaction hash. This method is particularly useful when you need to obtain detailed information about a transaction's execution, such as its status (success or failure), gas usage, and logs (events). Common use cases include checking the status of a transaction after it has been mined or inspecting the events emitted by a smart contract during a specific transaction. ### Parameters @@ -70,7 +70,7 @@ Request: { "jsonrpc": "2.0", "id": 1, - "method": "eth_getTransactionReceipt", + "method": "klay_getTransactionReceipt", "params": [ "0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7" ] diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getunclecountbyblockhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getunclecountbyblockhash.md similarity index 67% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getunclecountbyblockhash.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getunclecountbyblockhash.md index cba5761f..5b446d64 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getunclecountbyblockhash.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getunclecountbyblockhash.md @@ -1,13 +1,13 @@ --- -title: "eth_getunclecountbyblockhash" -slug: "rpc-horizen-eon-eth_getunclecountbyblockhash" -excerpt: "Horizen Eon RPC" +title: "klay_getunclecountbyblockhash" +slug: "rpc-klaytn-klay_getunclecountbyblockhash" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const result = await tatum.rpc.getUncleCountByBlockHash('0x48dfcf43404dffdb3b93a0b0d9982b642b221187bc3ed5c023bdab6c0e863e3d') +const result = await tatum.rpc.getUncleCountByBlockHash('0xcb632c914a18d838113f1e0cbf3ebc58e837c9497113c247001ecd52b212768e') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,13 +36,13 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getUncleCountByBlockHash` method is an JSON-RPC method that returns the number of uncles in a specified block by its hash. This method can be useful for gathering information about the performance of the network and to analyze the security of the blockchain. +The `klay_getUncleCountByBlockHash` method is an JSON-RPC method that returns the number of uncles in a specified block by its hash. This method can be useful for gathering information about the performance of the network and to analyze the security of the blockchain. Uncles are blocks that are not included in the main blockchain but are still valid, and they contribute to the overall security and decentralization of the network. The inclusion of uncles helps prevent centralization and ensures the mining process remains competitive. ### Parameters -The `eth_getUncleCountByBlockHash` method takes one parameter: +The `klay_getUncleCountByBlockHash` method takes one parameter: * `blockHash`: The hash of the block for which you want to get the uncle count. * Example value: `"0x3a3e528dcd6e05a614c9241b0a9296db961fa6a92e05af9f6c0d7d2f6bc92f7a"` @@ -55,7 +55,7 @@ The return object for this method is a hex-encoded integer representing the numb ### JSON-RPC Request and Response Examples -Here is an example JSON-RPC request and response for the `eth_getUncleCountByBlockHash` method: +Here is an example JSON-RPC request and response for the `klay_getUncleCountByBlockHash` method: **Request:** @@ -63,7 +63,7 @@ Here is an example JSON-RPC request and response for the `eth_getUncleCountByBlo { "id": 1, "jsonrpc": "2.0", - "method": "eth_getUncleCountByBlockHash", + "method": "klay_getUncleCountByBlockHash", "params": [ "0x3a3e528dcd6e05a614c9241b0a9296db961fa6a92e05af9f6c0d7d2f6bc92f7a" ] diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getunclecountbyblocknumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getunclecountbyblocknumber.md similarity index 67% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getunclecountbyblocknumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getunclecountbyblocknumber.md index edbc0ec8..1b41a74a 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getunclecountbyblocknumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_getunclecountbyblocknumber.md @@ -1,13 +1,13 @@ --- -title: "eth_getunclecountbyblocknumber" -slug: "rpc-horizen-eon-eth_getunclecountbyblocknumber" -excerpt: "Horizen Eon RPC" +title: "klay_getunclecountbyblocknumber" +slug: "rpc-klaytn-klay_getunclecountbyblocknumber" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) -const result = await tatum.rpc.getUncleCountByBlockNumber('0xAD7C5E') +const result = await tatum.rpc.getUncleCountByBlockNumber('0x80F8C7A') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,13 +36,13 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getUncleCountByBlockHash` method is an JSON-RPC method that returns the number of uncles in a specified block by its hash. This method can be useful for gathering information about the performance of the network and to analyze the security of the blockchain. +The `klay_getUncleCountByBlockHash` method is an JSON-RPC method that returns the number of uncles in a specified block by its hash. This method can be useful for gathering information about the performance of the network and to analyze the security of the blockchain. Uncles are blocks that are not included in the main blockchain but are still valid, and they contribute to the overall security and decentralization of the network. The inclusion of uncles helps prevent centralization and ensures the mining process remains competitive. ### Parameters -The `eth_getUncleCountByBlockHash` method takes one parameter: +The `klay_getUncleCountByBlockHash` method takes one parameter: * `blockNumber`: The number of the block for which you want to get the uncle count. * Example value: `"0x12345"` @@ -55,7 +55,7 @@ The return object for this method is a hex-encoded integer representing the numb ### JSON-RPC Request and Response Examples -Here is an example JSON-RPC request and response for the `eth_getUncleCountByBlockNumber` method: +Here is an example JSON-RPC request and response for the `klay_getUncleCountByBlockNumber` method: **Request:** @@ -63,7 +63,7 @@ Here is an example JSON-RPC request and response for the `eth_getUncleCountByBlo { "id": 1, "jsonrpc": "2.0", - "method": "eth_getUncleCountByBlockNumber", + "method": "klay_getUncleCountByBlockNumber", "params": [ "0x12345" ] diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_maxpriorityfeepergas.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_maxpriorityfeepergas.md new file mode 100644 index 00000000..d2b98808 --- /dev/null +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_maxpriorityfeepergas.md @@ -0,0 +1,16 @@ +--- +title: "klay_maxpriorityfeepergas" +slug: "rpc-klaytn-klay_maxpriorityfeepergas" +excerpt: "Klaytn RPC" +category: 65c5e93c623cad004b45d505 +hidden: false +metadata: + description: "Klaytn RPC" + image: [] + keywords: "klaytn, 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)" +--- +[block:html]{"html":"
\n
Archive Method
\n

Only on the full archive nodes. Complex queries might take longer and incur additional cost

\n
"}[/block] + diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_sendrawtransaction.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_sendrawtransaction.md similarity index 66% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_sendrawtransaction.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_sendrawtransaction.md index 0b03072a..ae2ada5b 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_sendrawtransaction.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/klay_sendrawtransaction.md @@ -1,13 +1,13 @@ --- -title: "eth_sendrawtransaction" -slug: "rpc-horizen-eon-eth_sendrawtransaction" -excerpt: "Horizen Eon RPC" +title: "klay_sendrawtransaction" +slug: "rpc-klaytn-klay_sendrawtransaction" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) const gasPrice = await tatum.rpc.sendRawTransaction('0x0000.......') @@ -36,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_sendRawTransaction` RPC method is used to send a signed and serialized transaction to the network. This method is particularly useful when you want to have full control over the signing process, e.g., when using hardware wallets, cold storage, or custom signing libraries. It can be utilized in various use cases, such as transferring, interacting with smart contracts, or deploying new contracts. +The `klay_sendRawTransaction` RPC method is used to send a signed and serialized transaction to the network. This method is particularly useful when you want to have full control over the signing process, e.g., when using hardware wallets, cold storage, or custom signing libraries. It can be utilized in various use cases, such as transferring, interacting with smart contracts, or deploying new contracts. ### Parameters @@ -56,7 +56,7 @@ The method returns a single value: { "id": 1, "jsonrpc": "2.0", - "method": "eth_sendRawTransaction", + "method": "klay_sendRawTransaction", "params": [ "0xf86d8201...94a7bc" ] diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_content.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/txpool_content.md similarity index 90% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_content.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/txpool_content.md index 350ebd9a..fb05e28a 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_content.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/txpool_content.md @@ -1,13 +1,13 @@ --- title: "txpool_content" -slug: "rpc-horizen-eon-txpool_content" -excerpt: "Horizen Eon RPC" +slug: "rpc-klaytn-txpool_content" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) const content = await tatum.rpc.txPoolContent() @@ -36,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `txpool_content` method provides information about the transactions currently pending in the transaction pool of the Flare node. It can be helpful for developers and node operators to monitor and manage the transaction pool, especially in scenarios where it's necessary to analyze transaction congestion or prioritize specific transactions. +The `txpool_content` method provides information about the transactions currently pending in the transaction pool of the node. It can be helpful for developers and node operators to monitor and manage the transaction pool, especially in scenarios where it's necessary to analyze transaction congestion or prioritize specific transactions. Use cases for the `txpool_content` method include: diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_inspect.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/txpool_inspect.md similarity index 90% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_inspect.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/txpool_inspect.md index 737cac9e..df94dd55 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_inspect.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/txpool_inspect.md @@ -1,13 +1,13 @@ --- title: "txpool_inspect" -slug: "rpc-horizen-eon-txpool_inspect" -excerpt: "Horizen Eon RPC" +slug: "rpc-klaytn-txpool_inspect" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) const inspect = await tatum.rpc.txPoolInspect() diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_status.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/txpool_status.md similarity index 88% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_status.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/txpool_status.md index 88dc78f3..08f15736 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_status.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/txpool_status.md @@ -1,13 +1,13 @@ --- title: "txpool_status" -slug: "rpc-horizen-eon-txpool_status" -excerpt: "Horizen Eon RPC" +slug: "rpc-klaytn-txpool_status" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) const status = await tatum.rpc.txPoolStatus() diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/web3_clientversion.md b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/web3_clientversion.md similarity index 87% rename from v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/web3_clientversion.md rename to v1.0/RPC Nodes/rpc-evm/rpc-klaytn/web3_clientversion.md index 01432f7b..b9e216ee 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/web3_clientversion.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-klaytn/web3_clientversion.md @@ -1,13 +1,13 @@ --- title: "web3_clientversion" -slug: "rpc-horizen-eon-web3_clientversion" -excerpt: "Horizen Eon RPC" +slug: "rpc-klaytn-web3_clientversion" +excerpt: "Klaytn RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Horizen Eon RPC" + description: "Klaytn RPC" image: [] - keywords: "horizen-eon, rpc" + keywords: "klaytn, 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)" @@ -21,9 +21,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" {% code overflow="wrap" lineNumbers="true" %} ```typescript // yarn add @tatumio/tatum -import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' +import { TatumSDK, Klaytn, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) +const tatum = await TatumSDK.init({network: Network.KLAYTN}) const version = await tatum.rpc.clientVersion()