0xweb
Version:
Contract package manager and other web3 tools
1,293 lines • 209 kB
JSON
{
"openrpc": "1.2.4",
"info": {
"title": "Ethereum JSON-RPC Specification",
"description": "A specification of the standard interface for Ethereum clients.",
"license": {
"name": "CC0-1.0",
"url": "https://creativecommons.org/publicdomain/zero/1.0/legalcode"
},
"version": "0.0.0"
},
"methods": [
{
"name": "eth_getBlockByHash",
"summary": "Returns information about a block by hash.",
"params": [
{
"name": "Block hash",
"required": true,
"schema": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
},
{
"name": "Hydrated transactions",
"required": true,
"schema": {
"title": "hydrated",
"type": "boolean"
}
}
],
"result": {
"name": "Block information",
"schema": {
"title": "Block object",
"type": "object",
"required": [
"parentHash",
"sha3Uncles",
"miner",
"stateRoot",
"transactionsRoot",
"receiptsRoot",
"logsBloom",
"number",
"gasLimit",
"gasUsed",
"timestamp",
"extraData",
"mixHash",
"nonce",
"size",
"transactions",
"uncles"
],
"properties": {
"parentHash": {
"title": "Parent block hash",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
},
"sha3Uncles": {
"title": "Ommers hash",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
},
"miner": {
"title": "Coinbase",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
},
"stateRoot": {
"title": "State root",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
},
"transactionsRoot": {
"title": "Transactions root",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
},
"receiptsRoot": {
"title": "Receipts root",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
},
"logsBloom": {
"title": "Bloom filter",
"type": "string",
"pattern": "^0x[0-9a-f]{512}$"
},
"difficulty": {
"title": "Difficulty",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"number": {
"title": "Number",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"gasLimit": {
"title": "Gas limit",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"gasUsed": {
"title": "Gas used",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"timestamp": {
"title": "Timestamp",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"extraData": {
"title": "Extra data",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"mixHash": {
"title": "Mix hash",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
},
"nonce": {
"title": "Nonce",
"type": "string",
"pattern": "^0x[0-9a-f]{16}$"
},
"totalDifficulty": {
"title": "Total difficulty",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"baseFeePerGas": {
"title": "Base fee per gas",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"withdrawalsRoot": {
"title": "Withdrawals root",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
},
"size": {
"title": "Block size",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"transactions": {
"anyOf": [
{
"title": "Transaction hashes",
"type": "array",
"items": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
},
{
"title": "Full transactions",
"type": "array",
"items": {
"oneOf": [
{
"title": "Signed 1559 Transaction",
"type": "object",
"required": [
"accessList",
"chainId",
"gas",
"input",
"maxFeePerGas",
"maxPriorityFeePerGas",
"nonce",
"r",
"s",
"type",
"value",
"yParity"
],
"properties": {
"type": {
"title": "type",
"type": "string",
"pattern": "^0x([0-9,a-f,A-F]?){1,2}$"
},
"nonce": {
"title": "nonce",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"to": {
"title": "to address",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
},
"gas": {
"title": "gas limit",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"value": {
"title": "value",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"input": {
"title": "input data",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"maxPriorityFeePerGas": {
"title": "max priority fee per gas",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "Maximum fee per gas the sender is willing to pay to miners in wei"
},
"maxFeePerGas": {
"title": "max fee per gas",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei"
},
"accessList": {
"title": "accessList",
"type": "array",
"description": "EIP-2930 access list",
"items": {
"title": "Access list entry",
"type": "object",
"properties": {
"address": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
},
"storageKeys": {
"type": "array",
"items": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
}
}
}
},
"chainId": {
"title": "chainId",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "Chain ID that this transaction is valid on."
},
"yParity": {
"title": "yParity",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature."
},
"r": {
"title": "r",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"s": {
"title": "s",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
}
}
},
{
"title": "Signed 2930 Transaction",
"type": "object",
"required": [
"accessList",
"chainId",
"gas",
"gasPrice",
"input",
"nonce",
"r",
"s",
"type",
"value",
"yParity"
],
"properties": {
"type": {
"title": "type",
"type": "string",
"pattern": "^0x([0-9,a-f,A-F]?){1,2}$"
},
"nonce": {
"title": "nonce",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"to": {
"title": "to address",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
},
"gas": {
"title": "gas limit",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"value": {
"title": "value",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"input": {
"title": "input data",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"gasPrice": {
"title": "gas price",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "The gas price willing to be paid by the sender in wei"
},
"accessList": {
"title": "accessList",
"type": "array",
"description": "EIP-2930 access list",
"items": {
"title": "Access list entry",
"type": "object",
"properties": {
"address": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
},
"storageKeys": {
"type": "array",
"items": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
}
}
}
},
"chainId": {
"title": "chainId",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "Chain ID that this transaction is valid on."
},
"yParity": {
"title": "yParity",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature."
},
"r": {
"title": "r",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"s": {
"title": "s",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
}
}
},
{
"title": "Signed Legacy Transaction",
"type": "object",
"required": [
"gas",
"gasPrice",
"input",
"nonce",
"r",
"s",
"type",
"v",
"value"
],
"properties": {
"type": {
"title": "type",
"type": "string",
"pattern": "^0x([0-9,a-f,A-F]?){1,2}$"
},
"nonce": {
"title": "nonce",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"to": {
"title": "to address",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
},
"gas": {
"title": "gas limit",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"value": {
"title": "value",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"input": {
"title": "input data",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"gasPrice": {
"title": "gas price",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "The gas price willing to be paid by the sender in wei"
},
"chainId": {
"title": "chainId",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "Chain ID that this transaction is valid on."
},
"v": {
"title": "v",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"r": {
"title": "r",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"s": {
"title": "s",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
}
}
}
]
}
}
]
},
"withdrawals": {
"title": "Withdrawals",
"type": "array",
"items": {
"type": "object",
"title": "Validator withdrawal",
"required": [
"index",
"validatorIndex",
"address",
"amount"
],
"properties": {
"index": {
"title": "index of withdrawal",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]{0,15})|0$"
},
"validatorIndex": {
"title": "index of validator that generated withdrawal",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]{0,15})|0$"
},
"address": {
"title": "recipient address for withdrawal value",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
},
"amount": {
"title": "value contained in withdrawal",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]{0,31})|0$"
}
}
}
},
"uncles": {
"title": "Uncles",
"type": "array",
"items": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
}
}
}
}
},
{
"name": "eth_getBlockByNumber",
"summary": "Returns information about a block by number.",
"params": [
{
"name": "Block",
"required": true,
"schema": {
"title": "Block number or tag",
"oneOf": [
{
"title": "Block number",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
{
"title": "Block tag",
"type": "string",
"enum": [
"earliest",
"finalized",
"safe",
"latest",
"pending"
],
"description": "`earliest`: The lowest numbered block the client has available; `finalized`: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; `safe`: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; `latest`: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions; `pending`: A sample next block built by the client on top of `latest` and containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying for `finalized` or `safe` block MUST be responded to with `-39001: Unknown block` error"
}
]
}
},
{
"name": "Hydrated transactions",
"required": true,
"schema": {
"title": "hydrated",
"type": "boolean"
}
}
],
"result": {
"name": "Block information",
"schema": {
"title": "Block object",
"type": "object",
"required": [
"parentHash",
"sha3Uncles",
"miner",
"stateRoot",
"transactionsRoot",
"receiptsRoot",
"logsBloom",
"number",
"gasLimit",
"gasUsed",
"timestamp",
"extraData",
"mixHash",
"nonce",
"size",
"transactions",
"uncles"
],
"properties": {
"parentHash": {
"title": "Parent block hash",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
},
"sha3Uncles": {
"title": "Ommers hash",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
},
"miner": {
"title": "Coinbase",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
},
"stateRoot": {
"title": "State root",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
},
"transactionsRoot": {
"title": "Transactions root",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
},
"receiptsRoot": {
"title": "Receipts root",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
},
"logsBloom": {
"title": "Bloom filter",
"type": "string",
"pattern": "^0x[0-9a-f]{512}$"
},
"difficulty": {
"title": "Difficulty",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"number": {
"title": "Number",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"gasLimit": {
"title": "Gas limit",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"gasUsed": {
"title": "Gas used",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"timestamp": {
"title": "Timestamp",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"extraData": {
"title": "Extra data",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"mixHash": {
"title": "Mix hash",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
},
"nonce": {
"title": "Nonce",
"type": "string",
"pattern": "^0x[0-9a-f]{16}$"
},
"totalDifficulty": {
"title": "Total difficulty",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"baseFeePerGas": {
"title": "Base fee per gas",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"withdrawalsRoot": {
"title": "Withdrawals root",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
},
"size": {
"title": "Block size",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"transactions": {
"anyOf": [
{
"title": "Transaction hashes",
"type": "array",
"items": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
},
{
"title": "Full transactions",
"type": "array",
"items": {
"oneOf": [
{
"title": "Signed 1559 Transaction",
"type": "object",
"required": [
"accessList",
"chainId",
"gas",
"input",
"maxFeePerGas",
"maxPriorityFeePerGas",
"nonce",
"r",
"s",
"type",
"value",
"yParity"
],
"properties": {
"type": {
"title": "type",
"type": "string",
"pattern": "^0x([0-9,a-f,A-F]?){1,2}$"
},
"nonce": {
"title": "nonce",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"to": {
"title": "to address",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
},
"gas": {
"title": "gas limit",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"value": {
"title": "value",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"input": {
"title": "input data",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"maxPriorityFeePerGas": {
"title": "max priority fee per gas",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "Maximum fee per gas the sender is willing to pay to miners in wei"
},
"maxFeePerGas": {
"title": "max fee per gas",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei"
},
"accessList": {
"title": "accessList",
"type": "array",
"description": "EIP-2930 access list",
"items": {
"title": "Access list entry",
"type": "object",
"properties": {
"address": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
},
"storageKeys": {
"type": "array",
"items": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
}
}
}
},
"chainId": {
"title": "chainId",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "Chain ID that this transaction is valid on."
},
"yParity": {
"title": "yParity",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature."
},
"r": {
"title": "r",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"s": {
"title": "s",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
}
}
},
{
"title": "Signed 2930 Transaction",
"type": "object",
"required": [
"accessList",
"chainId",
"gas",
"gasPrice",
"input",
"nonce",
"r",
"s",
"type",
"value",
"yParity"
],
"properties": {
"type": {
"title": "type",
"type": "string",
"pattern": "^0x([0-9,a-f,A-F]?){1,2}$"
},
"nonce": {
"title": "nonce",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"to": {
"title": "to address",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
},
"gas": {
"title": "gas limit",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"value": {
"title": "value",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"input": {
"title": "input data",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"gasPrice": {
"title": "gas price",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "The gas price willing to be paid by the sender in wei"
},
"accessList": {
"title": "accessList",
"type": "array",
"description": "EIP-2930 access list",
"items": {
"title": "Access list entry",
"type": "object",
"properties": {
"address": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
},
"storageKeys": {
"type": "array",
"items": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
}
}
}
},
"chainId": {
"title": "chainId",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "Chain ID that this transaction is valid on."
},
"yParity": {
"title": "yParity",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature."
},
"r": {
"title": "r",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"s": {
"title": "s",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
}
}
},
{
"title": "Signed Legacy Transaction",
"type": "object",
"required": [
"gas",
"gasPrice",
"input",
"nonce",
"r",
"s",
"type",
"v",
"value"
],
"properties": {
"type": {
"title": "type",
"type": "string",
"pattern": "^0x([0-9,a-f,A-F]?){1,2}$"
},
"nonce": {
"title": "nonce",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"to": {
"title": "to address",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
},
"gas": {
"title": "gas limit",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"value": {
"title": "value",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"input": {
"title": "input data",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"gasPrice": {
"title": "gas price",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "The gas price willing to be paid by the sender in wei"
},
"chainId": {
"title": "chainId",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "Chain ID that this transaction is valid on."
},
"v": {
"title": "v",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"r": {
"title": "r",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"s": {
"title": "s",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
}
}
}
]
}
}
]
},
"withdrawals": {
"title": "Withdrawals",
"type": "array",
"items": {
"type": "object",
"title": "Validator withdrawal",
"required": [
"index",
"validatorIndex",
"address",
"amount"
],
"properties": {
"index": {
"title": "index of withdrawal",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]{0,15})|0$"
},
"validatorIndex": {
"title": "index of validator that generated withdrawal",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]{0,15})|0$"
},
"address": {
"title": "recipient address for withdrawal value",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
},
"amount": {
"title": "value contained in withdrawal",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]{0,31})|0$"
}
}
}
},
"uncles": {
"title": "Uncles",
"type": "array",
"items": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
}
}
}
}
},
{
"name": "eth_getBlockTransactionCountByHash",
"summary": "Returns the number of transactions in a block from a block matching the given block hash.",
"params": [
{
"name": "Block hash",
"schema": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
}
],
"result": {
"name": "Transaction count",
"schema": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
}
}
},
{
"name": "eth_getBlockTransactionCountByNumber",
"summary": "Returns the number of transactions in a block matching the given block number.",
"params": [
{
"name": "Block",
"schema": {
"title": "Block number or tag",
"oneOf": [
{
"title": "Block number",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
{
"title": "Block tag",
"type": "string",
"enum": [
"earliest",
"finalized",
"safe",
"latest",
"pending"
],
"description": "`earliest`: The lowest numbered block the client has available; `finalized`: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; `safe`: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; `latest`: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions; `pending`: A sample next block built by the client on top of `latest` and containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying for `finalized` or `safe` block MUST be responded to with `-39001: Unknown block` error"
}
]
}
}
],
"result": {
"name": "Transaction count",
"schema": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
}
}
},
{
"name": "eth_getUncleCountByBlockHash",
"summary": "Returns the number of uncles in a block from a block matching the given block hash.",
"params": [
{
"name": "Block hash",
"schema": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
}
],
"result": {
"name": "Uncle count",
"schema": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
}
}
},
{
"name": "eth_getUncleCountByBlockNumber",
"summary": "Returns the number of transactions in a block matching the given block number.",
"params": [
{
"name": "Block",
"schema": {
"title": "Block number or tag",
"oneOf": [
{
"title": "Block number",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
{
"title": "Block tag",
"type": "string",
"enum": [
"earliest",
"finalized",
"safe",
"latest",
"pending"
],
"description": "`earliest`: The lowest numbered block the client has available; `finalized`: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; `safe`: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; `latest`: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions; `pending`: A sample next block built by the client on top of `latest` and containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying for `finalized` or `safe` block MUST be responded to with `-39001: Unknown block` error"
}
]
}
}
],
"result": {
"name": "Uncle count",
"schema": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
}
}
},
{
"name": "eth_chainId",
"summary": "Returns the chain ID of the current network.",
"params": [],
"result": {
"name": "Chain ID",
"schema": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
}
}
},
{
"name": "eth_syncing",
"summary": "Returns an object with data about the sync status or false.",
"params": [],
"result": {
"name": "Syncing status",
"schema": {
"title": "Syncing status",
"oneOf": [
{
"title": "Syncing progress",
"type": "object",
"properties": {
"startingBlock": {
"title": "Starting block",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"currentBlock": {
"title": "Current block",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"highestBlock": {
"title": "Highest block",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
}
}
},
{
"title": "Not syncing",
"description": "Should always return false if not syncing.",
"type": "boolean"
}
]
}
}
},
{
"name": "eth_coinbase",
"summary": "Returns the client coinbase address.",
"params": [],
"result": {
"name": "Coinbase address",
"schema": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
}
}
},
{
"name": "eth_accounts",
"summary": "Returns a list of addresses owned by client.",
"params": [],
"result": {
"name": "Accounts",
"schema": {
"title": "Accounts",
"type": "array",
"items": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
}
}
}
},
{
"name": "eth_blockNumber",
"summary": "Returns the number of most recent block.",
"params": [],
"result": {
"name": "Block number",
"schema": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
}
}
},
{
"name": "eth_call",
"summary": "Executes a new message call immediately without creating a transaction on the block chain.",
"params": [
{
"name": "Transaction",
"required": true,
"schema": {
"type": "object",
"title": "Transaction object generic to all types",
"properties": {
"type": {
"title": "type",
"type": "string",
"pattern": "^0x([0-9,a-f,A-F]?){1,2}$"
},
"nonce": {
"title": "nonce",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"to": {
"title": "to address",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
},
"from": {
"title": "from address",
"type": "string",
"pattern": "^0x[0-9,a-f,A-F]{40}$"
},
"gas": {
"title": "gas limit",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"value": {
"title": "value",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
},
"input": {
"title": "input data",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"gasPrice": {
"title": "gas price",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "The gas price willing to be paid by the sender in wei"
},
"maxPriorityFeePerGas": {
"title": "max priority fee per gas",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
"description": "Maximu