diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_getbadblocks.md b/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_getbadblocks.md deleted file mode 100644 index ec5fc97b..00000000 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_getbadblocks.md +++ /dev/null @@ -1,116 +0,0 @@ ---- -title: "debug_getbadblocks" -slug: "rpc-flare-debug_getbadblocks" -excerpt: "Flare RPC" -category: 65c5e93c623cad004b45d505 -hidden: false -metadata: - description: "Flare RPC" - image: [] - keywords: "flare, 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, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) - -const result = await tatum.rpc.debugGetBadBlocks() - -await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs -``` -{% endcode %} -{% endtab %} -{% endtabs %} - -### Overview - -`debug_getBadBlocks` is an RPC method that provides a list of the most recent bad blocks encountered by the client on the network. This feature is valuable for developers and node operators, as it enables them to identify and address any issues or anomalies related to block validation and synchronization. - -By accessing `debug_getBadBlocks`, they can diagnose potential problems and take appropriate actions to ensure the network's stability and integrity. - -### Parameters - -* This method does not accept any parameters. - -### Return Object - -The output is an array of objects, with each object representing the trace result of a transaction within the block. These objects include essential details such as the transaction hash and a block object, which can be null if no block was found for the transaction: - -* `baseFeePerGas`: The integer representation of the difficulty for this block encoded as hexadecimal. -* `difficulty`: The integer representation of the difficulty for this block encoded as hexadecimal. -* `extraData`: The extra data field of this block. -* `gasLimit`: The maximum gas allowed in this block encoded as hexadecimal. -* `gasUsed`: The total used gas by all transactions in this block encoded as hexadecimal. -* `logsBloom`: The bloom filter for the logs of the block. Null if pending. -* `miner`: The address of the beneficiary to whom the mining rewards were given. -* `mixHash`: A 256-bit hash encoded as hexadecimal. -* `nonce`: The hash of the generated proof-of-work. Null if pending. -* `number`: The block number of the requested block encoded as hexadecimal. Null if pending. -* `parentHash`: The hash of the parent block. -* `receiptsRoot`: The root of the receipts trie of the block. -* `sha3Uncles`: The SHA3 of the uncles' data in the block. -* `size`: The size of this block in bytes as an Integer value encoded as hexadecimal. -* `stateRoot`: The root of the final state trie of the block. -* `timestamp`: The Unix timestamp for when the block was collated. -* `transactions`: An array of transaction objects with the following fields: - * `blockHash`: The hash of the block where this log was in. Null when it's a pending log. - * `blockNumber`: The block number where this log was in. Null when it's a pending log. - * `from`: The address of the sender. - * `gas`: The gas provided by the sender, encoded as hexadecimal. - * `gasPrice`: The gas price provided by the sender in wei, encoded as hexadecimal. - * `maxFeePerGas`: The maximum fee per gas set in the transaction. - * `maxPriorityFeePerGas`: The maximum priority gas fee set in the transaction. - * `hash`: The hash of the transaction. - * `input`: The data sent along with the transaction. - * `nonce`: The number of transactions made by the sender before this one encoded as hexadecimal. - * `to`: The address of the receiver. Null when it's a contract creation transaction. - * `transactionIndex`: The integer of the transaction's index position that the log was created from. Null when it's a pending log. - * `value`: The value transferred in wei encoded as hexadecimal. - * `type`: The transaction type. - * `accessList`: A list of addresses and storage keys that the transaction plans to access. - * `chainId`: The chain id of the transaction, if any. - * `v`: The standardized V field of the signature. - * `r`: The R field of the signature. - * `s`: The S field of the signature. -* `transactionsRoot`: The root of the transaction trie of the block. -* `uncles`: An array of uncle hashes. -* `rlp`: The RLP encoded header. - -{% hint style="info" %} -This method is available only on the full archive node. -{% endhint %} - -### JSON-RPC Request and Response Examples - -#### Request - -```json -{ - "id": 1, - "jsonrpc": "2.0", - "method": "debug_getBadBlocks", - "params": [] -} -``` - -#### Response - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": [] -} -``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_storagerangeat.md b/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_storagerangeat.md deleted file mode 100644 index eb4a87b2..00000000 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_storagerangeat.md +++ /dev/null @@ -1,97 +0,0 @@ ---- -title: "debug_storagerangeat" -slug: "rpc-flare-debug_storagerangeat" -excerpt: "Flare RPC" -category: 65c5e93c623cad004b45d505 -hidden: false -metadata: - description: "Flare RPC" - image: [] - keywords: "flare, 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, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) - -const result = await tatum.rpc.debugStorageRangeAt( -'0x48dfcf43404dffdb3b93a0b0d9982b642b221187bc3ed5c023bdab6c0e863e3d', -1, '0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86', '0x0000000000000000000000000000000000000000000000000000000000000000', 1 -) - -await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs -``` -{% endcode %} -{% endtab %} -{% endtabs %} - -### Overview - -`debug_storageRangeAt` is an RPC method that allows you to retrieve the contract storage range for a given block and address. This can be useful for developers and auditors who want to inspect the storage state of a specific contract at a particular point in time. This method can also help in debugging and identifying potential issues with contract storage, as well as understanding how storage evolves as transactions are executed. - -### Parameters - -The `debug_storageRangeAt` method accepts the following parameters: - -* `blockHash`: The block hash for which the storage range should be retrieved. Example: `"0x3c4523b7e8c21e3d68f1c3af3d18e8a87c0d43e35b2c1b7f8f4e87e4d4db9c82"` -* `txIndex`: The transaction index within the specified block. Example: 1 -* `address`: The contract address for which the storage range should be retrieved. Example: `"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"` -* `begin`: The beginning of the storage range. Example: `"0x0000000000000000000000000000000000000000000000000000000000000000"` -* `end`: The end of the storage range. Example: `1` (inclusive) - -### Return Object - -The `debug_storageRangeAt` method returns an object with the following fields: - -* `storage`: An object that contains key-value pairs representing the contract storage, where the key is the storage slot and the value is the stored data. Example: `"0x00..01": "0x00..01"` -* `nextKey`: A key indicating the next storage slot if the requested range is too large, otherwise `null`. Example: `"0x00..02"` or `null` - -{% hint style="info" %} -This method is available only on the full archive node. -{% endhint %} - -### JSON-RPC Request and Response Examples - -#### Request - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "method": "debug_storageRangeAt", - "params": [ - "0x3c4523b7e8c21e3d68f1c3af3d18e8a87c0d43e35b2c1b7f8f4e87e4d4db9c82", - "0x1", - "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", - "0x0000000000000000000000000000000000000000000000000000000000000000", 1 - ] -} -``` - -#### Response - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": { - "storage": { - "0x0000000000000000000000000000000000000000000000000000000000000001": "0x0000000000000000000000000000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000000000000000000000000000002": "0x0000000000000000000000000000000000000000000000000000000000000002" - }, - "nextKey": "0x0000000000000000000000000000000000000000000000000000000000000065" - } -} -``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_traceblock.md b/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_traceblock.md deleted file mode 100644 index d010c102..00000000 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_traceblock.md +++ /dev/null @@ -1,119 +0,0 @@ ---- -title: "debug_traceblock" -slug: "rpc-flare-debug_traceblock" -excerpt: "Flare RPC" -category: 65c5e93c623cad004b45d505 -hidden: false -metadata: - description: "Flare RPC" - image: [] - keywords: "flare, 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, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) - -const result = await tatum.rpc.debugTraceBlock('0xAD7C5E' ,{ - tracer: 'callTracer', - tracerConfig: { - onlyTopCall: true, - timeout: '5s', - } -}) - -await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs -``` -{% endcode %} -{% endtab %} -{% endtabs %} - -### Overview - -`debug_traceBlock` is an RPC method that allows developers to trace all transactions within a block using a given tracer. This is particularly useful for analyzing the behavior of all transactions in a block, investigating potential issues, and understanding the flow of execution within smart contracts. - -By using the `debug_traceBlock`, developers can obtain detailed insights into the execution flow of each transaction, allowing for in-depth analysis and debugging - -### Parameters - -* `block` - `String` - * RLP encoded block object. -* `options` (optional): An object containing configuration options for the tracer. - * `tracer`: The tracer object with the following fields: - * `callTracer`: The calltracer keeps track of all call frames, including depth 0 calls, made during a transaction. - * `prestateTracer`: The prestateTracer replays the transaction and tracks every part of the state that occurred during the transaction. - * `tracerConfig`: The object to specify the configurations of the tracer. - * onlyTopCall: When set to true, it traces only the primary (top-level) call and not any sub-calls, eliminating additional processing for each call frame. - -### Return Object - -The return object is an array of all invoked opcodes of all transaction that were included in this block. - -* `type`: The type of the call. -* `from`: The address from which the transaction is sent. -* `to`: The address to which the transaction is directed. -* `value`: The integer value sent with this transaction. -* `gas`: The integer value of the gas provided for the transaction execution. -* `gasUsed`: The integer value of the gas used. -* `input`: The data given at the time of input. -* `output`: The data returned as an output. -* `calls`: A list of sub-calls made during the transaction, including detailed trace information for each sub-call. - -{% hint style="info" %} -This method is available only on the full archive node. -{% endhint %} - -### JSON-RPC Request and Response Examples - -#### Request - -```json -{ - "id": 1, - "jsonrpc": "2.0", - "method": "debug_traceBlock", - "params": [ - "0x1dc....", - { - "tracer": "callTracer" - } - ] -} - -``` - -#### Response - -```json -{ - "id": 1, - "jsonrpc": "2.0", - "result": [ - { - "result": { - "from": "0x8894e0a0c962cb723c1976a4421c95949be2d4e3", - "gas": "0x2d48c", - "gasUsed": "0xc7ab", - "to": "0x55d398326f99059ff775485246999027b3197955", - "input": "0xa9059cbb0000000000000000000000003b9f33b3a9d382fa60283c555bde8f78855957be00000000000000000000000000000000000000000000000d4e7f4f79da7c0000", - "output": "0x0000000000000000000000000000000000000000000000000000000000000001", - "value": "0x0", - "type": "CALL" - } - } - ] -} - -``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_traceblockbyhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_traceblockbyhash.md deleted file mode 100644 index aed637e5..00000000 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_traceblockbyhash.md +++ /dev/null @@ -1,128 +0,0 @@ ---- -title: "debug_traceblockbyhash" -slug: "rpc-flare-debug_traceblockbyhash" -excerpt: "Flare RPC" -category: 65c5e93c623cad004b45d505 -hidden: false -metadata: - description: "Flare RPC" - image: [] - keywords: "flare, 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, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) - -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-flare/debug_traceblockbynumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_traceblockbynumber.md deleted file mode 100644 index 4a35775e..00000000 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_traceblockbynumber.md +++ /dev/null @@ -1,118 +0,0 @@ ---- -title: "debug_traceblockbynumber" -slug: "rpc-flare-debug_traceblockbynumber" -excerpt: "Flare RPC" -category: 65c5e93c623cad004b45d505 -hidden: false -metadata: - description: "Flare RPC" - image: [] - keywords: "flare, 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, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) - -const result = await tatum.rpc.debugTraceBlockByNumber(12689342) - -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-flare/debug_tracecall.md b/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_tracecall.md deleted file mode 100644 index b74fa0a5..00000000 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_tracecall.md +++ /dev/null @@ -1,139 +0,0 @@ ---- -title: "debug_tracecall" -slug: "rpc-flare-debug_tracecall" -excerpt: "Flare RPC" -category: 65c5e93c623cad004b45d505 -hidden: false -metadata: - description: "Flare RPC" - image: [] - keywords: "flare, 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, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) - -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-flare/debug_tracetransaction.md b/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_tracetransaction.md deleted file mode 100644 index 5a84897e..00000000 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/debug_tracetransaction.md +++ /dev/null @@ -1,124 +0,0 @@ ---- -title: "debug_tracetransaction" -slug: "rpc-flare-debug_tracetransaction" -excerpt: "Flare RPC" -category: 65c5e93c623cad004b45d505 -hidden: false -metadata: - description: "Flare RPC" - image: [] - keywords: "flare, 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, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) - -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-flare.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq.md similarity index 87% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq.md index 83992f3a..9533dfbc 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq.md @@ -1,6 +1,6 @@ --- -title: "Flare" -slug: "rpc-flare" +title: "Haqq" +slug: "rpc-haqq" excerpt: "" category: 65c5e93c623cad004b45d505 hidden: false diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_blocknumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_blocknumber.md similarity index 73% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_blocknumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_blocknumber.md index 9b9f299f..0c02a57e 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_blocknumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_blocknumber.md @@ -1,13 +1,13 @@ --- title: "eth_blocknumber" -slug: "rpc-flare-eth_blocknumber" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_blocknumber" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.HAQQ}) 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 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 Haqq 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,6 +45,8 @@ 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. @@ -53,7 +55,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 blockchain. The value is returned as a hexadecimal string. +* **`blockNumber`**: The number of the most recent block on the Haqq blockchain. The value is returned as a hexadecimal string. ### JSON-RPC Request Example @@ -78,6 +80,6 @@ The `eth_blockNumber` method returns a single field: 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` RPC method, other methods may be needed to obtain full transaction details or perform more complex tasks. +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. \ diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_call.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_call.md similarity index 93% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_call.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_call.md index 2fd408d3..a0129cad 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_call.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_call.md @@ -1,13 +1,13 @@ --- title: "eth_call" -slug: "rpc-flare-eth_call" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_call" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.HAQQ}) 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-flare/eth_chainid.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_chainid.md similarity index 61% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_chainid.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_chainid.md index 059628eb..a50d317c 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_chainid.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_chainid.md @@ -1,13 +1,13 @@ --- title: "eth_chainid" -slug: "rpc-flare-eth_chainid" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_chainid" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.HAQQ}) const id = await tatum.rpc.chainId() @@ -36,9 +36,11 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_chainId` method is an JSON-RPC method that allows developers to retrieve the currently configured chain ID of the network they are connected to. The chain ID is a unique identifier for different networks, such as Mainnet or various testnets. +The `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. + +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. -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. +{% embed url="https://codepen.io/tatum-devrel/pen/NWEQVzo" %} ### Parameters @@ -65,12 +67,14 @@ JSON-RPC request: JSON-RPC response: +````json ```json { "jsonrpc": "2.0", "id": 1, - "result": "0xe" + "result": "0x2be3" } ``` +```` -In this example, the returned chain ID is `0xe`, which corresponds to the Mainnet. +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-flare/eth_estimategas.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_estimategas.md similarity index 74% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_estimategas.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_estimategas.md index fb22837f..61a00788 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_estimategas.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_estimategas.md @@ -1,13 +1,13 @@ --- title: "eth_estimategas" -slug: "rpc-flare-eth_estimategas" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_estimategas" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,18 +22,17 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.FLARE}) +const tatum = await TatumSDK.init({network: Network.HAQQ}) const estimate = await tatum.rpc.estimateGas({ - "from": "0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86", - "to": "0xa41d19F4258a388c639B7CcD938FCE3fb7D05e87", - "value": "0xde0b6b3a7640000", - "data": "0x606060" + "from": "0x2C5B9a513bE2240e948a631bAaFB53cc0bEAcfda", + "to": "0x2C5B9a513bE2240e948a631bAaFB53cc0bEAcfde", + "value": "0xde0b6b3a7640000" }) - await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs + await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` {% endcode %} {% endtab %} @@ -41,13 +40,15 @@ const estimate = await tatum.rpc.estimateGas({ ### Overview -`eth_estimateGas` is an JSON-RPC method that estimates the amount of gas required to execute a given transaction. This method can be used to determine the gas cost before sending a transaction, allowing developers to better predict the gas fees and avoid issues like out-of-gas errors. +`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. Use cases for `eth_estimateGas` include: * Estimating gas costs for contract deployments * Estimating gas costs for contract function calls -* Estimating gas costs for standard transfers +* Estimating gas costs for standard ether transfers + +{% embed url="https://codepen.io/Jan-Musil-the-lessful/pen/abQXrEQ" %} ### Parameters @@ -61,7 +62,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 to send in the transaction, in wei. +* **`value`** (optional, string): The amount of ISLM 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-flare/eth_gasprice.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gasprice.md similarity index 66% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_gasprice.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gasprice.md index 5132ce7c..b3580eae 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_gasprice.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gasprice.md @@ -1,13 +1,13 @@ --- title: "eth_gasprice" -slug: "rpc-flare-eth_gasprice" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_gasprice" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.FLARE}) +const tatum = await TatumSDK.init({network: Network.HAQQ}) const gasPrice = await tatum.rpc.gasPrice() @@ -36,7 +36,9 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_gasPrice` method is an JSON-RPC method used to estimate the average gas price required for transactions in the network. This method provides a suggestion for the gas price to be used in a transaction to increase the likelihood of it being mined and included in a block in a reasonable amount of time. The `eth_gasPrice` method is particularly useful for developers and users who want to create and send transactions, as it helps them estimate the appropriate gas price to ensure timely processing. +The `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" %} ### Parameters diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getbalance.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getbalance.md similarity index 69% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getbalance.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getbalance.md index 7f9084aa..ca373404 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getbalance.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getbalance.md @@ -1,13 +1,13 @@ --- title: "eth_getbalance" -slug: "rpc-flare-eth_getbalance" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_getbalance" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.FLARE}) +const tatum = await TatumSDK.init({network: Network.HAQQ} -const balance = await tatum.rpc.getBalance('0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86') +const balance = await tatum.rpc.getBalance('0x2c5b9a513be2240e948a631baafb53cc0beacfda') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,14 +36,16 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getBalance` method is an JSON-RPC method that allows you to retrieve the balance of a specified address. This method can be used to query the balance of any address, whether it is a contract or an externally owned account (EOA). A common use case for this method is to display the current balance of a user's account in a wallet application or a decentralized application (DApp). +The `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" %} ### Parameters The method requires two parameters: -1. **`address`** (required): The address of the account or contract whose balance you want to query. - * Example: `"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"` +1. **`address`** (required): The Haqq address of the account or contract whose balance you want to query. + * Example: `"0x2C5B9a513bE2240e948a631bAaFB53cc0bEAcfda"` 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"` @@ -70,7 +72,7 @@ A full transaction object includes the following fields: The method returns a single field: -* `result`: The balance of the specified address in wei, as a hexadecimal string. +* `result`: The Haqq 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 @@ -83,7 +85,7 @@ The method returns a single field: "id": 1, "method": "eth_getBalance", "params": [ - "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", + "0x2C5B9a513bE2240e948a631bAaFB53cc0bEAcfda", "latest" ] } diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getblockbyhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblockbyhash.md similarity index 90% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getblockbyhash.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblockbyhash.md index 51b67744..9b7b4c17 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getblockbyhash.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblockbyhash.md @@ -1,13 +1,13 @@ --- title: "eth_getblockbyhash" -slug: "rpc-flare-eth_getblockbyhash" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_getblockbyhash" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const block = await tatum.rpc.getBlockByHash('0x48dfcf43404dffdb3b93a0b0d9982b642b221187bc3ed5c023bdab6c0e863e3d', true) +const tatum = await TatumSDK.init({network: Network.HAQQ}) + +const block = await tatum.rpc.getBlockByHash('0x300e4057498875ef62a7632c78077d9fa79265e484415d337d1f529ca4660ee6', true) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,7 +36,9 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getBlockByHash` is an JSON-RPC method that allows developers to query a specific block in the blockchain by its block hash. This method can be used in various scenarios, such as analyzing historical transactions, validating the state of the blockchain, or monitoring the progress of mining activities. +`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" %} ### Parameters diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getblockbynumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblockbynumber.md similarity index 91% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getblockbynumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblockbynumber.md index 1705902a..7b32a7af 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getblockbynumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblockbynumber.md @@ -1,13 +1,13 @@ --- title: "eth_getblockbynumber" -slug: "rpc-flare-eth_getblockbynumber" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_getblockbynumber" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.HAQQ}) const block = await tatum.rpc.getBlockByNumber('latest', true) @@ -36,7 +36,9 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getBlockByNumber` is an JSON-RPC method that allows developers to query a specific block in the blockchain by its block number. This method can be used in various scenarios, such as analyzing historical transactions, validating the state of the blockchain, or monitoring the progress of mining activities. +`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" %} ### Parameters diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getblocktransactioncountbyhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblocktransactioncountbyhash.md similarity index 60% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getblocktransactioncountbyhash.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblocktransactioncountbyhash.md index eadee3c7..6da6b0d3 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getblocktransactioncountbyhash.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblocktransactioncountbyhash.md @@ -1,13 +1,13 @@ --- title: "eth_getblocktransactioncountbyhash" -slug: "rpc-flare-eth_getblocktransactioncountbyhash" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_getblocktransactioncountbyhash" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const response = await tatum.rpc.getBlockTransactionCountByHash('0x48dfcf43404dffdb3b93a0b0d9982b642b221187bc3ed5c023bdab6c0e863e3d') +const tatum = await TatumSDK.init({network: Network.HAQQ} + +const response = await tatum.rpc.getBlockTransactionCountByHash('0xF07355D9A980F61915B53A74AFCDB89598E54EFCD9DF5A9935D16BC1DC4CFA8F') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,7 +36,9 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getBlockTransactionCountByHash` is an 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. +`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" %} ### Parameters @@ -46,7 +48,7 @@ This method requires a single parameter: Example of the parameter: -* `blockHash`: `"0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"` +* `blockHash`: `"0xF07355D9A980F61915B53A74AFCDB89598E54EFCD9DF5A9935D16BC1DC4CFA8F"` ### Return @@ -64,7 +66,7 @@ The method returns a single value: "jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": [ - "0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238" + "0xF07355D9A980F61915B53A74AFCDB89598E54EFCD9DF5A9935D16BC1DC4CFA8F" ] } ``` @@ -79,4 +81,4 @@ The method returns a single value: } ``` -In this example, the block with the hash `"0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"` has a total of 10 transactions (indicated by the hexadecimal value `"0xa"`). +In this example, the block with the hash `"0xF07355D9A980F61915B53A74AFCDB89598E54EFCD9DF5A9935D16BC1DC4CFA8F"` has a total of 10 transactions (indicated by the hexadecimal value `"0xa"`). diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getblocktransactioncountbynumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblocktransactioncountbynumber.md similarity index 66% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getblocktransactioncountbynumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblocktransactioncountbynumber.md index 6b53352c..158a6764 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getblocktransactioncountbynumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getblocktransactioncountbynumber.md @@ -1,13 +1,13 @@ --- title: "eth_getblocktransactioncountbynumber" -slug: "rpc-flare-eth_getblocktransactioncountbynumber" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_getblocktransactioncountbynumber" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const response = await tatum.rpc.getBlockTransactionCountByNumber('0xAD7C5E') +const tatum = await TatumSDK.init({network: Network.HAQQ} + +const response = await tatum.rpc.getBlockTransactionCountByNumber(7687453) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,12 +36,14 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getBlockTransactionCountByNumber` JSON-RPC method allows you to retrieve the number of transactions in a specified block. This method is particularly useful when you need to analyze the transaction activity of a specific block. You can use it to gain insights into network usage, analyze the impact of specific events on the network, or monitor transaction congestion in certain blocks. +The `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. ### 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: `"0x1b4"` + * Example: 7687453 + +{% embed url="https://codepen.io/tatum-devrel/pen/YzRmbaE" %} ### Return Object @@ -58,7 +60,7 @@ The return object is a hex-encoded value representing the number of transactions "jsonrpc": "2.0", "id": 1, "method": "eth_getBlockTransactionCountByNumber", - "params": ["0x1b4"] + "params": [7687453] } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getcode.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getcode.md similarity index 71% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getcode.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getcode.md index b06fec84..f4fe39a9 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getcode.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getcode.md @@ -1,13 +1,13 @@ --- title: "eth_getcode" -slug: "rpc-flare-eth_getcode" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_getcode" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -21,12 +21,11 @@ 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' -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +const tatum = await TatumSDK.init({network: Network.HAQQ} -const code = await tatum.rpc.getCode('0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86') +const code = await tatum.rpc.getCode('0x2C5B9a513bE2240e948a631bAaFB53cc0bEAcfda') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,7 +35,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getCode` method is part of the JSON-RPC API, which allows users to interact with the blockchain. This method is specifically used to retrieve the contract code (bytecode) of an account at a specific block number. It is helpful when developers need to examine the bytecode of a deployed contract or validate that the contract code on the blockchain matches the intended code. +The `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. Use cases for this method could include: @@ -44,11 +43,13 @@ 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 address, formatted as a hex string with a `0x` prefix. +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"` 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 diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getlogs.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getlogs.md similarity index 81% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getlogs.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getlogs.md index 55e5be52..b989eac0 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getlogs.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getlogs.md @@ -1,13 +1,13 @@ --- title: "eth_getlogs" -slug: "rpc-flare-eth_getlogs" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_getlogs" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const logs = await tatum.rpc.getLogs({ address : '0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86'}) +const tatum = await TatumSDK.init({network: Network.HAQQ} + +const logs = await tatum.rpc.getLogs({ address : '0x2C5B9a513bE2240e948a631bAaFB53cc0bEAcfda'}) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,9 +36,11 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getLogs` method is an JSON-RPC method that allows developers to query logs generated by the network, specifically event logs emitted by smart contracts. These logs are an essential part of the ecosystem as they provide a way for developers to monitor contract events and track contract state changes. +The `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. + +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. -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. +{% embed url="https://codepen.io/tatum-devrel/pen/JjegqMb" %} ### Parameters @@ -122,4 +124,4 @@ The `eth_getLogs` method returns an array of log objects. Each log object contai } ``` -This documentation provides a comprehensive overview of the `eth_getLogs` JSON-RPC method, its parameters, return objects, and JSON-RPC examples. By using this method, developers can effectively query logs generated by the network and use the retrieved data to track and react to events happening on the blockchain. +This documentation provides a comprehensive overview of the `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. diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getproof.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getproof.md similarity index 78% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getproof.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getproof.md index 50bd97bd..9e175932 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getproof.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getproof.md @@ -1,13 +1,13 @@ --- title: "eth_getproof" -slug: "rpc-flare-eth_getproof" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_getproof" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const result = await tatum.rpc.getProof("0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86", +const tatum = await TatumSDK.init({network: Network.HAQQ}) + +const result = await tatum.rpc.getProof("0x2C5B9a513bE2240e948a631bAaFB53cc0bEAcfda", ["0x0000000000000000000000000000000000000000000000000000000000000000"], "latest") @@ -38,7 +38,9 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getProof` is an JSON-RPC method that retrieves the Merkle-Patricia proof for an account, storage key-value pairs, and account transaction count. It allows developers to verify the state of an account or storage value at a specific block without needing the entire state trie. This method is particularly useful for light clients or off-chain applications that require proof of an account's state or specific storage values. +The `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" %} ### Parameters diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getstorageat.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getstorageat.md similarity index 71% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getstorageat.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getstorageat.md index 3d112f92..c7cc2af6 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getstorageat.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getstorageat.md @@ -1,13 +1,13 @@ --- title: "eth_getstorageat" -slug: "rpc-flare-eth_getstorageat" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_getstorageat" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const response = await tatum.rpc.getStorageAt('0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86', '0x0') +const tatum = await TatumSDK.init({network: Network.HAQQ} + +const response = await tatum.rpc.getStorageAt('0x742d35Cc6634C0532925a3b844Bc454e4438f44e', '0x0') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,7 +36,9 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getStorageAt` is an JSON-RPC method that allows you to query the storage value of a contract at a given position. It can be used to inspect the internal state of a smart contract. This method is particularly useful for developers, auditors, and analysts who want to examine contract storage values for various purposes, such as debugging, verifying contract behavior, or analyzing data. +`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" %} ### Parameters diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_gettransactionbyblockhashandindex.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyblockhashandindex.md similarity index 87% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_gettransactionbyblockhashandindex.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyblockhashandindex.md index 372d2069..07d959ae 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_gettransactionbyblockhashandindex.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyblockhashandindex.md @@ -1,13 +1,13 @@ --- title: "eth_gettransactionbyblockhashandindex" -slug: "rpc-flare-eth_gettransactionbyblockhashandindex" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_gettransactionbyblockhashandindex" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const tx = await tatum.rpc.getTransactionByBlockHashAndIndex('0x48dfcf43404dffdb3b93a0b0d9982b642b221187bc3ed5c023bdab6c0e863e3d', 0) +const tatum = await TatumSDK.init({network: Network.HAQQ} + +const tx = await tatum.rpc.getTransactionByBlockHashAndIndex('0xC52DA0AB755168DCB6E38E7B001832F9373BA4EE688F56CFF75C6E928B78BCF3', 0) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getTransactionByBlockHashAndIndex` is an JSON-RPC method that allows you to fetch the transaction details based on the block hash and the index of the transaction within that block. This method can be useful when you want to retrieve transaction details for a specific transaction without knowing its transaction hash. +`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. Use cases for this method may include: @@ -44,12 +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/tatum-devrel/pen/vYQowjp" %} + ### Parameters The `eth_getTransactionByBlockHashAndIndex` method accepts two parameters: 1. `blockHash` (required): The hash of the block containing the transaction. - * Example: `"0x9a9a2a0d69b4ff48f7a2a8a26d135e1dbcbd3c3be3e8a3c90de0bcb104e4c4b4"` + * Example: `"0xC52DA0AB755168DCB6E38E7B001832F9373BA4EE688F56CFF75C6E928B78BCF3"` 2. `transactionIndex` (required): The index of the transaction within the specified block. The index is a hexadecimal value. * Example: `"0x0"` @@ -79,7 +81,7 @@ Request: "id": 1, "method": "eth_getTransactionByBlockHashAndIndex", "params": [ - "0x1091a5831b3556e80e53598c24e9d592e104dba0428f47f94c61523eb52d09d8", + "0xC52DA0AB755168DCB6E38E7B001832F9373BA4EE688F56CFF75C6E928B78BCF3", "0x0" ] } diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_gettransactionbyblocknumberandindex.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyblocknumberandindex.md similarity index 88% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_gettransactionbyblocknumberandindex.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyblocknumberandindex.md index 9bf97687..e957f06d 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_gettransactionbyblocknumberandindex.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyblocknumberandindex.md @@ -1,13 +1,13 @@ --- title: "eth_gettransactionbyblocknumberandindex" -slug: "rpc-flare-eth_gettransactionbyblocknumberandindex" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_gettransactionbyblocknumberandindex" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const tx = await tatum.rpc.getTransactionByBlockNumberAndIndex('0xAD7C5E', 0) +const tatum = await TatumSDK.init({network: Network.HAQQ} + +const tx = await tatum.rpc.getTransactionByBlockNumberAndIndex(7687453, 0) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getTransactionByBlockHashAndIndex` is an JSON-RPC method that allows you to fetch the transaction details based on the block hash and the index of the transaction within that block. This method can be useful when you want to retrieve transaction details for a specific transaction without knowing its transaction hash. +`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. Use cases for this method may include: @@ -44,12 +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: `"0x316624"` + * Example: 7687453 2. `transactionIndex` (required): The index of the transaction within the specified block. The index is a hexadecimal value. * Example: `"0x0"` @@ -79,7 +81,7 @@ Request: "id": 1, "method": "eth_getTransactionByBlockNumberAndIndex", "params": [ - "0x316624", + 7687453, "0x0" ] } diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_gettransactionbyhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyhash.md similarity index 53% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_gettransactionbyhash.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyhash.md index e2c1c0e1..0c46e9b6 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_gettransactionbyhash.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionbyhash.md @@ -1,13 +1,13 @@ --- title: "eth_gettransactionbyhash" -slug: "rpc-flare-eth_gettransactionbyhash" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_gettransactionbyhash" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const tx = await tatum.rpc.getTransactionByHash('0x6aefbd1a9c9e4c310cadde3bcdd809a14da87caa8fa4f10ca04d9e357a3907e9') +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 ``` @@ -36,14 +36,16 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getTransactionByHash` is an JSON-RPC method that allows you to query transaction details based on its hash. This method is useful when you want to retrieve information about a specific transaction, such as its sender, receiver, value, and more. Common use cases include tracking transaction status, monitoring incoming transactions, or analyzing historical transaction data. +`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: `"0xa536596d043c03d709aaccbc53f421963fe3537274e86444cd984404cf9ecb13"` + * Example: `"0xf920dd038c8264244bc7faab54d3f0c1256f992c744a134f0e5886a73107e536"` ### Return Object @@ -71,7 +73,7 @@ Request: { "jsonrpc": "2.0", "method": "eth_getTransactionByHash", - "params": ["0xa536596d043c03d709aaccbc53f421963fe3537274e86444cd984404cf9ecb13"], + "params": ["0xf920dd038c8264244bc7faab54d3f0c1256f992c744a134f0e5886a73107e536"], "id": 1 } ``` @@ -80,27 +82,30 @@ Response: ```json { - "jsonrpc": "2.0", - "id": 1, - "result": { - "blockHash": "0x1091a5831b3556e80e53598c24e9d592e104dba0428f47f94c61523eb52d09d8", - "blockNumber": "0x316624", - "from": "0x53e8577c4347c365e4e0da5b57a589cb6f2ab848", - "gas": "0x3c524", - "gasPrice": "0x306dc421e", - "hash": "0xa536596d043c03d709aaccbc53f421963fe3537274e86444cd984404cf9ecb13", - "input": "0x50bb4e7f00000000000000000000000074b4551c177592a908c6ab9ce671bfe8c1b5bd40000000000000000000000000000000000000000000000000000056b990e70e000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000006068747470733a2f2f6574682d6d61696e6e65742e672e616c6368656d792e636f6d2f76322f72646f704c505054424a31536f786b2d555179306b7464676f4b45326146637a2f6765744e4654732f3f6f776e65723d766974616c696b2e657468", - "nonce": "0xc97", - "to": "0x211500d1960bdb7ba3390347ffd8ad486b897a18", - "transactionIndex": "0x4", - "value": "0x0", - "type": "0x0", - "chainId": "0xaa36a7", - "v": "0x1546d71", - "r": "0xf89098451217613aa4abbb3f8988e75e20ae948d07bf8b26c472bc9bda50c9d9", - "s": "0x15cfb5b34bcb23730aeadc28df3b66fa9cf28103ffc8b557d76f0c1df078028e" - } -} + "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-flare/eth_gettransactioncount.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactioncount.md similarity index 66% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_gettransactioncount.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactioncount.md index d5da085e..efe0f8bd 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_gettransactioncount.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactioncount.md @@ -1,13 +1,13 @@ --- title: "eth_gettransactioncount" -slug: "rpc-flare-eth_gettransactioncount" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_gettransactioncount" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const result = await tatum.rpc.getTransactionCount('0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86', 'latest') +const tatum = await TatumSDK.init({network: Network.HAQQ}) + +const result = await tatum.rpc.getTransactionCount('0x2eAd3B147fc20fB03fd25C71c1677E81714A9Eb5', 'latest') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getTransactionCount` method is an JSON-RPC method that retrieves the number of transactions sent from a given address. It is a useful method for developers who need to keep track of an account's nonce value to avoid transaction collisions or incorrect order of execution. The nonce value is essential for ensuring transaction uniqueness and preventing replay attacks. +The `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. Use cases for this method include: @@ -44,12 +44,14 @@ 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 address whose transaction count will be retrieved. - * Example: `"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"` +1. **`address`** - The Haqq address whose transaction count will be retrieved. + * Example: `"0x2eAd3B147fc20fB03fd25C71c1677E81714A9Eb5"` 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"` @@ -71,7 +73,7 @@ _Request_: "id": 1, "method": "eth_getTransactionCount", "params": [ - "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", + "0x2eAd3B147fc20fB03fd25C71c1677E81714A9Eb5", "latest" ] } diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_gettransactionreceipt.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionreceipt.md similarity index 80% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_gettransactionreceipt.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionreceipt.md index 4592b82f..3affa746 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_gettransactionreceipt.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_gettransactionreceipt.md @@ -1,13 +1,13 @@ --- title: "eth_gettransactionreceipt" -slug: "rpc-flare-eth_gettransactionreceipt" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_gettransactionreceipt" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const tx = await tatum.rpc.getTransactionReceipt('0x6aefbd1a9c9e4c310cadde3bcdd809a14da87caa8fa4f10ca04d9e357a3907e9') +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 ``` @@ -36,14 +36,16 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getTransactionReceipt` is an JSON-RPC method that retrieves the transaction receipt of a given transaction hash. This method is particularly useful when you need to obtain detailed information about a transaction's execution, such as its status (success or failure), gas usage, and logs (events). Common use cases include checking the status of a transaction after it has been mined or inspecting the events emitted by a smart contract during a specific transaction. +`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: `"0xa536596d043c03d709aaccbc53f421963fe3537274e86444cd984404cf9ecb13"` + * Example: `"0xf920dd038c8264244bc7faab54d3f0c1256f992c744a134f0e5886a73107e536"` ### Return Object @@ -72,7 +74,7 @@ Request: "id": 1, "method": "eth_getTransactionReceipt", "params": [ - "0xa536596d043c03d709aaccbc53f421963fe3537274e86444cd984404cf9ecb13" + "0xf920dd038c8264244bc7faab54d3f0c1256f992c744a134f0e5886a73107e536" ] } ``` @@ -117,6 +119,7 @@ Response: "type": "0x0" } } + ``` \ diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getunclecountbyblockhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getunclecountbyblockhash.md similarity index 69% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getunclecountbyblockhash.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getunclecountbyblockhash.md index d9b173ce..3c088956 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getunclecountbyblockhash.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getunclecountbyblockhash.md @@ -1,13 +1,13 @@ --- title: "eth_getunclecountbyblockhash" -slug: "rpc-flare-eth_getunclecountbyblockhash" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_getunclecountbyblockhash" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const result = await tatum.rpc.getUncleCountByBlockHash('0x48dfcf43404dffdb3b93a0b0d9982b642b221187bc3ed5c023bdab6c0e863e3d') +const tatum = await TatumSDK.init({network: Network.HAQQ}) + +const result = await tatum.rpc.getUncleCountByBlockHash('0x300e4057498875ef62a7632c78077d9fa79265e484415d337d1f529ca4660ee6') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,9 +36,11 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getUncleCountByBlockHash` method is an JSON-RPC method that returns the number of uncles in a specified block by its hash. This method can be useful for gathering information about the performance of the network and to analyze the security of the blockchain. +The `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. + +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. -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. +{% embed url="https://codepen.io/Jan-Musil-the-lessful/pen/xxQMNxz?editors=1111" %} ### Parameters diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getunclecountbyblocknumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getunclecountbyblocknumber.md similarity index 68% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getunclecountbyblocknumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getunclecountbyblocknumber.md index 0472f63f..1a91d869 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_getunclecountbyblocknumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_getunclecountbyblocknumber.md @@ -1,13 +1,13 @@ --- title: "eth_getunclecountbyblocknumber" -slug: "rpc-flare-eth_getunclecountbyblocknumber" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_getunclecountbyblocknumber" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,11 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const result = await tatum.rpc.getUncleCountByBlockNumber('0xAD7C5E') +const tatum = await TatumSDK.init({network: Network.HAQQ}) + +const result = await tatum.rpc.getUncleCountByBlockNumber(7687453) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,16 +36,20 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_getUncleCountByBlockHash` method is an JSON-RPC method that returns the number of uncles in a specified block by its hash. This method can be useful for gathering information about the performance of the network and to analyze the security of the blockchain. +The `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. + +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. + + -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. +{% embed url="https://codepen.io/Lukas-Kotol/pen/wvQOGYg?editors=1111" %} ### 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: `"0x12345"` + * Example value: 7687453 ### Return Object @@ -65,7 +69,7 @@ Here is an example JSON-RPC request and response for the `eth_getUncleCountByBlo "jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": [ - "0x12345" + 7687453 ] } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_maxpriorityfeepergas.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_maxpriorityfeepergas.md similarity index 85% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_maxpriorityfeepergas.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_maxpriorityfeepergas.md index bf12215c..de877d9d 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_maxpriorityfeepergas.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_maxpriorityfeepergas.md @@ -1,13 +1,13 @@ --- title: "eth_maxpriorityfeepergas" -slug: "rpc-flare-eth_maxpriorityfeepergas" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_maxpriorityfeepergas" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.FLARE}) +const tatum = await TatumSDK.init({network: Network.HAQQ}) const gasPrice = await tatum.rpc.maxPriorityFeePerGas() @@ -38,6 +38,8 @@ 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-flare/eth_sendrawtransaction.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_sendrawtransaction.md similarity index 73% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_sendrawtransaction.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_sendrawtransaction.md index 80f30fbf..5278d9b6 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/eth_sendrawtransaction.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/eth_sendrawtransaction.md @@ -1,13 +1,13 @@ --- title: "eth_sendrawtransaction" -slug: "rpc-flare-eth_sendrawtransaction" -excerpt: "Flare RPC" +slug: "rpc-haqq-eth_sendrawtransaction" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.FLARE}) +const tatum = await TatumSDK.init({network: Network.HAQQ}) const gasPrice = await tatum.rpc.sendRawTransaction('0x0000.......') @@ -36,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -The `eth_sendRawTransaction` RPC method is used to send a signed and serialized transaction to the network. This method is particularly useful when you want to have full control over the signing process, e.g., when using hardware wallets, cold storage, or custom signing libraries. It can be utilized in various use cases, such as transferring currency, interacting with smart contracts, or deploying new contracts. +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. ### Parameters diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/txpool_content.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_content.md similarity index 90% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/txpool_content.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_content.md index ffe54d24..6ec63566 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/txpool_content.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_content.md @@ -1,13 +1,13 @@ --- title: "txpool_content" -slug: "rpc-flare-txpool_content" -excerpt: "Flare RPC" +slug: "rpc-haqq-txpool_content" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.FLARE}) +const tatum = await TatumSDK.init({network: Network.HAQQ}) 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 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 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. Use cases for the `txpool_content` method include: @@ -45,6 +45,8 @@ 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-flare/txpool_inspect.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_inspect.md similarity index 79% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/txpool_inspect.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_inspect.md index be38b4a8..203c0e01 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/txpool_inspect.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_inspect.md @@ -1,13 +1,13 @@ --- title: "txpool_inspect" -slug: "rpc-flare-txpool_inspect" -excerpt: "Flare RPC" +slug: "rpc-haqq-txpool_inspect" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.FLARE}) +const tatum = await TatumSDK.init({network: Network.HAQQ}) const inspect = await tatum.rpc.txPoolInspect() @@ -36,7 +36,9 @@ 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 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. +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" %} ### Parameters diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/txpool_status.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_status.md similarity index 74% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/txpool_status.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_status.md index 2f0495c5..ee68e9a1 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/txpool_status.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/txpool_status.md @@ -1,13 +1,13 @@ --- title: "txpool_status" -slug: "rpc-flare-txpool_status" -excerpt: "Flare RPC" +slug: "rpc-haqq-txpool_status" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.FLARE}) +const tatum = await TatumSDK.init({network: Network.HAQQ}) const status = await tatum.rpc.txPoolStatus() @@ -38,7 +38,9 @@ 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 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. +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" %} ### Parameters diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-flare/web3_clientversion.md b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/web3_clientversion.md similarity index 61% rename from v1.0/RPC Nodes/rpc-evm/rpc-flare/web3_clientversion.md rename to v1.0/RPC Nodes/rpc-evm/rpc-haqq/web3_clientversion.md index 0553e1d8..1c077be7 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-flare/web3_clientversion.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-haqq/web3_clientversion.md @@ -1,13 +1,13 @@ --- title: "web3_clientversion" -slug: "rpc-flare-web3_clientversion" -excerpt: "Flare RPC" +slug: "rpc-haqq-web3_clientversion" +excerpt: "Haqq RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Flare RPC" + description: "Haqq RPC" image: [] - keywords: "flare, rpc" + 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)" @@ -22,9 +22,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Flare, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.FLARE}) +import { TatumSDK, Haqq, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.HAQQ}) const version = await tatum.rpc.clientVersion() @@ -36,19 +36,21 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`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. +`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. -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. +{% embed url="https://codepen.io/tatum-devrel/pen/eYQqajp" %} ### Parameters -This method has no parameters. It only retrieves the current version of the client software. +This method has no parameters. It only retrieves the current version of the Haqq client software. ### Return Object -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. +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. -* `String` - Version string of the client software being used. +* `String` - Version string of the Haqq client software being used. ### Example Request @@ -59,7 +61,7 @@ The `web3_clientVersion` method returns a string representing the version of the "jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], - "id": 1 + "id": 67 } ``` @@ -71,8 +73,7 @@ The `web3_clientVersion` method returns a string representing the version of the { "jsonrpc": "2.0", "id": 67, - "result": "v0.8.15" + "result": "Version dev ()\nCompiled at using Go go1.20.6 (amd64)" } ``` -In the above example, the client software being used is in version 0.8.18..