diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyhash.md deleted file mode 100644 index 0c46e9b6..00000000 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyhash.md +++ /dev/null @@ -1,111 +0,0 @@ ---- -title: "eth_gettransactionbyhash" -slug: "rpc-haqq-eth_gettransactionbyhash" -excerpt: "Haqq RPC" -category: 65c5e93c623cad004b45d505 -hidden: false -metadata: - description: "Haqq RPC" - image: [] - keywords: "haqq, 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, Haqq, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.HAQQ}) - -const tx = await tatum.rpc.getTransactionByHash('0xf920dd038c8264244bc7faab54d3f0c1256f992c744a134f0e5886a73107e536') - -await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs -``` -{% endcode %} -{% endtab %} -{% endtabs %} - -### Overview - -`eth_getTransactionByHash` is an Haqq 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. - -{% embed url="https://codepen.io/Jan-Musil-the-lessful/pen/MWzLxGd?editors=1111" %} - -### Parameters - -The `eth_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: `"0xf920dd038c8264244bc7faab54d3f0c1256f992c744a134f0e5886a73107e536"` - -### Return Object - -The method returns a transaction object with the following fields: - -* **`hash`**: The hash of the transaction (32 bytes). -* **`nonce`**: The number of transactions sent by the sender prior to this one (integer). -* **`blockHash`**: The hash of the block in which the transaction was included (32 bytes), or `null` if the transaction is not yet mined. -* **`blockNumber`**: The block number in which the transaction was included (integer), or `null` if the transaction is not yet mined. -* **`transactionIndex`**: The index of the transaction in the block (integer), or `null` if the transaction is not yet mined. -* **`from`**: The address of the sender (20 bytes). -* **`to`**: The address of the receiver (20 bytes), or `null` for contract creation transactions. -* **`value`**: The value transferred in the transaction, in wei. -* **`gasPrice`**: The price of gas for the transaction, in wei. -* **`maxFeePerGas`** - The maximum fee per gas set in the transaction. -* **`maxPriorityFeePerGas`** - The maximum priority gas fee set in the transaction. -* **`gas`**: The maximum amount of gas the transaction is allowed to consume. -* **`input`**: The data payload of the transaction (string), or `0x` for simple value transfers. - -### JSON-RPC Examples - -Request: - -```json -{ - "jsonrpc": "2.0", - "method": "eth_getTransactionByHash", - "params": ["0xf920dd038c8264244bc7faab54d3f0c1256f992c744a134f0e5886a73107e536"], - "id": 1 -} -``` - -Response: - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": { - "blockHash": "0xc9a74365087632df3824877d8515f4fca6152148c393d427b5a1f73b6b48216a", - "blockNumber": "0x10a24fe", - "from": "0x1f9090aae28b8a3dceadf281b0f12828e676c326", - "gas": "0x565f", - "gasPrice": "0x4920f718b", - "maxFeePerGas": "0x4920f718b", - "maxPriorityFeePerGas": "0x0", - "hash": "0x06b57a2430c71328be4f86a7bf8bb18cdbe2d55725791733f4eb6151012319a1", - "input": "0x", - "nonce": "0x1c0fa", - "to": "0x388c818ca8b9251b393131c08a736a67ccb19297", - "transactionIndex": "0xc5", - "value": "0x18c6d8afd7453e2", - "type": "0x2", - "accessList": [], - "chainId": "0x1", - "v": "0x0", - "r": "0x9ce24e115c0b85be0c14a6b58fe87f41a5c0179432ec09717edbcd46ff33ab25", - "s": "0x2184449629568a4b3c5420108bf4f5c270d36cf81d11ea7590f010de7bf335a6" - } - -``` - -\ diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionreceipt.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionreceipt.md deleted file mode 100644 index 3affa746..00000000 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionreceipt.md +++ /dev/null @@ -1,125 +0,0 @@ ---- -title: "eth_gettransactionreceipt" -slug: "rpc-haqq-eth_gettransactionreceipt" -excerpt: "Haqq RPC" -category: 65c5e93c623cad004b45d505 -hidden: false -metadata: - description: "Haqq RPC" - image: [] - keywords: "haqq, 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, Haqq, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.HAQQ} - -const tx = await tatum.rpc.getTransactionReceipt('0xf920dd038c8264244bc7faab54d3f0c1256f992c744a134f0e5886a73107e536') - -await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs -``` -{% endcode %} -{% endtab %} -{% endtabs %} - -### Overview - -`eth_getTransactionReceipt` is an Haqq 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. - -{% embed url="https://codepen.io/Jan-Musil-the-lessful/pen/XWyOQMN" %} - -### Parameters - -This method requires a single parameter: - -* **`transactionHash`**: The hash of the transaction for which you want to obtain the receipt. - * Example: `"0xf920dd038c8264244bc7faab54d3f0c1256f992c744a134f0e5886a73107e536"` - -### Return Object - -The method returns an object containing the following fields: - -* **`transactionHash`**: The hash of the transaction. -* **`transactionIndex`**: The transaction's index position in the block. -* **`blockHash`**: The hash of the block where this transaction was mined. -* **`blockNumber`**: The block number where this transaction was mined. -* **`from`**: The address of the sender. -* **`to`**: The address of the receiver. `null` when it's a contract creation transaction. -* **`cumulativeGasUsed`**: The total amount of gas used when this transaction was executed in the block. -* **`gasUsed`**: The amount of gas used by this specific transaction alone. -* **`contractAddress`**: The address of the contract created, if the transaction was a contract creation. Otherwise, `null`. -* **`logs`**: An array of log objects, which were emitted during the transaction. -* **`logsBloom`**: A 256-byte bloom filter, which is a compressed representation of the logs emitted during the transaction. -* **`status`**: The status of the transaction's execution. `"0x1"` indicates success, while `"0x0"` indicates failure. - -### JSON-RPC Examples - -Request: - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "method": "eth_getTransactionReceipt", - "params": [ - "0xf920dd038c8264244bc7faab54d3f0c1256f992c744a134f0e5886a73107e536" - ] -} -``` - -Response: - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": { - "blockHash": "0x1091a5831b3556e80e53598c24e9d592e104dba0428f47f94c61523eb52d09d8", - "blockNumber": "0x316624", - "contractAddress": null, - "cumulativeGasUsed": "0x7ad81", - "effectiveGasPrice": "0x306dc421e", - "from": "0x53e8577c4347c365e4e0da5b57a589cb6f2ab848", - "gasUsed": "0x3c518", - "logs": [ - { - "address": "0x211500d1960bdb7ba3390347ffd8ad486b897a18", - "topics": [ - "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000074b4551c177592a908c6ab9ce671bfe8c1b5bd40", - "0x000000000000000000000000000000000000000000000000000056b990e70e00" - ], - "data": "0x", - "blockNumber": "0x316624", - "transactionHash": "0xa536596d043c03d709aaccbc53f421963fe3537274e86444cd984404cf9ecb13", - "transactionIndex": "0x4", - "blockHash": "0x1091a5831b3556e80e53598c24e9d592e104dba0428f47f94c61523eb52d09d8", - "logIndex": "0x3", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000020000010000000000000800000000000000000000000010000040000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000100000000000000000000000000000000002000000200000000000100000000000800000000000000000000020000000000000000000000200000000000000000000000000000000000000000000", - "status": "0x1", - "to": "0x211500d1960bdb7ba3390347ffd8ad486b897a18", - "transactionHash": "0xa536596d043c03d709aaccbc53f421963fe3537274e86444cd984404cf9ecb13", - "transactionIndex": "0x4", - "type": "0x0" - } -} - -``` - -\ diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon.md similarity index 83% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon.md index 9533dfbc..43f8348f 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon.md @@ -1,6 +1,6 @@ --- -title: "Haqq" -slug: "rpc-haqq" +title: "Horizen Eon" +slug: "rpc-horizen-eon" excerpt: "" category: 65c5e93c623cad004b45d505 hidden: false diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_traceblockbyhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_traceblockbyhash.md new file mode 100644 index 00000000..dd2e32da --- /dev/null +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_traceblockbyhash.md @@ -0,0 +1,128 @@ +--- +title: "debug_traceblockbyhash" +slug: "rpc-horizen-eon-debug_traceblockbyhash" +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.debugTraceBlockByHash( +'0x48dfcf43404dffdb3b93a0b0d9982b642b221187bc3ed5c023bdab6c0e863e3d', +{ + tracer: 'callTracer', + tracerConfig: { + onlyTopCall: true, + timeout: '5s', + } +} +) + +await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs +``` +{% endcode %} +{% endtab %} +{% endtabs %} + +### Overview + +`debug_traceBlockByHash` 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 `callTracer` tracer, developers can obtain more detailed information about the calls made during each transaction, including the input, output, and depth of the calls. + +### Parameters + +* `block_hash` (required): The hash of the block to be traced. + * Example: `"0x1dcf337a03e08a8c00e31de6f5b6d9a6e1c6f1d5e5e6c89fc5f5b5a30e6d5d0c"` +* `options` (optional): An object containing configuration options for the tracer. + * `tracer` (required, string): The tracer to use, in this case, `'callTracer'`. + * `tracerConfig` (required, string): object containing `'timeout'` and `'onlyTopCall'` paramter + * `timeout` (required, string): The maximum amount of time the tracer is allowed to run in seconds (e.g. "10s"). Default is "5s". + * `onlyTopCall` (required, boolean): Setting this to true will only trace the main (top-level) call and none of the sub-calls. This avoids extra processing for each call frame if only the top-level call info is required (useful for getting revertReason). + * Example: `{ tracer: 'callTracer', tracerConfig: { onlyTopCall: true, timeout: '5s', }}` + +### Return Object + +The return object is an array of objects, each representing the trace result of a transaction within the block. Each object contains the following fields: + +* `from`: The address the transaction was sent from. +* `gas`: The gas provided for the transaction. +* `gasUsed`: The total gas used by the transaction. +* `to`: The address the transaction was sent to. +* `input`: The input data for the transaction. +* `output`: The output data from the transaction. +* `calls`: An array of objects, each representing a call made during the transaction. 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 + +```json +{ + "id": 1, + "jsonrpc": "2.0", + "method": "debug_traceBlockByHash", + "params": [ + "0x1dcf337a03e08a8c00e31de6f5b6d9a6e1c6f1d5e5e6c89fc5f5b5a30e6d5d0c", + { + "tracer": "callTracer", + "timeout": "10s" + } + ] +} + +``` + +#### 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_traceblockbynumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_traceblockbynumber.md new file mode 100644 index 00000000..e113ac28 --- /dev/null +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_traceblockbynumber.md @@ -0,0 +1,118 @@ +--- +title: "debug_traceblockbynumber" +slug: "rpc-horizen-eon-debug_traceblockbynumber" +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.debugTraceBlockByNumber(357368) + +await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs +``` +{% endcode %} +{% endtab %} +{% endtabs %} + +### Overview + +`debug_traceBlockByNumber` 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 `callTracer` tracer, developers can obtain more detailed information about the calls made during each transaction, including the input, output, and depth of the calls. + +### Parameters + +* `blockNumber` - `Quantity` or `String` + * The block number of the block to trace. + * Example: `"0x1"` or `"latest"` +* `options` as `tracerConfig`(optional): An object containing configuration options for the tracer. + * `tracer` (required): The tracer to use, in this case, `"callTracer"`. + * `timeout` (required): The maximum amount of time the tracer is allowed to run, in seconds or as a string (e.g. "10s"). Default is "5s". + * Example: `tracerConfig: { onlyTopCall: true, timeout: '10', }` + +### Return Object + +The return object is an array of objects, each representing the trace result of a transaction within the block. Each object contains the following fields: + +* `from`: The address the transaction was sent from. +* `gas`: The gas provided for the transaction. +* `gasUsed`: The total gas used by the transaction. +* `to`: The address the transaction was sent to. +* `input`: The input data for the transaction. +* `output`: The output data from the transaction. +* `calls`: An array of objects, each representing a call made during the transaction. 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 + +```json +{ + "id": 1, + "jsonrpc": "2.0", + "method": "debug_traceBlockByNumber", + "params": [ + "latest", + { + "tracer": "callTracer", + "timeout": "10s" + } + ] +} + +``` + +#### 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_tracecall.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_tracecall.md new file mode 100644 index 00000000..80b9bdcb --- /dev/null +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_tracecall.md @@ -0,0 +1,139 @@ +--- +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/debug_tracetransaction.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_tracetransaction.md new file mode 100644 index 00000000..9c21e013 --- /dev/null +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/debug_tracetransaction.md @@ -0,0 +1,124 @@ +--- +title: "debug_tracetransaction" +slug: "rpc-horizen-eon-debug_tracetransaction" +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.debugTraceTransaction('0x6aefbd1a9c9e4c310cadde3bcdd809a14da87caa8fa4f10ca04d9e357a3907e9', { + tracer: 'callTracer', + tracerConfig: { + onlyTopCall: true, + timeout: '5s', + } +}) + +await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs +``` +{% endcode %} +{% endtab %} +{% endtabs %} + +### Overview + +`debug_traceTransaction` is an RPC method that allows developers to inspect and trace the execution of a specific transaction, providing valuable insight into the internal workings of the transaction, including the calls made between contracts, the state of the contracts, and any errors encountered during the transaction. + +By using the `callTracer` tracer, developers can obtain more detailed information about the calls made during the transaction, including the input, output, and the depth of the calls. This is particularly useful in debugging complex transactions, analyzing gas consumption, and understanding the flow of execution within smart contracts. + +### Parameters + +* `transaction_hash` (required): The hash of the transaction to trace. + * Example: `"0x123f681646d4a755815f9cb19e1acc8565a0c2ac"` +* `options` (optional): An object containing configuration options for the tracer. + * `tracer` (required, string): The tracer to use, in this case, `'callTracer'`. + * `tracerConfig` (required, string): object containing `'timeout'` and `'onlyTopCall'` paramter + * `timeout` (required, string): The maximum amount of time the tracer is allowed to run in seconds (e.g. "10s"). Default is "5s". + * `onlyTopCall` (required, boolean): Setting this to true will only trace the main (top-level) call and none of the sub-calls. This avoids extra processing for each call frame if only the top-level call info is required (useful for getting revertReason). + * Example: `{ tracer: 'callTracer', tracerConfig: { onlyTopCall: true, timeout: '5s', }}` + +### Return Object + +The return object is an object containing the following fields: + +* `from`: The address the transaction was sent from. +* `gas`: The gas provided for the transaction. +* `gasUsed`: The total gas used by the transaction. +* `to`: The address the transaction was sent to. +* `input`: The input data for the transaction. +* `output`: The output data from the transaction. +* `calls`: An array of objects, each representing a call made during the transaction. 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 + +```json +{ + "jsonrpc": "2.0", + "method": "debug_traceTransaction", + "params": ["0x920d562e886a0c7c1f07ecee2ee5557f72d3056b205f8811c57e2615a3b6adb0", {"tracer":"callTracer"}], + "id": 2 +} +``` + +#### 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-haqq/eth_blocknumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_blocknumber.md similarity index 67% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_blocknumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_blocknumber.md index 0c02a57e..b92ac8ab 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_blocknumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_blocknumber.md @@ -1,13 +1,13 @@ --- title: "eth_blocknumber" -slug: "rpc-haqq-eth_blocknumber" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_blocknumber" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.HAQQ}) +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) const latestBlock = await tatum.rpc.blockNumber() @@ -36,7 +36,7 @@ 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 Haqq blockchain. This method is commonly used to track the current state of the network, monitor for new blocks, or fetch historical data. +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. Use cases for `eth_blockNumber` include: @@ -45,8 +45,6 @@ Use cases for `eth_blockNumber` include: * Determining the current network state for smart contract interactions\ -{% embed url="https://codepen.io/Jan-Musil-the-lessful/pen/ZEmwwYX" %} - ### Parameters The `eth_blockNumber` method does not require any parameters. @@ -55,7 +53,7 @@ The `eth_blockNumber` method does not require any parameters. The `eth_blockNumber` method returns a single field: -* **`blockNumber`**: The number of the most recent block on the Haqq blockchain. The value is returned as a hexadecimal string. +* **`blockNumber`**: The number of the most recent block on the blockchain. The value is returned as a hexadecimal string. ### JSON-RPC Request Example @@ -76,10 +74,4 @@ The `eth_blockNumber` method returns a single field: "jsonrpc": "2.0", "result": "0x4b7" // 1207 } -``` - -In this example, the most recent block number is 1207 (`0x4b7` in hexadecimal notation). - -Please note that while this document provides a comprehensive description of the `eth_blockNumber` Haqq RPC method, other methods may be needed to obtain full transaction details or perform more complex tasks. - -\ +``` \ No newline at end of file diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_call.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_call.md similarity index 92% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_call.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_call.md index a0129cad..d9d2952d 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_call.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_call.md @@ -1,13 +1,13 @@ --- title: "eth_call" -slug: "rpc-haqq-eth_call" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_call" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.HAQQ}) +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) 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-haqq/eth_chainid.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_chainid.md similarity index 61% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_chainid.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_chainid.md index a50d317c..aef8871a 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_chainid.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_chainid.md @@ -1,13 +1,13 @@ --- title: "eth_chainid" -slug: "rpc-haqq-eth_chainid" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_chainid" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HAQQ}) +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) const id = await tatum.rpc.chainId() @@ -36,11 +36,9 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_chainId` method is an Haqq JSON-RPC method that allows developers to retrieve the currently configured chain ID of the Haqq network they are connected to. The chain ID is a unique identifier for different Haqq networks, such as Haqq Mainnet or various testnets. +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. -This method is particularly useful when building applications that interact with multiple Haqq 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. - -{% embed url="https://codepen.io/tatum-devrel/pen/NWEQVzo" %} +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 @@ -67,14 +65,11 @@ JSON-RPC request: JSON-RPC response: -````json ```json { "jsonrpc": "2.0", "id": 1, - "result": "0x2be3" + "result": "0xe" } ``` -```` -In this example, the returned chain ID is `0x2be3`, which corresponds to the Haqq Mainnet. diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_estimategas.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_estimategas.md similarity index 74% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_estimategas.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_estimategas.md index 61a00788..7a420bd6 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_estimategas.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_estimategas.md @@ -1,13 +1,13 @@ --- title: "eth_estimategas" -slug: "rpc-haqq-eth_estimategas" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_estimategas" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,17 +22,18 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.HAQQ}) +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) const estimate = await tatum.rpc.estimateGas({ - "from": "0x2C5B9a513bE2240e948a631bAaFB53cc0bEAcfda", - "to": "0x2C5B9a513bE2240e948a631bAaFB53cc0bEAcfde", - "value": "0xde0b6b3a7640000" + "from": "0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86", + "to": "0xa41d19F4258a388c639B7CcD938FCE3fb7D05e87", + "value": "0xde0b6b3a7640000", + "data": "0x606060" }) - await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs + await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` {% endcode %} {% endtab %} @@ -40,15 +41,13 @@ const estimate = await tatum.rpc.estimateGas({ ### Overview -`eth_estimateGas` is an Haqq 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. +`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. Use cases for `eth_estimateGas` include: * Estimating gas costs for contract deployments * Estimating gas costs for contract function calls -* Estimating gas costs for standard ether transfers - -{% embed url="https://codepen.io/Jan-Musil-the-lessful/pen/abQXrEQ" %} +* Estimating gas costs for standard transfers ### Parameters @@ -62,7 +61,7 @@ The `eth_estimateGas` method takes a single parameter, an object representing th * Example: `"gas": "0x76c0"` * **`gasPrice`** (optional, string): The price of gas in wei. * Example: `"gasPrice": "0x9184e72a000"` -* **`value`** (optional, string): The amount of ISLM to send in the transaction, in wei. +* **`value`** (optional, string): The amount of ZEN to send in the transaction, in wei. * Example: `"value": "0xde0b6b3a7640000"` * **`data`** (optional, string): The data payload of the transaction, typically used for contract function calls or contract deployment. * Example: `"data": "0x606060..."` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gasprice.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gasprice.md similarity index 66% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gasprice.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gasprice.md index b3580eae..04754b1a 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gasprice.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gasprice.md @@ -1,13 +1,13 @@ --- title: "eth_gasprice" -slug: "rpc-haqq-eth_gasprice" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_gasprice" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.HAQQ}) +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) const gasPrice = await tatum.rpc.gasPrice() @@ -36,9 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_gasPrice` method is an Haqq JSON-RPC method used to estimate the average gas price required for transactions in the Haqq 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. - -{% embed url="https://codepen.io/Jan-Musil-the-lessful/pen/OJadYzX" %} +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. ### Parameters diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getbalance.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getbalance.md similarity index 67% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getbalance.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getbalance.md index ca373404..5151da1b 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getbalance.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getbalance.md @@ -1,13 +1,13 @@ --- title: "eth_getbalance" -slug: "rpc-haqq-eth_getbalance" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_getbalance" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HAQQ} +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) -const balance = await tatum.rpc.getBalance('0x2c5b9a513be2240e948a631baafb53cc0beacfda') +const balance = await tatum.rpc.getBalance('0x99D270f4a42b296fB888f168a5985e1d9839B064') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,16 +36,14 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getBalance` method is an Haqq JSON-RPC method that allows you to retrieve the Haqq balance of a specified address. This method can be used to query the balance of any Haqq 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). - -{% embed url="https://codepen.io/Jan-Musil-the-lessful/pen/ZEmwZvp?editors=1111" %} +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). ### Parameters The method requires two parameters: -1. **`address`** (required): The Haqq address of the account or contract whose balance you want to query. - * Example: `"0x2C5B9a513bE2240e948a631bAaFB53cc0bEAcfda"` +1. **`address`** (required): The address of the account or contract whose balance you want to query. + * Example: `"0x99D270f4a42b296fB888f168a5985e1d9839B064"` 2. **`blockParameter`** (optional): The block number or block identifier to specify the point in time for which you want to query the balance. * Example: `"latest"` or `"0x1"` @@ -72,7 +70,7 @@ A full transaction object includes the following fields: The method returns a single field: -* `result`: The Haqq balance of the specified address in wei, as a hexadecimal string. +* `result`: The Flare 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 @@ -85,7 +83,7 @@ The method returns a single field: "id": 1, "method": "eth_getBalance", "params": [ - "0x2C5B9a513bE2240e948a631bAaFB53cc0bEAcfda", + "0x99D270f4a42b296fB888f168a5985e1d9839B064", "latest" ] } @@ -95,8 +93,14 @@ The method returns a single field: ```json { - "jsonrpc": "2.0", - "id": 1, - "result": "0x1a2e1a" + "jsonrpc": "2.0", + "id": 1, + "result": { + "BigNumber": { + "s": 1, + "e": 18, + "c": [10611, 3542686313455] + } + } } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblockbyhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblockbyhash.md similarity index 89% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblockbyhash.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblockbyhash.md index 9b7b4c17..bfa57581 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblockbyhash.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblockbyhash.md @@ -1,13 +1,13 @@ --- title: "eth_getblockbyhash" -slug: "rpc-haqq-eth_getblockbyhash" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_getblockbyhash" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) -const tatum = await TatumSDK.init({network: Network.HAQQ}) - -const block = await tatum.rpc.getBlockByHash('0x300e4057498875ef62a7632c78077d9fa79265e484415d337d1f529ca4660ee6', true) +const block = await tatum.rpc.getBlockByHash('0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6', true) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,9 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getBlockByHash` is an Haqq JSON-RPC method that allows developers to query a specific block in the Haqq 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. - -{% embed url="https://codepen.io/tatum-devrel/pen/JjegqOb" %} +`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. ### Parameters @@ -46,7 +44,7 @@ The `eth_getBlockByHash` method accepts two parameters: 1. **`blockHash`**: The hash of the block you want to retrieve information about. * Type: `String` - * Example: `"0x078610ca461480e4b78557f20e544084cccc4accb41f5c1b7ef792246b78c94b"` + * Example: `"0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6"` 2. **`fullTransactionDetails`**: A boolean value indicating whether to return full transaction details or just transaction hashes. * Type: `Boolean` * Example: `true` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblockbynumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblockbynumber.md similarity index 91% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblockbynumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblockbynumber.md index 7b32a7af..328f67ca 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblockbynumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblockbynumber.md @@ -1,13 +1,13 @@ --- title: "eth_getblockbynumber" -slug: "rpc-haqq-eth_getblockbynumber" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_getblockbynumber" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.HAQQ}) +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) const block = await tatum.rpc.getBlockByNumber('latest', true) @@ -36,9 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getBlockByNumber` is an Haqq JSON-RPC method that allows developers to query a specific block in the Haqq 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. - -{% embed url="https://codepen.io/tatum-devrel/pen/KKrOLvY" %} +`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. ### Parameters diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblocktransactioncountbyhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblocktransactioncountbyhash.md similarity index 60% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblocktransactioncountbyhash.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblocktransactioncountbyhash.md index 6da6b0d3..6ca48fae 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblocktransactioncountbyhash.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblocktransactioncountbyhash.md @@ -1,13 +1,13 @@ --- title: "eth_getblocktransactioncountbyhash" -slug: "rpc-haqq-eth_getblocktransactioncountbyhash" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_getblocktransactioncountbyhash" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HAQQ} +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) -const response = await tatum.rpc.getBlockTransactionCountByHash('0xF07355D9A980F61915B53A74AFCDB89598E54EFCD9DF5A9935D16BC1DC4CFA8F') +const response = await tatum.rpc.getBlockTransactionCountByHash('0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,9 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getBlockTransactionCountByHash` is an Haqq 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. - -{% embed url="https://codepen.io/tatum-devrel/pen/wvQVbyY" %} +`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. ### Parameters @@ -48,7 +46,7 @@ This method requires a single parameter: Example of the parameter: -* `blockHash`: `"0xF07355D9A980F61915B53A74AFCDB89598E54EFCD9DF5A9935D16BC1DC4CFA8F"` +* `blockHash`: `"0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6"` ### Return @@ -66,7 +64,7 @@ The method returns a single value: "jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": [ - "0xF07355D9A980F61915B53A74AFCDB89598E54EFCD9DF5A9935D16BC1DC4CFA8F" + "0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6" ] } ``` @@ -81,4 +79,4 @@ The method returns a single value: } ``` -In this example, the block with the hash `"0xF07355D9A980F61915B53A74AFCDB89598E54EFCD9DF5A9935D16BC1DC4CFA8F"` has a total of 10 transactions (indicated by the hexadecimal value `"0xa"`). +In this example, the block with the hash `"0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"` has a total of 10 transactions (indicated by the hexadecimal value `"0xa"`). diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblocktransactioncountbynumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblocktransactioncountbynumber.md similarity index 63% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblocktransactioncountbynumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblocktransactioncountbynumber.md index 158a6764..4d77fc43 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblocktransactioncountbynumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getblocktransactioncountbynumber.md @@ -1,13 +1,13 @@ --- title: "eth_getblocktransactioncountbynumber" -slug: "rpc-haqq-eth_getblocktransactioncountbynumber" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_getblocktransactioncountbynumber" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HAQQ} +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) -const response = await tatum.rpc.getBlockTransactionCountByNumber(7687453) +const response = await tatum.rpc.getBlockTransactionCountByNumber(371156) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,20 +36,18 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getBlockTransactionCountByNumber` Haqq 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 Haqq network, or monitor transaction congestion in certain blocks. +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. ### Parameters 1. **`blockNumber`**: The block number for which the transaction count should be retrieved. It should be a hex-encoded value representing the block number. - * Example: 7687453 - -{% embed url="https://codepen.io/tatum-devrel/pen/YzRmbaE" %} + * Example: 371156 ### Return Object The return object is a hex-encoded value representing the number of transactions in the specified block. -* Example: `"0xa"` (10 transactions) +* Example: `"0x1"` (1 transactions) ### JSON-RPC Request and Response Examples @@ -60,7 +58,7 @@ The return object is a hex-encoded value representing the number of transactions "jsonrpc": "2.0", "id": 1, "method": "eth_getBlockTransactionCountByNumber", - "params": [7687453] + "params": [371156] } ``` @@ -70,7 +68,7 @@ The return object is a hex-encoded value representing the number of transactions { "jsonrpc": "2.0", "id": 1, - "result": "0xa" + "result": "0x1" } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getcode.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getcode.md similarity index 68% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getcode.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getcode.md index f4fe39a9..b9e20af7 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getcode.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getcode.md @@ -1,13 +1,13 @@ --- title: "eth_getcode" -slug: "rpc-haqq-eth_getcode" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_getcode" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -21,11 +21,12 @@ 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, Haqq, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HAQQ} +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' -const code = await tatum.rpc.getCode('0x2C5B9a513bE2240e948a631bAaFB53cc0bEAcfda') +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) + +const code = await tatum.rpc.getCode('0x6eA7d015342b7eb7344F7ebf0150234f41F524d6') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -35,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getCode` method is part of the Haqq JSON-RPC API, which allows users to interact with the Haqq 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 `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. Use cases for this method could include: @@ -43,14 +44,12 @@ Use cases for this method could include: * Verifying the integrity of a deployed contract * Analyzing contract bytecode for security vulnerabilities -{% embed url="https://codepen.io/tatum-devrel/pen/rNQXgJV" %} - ### Parameters The `eth_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 Haqq address, formatted as a hex string with a `0x` prefix. - * Example: `"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"` +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"` 2. **`block`** (string): The block number at which you want to retrieve the contract code. This can be specified as a hex string or one of the following special keywords: * `"earliest"`: The first block in the blockchain * `"latest"`: The most recent block in the blockchain @@ -74,7 +73,7 @@ The `eth_getCode` method returns a string representing the contract bytecode. Th "jsonrpc": "2.0", "method": "eth_getCode", "params": [ - "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", + "0x6eA7d015342b7eb7344F7ebf0150234f41F524d6", "latest" ] } diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getlogs.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getlogs.md similarity index 80% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getlogs.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getlogs.md index b989eac0..3bbfd806 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getlogs.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getlogs.md @@ -1,13 +1,13 @@ --- title: "eth_getlogs" -slug: "rpc-haqq-eth_getlogs" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_getlogs" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HAQQ} +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) -const logs = await tatum.rpc.getLogs({ address : '0x2C5B9a513bE2240e948a631bAaFB53cc0bEAcfda'}) +const logs = await tatum.rpc.getLogs({ address : '0x6eA7d015342b7eb7344F7ebf0150234f41F524d6'}) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,11 +36,9 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getLogs` method is an Haqq JSON-RPC method that allows developers to query logs generated by the Haqq network, specifically event logs emitted by smart contracts. These logs are an essential part of the Haqq ecosystem as they provide a way for developers to monitor contract events and track contract state changes. +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. -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 Haqq blockchain. - -{% embed url="https://codepen.io/tatum-devrel/pen/JjegqMb" %} +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. ### Parameters @@ -95,7 +93,7 @@ The `eth_getLogs` method returns an array of log objects. Each log object contai { "fromBlock": "0x1", "toBlock": "0x2", - "address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", + "address": "0x6eA7d015342b7eb7344F7ebf0150234f41F524d6", "topics": ["0x123..."] } ] @@ -124,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` Haqq JSON-RPC method, its parameters, return objects, and JSON-RPC examples. By using this method, developers can effectively query logs generated by the Haqq network and use the retrieved data to track and react to events happening on the Haqq blockchain. +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. diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getproof.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getproof.md similarity index 73% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getproof.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getproof.md index 9e175932..2bb8f942 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getproof.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getproof.md @@ -1,13 +1,13 @@ --- title: "eth_getproof" -slug: "rpc-haqq-eth_getproof" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_getproof" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,13 +22,13 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HAQQ}) +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) -const result = await tatum.rpc.getProof("0x2C5B9a513bE2240e948a631bAaFB53cc0bEAcfda", - ["0x0000000000000000000000000000000000000000000000000000000000000000"], - "latest") +const result = await tatum.rpc.getProof("0xBB52B2B91488d60eFb6848bBadd000005A511E5C", +["0x0000000000000000000000000000000000000000000000000000000000000000"], +"latest") await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -38,15 +38,13 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getProof` is an Haqq 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 Haqq 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. - -{% embed url="https://codepen.io/tatum-devrel/pen/poQMmVM" %} +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. ### Parameters 1. **`address`** - `Data`, 20 Bytes * The address of the account. - * Example: `"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"` + * Example: `"0xBB52B2B91488d60eFb6848bBadd000005A511E5C"` 2. **`keys`** - `Array` of `Data` * An array of storage keys for which the proof should be generated. * Example: `["0x0000000000000000000000000000000000000000000000000000000000000000"]` @@ -82,7 +80,7 @@ _Request_: "jsonrpc": "2.0", "method": "eth_getProof", "params": [ - "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", + "0xBB52B2B91488d60eFb6848bBadd000005A511E5C", [ "0x0000000000000000000000000000000000000000000000000000000000000000" ], @@ -119,5 +117,4 @@ _Response_: ] } } - ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getstorageat.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getstorageat.md similarity index 65% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getstorageat.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getstorageat.md index c7cc2af6..8108f45c 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getstorageat.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getstorageat.md @@ -1,13 +1,13 @@ --- title: "eth_getstorageat" -slug: "rpc-haqq-eth_getstorageat" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_getstorageat" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HAQQ} +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) -const response = await tatum.rpc.getStorageAt('0x742d35Cc6634C0532925a3b844Bc454e4438f44e', '0x0') +const response = await tatum.rpc.getStorageAt('0x6eA7d015342b7eb7344F7ebf0150234f41F524d6', '0x0') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,16 +36,14 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getStorageAt` is an Haqq 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. - -{% embed url="https://codepen.io/tatum-devrel/pen/yLQmWjB" %} +`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. ### Parameters `eth_getStorageAt` accepts three parameters: 1. **`address`**: The address of the contract you want to query. - * Example: `"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"` + * Example: `"0x6eA7d015342b7eb7344F7ebf0150234f41F524d6"` 2. **`position`**: The storage position (slot) you want to query. * Example: `"0x0"` 3. **`blockParameter`**: The block number, block hash, or one of the string literals (`"earliest"`, `"latest"` or `"pending"`), representing the point in the blockchain to query the storage value. @@ -65,9 +63,8 @@ The return object is a single string value, representing the storage value at th "jsonrpc": "2.0", "method": "eth_getStorageAt", "params": [ - "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", - "0x0", - "latest" + "0x6eA7d015342b7eb7344F7ebf0150234f41F524d6", + "0x0" ] } ``` @@ -78,7 +75,7 @@ The return object is a single string value, representing the storage value at th { "id": 1, "jsonrpc": "2.0", - "result": "0x0000000000000000000000000000000000000000000000000000000000000123" + "result": "0x0000000000000000000000000000000000000000000000000000000000000001" } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyblockhashandindex.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionbyblockhashandindex.md similarity index 87% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyblockhashandindex.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionbyblockhashandindex.md index 07d959ae..a0c0acb0 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyblockhashandindex.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionbyblockhashandindex.md @@ -1,13 +1,13 @@ --- title: "eth_gettransactionbyblockhashandindex" -slug: "rpc-haqq-eth_gettransactionbyblockhashandindex" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_gettransactionbyblockhashandindex" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HAQQ} +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) -const tx = await tatum.rpc.getTransactionByBlockHashAndIndex('0xC52DA0AB755168DCB6E38E7B001832F9373BA4EE688F56CFF75C6E928B78BCF3', 0) +const tx = await tatum.rpc.getTransactionByBlockHashAndIndex('0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6', 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 Haqq 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. +`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. Use cases for this method may include: @@ -44,14 +44,12 @@ Use cases for this method may include: * Gathering data for transaction analysis * Fetching transaction information for specific blocks in a block explorer application -{% embed url="https://codepen.io/tatum-devrel/pen/vYQowjp" %} - ### Parameters The `eth_getTransactionByBlockHashAndIndex` method accepts two parameters: 1. `blockHash` (required): The hash of the block containing the transaction. - * Example: `"0xC52DA0AB755168DCB6E38E7B001832F9373BA4EE688F56CFF75C6E928B78BCF3"` + * Example: `"0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6"` 2. `transactionIndex` (required): The index of the transaction within the specified block. The index is a hexadecimal value. * Example: `"0x0"` @@ -81,7 +79,7 @@ Request: "id": 1, "method": "eth_getTransactionByBlockHashAndIndex", "params": [ - "0xC52DA0AB755168DCB6E38E7B001832F9373BA4EE688F56CFF75C6E928B78BCF3", + "0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6", "0x0" ] } diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyblocknumberandindex.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionbyblocknumberandindex.md similarity index 88% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyblocknumberandindex.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionbyblocknumberandindex.md index e957f06d..44f9e108 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyblocknumberandindex.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionbyblocknumberandindex.md @@ -1,13 +1,13 @@ --- title: "eth_gettransactionbyblocknumberandindex" -slug: "rpc-haqq-eth_gettransactionbyblocknumberandindex" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_gettransactionbyblocknumberandindex" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' +iimport { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HAQQ} +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) -const tx = await tatum.rpc.getTransactionByBlockNumberAndIndex(7687453, 0) +const tx = await tatum.rpc.getTransactionByBlockNumberAndIndex(371156, 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 Haqq 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. +`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. Use cases for this method may include: @@ -44,16 +44,14 @@ Use cases for this method may include: * Gathering data for transaction analysis * Fetching transaction information for specific blocks in a block explorer application -{% embed url="https://codepen.io/Jan-Musil-the-lessful/pen/RwqvOdd" %} - ### Parameters The `eth_getTransactionByBlockHashAndIndex` method accepts two parameters: 1. `blockNumber` (required): The hash of the block containing the transaction. - * Example: 7687453 + * Example: 371156 2. `transactionIndex` (required): The index of the transaction within the specified block. The index is a hexadecimal value. - * Example: `"0x0"` + * Example: 0 ### Return Object @@ -81,8 +79,8 @@ Request: "id": 1, "method": "eth_getTransactionByBlockNumberAndIndex", "params": [ - 7687453, - "0x0" + 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-horizen-eon/eth_gettransactionbyhash.md new file mode 100644 index 00000000..e7f4682c --- /dev/null +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionbyhash.md @@ -0,0 +1,109 @@ +--- +title: "eth_gettransactionbyhash" +slug: "rpc-horizen-eon-eth_gettransactionbyhash" +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 tx = await tatum.rpc.getTransactionByHash('0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7') + +await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs +``` +{% endcode %} +{% endtab %} +{% endtabs %} + +### 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. + +### Parameters + +The `eth_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"` + +### Return Object + +The method returns a transaction object with the following fields: + +* **`hash`**: The hash of the transaction (32 bytes). +* **`nonce`**: The number of transactions sent by the sender prior to this one (integer). +* **`blockHash`**: The hash of the block in which the transaction was included (32 bytes), or `null` if the transaction is not yet mined. +* **`blockNumber`**: The block number in which the transaction was included (integer), or `null` if the transaction is not yet mined. +* **`transactionIndex`**: The index of the transaction in the block (integer), or `null` if the transaction is not yet mined. +* **`from`**: The address of the sender (20 bytes). +* **`to`**: The address of the receiver (20 bytes), or `null` for contract creation transactions. +* **`value`**: The value transferred in the transaction, in wei. +* **`gasPrice`**: The price of gas for the transaction, in wei. +* **`maxFeePerGas`** - The maximum fee per gas set in the transaction. +* **`maxPriorityFeePerGas`** - The maximum priority gas fee set in the transaction. +* **`gas`**: The maximum amount of gas the transaction is allowed to consume. +* **`input`**: The data payload of the transaction (string), or `0x` for simple value transfers. + +### JSON-RPC Examples + +Request: + +```json +{ + "jsonrpc": "2.0", + "method": "eth_getTransactionByHash", + "params": ["0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7"], + "id": 1 +} +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1, + "result": { + "blockHash": "0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6", + "blockNumber": "0x5a9d4", + "transactionIndex": "0x0", + "hash": "0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7", + "type": "0x2", + "nonce": "0x1d8", + "from": "0x8bd5723981d3f96a6544519c4a075f5994919d3a", + "to": "0xa55d9ef16af921b70fed1421c1d298ca5a3a18f1", + "value": "0x0", + "input": "0x3798c7f2000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000003400000000000000000000000000000000000000000000000000000000065082bd900000000000000000000000000000000000000000000000000000000013ebef0000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002600000000000000000000000000000000000000000000000000000000000000003415242000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034254430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000344414900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003455448000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024f50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000455534443000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004555344540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000031339e8d000000000000000000000000000000000000000000000000000018a759056108000000000000000000000000000000000000000000000000000000003b9aca000000000000000000000000000000000000000000000000000000017fc9b3dfb80000000000000000000000000000000000000000000000000000000054572fc0000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000000000000000000000000000000000003b9b181f", + "gas": "0x12a68", + "gasPrice": "0x5017ff700", + "maxPriorityFeePerGas": "0x59682f00", + "maxFeePerGas": "0xba43b7400", + "chainId": "0x1ca4", + "v": "0x1c", + "r": "0x75884978fae04ee04de9a2d4fefaaaa4742f4e8f4ccdaf89b01238bafb5292fd", + "s": "0x1f0e92ae5b7f2c8805ebb07900a59a04e73cda12a309021849a5d9ed151d7fd1", + "accessList": [] + } +} +``` + +\ diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactioncount.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactioncount.md similarity index 65% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactioncount.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactioncount.md index efe0f8bd..c6ef831e 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactioncount.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactioncount.md @@ -1,13 +1,13 @@ --- title: "eth_gettransactioncount" -slug: "rpc-haqq-eth_gettransactioncount" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_gettransactioncount" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HAQQ}) +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) -const result = await tatum.rpc.getTransactionCount('0x2eAd3B147fc20fB03fd25C71c1677E81714A9Eb5', 'latest') +const result = await tatum.rpc.getTransactionCount('0xBB52B2B91488d60eFb6848bBadd000005A511E5C', '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 Haqq 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 `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. Use cases for this method include: @@ -44,14 +44,12 @@ Use cases for this method include: * Monitoring the number of transactions sent by an address to observe its activity * Troubleshooting transaction issues and verifying if a transaction was submitted successfully -{% embed url="https://codepen.io/Jan-Musil-the-lessful/pen/RwqvOmO?editors=1111" %} - ### Parameters The `eth_getTransactionCount` method accepts two parameters: -1. **`address`** - The Haqq address whose transaction count will be retrieved. - * Example: `"0x2eAd3B147fc20fB03fd25C71c1677E81714A9Eb5"` +1. **`address`** - The address whose transaction count will be retrieved. + * Example: `"0xBB52B2B91488d60eFb6848bBadd000005A511E5C"` 2. **`blockParameter`** - A string indicating the block number or block state to consider when retrieving the transaction count. * Possible values: `"earliest"`, `"latest"`, `"pending"`, or a specific block number in hexadecimal format * Example: `"latest"` @@ -73,7 +71,7 @@ _Request_: "id": 1, "method": "eth_getTransactionCount", "params": [ - "0x2eAd3B147fc20fB03fd25C71c1677E81714A9Eb5", + "0xBB52B2B91488d60eFb6848bBadd000005A511E5C", "latest" ] } @@ -85,6 +83,12 @@ _Response_: { "jsonrpc": "2.0", "id": 1, - "result": "0x1e" + "result": { + "BigNumber": { + "s": 1, + "e": 0, + "c": [1] + } + } } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionreceipt.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionreceipt.md new file mode 100644 index 00000000..633bae2a --- /dev/null +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_gettransactionreceipt.md @@ -0,0 +1,105 @@ +--- +title: "eth_gettransactionreceipt" +slug: "rpc-horizen-eon-eth_gettransactionreceipt" +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 tx = await tatum.rpc.getTransactionReceipt('0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7') + +await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs +``` +{% endcode %} +{% endtab %} +{% endtabs %} + +### 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. + +### Parameters + +This method requires a single parameter: + +* **`transactionHash`**: The hash of the transaction for which you want to obtain the receipt. + * Example: `"0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7"` + +### Return Object + +The method returns an object containing the following fields: + +* **`transactionHash`**: The hash of the transaction. +* **`transactionIndex`**: The transaction's index position in the block. +* **`blockHash`**: The hash of the block where this transaction was mined. +* **`blockNumber`**: The block number where this transaction was mined. +* **`from`**: The address of the sender. +* **`to`**: The address of the receiver. `null` when it's a contract creation transaction. +* **`cumulativeGasUsed`**: The total amount of gas used when this transaction was executed in the block. +* **`gasUsed`**: The amount of gas used by this specific transaction alone. +* **`contractAddress`**: The address of the contract created, if the transaction was a contract creation. Otherwise, `null`. +* **`logs`**: An array of log objects, which were emitted during the transaction. +* **`logsBloom`**: A 256-byte bloom filter, which is a compressed representation of the logs emitted during the transaction. +* **`status`**: The status of the transaction's execution. `"0x1"` indicates success, while `"0x0"` indicates failure. + +### JSON-RPC Examples + +Request: + +```json +{ + "jsonrpc": "2.0", + "id": 1, + "method": "eth_getTransactionReceipt", + "params": [ + "0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7" + ] +} +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1, + "result": { + "blockHash": "0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6", + "blockNumber": "0x5a9d4", + "transactionIndex": "0x0", + "transactionHash": "0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7", + "type": "0x2", + "from": "0x8bd5723981d3f96a6544519c4a075f5994919d3a", + "to": "0xa55d9ef16af921b70fed1421c1d298ca5a3a18f1", + "effectiveGasPrice": "0x5017ff700", + "contractAddress": null, + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "gasUsed": "0x12a68", + "cumulativeGasUsed": "0x12a68", + "status": "0x1" + } +} +``` + +\ diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getunclecountbyblockhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getunclecountbyblockhash.md similarity index 69% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getunclecountbyblockhash.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getunclecountbyblockhash.md index 3c088956..cba5761f 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getunclecountbyblockhash.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getunclecountbyblockhash.md @@ -1,13 +1,13 @@ --- title: "eth_getunclecountbyblockhash" -slug: "rpc-haqq-eth_getunclecountbyblockhash" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_getunclecountbyblockhash" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HAQQ}) +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) -const result = await tatum.rpc.getUncleCountByBlockHash('0x300e4057498875ef62a7632c78077d9fa79265e484415d337d1f529ca4660ee6') +const result = await tatum.rpc.getUncleCountByBlockHash('0x48dfcf43404dffdb3b93a0b0d9982b642b221187bc3ed5c023bdab6c0e863e3d') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,11 +36,9 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getUncleCountByBlockHash` method is an Haqq 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 Haqq network and to analyze the security of the blockchain. +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. -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 Haqq network. The inclusion of uncles helps prevent centralization and ensures the mining process remains competitive. - -{% embed url="https://codepen.io/Jan-Musil-the-lessful/pen/xxQMNxz?editors=1111" %} +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 diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getunclecountbyblocknumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getunclecountbyblocknumber.md similarity index 68% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getunclecountbyblocknumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getunclecountbyblocknumber.md index 1a91d869..edbc0ec8 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getunclecountbyblocknumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_getunclecountbyblocknumber.md @@ -1,13 +1,13 @@ --- title: "eth_getunclecountbyblocknumber" -slug: "rpc-haqq-eth_getunclecountbyblocknumber" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_getunclecountbyblocknumber" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.HAQQ}) +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) -const result = await tatum.rpc.getUncleCountByBlockNumber(7687453) +const result = await tatum.rpc.getUncleCountByBlockNumber('0xAD7C5E') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,20 +36,16 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getUncleCountByBlockHash` method is an Haqq 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 Haqq network and to analyze the security of the blockchain. +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. -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 Haqq network. The inclusion of uncles helps prevent centralization and ensures the mining process remains competitive. - - - -{% embed url="https://codepen.io/Lukas-Kotol/pen/wvQOGYg?editors=1111" %} +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: * `blockNumber`: The number of the block for which you want to get the uncle count. - * Example value: 7687453 + * Example value: `"0x12345"` ### Return Object @@ -69,7 +65,7 @@ Here is an example JSON-RPC request and response for the `eth_getUncleCountByBlo "jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": [ - 7687453 + "0x12345" ] } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_maxpriorityfeepergas.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_maxpriorityfeepergas.md similarity index 85% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_maxpriorityfeepergas.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_maxpriorityfeepergas.md index de877d9d..7893df3a 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_maxpriorityfeepergas.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_maxpriorityfeepergas.md @@ -1,13 +1,13 @@ --- title: "eth_maxpriorityfeepergas" -slug: "rpc-haqq-eth_maxpriorityfeepergas" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_maxpriorityfeepergas" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.HAQQ}) +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) const gasPrice = await tatum.rpc.maxPriorityFeePerGas() @@ -38,8 +38,6 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs 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. -{% embed url="https://codepen.io/Jan-Musil-the-lessful/pen/XWyOwzB" %} - ### 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. diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_sendrawtransaction.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_sendrawtransaction.md similarity index 72% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_sendrawtransaction.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_sendrawtransaction.md index 5278d9b6..0b03072a 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_sendrawtransaction.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/eth_sendrawtransaction.md @@ -1,13 +1,13 @@ --- title: "eth_sendrawtransaction" -slug: "rpc-haqq-eth_sendrawtransaction" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-eth_sendrawtransaction" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.HAQQ}) +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) 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 Haqq 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 ISLM, interacting with smart contracts, or deploying new contracts. +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. ### Parameters diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_content.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_content.md similarity index 90% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_content.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_content.md index 6ec63566..350ebd9a 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_content.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_content.md @@ -1,13 +1,13 @@ --- title: "txpool_content" -slug: "rpc-haqq-txpool_content" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-txpool_content" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.HAQQ}) +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) 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 Haqq 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 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. Use cases for the `txpool_content` method include: @@ -45,8 +45,6 @@ Use cases for the `txpool_content` method include: * Monitoring transactions from specific addresses * Debugging and troubleshooting pending transactions -{% embed url="https://codepen.io/tatum-devrel/pen/vYQowQR" %} - ### Parameters This method does not require any parameters. diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_inspect.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_inspect.md similarity index 79% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_inspect.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_inspect.md index 203c0e01..737cac9e 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_inspect.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_inspect.md @@ -1,13 +1,13 @@ --- title: "txpool_inspect" -slug: "rpc-haqq-txpool_inspect" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-txpool_inspect" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.HAQQ}) +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) const inspect = await tatum.rpc.txPoolInspect() @@ -36,9 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `txpool_inspect` method is a JSON-RPC method used to inspect the current transaction pool of a running Haqq node. The method allows you to view all pending transactions and their details, including transaction hashes, gas prices, and transaction data. This method is useful for developers who want to monitor the status of pending transactions or debug transaction-related issues. - -{% embed url="https://codepen.io/tatum-devrel/pen/mdQNYaK" %} +The `txpool_inspect` method is a JSON-RPC method used to inspect the current transaction pool of a running node. The method allows you to view all pending transactions and their details, including transaction hashes, gas prices, and transaction data. This method is useful for developers who want to monitor the status of pending transactions or debug transaction-related issues. ### Parameters diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_status.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_status.md similarity index 74% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_status.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_status.md index ee68e9a1..88dc78f3 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_status.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/txpool_status.md @@ -1,13 +1,13 @@ --- title: "txpool_status" -slug: "rpc-haqq-txpool_status" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-txpool_status" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Haqq, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.HAQQ}) +import { TatumSDK, HorizenEon, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) const status = await tatum.rpc.txPoolStatus() @@ -38,9 +38,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs The `txpool_status` method returns statistics about the current state of the transaction pool. The transaction pool is a queue of pending transactions waiting to be included in the next block by miners. -This method can be useful for monitoring the health of the Haqq network and analyzing the behavior of the miners. It can also be used to estimate the time it will take for a transaction to be processed, as well as to determine the gas price necessary to ensure prompt inclusion of a transaction in the next block. - -{% embed url="https://codepen.io/tatum-devrel/pen/XWyvwOK" %} +This method can be useful for monitoring the health of the network and analyzing the behavior of the miners. It can also be used to estimate the time it will take for a transaction to be processed, as well as to determine the gas price necessary to ensure prompt inclusion of a transaction in the next block. ### Parameters diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/web3_clientversion.md b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/web3_clientversion.md similarity index 61% rename from v1.0/RPC Nodes/rpc-evm/rpc-haqq/web3_clientversion.md rename to v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/web3_clientversion.md index 1c077be7..01432f7b 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-haqq/web3_clientversion.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-horizen-eon/web3_clientversion.md @@ -1,13 +1,13 @@ --- title: "web3_clientversion" -slug: "rpc-haqq-web3_clientversion" -excerpt: "Haqq RPC" +slug: "rpc-horizen-eon-web3_clientversion" +excerpt: "Horizen Eon RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Haqq RPC" + description: "Horizen Eon RPC" image: [] - keywords: "haqq, rpc" + 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)" @@ -21,10 +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, Haqq, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.HAQQ}) +const tatum = await TatumSDK.init({network: Network.HORIZEN_EON}) const version = await tatum.rpc.clientVersion() @@ -36,21 +35,19 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`web3_clientVersion` is a method of the Haqq JSON-RPC API that allows the client to retrieve the current version of the Haqq client software being used by the node. - -This method is read-only and does not require authentication. The `web3_clientVersion` method can be used by developers to confirm the version of the Haqq client software they are using and ensure that it is compatible with their application. +`web3_clientVersion` is a method of the JSON-RPC API that allows the client to retrieve the current version of the client software being used by the node. -{% embed url="https://codepen.io/tatum-devrel/pen/eYQqajp" %} +This method is read-only and does not require authentication. The `web3_clientVersion` method can be used by developers to confirm the version of the client software they are using and ensure that it is compatible with their application. ### Parameters -This method has no parameters. It only retrieves the current version of the Haqq client software. +This method has no parameters. It only retrieves the current version of the client software. ### Return Object -The `web3_clientVersion` method returns a string representing the version of the Haqq client software being used. The string includes the client name, version number, and build information. +The `web3_clientVersion` method returns a string representing the version of the client software being used. The string includes the client name, version number, and build information. -* `String` - Version string of the Haqq client software being used. +* `String` - Version string of the client software being used. ### Example Request @@ -61,7 +58,7 @@ The `web3_clientVersion` method returns a string representing the version of the "jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], - "id": 67 + "id": 1 } ``` @@ -73,7 +70,7 @@ The `web3_clientVersion` method returns a string representing the version of the { "jsonrpc": "2.0", "id": 67, - "result": "Version dev ()\nCompiled at using Go go1.20.6 (amd64)" + "result": "v0.9.0" } ```