{"components":{"schemas":{"Quantity":{"type":"string","description":"Unsigned integer, hex-encoded with a 0x prefix and no leading zeros.","pattern":"^0x([1-9a-f][0-9a-f]*|0)$"},"Bytes":{"type":"string","description":"Arbitrary-length byte string, hex-encoded with a 0x prefix.","pattern":"^0x[0-9a-f]*$"},"Address":{"type":"string","description":"20-byte account address, hex-encoded with a 0x prefix.","pattern":"^0x[0-9a-fA-F]{40}$"},"Hash":{"type":"string","description":"32-byte hash, hex-encoded with a 0x prefix.","pattern":"^0x[0-9a-fA-F]{64}$"},"BlockParameter":{"type":"string","description":"A hex block number, or one of the tags latest, earliest, pending, safe, finalized. Defaults to latest when omitted.","default":"latest"},"CallObject":{"type":"object","description":"The message call to execute.","properties":{"from":{"$ref":"#/components/schemas/Address"},"to":{"$ref":"#/components/schemas/Address"},"gas":{"$ref":"#/components/schemas/Quantity"},"gasPrice":{"$ref":"#/components/schemas/Quantity"},"value":{"$ref":"#/components/schemas/Quantity"},"data":{"$ref":"#/components/schemas/Bytes"}}},"LogFilter":{"type":"object","description":"Criteria selecting which event logs to return.","properties":{"fromBlock":{"$ref":"#/components/schemas/BlockParameter"},"toBlock":{"$ref":"#/components/schemas/BlockParameter"},"address":{"$ref":"#/components/schemas/Address"},"topics":{"type":"array","items":{"type":"string"}},"blockHash":{"$ref":"#/components/schemas/Hash"}}}}},"info":{"title":"EVM JSON-RPC API","version":"1.0.0","description":"Standard Ethereum-compatible JSON-RPC 2.0 read methods, as implemented by EVM execution clients. Parameters are positional. Quantities and hashes are hex-encoded strings prefixed with 0x. Block parameters accept either a hex block number or one of the tags latest, earliest, pending, safe, finalized.","license":{"name":"CC0-1.0"}},"methods":[{"description":"Returns the name and version string of the execution client serving this endpoint.","name":"web3_clientVersion","paramStructure":"by-position","params":[],"result":{"name":"clientVersion","schema":{"type":"string"}},"summary":"Get the client software version"},{"description":"Returns the current network id as a decimal string.","name":"net_version","paramStructure":"by-position","params":[],"result":{"name":"networkId","schema":{"type":"string"}},"summary":"Get the network id"},{"description":"Returns the EIP-155 chain id of the connected chain, hex-encoded.","name":"eth_chainId","paramStructure":"by-position","params":[],"result":{"name":"chainId","schema":{"$ref":"#/components/schemas/Quantity"}},"summary":"Get the chain id"},{"description":"Returns the number of the most recent block, hex-encoded.","name":"eth_blockNumber","paramStructure":"by-position","params":[],"result":{"name":"blockNumber","schema":{"$ref":"#/components/schemas/Quantity"}},"summary":"Get the latest block number"},{"description":"Returns an estimate of the current gas price in wei, hex-encoded.","name":"eth_gasPrice","paramStructure":"by-position","params":[],"result":{"name":"gasPrice","schema":{"$ref":"#/components/schemas/Quantity"}},"summary":"Get the current gas price"},{"description":"Returns the native token balance of an address at a given block, in wei, hex-encoded.","name":"eth_getBalance","paramStructure":"by-position","params":[{"name":"address","required":true,"schema":{"$ref":"#/components/schemas/Address"}},{"name":"block","required":false,"schema":{"$ref":"#/components/schemas/BlockParameter"}}],"result":{"name":"balance","schema":{"$ref":"#/components/schemas/Quantity"}},"summary":"Get an account balance"},{"description":"Returns the number of transactions sent from an address at a given block, hex-encoded. This is the account nonce.","name":"eth_getTransactionCount","paramStructure":"by-position","params":[{"name":"address","required":true,"schema":{"$ref":"#/components/schemas/Address"}},{"name":"block","required":false,"schema":{"$ref":"#/components/schemas/BlockParameter"}}],"result":{"name":"nonce","schema":{"$ref":"#/components/schemas/Quantity"}},"summary":"Get an account nonce"},{"description":"Returns the deployed bytecode at an address at a given block. Returns 0x for an address that holds no code.","name":"eth_getCode","paramStructure":"by-position","params":[{"name":"address","required":true,"schema":{"$ref":"#/components/schemas/Address"}},{"name":"block","required":false,"schema":{"$ref":"#/components/schemas/BlockParameter"}}],"result":{"name":"code","schema":{"$ref":"#/components/schemas/Bytes"}},"summary":"Get contract bytecode"},{"description":"Returns the 32-byte value stored at a storage slot of an address at a given block.","name":"eth_getStorageAt","paramStructure":"by-position","params":[{"name":"address","required":true,"schema":{"$ref":"#/components/schemas/Address"}},{"name":"slot","required":true,"schema":{"$ref":"#/components/schemas/Quantity"}},{"name":"block","required":false,"schema":{"$ref":"#/components/schemas/BlockParameter"}}],"result":{"name":"value","schema":{"$ref":"#/components/schemas/Bytes"}},"summary":"Read a contract storage slot"},{"description":"Returns a block by number or tag. When the second parameter is true, transactions are returned in full rather than as hashes.","name":"eth_getBlockByNumber","paramStructure":"by-position","params":[{"name":"block","required":true,"schema":{"$ref":"#/components/schemas/BlockParameter"}},{"name":"fullTransactions","required":true,"schema":{"type":"boolean"}}],"result":{"name":"block","schema":{"type":["object","null"]}},"summary":"Get a block by number"},{"description":"Returns a block by its hash. When the second parameter is true, transactions are returned in full rather than as hashes.","name":"eth_getBlockByHash","paramStructure":"by-position","params":[{"name":"blockHash","required":true,"schema":{"$ref":"#/components/schemas/Hash"}},{"name":"fullTransactions","required":true,"schema":{"type":"boolean"}}],"result":{"name":"block","schema":{"type":["object","null"]}},"summary":"Get a block by hash"},{"description":"Returns the transaction with the given hash, or null when it is unknown to this node.","name":"eth_getTransactionByHash","paramStructure":"by-position","params":[{"name":"transactionHash","required":true,"schema":{"$ref":"#/components/schemas/Hash"}}],"result":{"name":"transaction","schema":{"type":["object","null"]}},"summary":"Get a transaction by hash"},{"description":"Returns the receipt of a transaction, including its status, gas used and emitted logs. Returns null while the transaction is still pending.","name":"eth_getTransactionReceipt","paramStructure":"by-position","params":[{"name":"transactionHash","required":true,"schema":{"$ref":"#/components/schemas/Hash"}}],"result":{"name":"receipt","schema":{"type":["object","null"]}},"summary":"Get a transaction receipt"},{"description":"Executes a message call against the current state without creating a transaction, and returns the raw return data. Used for reading contract view functions.","name":"eth_call","paramStructure":"by-position","params":[{"name":"transaction","required":true,"schema":{"$ref":"#/components/schemas/CallObject"}},{"name":"block","required":false,"schema":{"$ref":"#/components/schemas/BlockParameter"}}],"result":{"name":"returnData","schema":{"$ref":"#/components/schemas/Bytes"}},"summary":"Execute a read-only contract call"},{"description":"Returns an estimate of the gas a transaction would consume, hex-encoded, without submitting it to the network.","name":"eth_estimateGas","paramStructure":"by-position","params":[{"name":"transaction","required":true,"schema":{"$ref":"#/components/schemas/CallObject"}},{"name":"block","required":false,"schema":{"$ref":"#/components/schemas/BlockParameter"}}],"result":{"name":"gas","schema":{"$ref":"#/components/schemas/Quantity"}},"summary":"Estimate gas for a call"},{"description":"Returns event logs matching a filter. Providers commonly cap the block range and the number of results returned.","name":"eth_getLogs","paramStructure":"by-position","params":[{"name":"filter","required":true,"schema":{"$ref":"#/components/schemas/LogFilter"}}],"result":{"name":"logs","schema":{"type":"array","items":{"type":"object"}}},"summary":"Query event logs"}],"openrpc":"1.2.6","servers":[{"name":"gateway","url":"."}]}