diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_call.md b/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_call.md deleted file mode 100644 index 6a250248..00000000 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_call.md +++ /dev/null @@ -1,92 +0,0 @@ ---- -title: "eth_call" -slug: "rpc-celo-eth_call" -excerpt: "Celo RPC" -category: 65c5e93c623cad004b45d505 -hidden: false -metadata: - description: "Celo RPC" - image: [] - keywords: "celo, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) - -const result = await tatum.rpc.call({ - "to": "0xD31a59c85aE9D8edEFeC411D448f90841571b89c", // Replace with the ERC-20 token contract address - "data": "0x70a08231000000000000000000000000F22981C5bF0A717c98781Af04fdc8213fA789F1C" // The function signature for balanceOf(address), followed by the address -}, "latest") - -await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs -``` -{% endcode %} -{% endtab %} -{% endtabs %} - -### Overview - -Executes a new message call immediately without creating a transaction on the block chain. Often used for executing read-only smart contract functions, for example the `balanceOf` for an ERC-20 contract. - -Top 5 most commonly used use cases for `eth_call`: - -1. **Retrieve Token Balance:** Check an ERC-20 token balance for an address. -2. **Query Contract State:** Get contract data, like a game score or auction status. -3. **Validate Inputs:** Pre-validate function inputs before sending a transaction. -4. **Price Oracles:** Fetch real-time price data for decentralized applications. -5. **Gas Estimation:** Estimate gas costs for future transactions. - -### **Parameters** - -1. `Object` - The transaction call object - -* `from`: `DATA`, 20 Bytes - (optional) The address the transaction is sent from. -* `to`: `DATA`, 20 Bytes - The address the transaction is directed to. -* `gas`: `QUANTITY` - (optional) Integer of the gas provided for the transaction execution. eth\_call consumes zero gas, but this parameter may be needed by some executions. -* `gasPrice`: `QUANTITY` - (optional) Integer of the gasPrice used for each paid gas -* `value`: `QUANTITY` - (optional) Integer of the value sent with this transaction -* `data`: `DATA` - (optional) Hash of the method signature and encoded parameters. For details see [Ethereum Contract ABI in the Solidity documentation(opens in a new tab)](https://docs.soliditylang.org/en/latest/abi-spec.html) - -2. `QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"` or `"pending"` -### Return Object - -`DATA` - the return value of executed contract. - -### JSON Examples - -#### Request - -```json -{ - "jsonrpc":"2.0", - "method":"eth_call", - "params":[{ - "to": "0xD31a59c85aE9D8edEFeC411D448f90841571b89c", // Replace with the ERC-20 token contract address - "data": "0x70a08231000000000000000000000000F22981C5bF0A717c98781Af04fdc8213fA789F1C" // The function signature for balanceOf(address), followed by the address to query - },"latest"], - "id":1 -} -``` - -#### Response - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": "0x00000000000000000000000000000000000000000000000000001726f9fecc9d" -} -``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gettransactionbyhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gettransactionbyhash.md deleted file mode 100644 index 18219852..00000000 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gettransactionbyhash.md +++ /dev/null @@ -1,106 +0,0 @@ ---- -title: "eth_gettransactionbyhash" -slug: "rpc-celo-eth_gettransactionbyhash" -excerpt: "Celo RPC" -category: 65c5e93c623cad004b45d505 -hidden: false -metadata: - description: "Celo RPC" - image: [] - keywords: "celo, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) - -const tx = await tatum.rpc.getTransactionByHash('0xa5d9c00750da011be46f6b0d567ffc23536ef820f660ce1398d2534a77370f0a') - -await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs -``` -{% endcode %} -{% endtab %} -{% endtabs %} - -### Overview - -`eth_getTransactionByHash` is an JSON-RPC method that allows you to query transaction details based on its hash. This method is useful when you want to retrieve information about a specific transaction, such as its sender, receiver, value, and more. Common use cases include tracking transaction status, monitoring incoming transactions, or analyzing historical transaction data. - -### Parameters - -The `eth_getTransactionByHash` method takes one parameter: - -* **`transactionHash`**: The hash of the transaction you want to retrieve. This should be a 32-byte hash string with a `0x` prefix. - * Example: `"0xa5d9c00750da011be46f6b0d567ffc23536ef820f660ce1398d2534a77370f0a"` - -### Return Object - -The method returns a transaction object with the following fields: - -* **`hash`**: The hash of the transaction (32 bytes). -* **`nonce`**: The number of transactions sent by the sender prior to this one (integer). -* **`blockHash`**: The hash of the block in which the transaction was included (32 bytes), or `null` if the transaction is not yet mined. -* **`blockNumber`**: The block number in which the transaction was included (integer), or `null` if the transaction is not yet mined. -* **`transactionIndex`**: The index of the transaction in the block (integer), or `null` if the transaction is not yet mined. -* **`from`**: The address of the sender (20 bytes). -* **`to`**: The address of the receiver (20 bytes), or `null` for contract creation transactions. -* **`value`**: The value transferred in the transaction, in wei. -* **`gasPrice`**: The price of gas for the transaction, in wei. -* **`maxFeePerGas`** - The maximum fee per gas set in the transaction. -* **`maxPriorityFeePerGas`** - The maximum priority gas fee set in the transaction. -* **`gas`**: The maximum amount of gas the transaction is allowed to consume. -* **`input`**: The data payload of the transaction (string), or `0x` for simple value transfers. - -### JSON-RPC Examples - -Request: - -```json -{ - "jsonrpc": "2.0", - "method": "eth_getTransactionByHash", - "params": ["0xa5d9c00750da011be46f6b0d567ffc23536ef820f660ce1398d2534a77370f0a"], - "id": 1 -} -``` - -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" - } -} -``` - -\ diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_maxpriorityfeepergas.md b/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_maxpriorityfeepergas.md deleted file mode 100644 index 57ebba0d..00000000 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_maxpriorityfeepergas.md +++ /dev/null @@ -1,76 +0,0 @@ ---- -title: "eth_maxpriorityfeepergas" -slug: "rpc-celo-eth_maxpriorityfeepergas" -excerpt: "Celo RPC" -category: 65c5e93c623cad004b45d505 -hidden: false -metadata: - description: "Celo RPC" - image: [] - keywords: "celo, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) - -const gasPrice = await tatum.rpc.maxPriorityFeePerGas() - -await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs -``` -{% endcode %} -{% endtab %} -{% endtabs %} - -### Overview - -The `eth_maxPriorityFeePerGas` RPC method is used to retrieve the maximum priority fee per gas set by the user for a transaction. This method can be used to determine the maximum fee that can be paid for a transaction to be included in a block quickly. - -### Use case - -This method is particularly useful when the user wants to ensure that a transaction is processed quickly, even in a congested network where transaction fees may fluctuate rapidly. By setting a high maximum priority fee per gas, the user can ensure that the transaction is processed as quickly as possible. - -### Parameters - -`None.` - -## Return Object - -* `maxPriorityFeePerGas` - The maximum priority fee per gas the user is willing to pay, in wei. - -### JSON Examples - -#### Request - -```json -{ - "jsonrpc": "2.0", - "method": "eth_maxPriorityFeePerGas", - "params": [], - "id": 1 -} -``` - -#### Response - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": "0x3b9aca00" -} -``` - -\ diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz.md similarity index 86% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz.md index 3eb20d4c..418e84d7 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz.md @@ -1,6 +1,6 @@ --- -title: "Celo" -slug: "rpc-celo" +title: "Chiliz" +slug: "rpc-chiliz" excerpt: "" category: 65c5e93c623cad004b45d505 hidden: false diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_getbadblocks.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_getbadblocks.md similarity index 95% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_getbadblocks.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_getbadblocks.md index ad778d8a..010549f7 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_getbadblocks.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_getbadblocks.md @@ -1,13 +1,13 @@ --- title: "debug_getbadblocks" -slug: "rpc-celo-debug_getbadblocks" -excerpt: "Celo RPC" +slug: "rpc-chiliz-debug_getbadblocks" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.CELO}) +const tatum = await TatumSDK.init({network: Network.CHILIZ}) const result = await tatum.rpc.debugGetBadBlocks() diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_storagerangeat.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_storagerangeat.md similarity index 80% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_storagerangeat.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_storagerangeat.md index 85bb4a3b..dad6ce9a 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_storagerangeat.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_storagerangeat.md @@ -1,13 +1,13 @@ --- title: "debug_storagerangeat" -slug: "rpc-celo-debug_storagerangeat" -excerpt: "Celo RPC" +slug: "rpc-chiliz-debug_storagerangeat" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, rpc" robots: "index" createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)" updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" @@ -22,13 +22,13 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Celo, Network } from '@tatumio/tatum' +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.CELO}) +const tatum = await TatumSDK.init({network: Network.CHILIZ}) const result = await tatum.rpc.debugStorageRangeAt( -'0x98b066007760fad8c9e3246ac62dc34b96dee7b2a8dd362bc8576e78ee37775d', -1, '0x75d30255a47772Dd60bC56d7a8536D0A79669eCf', '0x0000000000000000000000000000000000000000000000000000000000000000', 0 +'0x48dfcf43404dffdb3b93a0b0d9982b642b221187bc3ed5c023bdab6c0e863e3d', +1, '0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86', '0x0000000000000000000000000000000000000000000000000000000000000000', 1 ) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs @@ -45,9 +45,9 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs The `debug_storageRangeAt` method accepts the following parameters: -* `blockHash`: The block hash for which the storage range should be retrieved. Example: `"0x98b066007760fad8c9e3246ac62dc34b96dee7b2a8dd362bc8576e78ee37775d"` -* `txIndex`: The transaction index within the specified block. Example: 1 -* `address`: The contract address for which the storage range should be retrieved. Example: `"0x75d30255a47772Dd60bC56d7a8536D0A79669eCf"` +* `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) @@ -72,9 +72,9 @@ This method is available only on the full archive node. "id": 1, "method": "debug_storageRangeAt", "params": [ - "0x98b066007760fad8c9e3246ac62dc34b96dee7b2a8dd362bc8576e78ee37775d", - 1, - "0x75d30255a47772Dd60bC56d7a8536D0A79669eCf", + "0x3c4523b7e8c21e3d68f1c3af3d18e8a87c0d43e35b2c1b7f8f4e87e4d4db9c82", + "0x1", + "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", "0x0000000000000000000000000000000000000000000000000000000000000000", 1 ] } diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_traceblock.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_traceblock.md similarity index 92% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_traceblock.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_traceblock.md index e18883e7..26eab7cd 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_traceblock.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_traceblock.md @@ -1,13 +1,13 @@ --- title: "debug_traceblock" -slug: "rpc-celo-debug_traceblock" -excerpt: "Celo RPC" +slug: "rpc-chiliz-debug_traceblock" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.CELO}) +const tatum = await TatumSDK.init({network: Network.CHILIZ}) -const result = await tatum.rpc.debugTraceBlock('0xAD7C5E' ,{ +const result = await tatum.rpc.debugTraceBlock('0x65B9AB' ,{ tracer: 'callTracer', tracerConfig: { onlyTopCall: true, diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_traceblockbyhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_traceblockbyhash.md similarity index 90% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_traceblockbyhash.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_traceblockbyhash.md index 38ffe403..51f9f25f 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_traceblockbyhash.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_traceblockbyhash.md @@ -1,13 +1,13 @@ --- title: "debug_traceblockbyhash" -slug: "rpc-celo-debug_traceblockbyhash" -excerpt: "Celo RPC" +slug: "rpc-chiliz-debug_traceblockbyhash" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, rpc" robots: "index" createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)" updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" @@ -22,20 +22,11 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const result = await tatum.rpc.debugTraceBlockByHash( -'0x98b066007760fad8c9e3246ac62dc34b96dee7b2a8dd362bc8576e78ee37775d', -{ - tracer: 'callTracer', - tracerConfig: { - onlyTopCall: true, - timeout: '5s', - } -} -) +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const result = await tatum.rpc.debugTraceBlockByHashtatum.rpc.debugTraceBlockByHash('0xdea4839f6bce4f97d9b92b68b054b8c637b20fdbc2b1deaace450b961946eb02') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_traceblockbynumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_traceblockbynumber.md similarity index 92% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_traceblockbynumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_traceblockbynumber.md index 644e293e..08682024 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_traceblockbynumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_traceblockbynumber.md @@ -1,13 +1,13 @@ --- title: "debug_traceblockbynumber" -slug: "rpc-celo-debug_traceblockbynumber" -excerpt: "Celo RPC" +slug: "rpc-chiliz-debug_traceblockbynumber" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const result = await tatum.rpc.debugTraceBlockByNumber('0x14FCCCA') +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const result = await tatum.rpc.debugTraceBlockByNumber(6666667) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_tracecall.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_tracecall.md similarity index 91% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_tracecall.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_tracecall.md index b25661b2..af31935a 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_tracecall.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_tracecall.md @@ -1,13 +1,13 @@ --- title: "debug_tracecall" -slug: "rpc-celo-debug_tracecall" -excerpt: "Celo RPC" +slug: "rpc-chiliz-debug_tracecall" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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,21 +22,20 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.CHILIZ}) const result = await tatum.rpc.debugTraceCall({ - "from": "0x30ff20cb4A783B5bB97d0aF2e86d08c6B996D7d2", - "to": "0xa41d19F4258a388c639B7CcD938FCE3fb7D05e87", - }, - "0x14FCCCA", - { - tracer: 'callTracer', - tracerConfig: { - onlyTopCall: true, - timeout: '5s', - } + from: "0x99ab95d1ecc41f78ebe42c4452fb086371bf95c5" +}, +'0x65B9AB', +{ +tracer: 'callTracer', +tracerConfig: { + onlyTopCall: true, + timeout: '5s', +} } ) diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_tracetransaction.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_tracetransaction.md similarity index 93% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_tracetransaction.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_tracetransaction.md index 93bb2aa0..9bc285fc 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/debug_tracetransaction.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/debug_tracetransaction.md @@ -1,13 +1,13 @@ --- title: "debug_tracetransaction" -slug: "rpc-celo-debug_tracetransaction" -excerpt: "Celo RPC" +slug: "rpc-chiliz-debug_tracetransaction" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const result = await tatum.rpc.debugTraceTransaction('0xa5d9c00750da011be46f6b0d567ffc23536ef820f660ce1398d2534a77370f0a', { +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const result = await tatum.rpc.debugTraceTransaction('0x98ce8f8d9b941cda7d1f199daba347a321514cb223dee06ef7e4fa0094882fc7', { tracer: 'callTracer', tracerConfig: { onlyTopCall: true, @@ -49,7 +49,7 @@ By using the `callTracer` tracer, developers can obtain more detailed informatio ### Parameters * `transaction_hash` (required): The hash of the transaction to trace. - * Example: `"0xa5d9c00750da011be46f6b0d567ffc23536ef820f660ce1398d2534a77370f0a"` + * 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 diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_blocknumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_blocknumber.md similarity index 78% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_blocknumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_blocknumber.md index 71bd08e9..9e1ff7f6 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_blocknumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_blocknumber.md @@ -1,13 +1,13 @@ --- title: "eth_blocknumber" -slug: "rpc-celo-eth_blocknumber" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_blocknumber" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.CELO}) +const tatum = await TatumSDK.init({network: Network.CHILIZ}) const latestBlock = await tatum.rpc.blockNumber() @@ -74,10 +74,4 @@ The `eth_blockNumber` method returns a single field: "jsonrpc": "2.0", "result": "0x4b7" // 1207 } -``` - -In this example, the most recent block number is 1207 (`0x4b7` in hexadecimal notation). - -Please note that while this document provides a comprehensive description of the `eth_blockNumber` RPC method, other methods may be needed to obtain full transaction details or perform more complex tasks. - -\ +``` \ No newline at end of file diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_chainid.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_chainid.md similarity index 82% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_chainid.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_chainid.md index 725346ad..171ff224 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_chainid.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_chainid.md @@ -1,13 +1,13 @@ --- title: "eth_chainid" -slug: "rpc-celo-eth_chainid" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_chainid" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.CHILIZ}) const id = await tatum.rpc.chainId() @@ -36,7 +36,7 @@ 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 JSON-RPC method that allows developers to retrieve the currently configured chain ID of the network they are connected to. The chain ID is a unique identifier for different networks, such as mainnet or various testnets. This method is particularly useful when building applications that interact with multiple networks or need to verify the network to prevent replay attacks. By checking the chain ID, an application can ensure it is interacting with the intended network. @@ -73,4 +73,3 @@ JSON-RPC response: } ``` -In this example, the returned chain ID is `0xe`, which corresponds to the Mainnet. diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_estimategas.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_estimategas.md similarity index 86% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_estimategas.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_estimategas.md index 5ffb8a0b..67d5b4f5 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_estimategas.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_estimategas.md @@ -1,13 +1,13 @@ --- title: "eth_estimategas" -slug: "rpc-celo-eth_estimategas" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_estimategas" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, rpc" robots: "index" createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)" updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" @@ -22,15 +22,15 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.CHILIZ}) const estimate = await tatum.rpc.estimateGas({ - "from": "0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86", - "to": "0xa41d19F4258a388c639B7CcD938FCE3fb7D05e87", - "value": "0xde0b6b3a7640000", - "data": "0x606060" + "from": "0x3E18a8c3348447E3e69c847FbAA07117E2f46a1b", + "to": "0x3E18a8c3348447E3e69c847FbAA07117E2f46a1b", + "value": "0xde0b6b3a7640000", + "data": "0x606060" }) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs @@ -61,7 +61,7 @@ The `eth_estimateGas` method takes a single parameter, an object representing th * Example: `"gas": "0x76c0"` * **`gasPrice`** (optional, string): The price of gas in wei. * Example: `"gasPrice": "0x9184e72a000"` -* **`value`** (optional, string): The amount to send in the transaction, in wei. +* **`value`** (optional, string): The amount of ZEN to send in the transaction, in wei. * Example: `"value": "0xde0b6b3a7640000"` * **`data`** (optional, string): The data payload of the transaction, typically used for contract function calls or contract deployment. * Example: `"data": "0x606060..."` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gasprice.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gasprice.md similarity index 89% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gasprice.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gasprice.md index a9e56975..f4333b03 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gasprice.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gasprice.md @@ -1,13 +1,13 @@ --- title: "eth_gasprice" -slug: "rpc-celo-eth_gasprice" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_gasprice" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.CHILIZ}) const gasPrice = await tatum.rpc.gasPrice() diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getbalance.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getbalance.md similarity index 81% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getbalance.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getbalance.md index 9c77c435..86968883 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getbalance.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getbalance.md @@ -1,13 +1,13 @@ --- title: "eth_getbalance" -slug: "rpc-celo-eth_getbalance" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_getbalance" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.CELO}) +const tatum = await TatumSDK.init({network: Network.CHILIZ}) -const balance = await tatum.rpc.getBalance('0x30ff20cb4A783B5bB97d0aF2e86d08c6B996D7d2') +const balance = await tatum.rpc.getBalance('0x3E18a8c3348447E3e69c847FbAA07117E2f46a1b') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -43,7 +43,7 @@ The `eth_getBalance` method is an JSON-RPC method that allows you to retrieve th The method requires two parameters: 1. **`address`** (required): The address of the account or contract whose balance you want to query. - * Example: `"0x30ff20cb4A783B5bB97d0aF2e86d08c6B996D7d2"` + * Example: `"0x99D270f4a42b296fB888f168a5985e1d9839B064"` 2. **`blockParameter`** (optional): The block number or block identifier to specify the point in time for which you want to query the balance. * Example: `"latest"` or `"0x1"` @@ -70,7 +70,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 Flare balance of the specified address in wei, as a hexadecimal string. * Example: `"0x1a2e1a"`, which corresponds to `1,726,666` wei. ### JSON-RPC Request and Response Examples @@ -83,7 +83,7 @@ The method returns a single field: "id": 1, "method": "eth_getBalance", "params": [ - "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", + "0x99D270f4a42b296fB888f168a5985e1d9839B064", "latest" ] } @@ -93,8 +93,14 @@ The method returns a single field: ```json { - "jsonrpc": "2.0", - "id": 1, - "result": "0x1a2e1a" + "jsonrpc": "2.0", + "id": 1, + "result": { + "BigNumber": { + "s": 1, + "e": 18, + "c": [10611, 3542686313455] + } + } } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getblockbyhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getblockbyhash.md similarity index 93% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getblockbyhash.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getblockbyhash.md index 1eb3ef69..94542850 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getblockbyhash.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getblockbyhash.md @@ -1,13 +1,13 @@ --- title: "eth_getblockbyhash" -slug: "rpc-celo-eth_getblockbyhash" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_getblockbyhash" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.CELO}) +const tatum = await TatumSDK.init({network: Network.CHILIZ}) -const block = await tatum.rpc.getBlockByHash('0x98b066007760fad8c9e3246ac62dc34b96dee7b2a8dd362bc8576e78ee37775d', true) +const block = await tatum.rpc.getBlockByHash('0xdea4839f6bce4f97d9b92b68b054b8c637b20fdbc2b1deaace450b961946eb02', true) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -44,7 +44,7 @@ The `eth_getBlockByHash` method accepts two parameters: 1. **`blockHash`**: The hash of the block you want to retrieve information about. * Type: `String` - * Example: `"0x98b066007760fad8c9e3246ac62dc34b96dee7b2a8dd362bc8576e78ee37775d"` + * Example: `"0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6"` 2. **`fullTransactionDetails`**: A boolean value indicating whether to return full transaction details or just transaction hashes. * Type: `Boolean` * Example: `true` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getblockbynumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getblockbynumber.md similarity index 96% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getblockbynumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getblockbynumber.md index c160a6aa..94563e93 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getblockbynumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getblockbynumber.md @@ -1,13 +1,13 @@ --- title: "eth_getblockbynumber" -slug: "rpc-celo-eth_getblockbynumber" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_getblockbynumber" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.CELO}) +const tatum = await TatumSDK.init({network: Network.Chiliz}) const block = await tatum.rpc.getBlockByNumber('latest', true) diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getblocktransactioncountbyhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getblocktransactioncountbyhash.md similarity index 66% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getblocktransactioncountbyhash.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getblocktransactioncountbyhash.md index 06f9d220..65cd58a1 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getblocktransactioncountbyhash.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getblocktransactioncountbyhash.md @@ -1,13 +1,13 @@ --- title: "eth_getblocktransactioncountbyhash" -slug: "rpc-celo-eth_getblocktransactioncountbyhash" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_getblocktransactioncountbyhash" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const response = await tatum.rpc.getBlockTransactionCountByHash('0x98b066007760fad8c9e3246ac62dc34b96dee7b2a8dd362bc8576e78ee37775d') +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const response = await tatum.rpc.getBlockTransactionCountByHash('0xdea4839f6bce4f97d9b92b68b054b8c637b20fdbc2b1deaace450b961946eb02') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -36,7 +36,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ### Overview -`eth_getBlockTransactionCountByHash` is 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 a RPC method used to fetch the number of transactions in a block by the block's hash. It is useful when you want to know the total number of transactions included in a specific block and don't want to retrieve the entire block data. This method can be used in various scenarios, such as monitoring the network activity or estimating transaction confirmation times. ### Parameters @@ -46,7 +46,7 @@ This method requires a single parameter: Example of the parameter: -* `blockHash`: `"0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"` +* `blockHash`: `"0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6"` ### Return @@ -64,7 +64,7 @@ The method returns a single value: "jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": [ - "0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238" + "0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6" ] } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getblocktransactioncountbynumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getblocktransactioncountbynumber.md similarity index 83% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getblocktransactioncountbynumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getblocktransactioncountbynumber.md index 204f6dd9..96a1c3a2 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getblocktransactioncountbynumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getblocktransactioncountbynumber.md @@ -1,13 +1,13 @@ --- title: "eth_getblocktransactioncountbynumber" -slug: "rpc-celo-eth_getblocktransactioncountbynumber" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_getblocktransactioncountbynumber" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const response = await tatum.rpc.getBlockTransactionCountByNumber('0x14FCCCA') +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const response = await tatum.rpc.getBlockTransactionCountByNumber('0x65B9AB') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -41,13 +41,13 @@ The `eth_getBlockTransactionCountByNumber` JSON-RPC method allows you to retriev ### 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: `"0x14FCCCA"` + * Example: 371156 ### Return Object The return object is a hex-encoded value representing the number of transactions in the specified block. -* Example: `"0xa"` (10 transactions) +* Example: `"0x1"` (1 transactions) ### JSON-RPC Request and Response Examples @@ -58,7 +58,7 @@ The return object is a hex-encoded value representing the number of transactions "jsonrpc": "2.0", "id": 1, "method": "eth_getBlockTransactionCountByNumber", - "params": ["0x1b4"] + "params": [371156] } ``` @@ -68,7 +68,7 @@ The return object is a hex-encoded value representing the number of transactions { "jsonrpc": "2.0", "id": 1, - "result": "0xa" + "result": "0x1" } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getcode.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getcode.md similarity index 85% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getcode.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getcode.md index abf6e6e2..4021b728 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getcode.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getcode.md @@ -1,13 +1,13 @@ --- title: "eth_getcode" -slug: "rpc-celo-eth_getcode" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_getcode" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const code = await tatum.rpc.getCode('0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86') +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const code = await tatum.rpc.getCode('0x11D28Ee5fcc421a5B7498a703EEC3338381941a9') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -49,7 +49,7 @@ Use cases for this method could include: 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. - * Example: `"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"` + * Example: `"0x6eA7d015342b7eb7344F7ebf0150234f41F524d6"` 2. **`block`** (string): The block number at which you want to retrieve the contract code. This can be specified as a hex string or one of the following special keywords: * `"earliest"`: The first block in the blockchain * `"latest"`: The most recent block in the blockchain @@ -73,7 +73,7 @@ The `eth_getCode` method returns a string representing the contract bytecode. Th "jsonrpc": "2.0", "method": "eth_getCode", "params": [ - "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", + "0x6eA7d015342b7eb7344F7ebf0150234f41F524d6", "latest" ] } diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getlogs.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getlogs.md similarity index 92% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getlogs.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getlogs.md index ac9379b3..fb10cf01 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getlogs.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getlogs.md @@ -1,13 +1,13 @@ --- title: "eth_getlogs" -slug: "rpc-celo-eth_getlogs" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_getlogs" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const logs = await tatum.rpc.getLogs({ address : '0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86'}) +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const logs = await tatum.rpc.getLogs({ address : '0x11D28Ee5fcc421a5B7498a703EEC3338381941a9'}) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -93,7 +93,7 @@ The `eth_getLogs` method returns an array of log objects. Each log object contai { "fromBlock": "0x1", "toBlock": "0x2", - "address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", + "address": "0x6eA7d015342b7eb7344F7ebf0150234f41F524d6", "topics": ["0x123..."] } ] diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getproof.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getproof.md similarity index 74% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getproof.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getproof.md index 1a80b237..cb0e4051 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getproof.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getproof.md @@ -1,13 +1,13 @@ --- title: "eth_getproof" -slug: "rpc-celo-eth_getproof" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_getproof" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, rpc" robots: "index" createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)" updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" @@ -22,13 +22,13 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" ```typescript // yarn add @tatumio/tatum -import { TatumSDK, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const result = await tatum.rpc.getProof("0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86", - ["0x0000000000000000000000000000000000000000000000000000000000000000"], - "latest") +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const result = await tatum.rpc.getProof("0x11D28Ee5fcc421a5B7498a703EEC3338381941a9", +["0x0000000000000000000000000000000000000000000000000000000000000000"], +"latest") await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -38,13 +38,13 @@ 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 a JSON-RPC method that retrieves the Merkle-Patricia proof for an account, storage key-value pairs, and account transaction count. It allows developers to verify the state of an account or storage value at a specific block without needing the entire state trie. This method is particularly useful for light clients or off-chain applications that require proof of an account's state or specific storage values. ### Parameters 1. **`address`** - `Data`, 20 Bytes * The address of the account. - * Example: `"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"` + * Example: `"0xBB52B2B91488d60eFb6848bBadd000005A511E5C"` 2. **`keys`** - `Array` of `Data` * An array of storage keys for which the proof should be generated. * Example: `["0x0000000000000000000000000000000000000000000000000000000000000000"]` @@ -80,7 +80,7 @@ _Request_: "jsonrpc": "2.0", "method": "eth_getProof", "params": [ - "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", + "0xBB52B2B91488d60eFb6848bBadd000005A511E5C", [ "0x0000000000000000000000000000000000000000000000000000000000000000" ], @@ -117,5 +117,4 @@ _Response_: ] } } - ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getstorageat.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getstorageat.md similarity index 81% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getstorageat.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getstorageat.md index 68129199..42615d10 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getstorageat.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getstorageat.md @@ -1,13 +1,13 @@ --- title: "eth_getstorageat" -slug: "rpc-celo-eth_getstorageat" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_getstorageat" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const response = await tatum.rpc.getStorageAt('0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86', '0x0') +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const response = await tatum.rpc.getStorageAt('0x11D28Ee5fcc421a5B7498a703EEC3338381941a9', '0x0') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -43,7 +43,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs `eth_getStorageAt` accepts three parameters: 1. **`address`**: The address of the contract you want to query. - * Example: `"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"` + * Example: `"0x6eA7d015342b7eb7344F7ebf0150234f41F524d6"` 2. **`position`**: The storage position (slot) you want to query. * Example: `"0x0"` 3. **`blockParameter`**: The block number, block hash, or one of the string literals (`"earliest"`, `"latest"` or `"pending"`), representing the point in the blockchain to query the storage value. @@ -63,9 +63,8 @@ The return object is a single string value, representing the storage value at th "jsonrpc": "2.0", "method": "eth_getStorageAt", "params": [ - "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", - "0x0", - "latest" + "0x6eA7d015342b7eb7344F7ebf0150234f41F524d6", + "0x0" ] } ``` @@ -76,7 +75,7 @@ The return object is a single string value, representing the storage value at th { "id": 1, "jsonrpc": "2.0", - "result": "0x0000000000000000000000000000000000000000000000000000000000000123" + "result": "0x0000000000000000000000000000000000000000000000000000000000000001" } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gettransactionbyblockhashandindex.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gettransactionbyblockhashandindex.md similarity index 92% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gettransactionbyblockhashandindex.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gettransactionbyblockhashandindex.md index 6d1f6d0e..512e6830 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gettransactionbyblockhashandindex.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gettransactionbyblockhashandindex.md @@ -1,13 +1,13 @@ --- title: "eth_gettransactionbyblockhashandindex" -slug: "rpc-celo-eth_gettransactionbyblockhashandindex" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_gettransactionbyblockhashandindex" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const tx = await tatum.rpc.getTransactionByBlockHashAndIndex('0x98b066007760fad8c9e3246ac62dc34b96dee7b2a8dd362bc8576e78ee37775d', 0) +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const tx = await tatum.rpc.getTransactionByBlockHashAndIndex('0xdea4839f6bce4f97d9b92b68b054b8c637b20fdbc2b1deaace450b961946eb02', 0) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -49,7 +49,7 @@ Use cases for this method may include: The `eth_getTransactionByBlockHashAndIndex` method accepts two parameters: 1. `blockHash` (required): The hash of the block containing the transaction. - * Example: `"0x98b066007760fad8c9e3246ac62dc34b96dee7b2a8dd362bc8576e78ee37775d"` + * Example: `"0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6"` 2. `transactionIndex` (required): The index of the transaction within the specified block. The index is a hexadecimal value. * Example: `"0x0"` @@ -79,7 +79,7 @@ Request: "id": 1, "method": "eth_getTransactionByBlockHashAndIndex", "params": [ - "0x98b066007760fad8c9e3246ac62dc34b96dee7b2a8dd362bc8576e78ee37775d", + "0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6", "0x0" ] } diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gettransactionbyblocknumberandindex.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gettransactionbyblocknumberandindex.md similarity index 94% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gettransactionbyblocknumberandindex.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gettransactionbyblocknumberandindex.md index 7e32a75f..03090ff8 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gettransactionbyblocknumberandindex.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gettransactionbyblocknumberandindex.md @@ -1,13 +1,13 @@ --- title: "eth_gettransactionbyblocknumberandindex" -slug: "rpc-celo-eth_gettransactionbyblocknumberandindex" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_gettransactionbyblocknumberandindex" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +iimport { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const tx = await tatum.rpc.getTransactionByBlockNumberAndIndex('0x14FCCCA', 0) +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const tx = await tatum.rpc.getTransactionByBlockNumberAndIndex('0x65B9AB', 0) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -49,9 +49,9 @@ Use cases for this method may include: The `eth_getTransactionByBlockHashAndIndex` method accepts two parameters: 1. `blockNumber` (required): The hash of the block containing the transaction. - * Example: `"0x316624"` + * Example: 371156 2. `transactionIndex` (required): The index of the transaction within the specified block. The index is a hexadecimal value. - * Example: `"0x0"` + * Example: 0 ### Return Object @@ -79,8 +79,8 @@ Request: "id": 1, "method": "eth_getTransactionByBlockNumberAndIndex", "params": [ - "0x316624", - "0x0" + 371156, + 0 ] } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gettransactionbyhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gettransactionbyhash.md new file mode 100644 index 00000000..4891364a --- /dev/null +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gettransactionbyhash.md @@ -0,0 +1,109 @@ +--- +title: "eth_gettransactionbyhash" +slug: "rpc-chiliz-eth_gettransactionbyhash" +excerpt: "Chiliz RPC" +category: 65c5e93c623cad004b45d505 +hidden: false +metadata: + description: "Chiliz RPC" + image: [] + keywords: "chiliz, 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, Chiliz, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const tx = await tatum.rpc.getTransactionByHash('0x98ce8f8d9b941cda7d1f199daba347a321514cb223dee06ef7e4fa0094882fc7') + +await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs +``` +{% endcode %} +{% endtab %} +{% endtabs %} + +### Overview + +`eth_getTransactionByHash` is an JSON-RPC method that allows you to query transaction details based on its hash. This method is useful when you want to retrieve information about a specific transaction, such as its sender, receiver, value, and more. Common use cases include tracking transaction status, monitoring incoming transactions, or analyzing historical transaction data. + +### Parameters + +The `eth_getTransactionByHash` method takes one parameter: + +* **`transactionHash`**: The hash of the transaction you want to retrieve. This should be a 32-byte hash string with a `0x` prefix. + * Example: `"0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7"` + +### Return Object + +The method returns a transaction object with the following fields: + +* **`hash`**: The hash of the transaction (32 bytes). +* **`nonce`**: The number of transactions sent by the sender prior to this one (integer). +* **`blockHash`**: The hash of the block in which the transaction was included (32 bytes), or `null` if the transaction is not yet mined. +* **`blockNumber`**: The block number in which the transaction was included (integer), or `null` if the transaction is not yet mined. +* **`transactionIndex`**: The index of the transaction in the block (integer), or `null` if the transaction is not yet mined. +* **`from`**: The address of the sender (20 bytes). +* **`to`**: The address of the receiver (20 bytes), or `null` for contract creation transactions. +* **`value`**: The value transferred in the transaction, in wei. +* **`gasPrice`**: The price of gas for the transaction, in wei. +* **`maxFeePerGas`** - The maximum fee per gas set in the transaction. +* **`maxPriorityFeePerGas`** - The maximum priority gas fee set in the transaction. +* **`gas`**: The maximum amount of gas the transaction is allowed to consume. +* **`input`**: The data payload of the transaction (string), or `0x` for simple value transfers. + +### JSON-RPC Examples + +Request: + +```json +{ + "jsonrpc": "2.0", + "method": "eth_getTransactionByHash", + "params": ["0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7"], + "id": 1 +} +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1, + "result": { + "blockHash": "0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6", + "blockNumber": "0x5a9d4", + "transactionIndex": "0x0", + "hash": "0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7", + "type": "0x2", + "nonce": "0x1d8", + "from": "0x8bd5723981d3f96a6544519c4a075f5994919d3a", + "to": "0xa55d9ef16af921b70fed1421c1d298ca5a3a18f1", + "value": "0x0", + "input": "0x3798c7f2000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000003400000000000000000000000000000000000000000000000000000000065082bd900000000000000000000000000000000000000000000000000000000013ebef0000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002600000000000000000000000000000000000000000000000000000000000000003415242000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034254430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000344414900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003455448000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024f50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000455534443000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004555344540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000031339e8d000000000000000000000000000000000000000000000000000018a759056108000000000000000000000000000000000000000000000000000000003b9aca000000000000000000000000000000000000000000000000000000017fc9b3dfb80000000000000000000000000000000000000000000000000000000054572fc0000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000000000000000000000000000000000003b9b181f", + "gas": "0x12a68", + "gasPrice": "0x5017ff700", + "maxPriorityFeePerGas": "0x59682f00", + "maxFeePerGas": "0xba43b7400", + "chainId": "0x1ca4", + "v": "0x1c", + "r": "0x75884978fae04ee04de9a2d4fefaaaa4742f4e8f4ccdaf89b01238bafb5292fd", + "s": "0x1f0e92ae5b7f2c8805ebb07900a59a04e73cda12a309021849a5d9ed151d7fd1", + "accessList": [] + } +} +``` + +\ diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gettransactioncount.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gettransactioncount.md similarity index 81% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gettransactioncount.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gettransactioncount.md index 37669558..3adf2161 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gettransactioncount.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gettransactioncount.md @@ -1,13 +1,13 @@ --- title: "eth_gettransactioncount" -slug: "rpc-celo-eth_gettransactioncount" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_gettransactioncount" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const result = await tatum.rpc.getTransactionCount('0x30ff20cb4A783B5bB97d0aF2e86d08c6B996D7d2', 'latest') +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const result = await tatum.rpc.getTransactionCount('0x3E18a8c3348447E3e69c847FbAA07117E2f46a1b', 'latest') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -49,7 +49,7 @@ Use cases for this method include: The `eth_getTransactionCount` method accepts two parameters: 1. **`address`** - The address whose transaction count will be retrieved. - * Example: `"0x30ff20cb4A783B5bB97d0aF2e86d08c6B996D7d2"` + * Example: `"0xBB52B2B91488d60eFb6848bBadd000005A511E5C"` 2. **`blockParameter`** - A string indicating the block number or block state to consider when retrieving the transaction count. * Possible values: `"earliest"`, `"latest"`, `"pending"`, or a specific block number in hexadecimal format * Example: `"latest"` @@ -71,7 +71,7 @@ _Request_: "id": 1, "method": "eth_getTransactionCount", "params": [ - "0x30ff20cb4A783B5bB97d0aF2e86d08c6B996D7d2", + "0xBB52B2B91488d60eFb6848bBadd000005A511E5C", "latest" ] } @@ -83,6 +83,12 @@ _Response_: { "jsonrpc": "2.0", "id": 1, - "result": "0x1e" + "result": { + "BigNumber": { + "s": 1, + "e": 0, + "c": [1] + } + } } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gettransactionreceipt.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gettransactionreceipt.md similarity index 51% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gettransactionreceipt.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gettransactionreceipt.md index d36cb8f7..b80dc4eb 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_gettransactionreceipt.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_gettransactionreceipt.md @@ -1,13 +1,13 @@ --- title: "eth_gettransactionreceipt" -slug: "rpc-celo-eth_gettransactionreceipt" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_gettransactionreceipt" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const tatum = await TatumSDK.init({network: Network.CELO}) +const tatum = await TatumSDK.init({network: Network.CHILIZ}) -const tx = await tatum.rpc.getTransactionReceipt('0xa5d9c00750da011be46f6b0d567ffc23536ef820f660ce1398d2534a77370f0a') +const tx = await tatum.rpc.getTransactionReceipt('0x98ce8f8d9b941cda7d1f199daba347a321514cb223dee06ef7e4fa0094882fc7') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -43,7 +43,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs This method requires a single parameter: * **`transactionHash`**: The hash of the transaction for which you want to obtain the receipt. - * Example: `"0xa5d9c00750da011be46f6b0d567ffc23536ef820f660ce1398d2534a77370f0a"` + * Example: `"0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7"` ### Return Object @@ -72,7 +72,7 @@ Request: "id": 1, "method": "eth_getTransactionReceipt", "params": [ - "0xa5d9c00750da011be46f6b0d567ffc23536ef820f660ce1398d2534a77370f0a" + "0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7" ] } ``` @@ -81,41 +81,24 @@ Response: ```json { - "jsonrpc": "2.0", - "id": 1, - "result": { - "blockHash": "0x1091a5831b3556e80e53598c24e9d592e104dba0428f47f94c61523eb52d09d8", - "blockNumber": "0x316624", - "contractAddress": null, - "cumulativeGasUsed": "0x7ad81", - "effectiveGasPrice": "0x306dc421e", - "from": "0x53e8577c4347c365e4e0da5b57a589cb6f2ab848", - "gasUsed": "0x3c518", - "logs": [ - { - "address": "0x211500d1960bdb7ba3390347ffd8ad486b897a18", - "topics": [ - "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000074b4551c177592a908c6ab9ce671bfe8c1b5bd40", - "0x000000000000000000000000000000000000000000000000000056b990e70e00" - ], - "data": "0x", - "blockNumber": "0x316624", - "transactionHash": "0xa536596d043c03d709aaccbc53f421963fe3537274e86444cd984404cf9ecb13", - "transactionIndex": "0x4", - "blockHash": "0x1091a5831b3556e80e53598c24e9d592e104dba0428f47f94c61523eb52d09d8", - "logIndex": "0x3", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000020000010000000000000800000000000000000000000010000040000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000100000000000000000000000000000000002000000200000000000100000000000800000000000000000000020000000000000000000000200000000000000000000000000000000000000000000", - "status": "0x1", - "to": "0x211500d1960bdb7ba3390347ffd8ad486b897a18", - "transactionHash": "0xa536596d043c03d709aaccbc53f421963fe3537274e86444cd984404cf9ecb13", - "transactionIndex": "0x4", - "type": "0x0" - } + "jsonrpc": "2.0", + "id": 1, + "result": { + "blockHash": "0xb0ddfcdcc375afce9f365458c5035ca4aaf99f9fe8699522193e16a8718615b6", + "blockNumber": "0x5a9d4", + "transactionIndex": "0x0", + "transactionHash": "0x97d83656ca05890100149be18d0c2a2f94e5337e5e6a643ea78794cd418cdbc7", + "type": "0x2", + "from": "0x8bd5723981d3f96a6544519c4a075f5994919d3a", + "to": "0xa55d9ef16af921b70fed1421c1d298ca5a3a18f1", + "effectiveGasPrice": "0x5017ff700", + "contractAddress": null, + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "gasUsed": "0x12a68", + "cumulativeGasUsed": "0x12a68", + "status": "0x1" + } } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getunclecountbyblockhash.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getunclecountbyblockhash.md similarity index 83% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getunclecountbyblockhash.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getunclecountbyblockhash.md index 6fe93056..9e229999 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getunclecountbyblockhash.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getunclecountbyblockhash.md @@ -1,13 +1,13 @@ --- title: "eth_getunclecountbyblockhash" -slug: "rpc-celo-eth_getunclecountbyblockhash" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_getunclecountbyblockhash" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const result = await tatum.rpc.getUncleCountByBlockHash('0x98b066007760fad8c9e3246ac62dc34b96dee7b2a8dd362bc8576e78ee37775d') +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const result = await tatum.rpc.getUncleCountByBlockHash('0xdea4839f6bce4f97d9b92b68b054b8c637b20fdbc2b1deaace450b961946eb02') await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -45,7 +45,7 @@ Uncles are blocks that are not included in the main blockchain but are still val The `eth_getUncleCountByBlockHash` method takes one parameter: * `blockHash`: The hash of the block for which you want to get the uncle count. - * Example value: `"0x98b066007760fad8c9e3246ac62dc34b96dee7b2a8dd362bc8576e78ee37775d"` + * Example value: `"0x3a3e528dcd6e05a614c9241b0a9296db961fa6a92e05af9f6c0d7d2f6bc92f7a"` ### Return Object diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getunclecountbyblocknumber.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getunclecountbyblocknumber.md similarity index 86% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getunclecountbyblocknumber.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getunclecountbyblocknumber.md index 27b2a8fc..b4b5fdc5 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_getunclecountbyblocknumber.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_getunclecountbyblocknumber.md @@ -1,13 +1,13 @@ --- title: "eth_getunclecountbyblocknumber" -slug: "rpc-celo-eth_getunclecountbyblocknumber" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_getunclecountbyblocknumber" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -const result = await tatum.rpc.getUncleCountByBlockNumber('0x14FCCCA') +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const result = await tatum.rpc.getUncleCountByBlockNumber(6666667) await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs ``` @@ -45,7 +45,7 @@ Uncles are blocks that are not included in the main blockchain but are still val The `eth_getUncleCountByBlockHash` method takes one parameter: * `blockNumber`: The number of the block for which you want to get the uncle count. - * Example value: `"0x14FCCCA"` + * Example value: `"0x12345"` ### Return Object @@ -65,7 +65,7 @@ Here is an example JSON-RPC request and response for the `eth_getUncleCountByBlo "jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": [ - "0x14FCCCA" + "0x12345" ] } ``` diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_maxpriorityfeepergas.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_maxpriorityfeepergas.md new file mode 100644 index 00000000..10983cac --- /dev/null +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_maxpriorityfeepergas.md @@ -0,0 +1,16 @@ +--- +title: "eth_maxpriorityfeepergas" +slug: "rpc-chiliz-eth_maxpriorityfeepergas" +excerpt: "Chiliz RPC" +category: 65c5e93c623cad004b45d505 +hidden: false +metadata: + description: "Chiliz RPC" + image: [] + keywords: "chiliz, rpc" + robots: "index" +createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)" +updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" +--- +[block:html]{"html":"
\n
Archive Method
\n

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

\n
"}[/block] + diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_sendrawtransaction.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_sendrawtransaction.md similarity index 85% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_sendrawtransaction.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_sendrawtransaction.md index aa57e586..7a719297 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/eth_sendrawtransaction.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/eth_sendrawtransaction.md @@ -1,13 +1,13 @@ --- title: "eth_sendrawtransaction" -slug: "rpc-celo-eth_sendrawtransaction" -excerpt: "Celo RPC" +slug: "rpc-chiliz-eth_sendrawtransaction" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, 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, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.CHILIZ}) 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 transaction to the network. This method is particularly useful when you want to have full control over the signing process, e.g., when using hardware wallets, cold storage, or custom signing libraries. It can be utilized in various use cases, such as transferring, interacting with smart contracts, or deploying new contracts. ### Parameters diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/txpool_content.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/txpool_content.md new file mode 100644 index 00000000..ef4e0f6f --- /dev/null +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/txpool_content.md @@ -0,0 +1,143 @@ +--- +title: "txpool_content" +slug: "rpc-chiliz-txpool_content" +excerpt: "Chiliz RPC" +category: 65c5e93c623cad004b45d505 +hidden: false +metadata: + description: "Chiliz RPC" + image: [] + keywords: "chiliz, 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, Chiliz, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const content = await tatum.rpc.txPoolContent() + +await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs +``` +{% endcode %} +{% endtab %} +{% endtabs %} + +### Overview + +The `txpool_content` method provides information about the transactions currently pending in the transaction pool of the Flare node. It can be helpful for developers and node operators to monitor and manage the transaction pool, especially in scenarios where it's necessary to analyze transaction congestion or prioritize specific transactions. + +Use cases for the `txpool_content` method include: + +* Analyzing network congestion by inspecting the transaction pool +* Prioritizing transactions by gas price +* Monitoring transactions from specific addresses +* Debugging and troubleshooting pending transactions + +### Parameters + +This method does not require any parameters. + +### Return Object + +The `txpool_content` method returns an object with two fields: `pending` and `queued`. Each field contains a nested object with addresses as keys and their respective transactions as values. + +* **`pending`**: An object containing transactions that are currently pending for inclusion in the next block(s). +* **`queued`**: An object containing transactions that are currently queued (i.e., transactions that do not meet certain criteria for inclusion in the next block, like low gas price or nonce gaps). + +Each transaction object includes the following information: + +* **`hash`**: The hash of the transaction (32 bytes). +* **`nonce`**: The number of transactions sent by the sender prior to this one (integer). +* **`blockHash`**: The hash of the block in which the transaction was included (32 bytes), or `null` if the transaction is not yet mined. +* **`blockNumber`**: The block number in which the transaction was included (integer), or `null` if the transaction is not yet mined. +* **`transactionIndex`**: The index of the transaction in the block (integer), or `null` if the transaction is not yet mined. +* **`from`**: The address of the sender (20 bytes). +* **`to`**: The address of the receiver (20 bytes), or `null` for contract creation transactions. +* **`value`**: The value transferred in the transaction, in wei. +* **`gasPrice`**: The price of gas for the transaction, in wei. +* **`maxFeePerGas`** - The maximum fee per gas set in the transaction. +* **`maxPriorityFeePerGas`** - The maximum priority gas fee set in the transaction. +* **`gas`**: The maximum amount of gas the transaction is allowed to consume. +* **`input`**: The data payload of the transaction (string), or `0x` for simple value transfers. + +### JSON-RPC Request Example + +```json +jsonCopy code{ + "id": 1, + "jsonrpc": "2.0", + "method": "txpool_content", + "params": [] +} +``` + +### JSON-RPC Response Example + +```json +{ + "jsonrpc": "2.0", + "id": 1, + "result": { + "pending": { + "0x01d3B93AaADE8A4066DAaBc8fd8482173A6aD120": { + "197": { + "blockHash": null, + "blockNumber": null, + "from": "0x01d3b93aaade8a4066daabc8fd8482173a6ad120", + "gas": "0x1c9c380", + "gasPrice": "0x16cf917", + "maxFeePerGas": "0x16cf917", + "maxPriorityFeePerGas": "0x16cf917", + "hash": "0x1da9c2a8f0787bac4747c5ed1035e81f6a6745aeea43943e63635fc367b817f7", + "input": "0x00000000", + "nonce": "0xc5", + "to": "0x4f023eb8c6bc3116e35b67e03bf2c17f2e4f7e7e", + "transactionIndex": null, + "value": "0x0", + "type": "0x2", + "accessList": [], + "chainId": "0xaa36a7", + "v": "0x1", + "r": "0x14f7578b57fd9f87acf5bbceb0a47f2d2d3f39b49169357457618c9634c45e8a", + "s": "0x775fa9976c571751a79f069f8c96f6489f286246e157a31fa99b33062631b46d" + } + } + }, + "queued": { + "0x03321406635a04D37Cf9211F2ea3AFc83a87e777": { + "5096281": { + "blockHash": null, + "blockNumber": null, + "from": "0x03321406635a04d37cf9211f2ea3afc83a87e777", + "gas": "0x5208", + "gasPrice": "0xc570bd200", + "hash": "0x05f5fb8e46793fafdc924917c0afdd0afb4a53cb562542d5399234bc1eff759b", + "input": "0x", + "nonce": "0x4dc359", + "to": "0x77b1c86ab0aa9066803ed567e1f00973976638f6", + "transactionIndex": null, + "value": "0xb1a2b96602aa20", + "type": "0x0", + "chainId": "0xaa36a7", + "v": "0x1546d72", + "r": "0x62bd220b95ec13827c0d9b643b9beaf6f4c66d4a8ef08bb10f93d5e5c7ae0068", + "s": "0x467f76847cfdf43a002defe054030c1a88a9e6f56539c051c3cba46b2dd2cc89" + } + } + } + } +``` + +\ diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/txpool_inspect.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/txpool_inspect.md new file mode 100644 index 00000000..b0106554 --- /dev/null +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/txpool_inspect.md @@ -0,0 +1,90 @@ +--- +title: "txpool_inspect" +slug: "rpc-chiliz-txpool_inspect" +excerpt: "Chiliz RPC" +category: 65c5e93c623cad004b45d505 +hidden: false +metadata: + description: "Chiliz RPC" + image: [] + keywords: "chiliz, 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, Chiliz, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const inspect = await tatum.rpc.txPoolInspect() + +await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs +``` +{% endcode %} +{% endtab %} +{% endtabs %} + +### 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. + +### Parameters + +The `txpool_inspect` method takes one optional parameter: + +* **`include`**: A string specifying the type of transactions to include in the response. Possible values are **`pending`** (default) and **`queued`**. + +### Return Object + +The `txpool_inspect` method returns an object with the following fields: + +* **`pending`**: An array of transaction objects, with textual data +* **`queued`**: An array of transaction objects, with textual data + +## Example Request: + +```json +{ + "jsonrpc": "2.0", + "method": "txpool_inspect", + "params": [ + "pending" + ], + "id": 1 +} +``` + +## Example Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1, + "result": { + "pending": { + "0x01d3B93AaADE8A4066DAaBc8fd8482173A6aD120": { + "197": "0x4f023eB8C6BC3116E35B67E03bf2C17f2e4f7e7e: 0 wei + 30000000 gas × 23918871 wei" + } + }, + "queued": { + "0x03321406635a04D37Cf9211F2ea3AFc83a87e777": { + "5096281": "0x77b1C86Ab0aa9066803eD567e1F00973976638F6: 49999988041886240 wei + 21000 gas × 53000000000 wei", + "8308536": "0x77b1C86Ab0aa9066803eD567e1F00973976638F6: 100000000000000000 wei + 21000 gas × 53000000000 wei", + "231211221": "0x77b1C86Ab0aa9066803eD567e1F00973976638F6: 1000000000000000 wei + 21000 gas × 11958113760 wei" + } + } + } +} +``` + +\ diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/txpool_status.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/txpool_status.md new file mode 100644 index 00000000..04438c8d --- /dev/null +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/txpool_status.md @@ -0,0 +1,78 @@ +--- +title: "txpool_status" +slug: "rpc-chiliz-txpool_status" +excerpt: "Chiliz RPC" +category: 65c5e93c623cad004b45d505 +hidden: false +metadata: + description: "Chiliz RPC" + image: [] + keywords: "chiliz, 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, Chiliz, Network } from '@tatumio/tatum' + +const tatum = await TatumSDK.init({network: Network.CHILIZ}) + +const status = await tatum.rpc.txPoolStatus() + +await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs +``` +{% endcode %} +{% endtab %} +{% endtabs %} + +### Overview + +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. + +### Parameters + +This method does not take any parameters. + +### Return Object + +The `txpool_status` method returns an object with the following fields: + +* **`pending`**: Number of pending transactions in the pool +* **`queued`**: Number of queued transactions in the pool + +### Example Request + +```json +{ + "jsonrpc":"2.0", + "method":"txpool_status", + "params":[], + "id":1 +} +``` + +### Example Response + +```json +{ + "jsonrpc": "2.0", + "id": 1, + "result": { + "pending": 4, + "queued": 10 + } +} +``` + +In this example response, there are currently 4 pending transactions and 10 queued transactions waiting to be processed by miners. diff --git a/v1.0/RPC Nodes/rpc-evm/rpc-celo/web3_clientversion.md b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/web3_clientversion.md similarity index 85% rename from v1.0/RPC Nodes/rpc-evm/rpc-celo/web3_clientversion.md rename to v1.0/RPC Nodes/rpc-evm/rpc-chiliz/web3_clientversion.md index d3077107..fd1feff5 100644 --- a/v1.0/RPC Nodes/rpc-evm/rpc-celo/web3_clientversion.md +++ b/v1.0/RPC Nodes/rpc-evm/rpc-chiliz/web3_clientversion.md @@ -1,13 +1,13 @@ --- title: "web3_clientversion" -slug: "rpc-celo-web3_clientversion" -excerpt: "Celo RPC" +slug: "rpc-chiliz-web3_clientversion" +excerpt: "Chiliz RPC" category: 65c5e93c623cad004b45d505 hidden: false metadata: - description: "Celo RPC" + description: "Chiliz RPC" image: [] - keywords: "celo, rpc" + keywords: "chiliz, rpc" robots: "index" createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)" updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" @@ -21,10 +21,9 @@ updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" {% code overflow="wrap" lineNumbers="true" %} ```typescript // yarn add @tatumio/tatum +import { TatumSDK, Chiliz, Network } from '@tatumio/tatum' -import { TatumSDK, Celo, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.CELO}) +const tatum = await TatumSDK.init({network: Network.CHILIZ}) const version = await tatum.rpc.clientVersion() @@ -71,8 +70,7 @@ The `web3_clientVersion` method returns a string representing the version of the { "jsonrpc": "2.0", "id": 67, - "result": "v0.8.15" + "result": "v0.9.0" } ``` -In the above example, the client software being used is in version 0.8.18..