From 659faffe842d84ebd38e93f4536f3104141b0a4e Mon Sep 17 00:00:00 2001 From: Ruben Buniatyan Date: Thu, 14 Sep 2023 23:59:25 +0200 Subject: [PATCH] Update JSON-RPC --- docs/interacting/json-rpc/admin.md | 18 +- docs/interacting/json-rpc/clique.md | 15 +- docs/interacting/json-rpc/debug.md | 203 ++++++++++----- docs/interacting/json-rpc/eth.md | 192 ++++++++------ docs/interacting/json-rpc/net.md | 12 +- docs/interacting/json-rpc/parity.md | 40 +-- docs/interacting/json-rpc/personal.md | 20 +- docs/interacting/json-rpc/proof.md | 69 ++++- docs/interacting/json-rpc/trace.md | 350 +++++++++++++++++++++++--- docs/interacting/json-rpc/txpool.md | 63 ++++- docs/interacting/json-rpc/web3.md | 5 +- 11 files changed, 754 insertions(+), 233 deletions(-) diff --git a/docs/interacting/json-rpc/admin.md b/docs/interacting/json-rpc/admin.md index b976f9faf..94d8b445f 100644 --- a/docs/interacting/json-rpc/admin.md +++ b/docs/interacting/json-rpc/admin.md @@ -15,8 +15,10 @@ Adds given node. 1. `enode`: *string* + 2. `addToStaticNodes`: *boolean* + @@ -89,8 +91,13 @@ Information about this node - `listenAddr`: *string* - `name`: *string* - `ports`: *object* - - `protocols`: *object* - + - `discovery`: *string* (hex integer) + - `listener`: *string* (hex integer) + - `protocols`: map of *object* + - `network`: *string* (hex integer) + - `difficulty`: *string* (hex integer) + - `genesis`: *string* (hash) + - `head`: *string* (hash) @@ -104,6 +111,7 @@ Displays a list of connected peers including information about them (`clientId`, 1. `includeDetails`: *boolean* + @@ -145,7 +153,6 @@ List of connected peers including information - `lastSignal`: *string* - `port`: *string* (hex integer) - @@ -179,8 +186,7 @@ curl localhost:8545 \ } ``` -`result`: *object* - +`result`: *integer* @@ -193,8 +199,10 @@ Removes given node. 1. `enode`: *string* + 2. `removeFromStaticNodes`: *boolean* + diff --git a/docs/interacting/json-rpc/clique.md b/docs/interacting/json-rpc/clique.md index 41086f912..7891b3325 100644 --- a/docs/interacting/json-rpc/clique.md +++ b/docs/interacting/json-rpc/clique.md @@ -16,6 +16,7 @@ This method drops a currently running proposal. The signer will not cast further 1. `signer`: *string* (address) + @@ -56,6 +57,7 @@ Retrieves the signer of the block with the given hash. Returns error of a block 1. `hash`: *string* (hash) + @@ -166,6 +168,7 @@ Retrieves the list of authorized signers at the specified block by hash. 1. `hash`: *string* (hash) + @@ -206,6 +209,7 @@ Retrieves the list of authorized signers at the specified block by hash but with 1. `hash`: *string* (hash) + @@ -246,6 +250,7 @@ Retrieves the list of authorized signers at the specified block by block number. 1. `number`: *string* (hex integer) + @@ -311,8 +316,7 @@ curl localhost:8545 \ - `hash`: *string* (hash) - `number`: *string* (hex integer) - `signerLimit`: *string* (hex integer) - - `signers`: *object* - + - `signers`: map of *string* (hex integer) @@ -326,6 +330,7 @@ Retrieves the state snapshot at a given block. 1. `hash`: *string* (hash) + @@ -356,8 +361,7 @@ curl localhost:8545 \ - `hash`: *string* (hash) - `number`: *string* (hex integer) - `signerLimit`: *string* (hex integer) - - `signers`: *object* - + - `signers`: map of *string* (hex integer) @@ -371,6 +375,7 @@ Forces Clique block producer to produce a new block 1. `parentHash`: *string* (hash) + @@ -410,8 +415,10 @@ Adds a new authorization proposal that the signer will attempt to push through. 1. `signer`: *string* (address) + 2. `vote`: *boolean* + diff --git a/docs/interacting/json-rpc/debug.md b/docs/interacting/json-rpc/debug.md index 298be1878..d6832cfb0 100644 --- a/docs/interacting/json-rpc/debug.md +++ b/docs/interacting/json-rpc/debug.md @@ -16,6 +16,7 @@ Deletes a slice of a chain from the tree on all branches (Nethermind specific). 1. `startNumber`: *string* (hex integer) + @@ -56,6 +57,7 @@ Retrieves a block in the RLP-serialized form. 1. `number`: *string* (hex integer) + @@ -82,7 +84,7 @@ curl localhost:8545 \ } ``` -`result`: array of *string* (hex data) +`result`: *string* (hex data) @@ -96,6 +98,7 @@ Retrieves a block in the RLP-serialized form. 1. `hash`: *string* (hash) + @@ -122,7 +125,7 @@ curl localhost:8545 \ } ``` -`result`: array of *string* (hex data) +`result`: *string* (hex data) @@ -136,6 +139,7 @@ Retrieves a representation of tree branches on a given chain level (Nethermind s 1. `number`: *string* (hex integer) + @@ -170,7 +174,6 @@ curl localhost:8545 \ - `wasProcessed`: *boolean* - `hasBlockOnMainChain`: *boolean* - @@ -182,8 +185,10 @@ Retrieves the Nethermind configuration value, e.g. JsonRpc.Enabled 1. `category`: *string* + 2. `name`: *string* + @@ -212,7 +217,6 @@ curl localhost:8545 \ `result`: *object* - @@ -249,7 +253,6 @@ curl localhost:8545 \ `result`: *object* - `currentStage`: *string* - @@ -261,6 +264,7 @@ Insert receipts for the block after verifying receipts root correctness. 1. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + 2. `receiptForRpc`: array of *object* - `blobGasPrice`: *string* (hex integer) - `blobGasUsed`: *string* (hex integer) @@ -276,7 +280,7 @@ Insert receipts for the block after verifying receipts root correctness. - `address`: *string* (address) - `blockHash`: *string* (hash) - `blockNumber`: *string* (hex integer) - - `data`: array of *string* (hex data) + - `data`: *string* (hex data) - `logIndex`: *string* (hex integer) - `removed`: *boolean* - `topics`: array of *string* (hash) @@ -288,7 +292,7 @@ Insert receipts for the block after verifying receipts root correctness. - `to`: *string* (address) - `transactionHash`: *string* (hash) - `transactionIndex`: *string* (hex integer) - - `type`: *string* (transaction type) + - `type`: *integer* @@ -331,6 +335,7 @@ Sets the block number up to which receipts will be migrated to (Nethermind speci 1. `blockNumber`: *string* (hex integer) + @@ -371,6 +376,7 @@ Updates / resets head block - use only when the node got stuck due to DB / memor 1. `blockHash`: *string* (hash) + @@ -410,6 +416,7 @@ Writes to a file the full stack trace of all invoked opcodes of the transaction 1. `blockHash`: *string* (hash) + 2. `options`: *object* - `disableMemory`: *boolean* - `disableStack`: *boolean* @@ -458,7 +465,8 @@ Returns the full stack trace of all invoked opcodes of all transactions that wer -1. `blockRlp`: array of *string* (hex data) +1. `blockRlp`: *string* (hex data) + 2. `options`: *object* - `disableMemory`: *boolean* - `disableStack`: *boolean* @@ -496,12 +504,20 @@ curl localhost:8545 \ ``` `result`: array of *object* - - `structLogs`: *object* + - `structLogs`: array of *object* + - `depth`: *string* (hex integer) + - `error`: *string* + - `gas`: *string* (hex integer) + - `gasCost`: *string* (hex integer) + - `memory`: array of *string* + - `opcode`: *string* + - `programCounter`: *string* (hex integer) + - `stack`: array of *string* + - `storage`: map of *string* - `failed`: *boolean* - `gas`: *string* (hex integer) - - `returnValue`: array of *string* (hex data) - - `storagesByDepth`: *object* - + - `returnValue`: *string* (hex data) + - `storagesByDepth`: array of map of *string* @@ -514,6 +530,7 @@ Similar to debug_traceBlock, this method accepts a block hash and replays the bl 1. `blockHash`: *string* (hash) + 2. `options`: *object* - `disableMemory`: *boolean* - `disableStack`: *boolean* @@ -551,12 +568,20 @@ curl localhost:8545 \ ``` `result`: array of *object* - - `structLogs`: *object* + - `structLogs`: array of *object* + - `depth`: *string* (hex integer) + - `error`: *string* + - `gas`: *string* (hex integer) + - `gasCost`: *string* (hex integer) + - `memory`: array of *string* + - `opcode`: *string* + - `programCounter`: *string* (hex integer) + - `stack`: array of *string* + - `storage`: map of *string* - `failed`: *boolean* - `gas`: *string* (hex integer) - - `returnValue`: array of *string* (hex data) - - `storagesByDepth`: *object* - + - `returnValue`: *string* (hex data) + - `storagesByDepth`: array of map of *string* @@ -569,6 +594,7 @@ Similar to debug_traceBlock, this method accepts a block number as well as "late 1. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + 2. `options`: *object* - `disableMemory`: *boolean* - `disableStack`: *boolean* @@ -606,12 +632,20 @@ curl localhost:8545 \ ``` `result`: array of *object* - - `structLogs`: *object* + - `structLogs`: array of *object* + - `depth`: *string* (hex integer) + - `error`: *string* + - `gas`: *string* (hex integer) + - `gasCost`: *string* (hex integer) + - `memory`: array of *string* + - `opcode`: *string* + - `programCounter`: *string* (hex integer) + - `stack`: array of *string* + - `storage`: map of *string* - `failed`: *boolean* - `gas`: *string* (hex integer) - - `returnValue`: array of *string* (hex data) - - `storagesByDepth`: *object* - + - `returnValue`: *string* (hex data) + - `storagesByDepth`: array of map of *string* @@ -625,18 +659,17 @@ This method lets you run an eth_call within the context of the given block execu 1. `call`: *object* - `accessList`: array of *object* - - `address`: *string* (address) - - `storageKeys`: array of *string* (hex integer) - - `blobVersionedHashes`: array of array of *string* (hex data) + - `address`: *string* (address) + - `storageKeys`: array of *string* (hex integer) + - `blobVersionedHashes`: array of *string* (hex data) - `blockHash`: *string* (hash) - `blockNumber`: *string* (hex integer) - `chainId`: *string* (hex integer) - - `data`: array of *string* (hex data) - `from`: *string* (address) - `gas`: *string* (hex integer) - `gasPrice`: *string* (hex integer) - `hash`: *string* (hash) - - `input`: array of *string* (hex data) + - `input`: *string* (hex data) - `maxFeePerBlobGas`: *string* (hex integer) - `maxFeePerGas`: *string* (hex integer) - `maxPriorityFeePerGas`: *string* (hex integer) @@ -645,12 +678,13 @@ This method lets you run an eth_call within the context of the given block execu - `s`: *string* (hex integer) - `to`: *string* (address) - `transactionIndex`: *string* (hex integer) - - `type`: *string* (transaction type) + - `type`: *integer* - `v`: *string* (hex integer) - `value`: *string* (hex integer) - `yParity`: *string* (hex integer) 2. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + 3. `options`: *object* - `disableMemory`: *boolean* - `disableStack`: *boolean* @@ -688,12 +722,20 @@ curl localhost:8545 \ ``` `result`: *object* - - `structLogs`: *object* + - `structLogs`: array of *object* + - `depth`: *string* (hex integer) + - `error`: *string* + - `gas`: *string* (hex integer) + - `gasCost`: *string* (hex integer) + - `memory`: array of *string* + - `opcode`: *string* + - `programCounter`: *string* (hex integer) + - `stack`: array of *string* + - `storage`: map of *string* - `failed`: *boolean* - `gas`: *string* (hex integer) - - `returnValue`: array of *string* (hex data) - - `storagesByDepth`: *object* - + - `returnValue`: *string* (hex data) + - `storagesByDepth`: array of map of *string* @@ -706,6 +748,7 @@ This method will attempt to run the transaction in the exact same manner as it w 1. `transactionHash`: *string* (hash) + 2. `options`: *object* - `disableMemory`: *boolean* - `disableStack`: *boolean* @@ -743,25 +786,33 @@ curl localhost:8545 \ ``` `result`: *object* - - `structLogs`: *object* + - `structLogs`: array of *object* + - `depth`: *string* (hex integer) + - `error`: *string* + - `gas`: *string* (hex integer) + - `gasCost`: *string* (hex integer) + - `memory`: array of *string* + - `opcode`: *string* + - `programCounter`: *string* (hex integer) + - `stack`: array of *string* + - `storage`: map of *string* - `failed`: *boolean* - `gas`: *string* (hex integer) - - `returnValue`: array of *string* (hex data) - - `storagesByDepth`: *object* - + - `returnValue`: *string* (hex data) + - `storagesByDepth`: array of map of *string* ### debug_traceTransactionByBlockAndIndex - - 1. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + 2. `txIndex`: *string* (hex integer) + 3. `options`: *object* - `disableMemory`: *boolean* - `disableStack`: *boolean* @@ -799,25 +850,33 @@ curl localhost:8545 \ ``` `result`: *object* - - `structLogs`: *object* + - `structLogs`: array of *object* + - `depth`: *string* (hex integer) + - `error`: *string* + - `gas`: *string* (hex integer) + - `gasCost`: *string* (hex integer) + - `memory`: array of *string* + - `opcode`: *string* + - `programCounter`: *string* (hex integer) + - `stack`: array of *string* + - `storage`: map of *string* - `failed`: *boolean* - `gas`: *string* (hex integer) - - `returnValue`: array of *string* (hex data) - - `storagesByDepth`: *object* - + - `returnValue`: *string* (hex data) + - `storagesByDepth`: array of map of *string* ### debug_traceTransactionByBlockhashAndIndex - - 1. `blockHash`: *string* (hash) + 2. `txIndex`: *string* (hex integer) + 3. `options`: *object* - `disableMemory`: *boolean* - `disableStack`: *boolean* @@ -855,25 +914,33 @@ curl localhost:8545 \ ``` `result`: *object* - - `structLogs`: *object* + - `structLogs`: array of *object* + - `depth`: *string* (hex integer) + - `error`: *string* + - `gas`: *string* (hex integer) + - `gasCost`: *string* (hex integer) + - `memory`: array of *string* + - `opcode`: *string* + - `programCounter`: *string* (hex integer) + - `stack`: array of *string* + - `storage`: map of *string* - `failed`: *boolean* - `gas`: *string* (hex integer) - - `returnValue`: array of *string* (hex data) - - `storagesByDepth`: *object* - + - `returnValue`: *string* (hex data) + - `storagesByDepth`: array of map of *string* ### debug_traceTransactionInBlockByHash - - -1. `blockRlp`: array of *string* (hex data) +1. `blockRlp`: *string* (hex data) + 2. `transactionHash`: *string* (hash) + 3. `options`: *object* - `disableMemory`: *boolean* - `disableStack`: *boolean* @@ -911,25 +978,33 @@ curl localhost:8545 \ ``` `result`: *object* - - `structLogs`: *object* + - `structLogs`: array of *object* + - `depth`: *string* (hex integer) + - `error`: *string* + - `gas`: *string* (hex integer) + - `gasCost`: *string* (hex integer) + - `memory`: array of *string* + - `opcode`: *string* + - `programCounter`: *string* (hex integer) + - `stack`: array of *string* + - `storage`: map of *string* - `failed`: *boolean* - `gas`: *string* (hex integer) - - `returnValue`: array of *string* (hex data) - - `storagesByDepth`: *object* - + - `returnValue`: *string* (hex data) + - `storagesByDepth`: array of map of *string* ### debug_traceTransactionInBlockByIndex - - -1. `blockRlp`: array of *string* (hex data) +1. `blockRlp`: *string* (hex data) + 2. `txIndex`: *string* (hex integer) + 3. `options`: *object* - `disableMemory`: *boolean* - `disableStack`: *boolean* @@ -967,12 +1042,20 @@ curl localhost:8545 \ ``` `result`: *object* - - `structLogs`: *object* + - `structLogs`: array of *object* + - `depth`: *string* (hex integer) + - `error`: *string* + - `gas`: *string* (hex integer) + - `gasCost`: *string* (hex integer) + - `memory`: array of *string* + - `opcode`: *string* + - `programCounter`: *string* (hex integer) + - `stack`: array of *string* + - `storage`: map of *string* - `failed`: *boolean* - `gas`: *string* (hex integer) - - `returnValue`: array of *string* (hex data) - - `storagesByDepth`: *object* - + - `returnValue`: *string* (hex data) + - `storagesByDepth`: array of map of *string* diff --git a/docs/interacting/json-rpc/eth.md b/docs/interacting/json-rpc/eth.md index 5321b762a..9671317e1 100644 --- a/docs/interacting/json-rpc/eth.md +++ b/docs/interacting/json-rpc/eth.md @@ -51,18 +51,17 @@ Executes a tx call (does not create a transaction) 1. `transactionCall`: *object* - `accessList`: array of *object* - - `address`: *string* (address) - - `storageKeys`: array of *string* (hex integer) - - `blobVersionedHashes`: array of array of *string* (hex data) + - `address`: *string* (address) + - `storageKeys`: array of *string* (hex integer) + - `blobVersionedHashes`: array of *string* (hex data) - `blockHash`: *string* (hash) - `blockNumber`: *string* (hex integer) - `chainId`: *string* (hex integer) - - `data`: array of *string* (hex data) - `from`: *string* (address) - `gas`: *string* (hex integer) - `gasPrice`: *string* (hex integer) - `hash`: *string* (hash) - - `input`: array of *string* (hex data) + - `input`: *string* (hex data) - `maxFeePerBlobGas`: *string* (hex integer) - `maxFeePerGas`: *string* (hex integer) - `maxPriorityFeePerGas`: *string* (hex integer) @@ -71,13 +70,14 @@ Executes a tx call (does not create a transaction) - `s`: *string* (hex integer) - `to`: *string* (address) - `transactionIndex`: *string* (hex integer) - - `type`: *string* (transaction type) + - `type`: *integer* - `v`: *string* (hex integer) - `value`: *string* (hex integer) - `yParity`: *string* (hex integer) 2. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + @@ -153,18 +153,17 @@ Creates an [EIP2930](https://eips.ethereum.org/EIPS/eip-2930) type AccessList fo 1. `transactionCall`: *object* - `accessList`: array of *object* - - `address`: *string* (address) - - `storageKeys`: array of *string* (hex integer) - - `blobVersionedHashes`: array of array of *string* (hex data) + - `address`: *string* (address) + - `storageKeys`: array of *string* (hex integer) + - `blobVersionedHashes`: array of *string* (hex data) - `blockHash`: *string* (hash) - `blockNumber`: *string* (hex integer) - `chainId`: *string* (hex integer) - - `data`: array of *string* (hex data) - `from`: *string* (address) - `gas`: *string* (hex integer) - `gasPrice`: *string* (hex integer) - `hash`: *string* (hash) - - `input`: array of *string* (hex data) + - `input`: *string* (hex data) - `maxFeePerBlobGas`: *string* (hex integer) - `maxFeePerGas`: *string* (hex integer) - `maxPriorityFeePerGas`: *string* (hex integer) @@ -173,14 +172,16 @@ Creates an [EIP2930](https://eips.ethereum.org/EIPS/eip-2930) type AccessList fo - `s`: *string* (hex integer) - `to`: *string* (address) - `transactionIndex`: *string* (hex integer) - - `type`: *string* (transaction type) + - `type`: *integer* - `v`: *string* (hex integer) - `value`: *string* (hex integer) - `yParity`: *string* (hex integer) 2. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + 3. `optimize`: *boolean* + @@ -213,7 +214,6 @@ curl localhost:8545 \ - `storageKeys`: array of *string* (hex integer) - `gasUsed`: *string* (hex integer) - @@ -226,18 +226,17 @@ Executes a tx call and returns gas used (does not create a transaction) 1. `transactionCall`: *object* - `accessList`: array of *object* - - `address`: *string* (address) - - `storageKeys`: array of *string* (hex integer) - - `blobVersionedHashes`: array of array of *string* (hex data) + - `address`: *string* (address) + - `storageKeys`: array of *string* (hex integer) + - `blobVersionedHashes`: array of *string* (hex data) - `blockHash`: *string* (hash) - `blockNumber`: *string* (hex integer) - `chainId`: *string* (hex integer) - - `data`: array of *string* (hex data) - `from`: *string* (address) - `gas`: *string* (hex integer) - `gasPrice`: *string* (hex integer) - `hash`: *string* (hash) - - `input`: array of *string* (hex data) + - `input`: *string* (hex data) - `maxFeePerBlobGas`: *string* (hex integer) - `maxFeePerGas`: *string* (hex integer) - `maxPriorityFeePerGas`: *string* (hex integer) @@ -246,13 +245,14 @@ Executes a tx call and returns gas used (does not create a transaction) - `s`: *string* (hex integer) - `to`: *string* (address) - `transactionIndex`: *string* (hex integer) - - `type`: *string* (transaction type) + - `type`: *integer* - `v`: *string* (hex integer) - `value`: *string* (hex integer) - `yParity`: *string* (hex integer) 2. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + @@ -292,7 +292,9 @@ Returns block fee history. 1. `blockCount`: *string* (hex integer) + 2. `newestBlock`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + 3. `rewardPercentiles`: array of *object* @@ -328,7 +330,6 @@ curl localhost:8545 \ - `oldestBlock`: *string* (hex integer) - `reward`: array of array of *string* (hex integer) - @@ -340,8 +341,10 @@ Retrieves Accounts via Address and Blocknumber 1. `accountAddress`: *string* (address) + 2. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + @@ -374,7 +377,6 @@ curl localhost:8545 \ - `nonce`: *string* (hex integer) - `storageRoot`: *string* (hash) - @@ -386,8 +388,10 @@ Returns account balance 1. `address`: *string* (address) + 2. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + @@ -427,8 +431,10 @@ Retrieves a block by hash 1. `blockHash`: *string* (hash) + 2. `returnFullTransactionObjects`: *boolean* + @@ -461,20 +467,20 @@ curl localhost:8545 \ - `blobGasUsed`: *string* (hex integer) - `difficulty`: *string* (hex integer) - `excessBlobGas`: *string* (hex integer) - - `extraData`: array of *string* (hex data) + - `extraData`: *string* (hex data) - `gasLimit`: *string* (hex integer) - `gasUsed`: *string* (hex integer) - `hash`: *string* (hash) - `logsBloom`: *string* (hex data) - `miner`: *string* (address) - `mixHash`: *string* (hash) - - `nonce`: array of *string* (hex data) + - `nonce`: *string* (hex data) - `number`: *string* (hex integer) - `parentBeaconBlockRoot`: *string* (hash) - `parentHash`: *string* (hash) - `receiptsRoot`: *string* (hash) - `sha3Uncles`: *string* (hash) - - `signature`: array of *string* (hex data) + - `signature`: *string* (hex data) - `size`: *string* (hex integer) - `stateRoot`: *string* (hash) - `step`: *string* (hex integer) @@ -490,7 +496,6 @@ curl localhost:8545 \ - `validatorIndex`: *string* (hex integer) - `withdrawalsRoot`: *string* (hash) - @@ -502,8 +507,10 @@ Retrieves a block by number 1. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + 2. `returnFullTransactionObjects`: *boolean* + @@ -536,20 +543,20 @@ curl localhost:8545 \ - `blobGasUsed`: *string* (hex integer) - `difficulty`: *string* (hex integer) - `excessBlobGas`: *string* (hex integer) - - `extraData`: array of *string* (hex data) + - `extraData`: *string* (hex data) - `gasLimit`: *string* (hex integer) - `gasUsed`: *string* (hex integer) - `hash`: *string* (hash) - `logsBloom`: *string* (hex data) - `miner`: *string* (address) - `mixHash`: *string* (hash) - - `nonce`: array of *string* (hex data) + - `nonce`: *string* (hex data) - `number`: *string* (hex integer) - `parentBeaconBlockRoot`: *string* (hash) - `parentHash`: *string* (hash) - `receiptsRoot`: *string* (hash) - `sha3Uncles`: *string* (hash) - - `signature`: array of *string* (hex data) + - `signature`: *string* (hex data) - `size`: *string* (hex integer) - `stateRoot`: *string* (hash) - `step`: *string* (hex integer) @@ -565,7 +572,6 @@ curl localhost:8545 \ - `validatorIndex`: *string* (hex integer) - `withdrawalsRoot`: *string* (hash) - @@ -578,6 +584,7 @@ Returns number of transactions in the block block hash 1. `blockHash`: *string* (hash) + @@ -618,6 +625,7 @@ Returns number of transactions in the block by block number 1. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + @@ -657,8 +665,10 @@ Returns account code at given address and block 1. `address`: *string* (address) + 2. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + @@ -685,7 +695,7 @@ curl localhost:8545 \ } ``` -`result`: array of *string* (hex data) +`result`: *string* (hex data) @@ -699,6 +709,7 @@ Reads filter changes 1. `filterId`: *string* (hex integer) + @@ -739,6 +750,7 @@ Reads filter changes 1. `filterId`: *string* (hex integer) + @@ -766,6 +778,16 @@ curl localhost:8545 \ ``` `result`: array of *object* + - `address`: *string* (address) + - `blockHash`: *string* (hash) + - `blockNumber`: *string* (hex integer) + - `data`: *string* (hex data) + - `logIndex`: *string* (hex integer) + - `removed`: *boolean* + - `topics`: array of *string* (hash) + - `transactionHash`: *string* (hash) + - `transactionIndex`: *string* (hex integer) + - `transactionLogIndex`: *string* (hex integer) @@ -811,6 +833,16 @@ curl localhost:8545 \ ``` `result`: array of *object* + - `address`: *string* (address) + - `blockHash`: *string* (hash) + - `blockNumber`: *string* (hex integer) + - `data`: *string* (hex data) + - `logIndex`: *string* (hex integer) + - `removed`: *boolean* + - `topics`: array of *string* (hash) + - `transactionHash`: *string* (hash) + - `transactionIndex`: *string* (hex integer) + - `transactionLogIndex`: *string* (hex integer) @@ -823,9 +855,12 @@ https://github.com/ethereum/EIPs/issues/1186 1. `accountAddress`: *string* (address) + 2. `hashRate`: array of *string* (hex integer) + 3. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + @@ -857,14 +892,13 @@ curl localhost:8545 \ - `balance`: *string* (hex integer) - `codeHash`: *string* (hash) - `nonce`: *string* (hex integer) - - `proof`: array of array of *string* (hex data) + - `proof`: array of *string* (hex data) - `storageProofs`: array of *object* - - `key`: array of *string* (hex data) - - `proof`: array of array of *string* (hex data) - - `value`: array of *string* (hex data) + - `key`: *string* (hex data) + - `proof`: array of *string* (hex data) + - `value`: *string* (hex data) - `storageRoot`: *string* (hash) - @@ -876,9 +910,12 @@ Returns storage data at address. storage_index 1. `address`: *string* (address) + 2. `positionIndex`: *string* (hex integer) + 3. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + @@ -905,7 +942,7 @@ curl localhost:8545 \ } ``` -`result`: array of *string* (hex data) +`result`: *string* (hex data) @@ -918,8 +955,10 @@ Retrieves a transaction by block hash and index 1. `blockHash`: *string* (hash) + 2. `positionIndex`: *string* (hex integer) + @@ -950,16 +989,15 @@ curl localhost:8545 \ - `accessList`: array of *object* - `address`: *string* (address) - `storageKeys`: array of *string* (hex integer) - - `blobVersionedHashes`: array of array of *string* (hex data) + - `blobVersionedHashes`: array of *string* (hex data) - `blockHash`: *string* (hash) - `blockNumber`: *string* (hex integer) - `chainId`: *string* (hex integer) - - `data`: array of *string* (hex data) - `from`: *string* (address) - `gas`: *string* (hex integer) - `gasPrice`: *string* (hex integer) - `hash`: *string* (hash) - - `input`: array of *string* (hex data) + - `input`: *string* (hex data) - `maxFeePerBlobGas`: *string* (hex integer) - `maxFeePerGas`: *string* (hex integer) - `maxPriorityFeePerGas`: *string* (hex integer) @@ -968,12 +1006,11 @@ curl localhost:8545 \ - `s`: *string* (hex integer) - `to`: *string* (address) - `transactionIndex`: *string* (hex integer) - - `type`: *string* (transaction type) + - `type`: *integer* - `v`: *string* (hex integer) - `value`: *string* (hex integer) - `yParity`: *string* (hex integer) - @@ -985,8 +1022,10 @@ Retrieves a transaction by block number and index 1. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + 2. `positionIndex`: *string* (hex integer) + @@ -1017,16 +1056,15 @@ curl localhost:8545 \ - `accessList`: array of *object* - `address`: *string* (address) - `storageKeys`: array of *string* (hex integer) - - `blobVersionedHashes`: array of array of *string* (hex data) + - `blobVersionedHashes`: array of *string* (hex data) - `blockHash`: *string* (hash) - `blockNumber`: *string* (hex integer) - `chainId`: *string* (hex integer) - - `data`: array of *string* (hex data) - `from`: *string* (address) - `gas`: *string* (hex integer) - `gasPrice`: *string* (hex integer) - `hash`: *string* (hash) - - `input`: array of *string* (hex data) + - `input`: *string* (hex data) - `maxFeePerBlobGas`: *string* (hex integer) - `maxFeePerGas`: *string* (hex integer) - `maxPriorityFeePerGas`: *string* (hex integer) @@ -1035,12 +1073,11 @@ curl localhost:8545 \ - `s`: *string* (hex integer) - `to`: *string* (address) - `transactionIndex`: *string* (hex integer) - - `type`: *string* (transaction type) + - `type`: *integer* - `v`: *string* (hex integer) - `value`: *string* (hex integer) - `yParity`: *string* (hex integer) - @@ -1053,6 +1090,7 @@ Retrieves a transaction by hash 1. `transactionHash`: *string* (hash) + @@ -1083,16 +1121,15 @@ curl localhost:8545 \ - `accessList`: array of *object* - `address`: *string* (address) - `storageKeys`: array of *string* (hex integer) - - `blobVersionedHashes`: array of array of *string* (hex data) + - `blobVersionedHashes`: array of *string* (hex data) - `blockHash`: *string* (hash) - `blockNumber`: *string* (hex integer) - `chainId`: *string* (hex integer) - - `data`: array of *string* (hex data) - `from`: *string* (address) - `gas`: *string* (hex integer) - `gasPrice`: *string* (hex integer) - `hash`: *string* (hash) - - `input`: array of *string* (hex data) + - `input`: *string* (hex data) - `maxFeePerBlobGas`: *string* (hex integer) - `maxFeePerGas`: *string* (hex integer) - `maxPriorityFeePerGas`: *string* (hex integer) @@ -1101,12 +1138,11 @@ curl localhost:8545 \ - `s`: *string* (hex integer) - `to`: *string* (address) - `transactionIndex`: *string* (hex integer) - - `type`: *string* (transaction type) + - `type`: *integer* - `v`: *string* (hex integer) - `value`: *string* (hex integer) - `yParity`: *string* (hex integer) - @@ -1118,8 +1154,10 @@ Returns account nonce (number of trnsactions from the account since genesis) at 1. `address`: *string* (address) + 2. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + @@ -1160,6 +1198,7 @@ Retrieves a transaction receipt by tx hash 1. `txHashData`: *string* (hash) + @@ -1201,7 +1240,7 @@ curl localhost:8545 \ - `address`: *string* (address) - `blockHash`: *string* (hash) - `blockNumber`: *string* (hex integer) - - `data`: array of *string* (hex data) + - `data`: *string* (hex data) - `logIndex`: *string* (hex integer) - `removed`: *boolean* - `topics`: array of *string* (hash) @@ -1213,8 +1252,7 @@ curl localhost:8545 \ - `to`: *string* (address) - `transactionHash`: *string* (hash) - `transactionIndex`: *string* (hex integer) - - `type`: *string* (transaction type) - + - `type`: *integer* @@ -1227,8 +1265,10 @@ Retrieves an uncle block header by block hash and uncle index 1. `blockHashData`: *string* (hash) + 2. `positionIndex`: *string* (hex integer) + @@ -1261,20 +1301,20 @@ curl localhost:8545 \ - `blobGasUsed`: *string* (hex integer) - `difficulty`: *string* (hex integer) - `excessBlobGas`: *string* (hex integer) - - `extraData`: array of *string* (hex data) + - `extraData`: *string* (hex data) - `gasLimit`: *string* (hex integer) - `gasUsed`: *string* (hex integer) - `hash`: *string* (hash) - `logsBloom`: *string* (hex data) - `miner`: *string* (address) - `mixHash`: *string* (hash) - - `nonce`: array of *string* (hex data) + - `nonce`: *string* (hex data) - `number`: *string* (hex integer) - `parentBeaconBlockRoot`: *string* (hash) - `parentHash`: *string* (hash) - `receiptsRoot`: *string* (hash) - `sha3Uncles`: *string* (hash) - - `signature`: array of *string* (hex data) + - `signature`: *string* (hex data) - `size`: *string* (hex integer) - `stateRoot`: *string* (hash) - `step`: *string* (hex integer) @@ -1290,7 +1330,6 @@ curl localhost:8545 \ - `validatorIndex`: *string* (hex integer) - `withdrawalsRoot`: *string* (hash) - @@ -1302,8 +1341,10 @@ Retrieves an uncle block header by block number and uncle index 1. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + 2. `positionIndex`: *string* (hex integer) + @@ -1336,20 +1377,20 @@ curl localhost:8545 \ - `blobGasUsed`: *string* (hex integer) - `difficulty`: *string* (hex integer) - `excessBlobGas`: *string* (hex integer) - - `extraData`: array of *string* (hex data) + - `extraData`: *string* (hex data) - `gasLimit`: *string* (hex integer) - `gasUsed`: *string* (hex integer) - `hash`: *string* (hash) - `logsBloom`: *string* (hex data) - `miner`: *string* (address) - `mixHash`: *string* (hash) - - `nonce`: array of *string* (hex data) + - `nonce`: *string* (hex data) - `number`: *string* (hex integer) - `parentBeaconBlockRoot`: *string* (hash) - `parentHash`: *string* (hash) - `receiptsRoot`: *string* (hash) - `sha3Uncles`: *string* (hash) - - `signature`: array of *string* (hex data) + - `signature`: *string* (hex data) - `size`: *string* (hex integer) - `stateRoot`: *string* (hash) - `step`: *string* (hex integer) @@ -1365,7 +1406,6 @@ curl localhost:8545 \ - `validatorIndex`: *string* (hex integer) - `withdrawalsRoot`: *string* (hash) - @@ -1378,6 +1418,7 @@ Returns number of uncles in the block by block hash 1. `blockHash`: *string* (hash) + @@ -1418,6 +1459,7 @@ Returns number of uncles in the block by block number 1. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + @@ -1598,16 +1640,15 @@ curl localhost:8545 \ - `accessList`: array of *object* - `address`: *string* (address) - `storageKeys`: array of *string* (hex integer) - - `blobVersionedHashes`: array of array of *string* (hex data) + - `blobVersionedHashes`: array of *string* (hex data) - `blockHash`: *string* (hash) - `blockNumber`: *string* (hex integer) - `chainId`: *string* (hex integer) - - `data`: array of *string* (hex data) - `from`: *string* (address) - `gas`: *string* (hex integer) - `gasPrice`: *string* (hex integer) - `hash`: *string* (hash) - - `input`: array of *string* (hex data) + - `input`: *string* (hex data) - `maxFeePerBlobGas`: *string* (hex integer) - `maxFeePerGas`: *string* (hex integer) - `maxPriorityFeePerGas`: *string* (hex integer) @@ -1616,12 +1657,11 @@ curl localhost:8545 \ - `s`: *string* (hex integer) - `to`: *string* (address) - `transactionIndex`: *string* (hex integer) - - `type`: *string* (transaction type) + - `type`: *integer* - `v`: *string* (hex integer) - `value`: *string* (hex integer) - `yParity`: *string* (hex integer) - @@ -1667,7 +1707,8 @@ Send a raw transaction to the tx pool and broadcasting -1. `transaction`: array of *string* (hex data) +1. `transaction`: *string* (hex data) + @@ -1709,18 +1750,17 @@ Send a transaction to the tx pool and broadcasting 1. `rpcTx`: *object* - `accessList`: array of *object* - - `address`: *string* (address) - - `storageKeys`: array of *string* (hex integer) - - `blobVersionedHashes`: array of array of *string* (hex data) + - `address`: *string* (address) + - `storageKeys`: array of *string* (hex integer) + - `blobVersionedHashes`: array of *string* (hex data) - `blockHash`: *string* (hash) - `blockNumber`: *string* (hex integer) - `chainId`: *string* (hex integer) - - `data`: array of *string* (hex data) - `from`: *string* (address) - `gas`: *string* (hex integer) - `gasPrice`: *string* (hex integer) - `hash`: *string* (hash) - - `input`: array of *string* (hex data) + - `input`: *string* (hex data) - `maxFeePerBlobGas`: *string* (hex integer) - `maxFeePerGas`: *string* (hex integer) - `maxPriorityFeePerGas`: *string* (hex integer) @@ -1729,7 +1769,7 @@ Send a transaction to the tx pool and broadcasting - `s`: *string* (hex integer) - `to`: *string* (address) - `transactionIndex`: *string* (hex integer) - - `type`: *string* (transaction type) + - `type`: *integer* - `v`: *string* (hex integer) - `value`: *string* (hex integer) - `yParity`: *string* (hex integer) @@ -1801,8 +1841,7 @@ curl localhost:8545 \ - `highestBlock`: *string* (hex integer) - `isSyncing`: *boolean* - `startingBlock`: *string* (hex integer) - - `syncMode`: *object* - + - `syncMode`: *integer* @@ -1816,6 +1855,7 @@ Creates an update filter 1. `filterId`: *string* (hex integer) + diff --git a/docs/interacting/json-rpc/net.md b/docs/interacting/json-rpc/net.md index 13d5fd688..2c99bc60f 100644 --- a/docs/interacting/json-rpc/net.md +++ b/docs/interacting/json-rpc/net.md @@ -1,7 +1,7 @@ --- title: net namespace sidebar_label: net -sidebar_position: 5 +sidebar_position: 4 --- import Tabs from "@theme/Tabs"; @@ -9,8 +9,6 @@ import TabItem from "@theme/TabItem"; ### net_listening - - @@ -44,8 +42,6 @@ curl localhost:8545 \ ### net_localAddress - - @@ -79,8 +75,6 @@ curl localhost:8545 \ ### net_localEnode - - @@ -114,8 +108,6 @@ curl localhost:8545 \ ### net_peerCount - - @@ -149,8 +141,6 @@ curl localhost:8545 \ ### net_version - - diff --git a/docs/interacting/json-rpc/parity.md b/docs/interacting/json-rpc/parity.md index d58b55c6f..36ce78ecd 100644 --- a/docs/interacting/json-rpc/parity.md +++ b/docs/interacting/json-rpc/parity.md @@ -1,7 +1,7 @@ --- title: parity namespace sidebar_label: parity -sidebar_position: 6 +sidebar_position: 5 --- import Tabs from "@theme/Tabs"; @@ -9,8 +9,6 @@ import TabItem from "@theme/TabItem"; ### parity_clearEngineSigner - - @@ -86,6 +84,7 @@ Get receipts from all transactions from particular block, more efficient than fe 1. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + @@ -127,7 +126,7 @@ curl localhost:8545 \ - `address`: *string* (address) - `blockHash`: *string* (hash) - `blockNumber`: *string* (hex integer) - - `data`: array of *string* (hex data) + - `data`: *string* (hex data) - `logIndex`: *string* (hex integer) - `removed`: *boolean* - `topics`: array of *string* (hash) @@ -139,8 +138,7 @@ curl localhost:8545 \ - `to`: *string* (address) - `transactionHash`: *string* (hash) - `transactionIndex`: *string* (hex integer) - - `type`: *string* (transaction type) - + - `type`: *integer* @@ -180,12 +178,16 @@ curl localhost:8545 \ - `connected`: *string* (hex integer) - `max`: *string* (hex integer) - `peers`: array of *object* - - `caps`: *object* + - `caps`: array of *string* - `id`: *string* - `name`: *string* - `network`: *object* - - `protocols`: *object* - + - `localAddress`: *string* + - `remoteAddress`: *string* + - `protocols`: map of *object* + - `difficulty`: *string* (hex integer) + - `head`: *string* (hash) + - `version`: *string* (hex data) @@ -199,6 +201,7 @@ Returns a list of transactions currently in the queue. If address is provided, r 1. `address`: *string* (address) + @@ -235,32 +238,34 @@ curl localhost:8545 \ - `gas`: *string* (hex integer) - `gasPrice`: *string* (hex integer) - `hash`: *string* (hash) - - `input`: array of *string* (hex data) + - `input`: *string* (hex data) - `nonce`: *string* (hex integer) - `publicKey`: *object* - - `r`: array of *string* (hex data) - - `raw`: array of *string* (hex data) - - `s`: array of *string* (hex data) + - `address`: *string* (address) + - `bytes`: *string* (hex data) + - `prefixedBytes`: *string* (hex data) + - `r`: *string* (hex data) + - `raw`: *string* (hex data) + - `s`: *string* (hex data) - `standardV`: *string* (hex integer) - `to`: *string* (address) - `transactionIndex`: *string* (hex integer) - `v`: *string* (hex integer) - `value`: *string* (hex integer) - ### parity_setEngineSigner - - 1. `address`: *string* (address) + 2. `password`: *string* + @@ -294,13 +299,12 @@ curl localhost:8545 \ ### parity_setEngineSignerSecret - - 1. `privateKey`: *string* + diff --git a/docs/interacting/json-rpc/personal.md b/docs/interacting/json-rpc/personal.md index fb7b9ecc5..5ef7e0896 100644 --- a/docs/interacting/json-rpc/personal.md +++ b/docs/interacting/json-rpc/personal.md @@ -1,7 +1,7 @@ --- title: personal namespace sidebar_label: personal -sidebar_position: 7 +sidebar_position: 6 --- import Tabs from "@theme/Tabs"; @@ -9,14 +9,14 @@ import TabItem from "@theme/TabItem"; ### personal_importRawKey - - -1. `keyData`: array of *string* (hex data) +1. `keyData`: *string* (hex data) + 2. `passphrase`: *string* + @@ -50,8 +50,6 @@ curl localhost:8545 \ ### personal_listAccounts - - @@ -85,13 +83,12 @@ curl localhost:8545 \ ### personal_lockAccount - - 1. `address`: *string* (address) + @@ -125,13 +122,12 @@ curl localhost:8545 \ ### personal_newAccount - - 1. `passphrase`: *string* + @@ -165,14 +161,14 @@ curl localhost:8545 \ ### personal_unlockAccount - - 1. `address`: *string* (address) + 2. `passphrase`: *string* + diff --git a/docs/interacting/json-rpc/proof.md b/docs/interacting/json-rpc/proof.md index fb906c727..d27a6141a 100644 --- a/docs/interacting/json-rpc/proof.md +++ b/docs/interacting/json-rpc/proof.md @@ -1,7 +1,7 @@ --- title: proof namespace sidebar_label: proof -sidebar_position: 8 +sidebar_position: 7 --- import Tabs from "@theme/Tabs"; @@ -15,8 +15,10 @@ This function returns the same result as `eth_getTransactionReceipt` and also a 1. `txHash`: *string* (hash) + 2. `includeHeader`: *boolean* + @@ -44,10 +46,33 @@ curl localhost:8545 \ ``` `result`: *object* - - `blockHeader`: array of *string* (hex data) + - `blockHeader`: *string* (hex data) - `transaction`: *object* - - `txProof`: array of array of *string* (hex data) - + - `accessList`: array of *object* + - `address`: *string* (address) + - `storageKeys`: array of *string* (hex integer) + - `blobVersionedHashes`: array of *string* (hex data) + - `blockHash`: *string* (hash) + - `blockNumber`: *string* (hex integer) + - `chainId`: *string* (hex integer) + - `from`: *string* (address) + - `gas`: *string* (hex integer) + - `gasPrice`: *string* (hex integer) + - `hash`: *string* (hash) + - `input`: *string* (hex data) + - `maxFeePerBlobGas`: *string* (hex integer) + - `maxFeePerGas`: *string* (hex integer) + - `maxPriorityFeePerGas`: *string* (hex integer) + - `nonce`: *string* (hex integer) + - `r`: *string* (hex integer) + - `s`: *string* (hex integer) + - `to`: *string* (address) + - `transactionIndex`: *string* (hex integer) + - `type`: *integer* + - `v`: *string* (hex integer) + - `value`: *string* (hex integer) + - `yParity`: *string* (hex integer) + - `txProof`: array of *string* (hex data) @@ -60,8 +85,10 @@ This function should return the same result as `eth_call` and also proofs of all 1. `txHash`: *string* (hash) + 2. `includeHeader`: *boolean* + @@ -89,11 +116,37 @@ curl localhost:8545 \ ``` `result`: *object* - - `blockHeader`: array of *string* (hex data) + - `blockHeader`: *string* (hex data) - `receipt`: *object* - - `receiptProof`: array of array of *string* (hex data) - - `txProof`: array of array of *string* (hex data) - + - `blobGasPrice`: *string* (hex integer) + - `blobGasUsed`: *string* (hex integer) + - `blockHash`: *string* (hash) + - `blockNumber`: *string* (hex integer) + - `contractAddress`: *string* (address) + - `cumulativeGasUsed`: *string* (hex integer) + - `effectiveGasPrice`: *string* (hex integer) + - `error`: *string* + - `from`: *string* (address) + - `gasUsed`: *string* (hex integer) + - `logs`: array of *object* + - `address`: *string* (address) + - `blockHash`: *string* (hash) + - `blockNumber`: *string* (hex integer) + - `data`: *string* (hex data) + - `logIndex`: *string* (hex integer) + - `removed`: *boolean* + - `topics`: array of *string* (hash) + - `transactionHash`: *string* (hash) + - `transactionIndex`: *string* (hex integer) + - `logsBloom`: *string* (hex data) + - `root`: *string* (hash) + - `status`: *string* (hex integer) + - `to`: *string* (address) + - `transactionHash`: *string* (hash) + - `transactionIndex`: *string* (hex integer) + - `type`: *integer* + - `receiptProof`: array of *string* (hex data) + - `txProof`: array of *string* (hex data) diff --git a/docs/interacting/json-rpc/trace.md b/docs/interacting/json-rpc/trace.md index d95cf5f84..58e975b6b 100644 --- a/docs/interacting/json-rpc/trace.md +++ b/docs/interacting/json-rpc/trace.md @@ -1,7 +1,7 @@ --- title: trace namespace sidebar_label: trace -sidebar_position: 10 +sidebar_position: 8 --- import Tabs from "@theme/Tabs"; @@ -9,13 +9,12 @@ import TabItem from "@theme/TabItem"; ### trace_block - - 1. `numberOrTag`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + @@ -43,31 +42,63 @@ curl localhost:8545 \ ``` `result`: array of *object* + - `action`: *object* + - `author`: *string* (address) + - `callType`: *string* + - `creationMethod`: *string* + - `error`: *string* + - `from`: *string* (address) + - `gas`: *string* (hex integer) + - `includeInTrace`: *boolean* + - `input`: *string* (hex data) + - `isPrecompiled`: *boolean* + - `result`: *object* + - `address`: *string* (address) + - `code`: *string* (hex data) + - `gasUsed`: *string* (hex integer) + - `output`: *string* (hex data) + - `rewardType`: *string* + - `subtraces`: array of *object* + + - `to`: *string* (address) + - `traceAddress`: array of *string* (hex integer) + - `type`: *string* + - `value`: *string* (hex integer) + - `blockHash`: *string* (hash) + - `blockNumber`: *string* (hex integer) + - `error`: *string* + - `result`: *object* + - `address`: *string* (address) + - `code`: *string* (hex data) + - `gasUsed`: *string* (hex integer) + - `output`: *string* (hex data) + - `subtraces`: *string* (hex integer) + - `traceAddress`: array of *string* (hex integer) + - `transactionHash`: *string* (hash) + - `transactionPosition`: *string* (hex integer) + - `type`: *string* ### trace_call - - 1. `call`: *object* - `accessList`: array of *object* - - `address`: *string* (address) - - `storageKeys`: array of *string* (hex integer) - - `blobVersionedHashes`: array of array of *string* (hex data) + - `address`: *string* (address) + - `storageKeys`: array of *string* (hex integer) + - `blobVersionedHashes`: array of *string* (hex data) - `blockHash`: *string* (hash) - `blockNumber`: *string* (hex integer) - `chainId`: *string* (hex integer) - - `data`: array of *string* (hex data) - `from`: *string* (address) - `gas`: *string* (hex integer) - `gasPrice`: *string* (hex integer) - `hash`: *string* (hash) - - `input`: array of *string* (hex data) + - `input`: *string* (hex data) - `maxFeePerBlobGas`: *string* (hex integer) - `maxFeePerGas`: *string* (hex integer) - `maxPriorityFeePerGas`: *string* (hex integer) @@ -76,14 +107,16 @@ curl localhost:8545 \ - `s`: *string* (hex integer) - `to`: *string* (address) - `transactionIndex`: *string* (hex integer) - - `type`: *string* (transaction type) + - `type`: *integer* - `v`: *string* (hex integer) - `value`: *string* (hex integer) - `yParity`: *string* (hex integer) 2. `traceTypes`: array of *string* + 3. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + @@ -112,19 +145,63 @@ curl localhost:8545 \ `result`: *object* - `action`: *object* - - `output`: array of *string* (hex data) - - `stateChanges`: *object* + - `author`: *string* (address) + - `callType`: *string* + - `creationMethod`: *string* + - `error`: *string* + - `from`: *string* (address) + - `gas`: *string* (hex integer) + - `includeInTrace`: *boolean* + - `input`: *string* (hex data) + - `isPrecompiled`: *boolean* + - `result`: *object* + - `address`: *string* (address) + - `code`: *string* (hex data) + - `gasUsed`: *string* (hex integer) + - `output`: *string* (hex data) + - `rewardType`: *string* + - `subtraces`: array of *object* + + - `to`: *string* (address) + - `traceAddress`: array of *string* (hex integer) + - `type`: *string* + - `value`: *string* (hex integer) + - `output`: *string* (hex data) + - `stateChanges`: map of *object* + - `balance`: *object* + - `after`: *string* (hex integer) + - `before`: *string* (hex integer) + - `code`: *object* + - `after`: *string* (hex data) + - `before`: *string* (hex data) + - `nonce`: *object* + - `after`: *string* (hex integer) + - `before`: *string* (hex integer) + - `storage`: map of *object* + - `after`: *string* (hex data) + - `before`: *string* (hex data) - `transactionHash`: *string* (hash) - `vmTrace`: *object* - + - `code`: *string* (hex data) + - `operations`: array of *object* + - `cost`: *string* (hex integer) + - `memory`: *object* + - `data`: *string* (hex data) + - `offset`: *string* (hex integer) + - `pc`: *string* (hex integer) + - `push`: array of *string* (hex data) + - `store`: *object* + - `key`: *string* (hex data) + - `value`: *string* (hex data) + - `sub`: *object* + + - `used`: *string* (hex integer) ### trace_filter - - @@ -164,6 +241,41 @@ curl localhost:8545 \ ``` `result`: array of *object* + - `action`: *object* + - `author`: *string* (address) + - `callType`: *string* + - `creationMethod`: *string* + - `error`: *string* + - `from`: *string* (address) + - `gas`: *string* (hex integer) + - `includeInTrace`: *boolean* + - `input`: *string* (hex data) + - `isPrecompiled`: *boolean* + - `result`: *object* + - `address`: *string* (address) + - `code`: *string* (hex data) + - `gasUsed`: *string* (hex integer) + - `output`: *string* (hex data) + - `rewardType`: *string* + - `subtraces`: array of *object* + + - `to`: *string* (address) + - `traceAddress`: array of *string* (hex integer) + - `type`: *string* + - `value`: *string* (hex integer) + - `blockHash`: *string* (hash) + - `blockNumber`: *string* (hex integer) + - `error`: *string* + - `result`: *object* + - `address`: *string* (address) + - `code`: *string* (hex data) + - `gasUsed`: *string* (hex integer) + - `output`: *string* (hex data) + - `subtraces`: *string* (hex integer) + - `traceAddress`: array of *string* (hex integer) + - `transactionHash`: *string* (hash) + - `transactionPosition`: *string* (hex integer) + - `type`: *string* @@ -175,9 +287,11 @@ Traces a call to eth_sendRawTransaction without making the call, returning the t -1. `data`: array of *string* (hex data) +1. `data`: *string* (hex data) + 2. `traceTypes`: array of *string* + @@ -206,25 +320,71 @@ curl localhost:8545 \ `result`: *object* - `action`: *object* - - `output`: array of *string* (hex data) - - `stateChanges`: *object* + - `author`: *string* (address) + - `callType`: *string* + - `creationMethod`: *string* + - `error`: *string* + - `from`: *string* (address) + - `gas`: *string* (hex integer) + - `includeInTrace`: *boolean* + - `input`: *string* (hex data) + - `isPrecompiled`: *boolean* + - `result`: *object* + - `address`: *string* (address) + - `code`: *string* (hex data) + - `gasUsed`: *string* (hex integer) + - `output`: *string* (hex data) + - `rewardType`: *string* + - `subtraces`: array of *object* + + - `to`: *string* (address) + - `traceAddress`: array of *string* (hex integer) + - `type`: *string* + - `value`: *string* (hex integer) + - `output`: *string* (hex data) + - `stateChanges`: map of *object* + - `balance`: *object* + - `after`: *string* (hex integer) + - `before`: *string* (hex integer) + - `code`: *object* + - `after`: *string* (hex data) + - `before`: *string* (hex data) + - `nonce`: *object* + - `after`: *string* (hex integer) + - `before`: *string* (hex integer) + - `storage`: map of *object* + - `after`: *string* (hex data) + - `before`: *string* (hex data) - `transactionHash`: *string* (hash) - `vmTrace`: *object* - + - `code`: *string* (hex data) + - `operations`: array of *object* + - `cost`: *string* (hex integer) + - `memory`: *object* + - `data`: *string* (hex data) + - `offset`: *string* (hex integer) + - `pc`: *string* (hex integer) + - `push`: array of *string* (hex data) + - `store`: *object* + - `key`: *string* (hex data) + - `value`: *string* (hex data) + - `sub`: *object* + + - `used`: *string* (hex integer) ### trace_replayBlockTransactions - - 1. `blockParameter`: *string* (block number or hash or either of `earliest`, `finalized`, `latest`, `pending`, or `safe`) + 2. `traceTypes`: array of *string* + @@ -252,20 +412,72 @@ curl localhost:8545 \ ``` `result`: array of *object* + - `action`: *object* + - `author`: *string* (address) + - `callType`: *string* + - `creationMethod`: *string* + - `error`: *string* + - `from`: *string* (address) + - `gas`: *string* (hex integer) + - `includeInTrace`: *boolean* + - `input`: *string* (hex data) + - `isPrecompiled`: *boolean* + - `result`: *object* + - `address`: *string* (address) + - `code`: *string* (hex data) + - `gasUsed`: *string* (hex integer) + - `output`: *string* (hex data) + - `rewardType`: *string* + - `subtraces`: array of *object* + + - `to`: *string* (address) + - `traceAddress`: array of *string* (hex integer) + - `type`: *string* + - `value`: *string* (hex integer) + - `output`: *string* (hex data) + - `stateChanges`: map of *object* + - `balance`: *object* + - `after`: *string* (hex integer) + - `before`: *string* (hex integer) + - `code`: *object* + - `after`: *string* (hex data) + - `before`: *string* (hex data) + - `nonce`: *object* + - `after`: *string* (hex integer) + - `before`: *string* (hex integer) + - `storage`: map of *object* + - `after`: *string* (hex data) + - `before`: *string* (hex data) + - `transactionHash`: *string* (hash) + - `vmTrace`: *object* + - `code`: *string* (hex data) + - `operations`: array of *object* + - `cost`: *string* (hex integer) + - `memory`: *object* + - `data`: *string* (hex data) + - `offset`: *string* (hex integer) + - `pc`: *string* (hex integer) + - `push`: array of *string* (hex data) + - `store`: *object* + - `key`: *string* (hex data) + - `value`: *string* (hex data) + - `sub`: *object* + + - `used`: *string* (hex integer) ### trace_replayTransaction - - 1. `txHash`: *string* (hash) + 2. `traceTypes`: array of *string* + @@ -294,24 +506,69 @@ curl localhost:8545 \ `result`: *object* - `action`: *object* - - `output`: array of *string* (hex data) - - `stateChanges`: *object* + - `author`: *string* (address) + - `callType`: *string* + - `creationMethod`: *string* + - `error`: *string* + - `from`: *string* (address) + - `gas`: *string* (hex integer) + - `includeInTrace`: *boolean* + - `input`: *string* (hex data) + - `isPrecompiled`: *boolean* + - `result`: *object* + - `address`: *string* (address) + - `code`: *string* (hex data) + - `gasUsed`: *string* (hex integer) + - `output`: *string* (hex data) + - `rewardType`: *string* + - `subtraces`: array of *object* + + - `to`: *string* (address) + - `traceAddress`: array of *string* (hex integer) + - `type`: *string* + - `value`: *string* (hex integer) + - `output`: *string* (hex data) + - `stateChanges`: map of *object* + - `balance`: *object* + - `after`: *string* (hex integer) + - `before`: *string* (hex integer) + - `code`: *object* + - `after`: *string* (hex data) + - `before`: *string* (hex data) + - `nonce`: *object* + - `after`: *string* (hex integer) + - `before`: *string* (hex integer) + - `storage`: map of *object* + - `after`: *string* (hex data) + - `before`: *string* (hex data) - `transactionHash`: *string* (hash) - `vmTrace`: *object* - + - `code`: *string* (hex data) + - `operations`: array of *object* + - `cost`: *string* (hex integer) + - `memory`: *object* + - `data`: *string* (hex data) + - `offset`: *string* (hex integer) + - `pc`: *string* (hex integer) + - `push`: array of *string* (hex data) + - `store`: *object* + - `key`: *string* (hex data) + - `value`: *string* (hex data) + - `sub`: *object* + + - `used`: *string* (hex integer) ### trace_transaction - - 1. `txHash`: *string* (hash) + @@ -339,6 +596,41 @@ curl localhost:8545 \ ``` `result`: array of *object* + - `action`: *object* + - `author`: *string* (address) + - `callType`: *string* + - `creationMethod`: *string* + - `error`: *string* + - `from`: *string* (address) + - `gas`: *string* (hex integer) + - `includeInTrace`: *boolean* + - `input`: *string* (hex data) + - `isPrecompiled`: *boolean* + - `result`: *object* + - `address`: *string* (address) + - `code`: *string* (hex data) + - `gasUsed`: *string* (hex integer) + - `output`: *string* (hex data) + - `rewardType`: *string* + - `subtraces`: array of *object* + + - `to`: *string* (address) + - `traceAddress`: array of *string* (hex integer) + - `type`: *string* + - `value`: *string* (hex integer) + - `blockHash`: *string* (hash) + - `blockNumber`: *string* (hex integer) + - `error`: *string* + - `result`: *object* + - `address`: *string* (address) + - `code`: *string* (hex data) + - `gasUsed`: *string* (hex integer) + - `output`: *string* (hex data) + - `subtraces`: *string* (hex integer) + - `traceAddress`: array of *string* (hex integer) + - `transactionHash`: *string* (hash) + - `transactionPosition`: *string* (hex integer) + - `type`: *string* diff --git a/docs/interacting/json-rpc/txpool.md b/docs/interacting/json-rpc/txpool.md index c02c1e2e1..4962b51e6 100644 --- a/docs/interacting/json-rpc/txpool.md +++ b/docs/interacting/json-rpc/txpool.md @@ -1,7 +1,7 @@ --- title: txpool namespace sidebar_label: txpool -sidebar_position: 11 +sidebar_position: 9 --- import Tabs from "@theme/Tabs"; @@ -38,9 +38,58 @@ curl localhost:8545 \ ``` `result`: *object* - - `pending`: *object* - - `queued`: *object* - + - `pending`: map of map of *object* +map of *object* + - `accessList`: array of *object* + - `address`: *string* (address) + - `storageKeys`: array of *string* (hex integer) + - `blobVersionedHashes`: array of *string* (hex data) + - `blockHash`: *string* (hash) + - `blockNumber`: *string* (hex integer) + - `chainId`: *string* (hex integer) + - `from`: *string* (address) + - `gas`: *string* (hex integer) + - `gasPrice`: *string* (hex integer) + - `hash`: *string* (hash) + - `input`: *string* (hex data) + - `maxFeePerBlobGas`: *string* (hex integer) + - `maxFeePerGas`: *string* (hex integer) + - `maxPriorityFeePerGas`: *string* (hex integer) + - `nonce`: *string* (hex integer) + - `r`: *string* (hex integer) + - `s`: *string* (hex integer) + - `to`: *string* (address) + - `transactionIndex`: *string* (hex integer) + - `type`: *integer* + - `v`: *string* (hex integer) + - `value`: *string* (hex integer) + - `yParity`: *string* (hex integer) + - `queued`: map of map of *object* +map of *object* + - `accessList`: array of *object* + - `address`: *string* (address) + - `storageKeys`: array of *string* (hex integer) + - `blobVersionedHashes`: array of *string* (hex data) + - `blockHash`: *string* (hash) + - `blockNumber`: *string* (hex integer) + - `chainId`: *string* (hex integer) + - `from`: *string* (address) + - `gas`: *string* (hex integer) + - `gasPrice`: *string* (hex integer) + - `hash`: *string* (hash) + - `input`: *string* (hex data) + - `maxFeePerBlobGas`: *string* (hex integer) + - `maxFeePerGas`: *string* (hex integer) + - `maxPriorityFeePerGas`: *string* (hex integer) + - `nonce`: *string* (hex integer) + - `r`: *string* (hex integer) + - `s`: *string* (hex integer) + - `to`: *string* (address) + - `transactionIndex`: *string* (hex integer) + - `type`: *integer* + - `v`: *string* (hex integer) + - `value`: *string* (hex integer) + - `yParity`: *string* (hex integer) @@ -76,9 +125,8 @@ curl localhost:8545 \ ``` `result`: *object* - - `pending`: *object* - - `queued`: *object* - + - `pending`: map of map of *string* + - `queued`: map of map of *string* @@ -117,7 +165,6 @@ curl localhost:8545 \ - `pending`: *string* (hex integer) - `queued`: *string* (hex integer) - diff --git a/docs/interacting/json-rpc/web3.md b/docs/interacting/json-rpc/web3.md index 753872358..af12df6fc 100644 --- a/docs/interacting/json-rpc/web3.md +++ b/docs/interacting/json-rpc/web3.md @@ -1,7 +1,7 @@ --- title: web3 namespace sidebar_label: web3 -sidebar_position: 12 +sidebar_position: 10 --- import Tabs from "@theme/Tabs"; @@ -49,7 +49,8 @@ Returns Keccak of the given data. -1. `data`: array of *string* (hex data) +1. `data`: *string* (hex data) +