For the full documentation of available parameters and descriptions, please visit the official Ethereum JSON-RPC docs.
For compatibility with Parity, please prefix all hex strings with " 0x ".
eth_blockNumber
Returns the number of most recent block
https://api-holesky.fraxscan.com/api
?module=proxy
&action=eth_blockNumber
&apikey=YourApiKeyToken
Try this endpoint in your browser
Sample response
{
"jsonrpc":"2.0",
"result":"0x3271d9",
"id":83
}
eth_getBlockByNumber
Returns information about a block by block number.
https://api-holesky.fraxscan.com/api
?module=proxy
&action=eth_getBlockByNumber
&tag=0x3271d9
&boolean=true
&apikey=YourApiKeyToken
Sample response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"baseFeePerGas": "0xfe",
"difficulty": "0x0",
"extraData": "0x",
"gasLimit": "0x1c9c380",
"gasUsed": "0xc56b",
"hash": "0xa8be6aabc822c6e3eabacce749c0ea43e062301dba541f638bdd198cc53dd6ca",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner": "0x4200000000000000000000000000000000000011",
"mixHash": "0xe8493b738445b06301356c56ce017097d4a7471d306b9d7db2579a54b5222365",
"nonce": "0x0000000000000000",
"number": "0x3271d9",
"parentHash": "0x1622549054395bdca059322c898008ae7ba5251879039a35f78c872f6da6a296",
"receiptsRoot": "0x2fab18d77dac070f938788144341d6b779e1144c49e526da866c6122e42adfe0",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x388",
"stateRoot": "0xda15d07003bffa64e8dd04483eedf589d4c6320b2acb07122ea9e3d504c45955",
"timestamp": "0x65b8ca72",
"totalDifficulty": "0x0",
"transactions": [
{
"blockHash": "0xa8be6aabc822c6e3eabacce749c0ea43e062301dba541f638bdd198cc53dd6ca",
"blockNumber": "0x3271d9",
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
"gas": "0xf4240",
"gasPrice": "0x0",
"hash": "0x758fc8d8e7e7df19fe1dabe0590b611360a18cdc1a4a27f7f2cf7f9c1506061a",
"input": "0x015d8eb900000000000000000000000000000000000000000000000000000000000cd5080000000000000000000000000000000000000000000000000000000065b8ca38000000000000000000000000000000000000000000000000000000003d42717acd7b746bbb5bac6eaf132ceeb10aa7653ed6aee5d8577dd61fb3297839467c1200000000000000000000000000000000000000000000000000000000000000020000000000000000000000008cf0980af70646d862a366debebf95b8fdb8af1d000000000000000000000000000000000000000000000000000000000000083400000000000000000000000000000000000000000000000000000000000f4240",
"nonce": "0x3271d8",
"to": "0x4200000000000000000000000000000000000015",
"transactionIndex": "0x0",
"value": "0x0",
"type": "0x7e",
"v": "0x0",
"r": "0x0",
"s": "0x0",
"sourceHash": "0xb15bc109e3556ea8a3cb07a5cc53a3eb3f7dd74ebf596b5aa4f5813858067779",
"mint": "0x0",
"depositReceiptVersion": "0x1"
}
],
"transactionsRoot": "0x8571a6cf5ca091e1ee3c6a91282cc79472303d0a17d1d3dc3720d5285152c4fa",
"uncles": [],
"withdrawals": [],
"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
}
}
eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block.
https://api-holesky.fraxscan.com/api
?module=proxy
&action=eth_getBlockTransactionCountByNumber
&tag=0x3271d9
&apikey=YourApiKeyToken
Sample response
{
"jsonrpc":"2.0",
"result":"0x1",
"id":1
}
eth_getTransactionByHash
Returns the information about a transaction requested by transaction hash.
https://api-holesky.fraxscan.com/api
?module=proxy
&action=eth_getTransactionByHash
&txhash=0xc8d49ba4921e5807401aa6c0b838eeb8c2b4fbe4bf68e187082b244d798d2688
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x42b8fcd7c49f224465617d51471ab4a846f61bca68577a998f13dfe522978053",
"blockNumber": "0x326587",
"from": "0x08a9a8248d1a15b73d07a374c4cd32eac4e43ebb",
"gas": "0x14b75",
"gasPrice": "0xf433e",
"maxFeePerGas": "0xf4381",
"maxPriorityFeePerGas": "0xf4240",
"hash": "0xc8d49ba4921e5807401aa6c0b838eeb8c2b4fbe4bf68e187082b244d798d2688",
"input": "0xb541708400000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000007506f6c79676f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a30786237393030453845633634413144313331354236443430313764346231646364333645364561383800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000008a9a8248d1a15b73d07a374c4cd32eac4e43ebb000000000000000000000000b7900e8ec64a1d1315b6d4017d4b1dcd36e6ea8800000000000000000000000000000000000000000000000000000000000000034145540000000000000000000000000000000000000000000000000000000000",
"nonce": "0x191",
"to": "0xf34f95afc1b9dc8c3d2c490bc20b3b3dd546ade4",
"transactionIndex": "0x1",
"value": "0x0",
"type": "0x2",
"accessList": [],
"chainId": "0x9da",
"v": "0x0",
"r": "0x4948772593ab78316908f9c637e49056fcd8c15299d75ffe8c61702f79b4019",
"s": "0x12fbfb587652fcd731d2398fdb5cba683b861e5a12e00756ba7e3ab0b83ac812",
"yParity": "0x0"
}
}
eth_getTransactionByBlockNumberAndIndex
Returns information about a transaction by block number and transaction index position.
https://api-holesky.fraxscan.com/api
?module=proxy
&action=eth_getTransactionByBlockNumberAndIndex
&tag=0x3271d9
&index=0x0
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0xa8be6aabc822c6e3eabacce749c0ea43e062301dba541f638bdd198cc53dd6ca",
"blockNumber": "0x3271d9",
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
"gas": "0xf4240",
"gasPrice": "0x0",
"hash": "0x758fc8d8e7e7df19fe1dabe0590b611360a18cdc1a4a27f7f2cf7f9c1506061a",
"input": "0x015d8eb900000000000000000000000000000000000000000000000000000000000cd5080000000000000000000000000000000000000000000000000000000065b8ca38000000000000000000000000000000000000000000000000000000003d42717acd7b746bbb5bac6eaf132ceeb10aa7653ed6aee5d8577dd61fb3297839467c1200000000000000000000000000000000000000000000000000000000000000020000000000000000000000008cf0980af70646d862a366debebf95b8fdb8af1d000000000000000000000000000000000000000000000000000000000000083400000000000000000000000000000000000000000000000000000000000f4240",
"nonce": "0x3271d8",
"to": "0x4200000000000000000000000000000000000015",
"transactionIndex": "0x0",
"value": "0x0",
"type": "0x7e",
"v": "0x0",
"r": "0x0",
"s": "0x0",
"sourceHash": "0xb15bc109e3556ea8a3cb07a5cc53a3eb3f7dd74ebf596b5aa4f5813858067779",
"mint": "0x0",
"depositReceiptVersion": "0x1"
}
}
eth_getTransactionCount
Returns the number of transactions performed by an address.
https://api-holesky.fraxscan.com/api
?module=proxy
&action=eth_getTransactionCount
&address=0x08a9a8248d1a15b73d07a374c4cd32eac4e43ebb
&tag=latest
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"result":"0x1a2",
"id":1
}
eth_sendRawTransaction
Submits a pre-signed transaction for broadcast to the Fraxtal network.
https://api-holesky.fraxscan.com/api
?module=proxy
&action=eth_sendRawTransaction
&hex=0x02f874030185012a05f200852e90edd00082520894eeee7341f206302f2216e39d715b96d8c6901a1c880de0b6b3a764000080c001a0bf61ea5419c7856be4ea2221b721b849d50fec738d10a714e7aaa809d9ad8838a01e59353aa8e567cc0661fb58b047361998df234df6593bf424839bc5ea214a2c
&apikey=YourApiKeyToken
Sample Response
{
"id":1,
"jsonrpc": "2.0",
"result": "0x84c81fc1e23474e13be0114f94f99b43696830f33292fd1d642f37e87e95acd6"
}
Use eth_getTransactionReceipt to retrieve full details.
eth_getTransactionReceipt
Returns the receipt of a transaction by transaction hash.
https://api-holesky.fraxscan.com/api
?module=proxy
&action=eth_getTransactionReceipt
&txhash=0xc8d49ba4921e5807401aa6c0b838eeb8c2b4fbe4bf68e187082b244d798d2688
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x42b8fcd7c49f224465617d51471ab4a846f61bca68577a998f13dfe522978053",
"blockNumber": "0x326587",
"contractAddress": null,
"cumulativeGasUsed": "0x1fae2",
"effectiveGasPrice": "0xf433e",
"from": "0x08a9a8248d1a15b73d07a374c4cd32eac4e43ebb",
"gasUsed": "0x13577",
"l1Fee": "0x7de4a088d2c",
"l1FeeScalar": "1",
"l1GasPrice": "0x47e6164b",
"l1GasUsed": "0x1c04",
"logs": [
{
"address": "0x747442267886c72ec5e2c26708459fe9c18d43a6",
"topics": [
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"0x00000000000000000000000008a9a8248d1a15b73d07a374c4cd32eac4e43ebb",
"0x000000000000000000000000f34f95afc1b9dc8c3d2c490bc20b3b3dd546ade4"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000000000",
"blockNumber": "0x326587",
"transactionHash": "0xc8d49ba4921e5807401aa6c0b838eeb8c2b4fbe4bf68e187082b244d798d2688",
"transactionIndex": "0x1",
"blockHash": "0x42b8fcd7c49f224465617d51471ab4a846f61bca68577a998f13dfe522978053",
"logIndex": "0x0",
"removed": false
},
{
"address": "0x747442267886c72ec5e2c26708459fe9c18d43a6",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000008a9a8248d1a15b73d07a374c4cd32eac4e43ebb",
"0x000000000000000000000000f34f95afc1b9dc8c3d2c490bc20b3b3dd546ade4"
],
"data": "0x00000000000000000000000000000000000000000000000000000000000003e8",
"blockNumber": "0x326587",
"transactionHash": "0xc8d49ba4921e5807401aa6c0b838eeb8c2b4fbe4bf68e187082b244d798d2688",
"transactionIndex": "0x1",
"blockHash": "0x42b8fcd7c49f224465617d51471ab4a846f61bca68577a998f13dfe522978053",
"logIndex": "0x1",
"removed": false
},
{
"address": "0xf34f95afc1b9dc8c3d2c490bc20b3b3dd546ade4",
"topics": [
"0x7e50569d26be643bda7757722291ec66b1be66d8283474ae3fab5a98f878a7a2",
"0x00000000000000000000000008a9a8248d1a15b73d07a374c4cd32eac4e43ebb",
"0xb00cc399c143feab31283f6006ce4700530b7dfbd341a7a7e9ed689a3f3e8b7e"
],
"data": "0x00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000007506f6c79676f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a30786237393030453845633634413144313331354236443430313764346231646364333645364561383800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000008a9a8248d1a15b73d07a374c4cd32eac4e43ebb000000000000000000000000b7900e8ec64a1d1315b6d4017d4b1dcd36e6ea8800000000000000000000000000000000000000000000000000000000000000034145540000000000000000000000000000000000000000000000000000000000",
"blockNumber": "0x326587",
"transactionHash": "0xc8d49ba4921e5807401aa6c0b838eeb8c2b4fbe4bf68e187082b244d798d2688",
"transactionIndex": "0x1",
"blockHash": "0x42b8fcd7c49f224465617d51471ab4a846f61bca68577a998f13dfe522978053",
"logIndex": "0x2",
"removed": false
}
],
"logsBloom": "0x00000000000000000000000000000000000000000000004000008000000000008000000000000000000000000000000000000002000000000000000000200000000000000000000000000008000000000000020000000000000000000000000000000040000002000000000100000000000000000000000000000050000000000000000000000000200000000000000000000000000000000000000000200000020000000000000000004000000000000000000000000000000000008000040000000002000004000000000000000000000000000000000000000080000000000010000000000000000000000200000000000000002000000000000000000000",
"status": "0x1",
"to": "0xf34f95afc1b9dc8c3d2c490bc20b3b3dd546ade4",
"transactionHash": "0xc8d49ba4921e5807401aa6c0b838eeb8c2b4fbe4bf68e187082b244d798d2688",
"transactionIndex": "0x1",
"type": "0x2"
}
}
eth_call
Executes a new message call immediately without creating a transaction on the block chain.
https://api-holesky.fraxscan.com/api
?module=proxy
&action=eth_call
&to=0xf34f95afc1b9dc8c3d2c490bc20b3b3dd546ade4
&data=0xb5417084
&tag=latest
&apikey=YourApiKeyToken
Query Parameters
⛽ Note: The gas
parameter is capped at 2x the current block gas limit.
Sample Response
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32000,
"message": "execution reverted"
}
}
eth_getCode
Returns code at a given address.
https://api-holesky.fraxscan.com/api
?module=proxy
&action=eth_getCode
&address=0xe7D5cEa57FF64Ee7f6a74b1c3Cd9BfF7DFA57F84
&tag=latest
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"result":"0x608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461012357806370a082311461013657806395d89b411461015f578063a457c2d714610167578063a9059cbb1461017a578063dd62ed3e1461018d57600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610101578063313ce56714610114575b600080fd5b6100b66101c6565b6040516100c391906107d8565b60405180910390f35b6100df6100da3660046107ae565b610258565b60405190151581526020016100c3565b6002545b6040519081526020016100c3565b6100df61010f366004610772565b61026e565b604051601281526020016100c3565b6100df6101313660046107ae565b61031d565b6100f361014436600461071d565b6001600160a01b031660009081526020819052604090205490565b6100b6610359565b6100df6101753660046107ae565b610368565b6100df6101883660046107ae565b610401565b6100f361019b36600461073f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6060600380546101d590610853565b80601f016020809104026020016040519081016040528092919081815260200182805461020190610853565b801561024e5780601f106102235761010080835404028352916020019161024e565b820191906000526020600020905b81548152906001019060200180831161023157829003601f168201915b5050505050905090565b600061026533848461040e565b50600192915050565b600061027b848484610532565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103055760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610312853385840361040e565b506001949350505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161026591859061035490869061082d565b61040e565b6060600480546101d590610853565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156103ea5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016102fc565b6103f7338585840361040e565b5060019392505050565b6000610265338484610532565b6001600160a01b0383166104705760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016102fc565b6001600160a01b0382166104d15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016102fc565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166105965760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016102fc565b6001600160a01b0382166105f85760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016102fc565b6001600160a01b038316600090815260208190526040902054818110156106705760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016102fc565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906106a790849061082d565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516106f391815260200190565b60405180910390a350505050565b80356001600160a01b038116811461071857600080fd5b919050565b60006020828403121561072f57600080fd5b61073882610701565b9392505050565b6000806040838503121561075257600080fd5b61075b83610701565b915061076960208401610701565b90509250929050565b60008060006060848603121561078757600080fd5b61079084610701565b925061079e60208501610701565b9150604084013590509250925092565b600080604083850312156107c157600080fd5b6107ca83610701565b946020939093013593505050565b600060208083528351808285015260005b81811015610805578581018301518582016040015282016107e9565b81811115610817576000604083870101525b50601f01601f1916929092016040019392505050565b6000821982111561084e57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c9082168061086757607f821691505b6020821081141561088857634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212201b3d4b657de1a235dd79d09ac5a4b158cb6fd6379b9a1a84b6d71ca19520106964736f6c63430008070033",
"id":1
}
eth_getStorageAt
Returns the value from a storage position at a given address.
This endpoint is still experimental and may have potential issues
https://api-holesky.fraxscan.com/api
?module=proxy
&action=eth_getStorageAt
&address=0x2B579a734436045F1ea233AC11CE3259Da9b4445
&position=0x0
&tag=latest
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"result":"0x000000000000000000000000d97a3d9eb7c07ce23f241feadd6da13c0506ea1a",
"id":1
}
eth_gasPrice
Returns the current price per gas in wei.
https://api-holesky.fraxscan.com/api
?module=proxy
&action=eth_gasPrice
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"result":"0x5d21dba00",
"id":73
}
eth_estimateGas
Makes a call or transaction, which won't be added to the blockchain and returns the used gas.
https://api-holesky.fraxscan.com/api
?module=proxy
&action=eth_estimateGas
&data=0x
&to=0x2b579a734436045f1ea233ac11ce3259da9b4445
&value=0x1
&gasPrice=0x5D21DBA00
&gas=0x186A0
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"error":{
"code":-32000,
"message":"execution reverted"
}
}