Geth

Go-Ethereum (GETH)

GETH is Golang implementation of the Ethereum protocol.

Comparison to other Ethereum Clients

Parity Ethereum

Go-Ethereum (Geth)

  • Written in Go

  • Has "Fast Sync"

  • Product of go-etherum (Geth) project

JSON-RPC API Reference

eth_accounts

Returns a list of addresses owned by client.

Although supported by DEPLOY, this JSON-RPC method will not return any accounts. Accounts cannot be unlocked in DEPLOY nodes due to private key policy. If you wish to have a node with private key management, please emails us at support@deploy.radar.tech

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_accounts","params":[]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the below JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1}

Response

Returns - Array - 20 Bytes - addresses owned by the client.

{"jsonrpc":"2.0","result":[],"id":"1"}

eth_blockNumber

Returns the number of most recent Block.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_blockNumber","params":[]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}

Response

Returns - Block Number - a hex code of an integer of the current Block number the client is on.

{"jsonrpc":"2.0","result":"0x8acc1e","id":"1"}

eth_call

Executes a new message call immediately without creating a transaction on the blockchain.

Parameters

  1. Trasaction Call Object [required]

    Required

    Description

    from

    [optional]

    20 Bytes - The address the transaction is sent from.

    to

    [optional]

    20 Bytes - The address the transaction is directed to.

    gas

    [optional]

    Integer of the gas provided for the transaction execution. eth_call consumes zero gas, but this parameter may be needed by some executions.

    gasPrice

    [optional]

    Integer of the gas price used for each paid gas.

    value

    [optional]

    Integer of the value sent with this transaction.

    data

    [optional]

    4 byte hash of the method signature followed by encoded parameters. For details see Ethereum Contract ABI.

  2. Block Parameter [optional]

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_call","params":[{"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1","to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b","gas": "0x76c0","gasPrice": "0x8464e45b000","value": "0x385a0","data": "0xd46e8db8eb234970870f07244538976722343425"}, "latest"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_call","params":[{"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1","to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b","gas": "0x76c0","gasPrice": "0x8464e45b000","value": "0x385a0","data": "0xd46e8db8eb234970870f07244538976722343425"}, "latest"],"id":1}

Response

Returns - Data - the return value of executed contract method.

{"jsonrpc":"2.0","result":"0x","id":"1"}

eth_chainId

Returns the EIP155 chain ID used for transaction signing at the current best Block. Null is returned if not available.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_chainId","params":[]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}

Response

Returns - Quantity - big integer of the current chain id, or `null` if not available.

{"jsonrpc":"2.0","result":"0x1","id":"1"}

eth_estimateGas

Makes a call or transaction, which won’t be added to the Blockchain and returns the used gas, which can be used for estimating the used gas.

Parameters

  1. Object - Same as eth_call parameters, except that all properties are optional.

    Required

    Description

    from

    [optional]

    20 Bytes - The address the transaction is sent from.

    to

    [optional]

    20 Bytes - The address the transaction is directed to.

    gas

    [optional]

    Integer of the gas provided for the transaction execution. eth_call consumes zero gas, but this parameter may be needed by some executions.

    gasPrice

    [optional]

    Integer of the gas price used for each paid gas.

    value

    [optional]

    Integer of the value sent with this transaction.

    data

    [optional]

    4 byte hash of the method signature followed by encoded parameters. For details see Ethereum Contract ABI.

  2. Quantity or Tag [optional]

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_estimateGas","params":[{"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1","to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b","gas": "0x76c0","gasPrice": "0x8464e45b000","value": "0x385a0","data": "0xd46e8db8eb234970870f07244538976722343425"}, "latest"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_estimateGas","params":[{"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1","to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b","gas": "0x76c0","gasPrice": "0x8464e45b000","value": "0x385a0","data": "0xd46e8db8eb234970870f07244538976722343425"}, "latest"],"id":1}

Response

Returns - Quantity - the amount of gas used.

{"jsonrpc":"2.0","result":"0x5348","id":"1"}

eth_gasPrice

Returns the current price per gas in wei.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_gasPrice","params":[]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":1}

Response

Returns - Quantity - integer of the current gas price in wei.

{"jsonrpc":"2.0","result":"0x12a05f200","id":"1"}

eth_getBalance

Returns the current price per gas in wei.

Parameters

  1. Address [required]

    • 20 Bytes - address to check for balance.

  2. Block Parameter [optional]

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_getBalance","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_getBalance","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"],"id":1}

Response

Returns - Quantity - integer of the current balance in wei.

{"jsonrpc":"2.0","result":"0x0","id":"1"}

eth_getBlockByHash

Returns information about a Block by hash.

Parameters

  1. Block Hash [required]

    • 32 Bytes - a string representing the hash of a Block.

  2. Show Transaction Details Flag [required]

    • True - returns full transaction objects.

    • False - returns only the hashes of the transactions.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_getBlockByHash","params":["0xde649b048ea87f416a0208b9a7e25704841d94efc2b067c31037096885c65a17", false]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_getBlockByHash","params":["0xde649b048ea87f416a0208b9a7e25704841d94efc2b067c31037096885c65a17", false],"id":1}

Response

Returns

  • Block - A Block object, or null when no Block was found

  • number - the Block number. null when the returned Block is the pending Block.

  • hash - 32 Bytes - hash of the Block. null when the returned Block is the pending Block.

  • parentHash - 32 Bytes - hash of the parent Block.

  • nonce - 8 Bytes - hash of the generated proof-of-work. null when the returned Block is the pending Block.

  • sha3Uncles - 32 Bytes - SHA3 of the uncles data in the Block.

  • logsBloom - 256 Bytes - the bloom filter for the logs of the Block. null when the returned Block is the pending Block.

  • transactionsRoot - 32 Bytes - the root of the transaction trie of the Block.

  • stateRoot - 32 Bytes - the root of the final state trie of the Block.

  • receiptsRoot - 32 Bytes - the root of the receipts trie of the Block.

  • miner: 20 Bytes - the address of the beneficiary to whom the mining rewards were given.

  • difficulty - integer of the difficulty for this Block.

  • totalDifficulty - integer of the total difficulty of the chain until this Block.

  • extraData - the "extra data" field of this Block.

  • size - integer the size of this Block in bytes.

  • gasLimit - the maximum gas allowed in this Block.

  • gasUsed - the total used gas by all transactions in this Block.

  • timestamp - the unix timestamp for when the Block was collated.

  • transactions - Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.

  • uncles - an Array of uncle hashes.

{
"jsonrpc": "2.0",
"result": {
"author": "0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5",
"difficulty": "0x918a14b21a1c2",
"extraData": "0x50505945206e616e6f706f6f6c2e6f7267",
"gasLimit": "0x969b4d",
"gasUsed": "0xc8e18",
"hash": "0xde649b048ea87f416a0208b9a7e25704841d94efc2b067c31037096885c65a17",
"logsBloom": "0x0000100000000000000800000000000000000000000000000010000800020000000008610080000000000000000001000000040000000000086000000228200000000000002000004800008820000000000000000000a000000000000000200010000000800000000000000000000000808000800000080000200010000000008000100000210000000000000000000000010100850000000200000200100000020000000000200401000080000000000020001020000000000000000020000100000802000000000000000020000800050002000008008000140210202000000050a00000000000000000001000000000000000000000000808080000000400",
"miner": "0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5",
"mixHash": "0xa66232ceabc60e28901b9566dfad12163c0f499245396eb52d47a73542c755a7",
"nonce": "0xba878670086da17e",
"number": "0x8acc3e",
"parentHash": "0x6f62be1c883bdfb80073114a44d86e334bb9e09f14441f21e8b5f704bc756e4f",
"receiptsRoot": "0x4e5c02b1b9ecb7e80eea48eadb28cae2131f83ecf14bd08da909194e4532d361",
"sealFields": [
"0xa0a66232ceabc60e28901b9566dfad12163c0f499245396eb52d47a73542c755a7",
"0x88ba878670086da17e"
],
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x1208",
"stateRoot": "0x2bb52024db7298299f9e3de11f0a7b890100ddc450ac1cf466aff41c782cbc62",
"timestamp": "0x5df2a0fc",
"totalDifficulty": "0x2ceabf95bd775b7006b",
"transactions": [
"0xcf2da2684f0babb70548534433994bd564bec208a54fde8f0b79ace293f1c2f6",
"0xdf35d6cce91ce0f22d53fa92da5daa770e5f1a031be16cd4b5e07f31ecd2baae",
"0x60d2ebef3edca5bd446b58e5960c849fb779a77210d515006acd7a07f3bf8f5a",
"0x5554862f5cc33a349e1d31815e8227a9e61ef627fc81f44a3e4f6c709add8f98",
"0xf23ad62e11e93b925234973c1ae22723db3079054380d382295e4560cb43863b",
"0x13773ce64f2f15fe7ed9a01849b939b332037a118b8d14e60da494895db46b30",
"0x94906e3d44a39ce4a673198b4581e5023322db632055e80be3e0aa940aa9dcdb",
"0x9ba1f5566fb740e18e7391871f5d283bc21698a0d019071c90d232f705516a9b",
"0xc28f1c09aab06960b94861d3d54a2b77a572e687ac1c5ece05c91bd71b42bf8b",
"0xd297f4dd253fc46025ca3e1eda37e2238754c51758bf197d1b2bed3e0c2020ff",
"0xe745c67b0a1209d89a49ee7310c5cf4944b638cd2d69b43c4fa20aca59cf5b91",
"0x11bdec792be21fbc294499eb3a63cdbc8d49ad6d299309e45ed60671822a0bfe",
"0x498f2e4edfbdbb771918a6c6cacf2554e996a56b95cf60bbe951043b8462e62f",
"0x3f92f24fff4740417c9dbe2b9c77073b92ac5b4c0f60b168cd2e06dc0f5ed539",
"0x4820fe36a1de000a7447f4a03df3ed4f701e816b780f012ba997bfbae49c9195",
"0x3985e4e3ecca630dc8d2de0fbe1b8ece0de2af92b50ee721f42ce3347072d985",
"0xf1b0e6764e0c24592c68c8bd54d1cc78614a8655653c2e858e6d7ea01224b443",
"0x4c36ed2033d5c77102705f843e2765b59639b00d1b1f95a6473c72676d0fe8a8",
"0xca24916eea69cdab2181f188cd724fd94cbed92e035260180ce5b7893677eff8",
"0x4605c45b7243f5bbff488d596cdd1e81fadc4777ca50e11f60ab3998c94d093d",
"0x044ae6d98da0e3f7e29bac2a973a290acbfbcf110a14afb04eeec06ffa125cb1",
"0x4aa0f6042c992a7a7124d8b328381a237e66e2b5efd9f3550c4245654c27fb52",
"0x21320fd2768f780269a11d7268745b406019fb176fdcc3b66bec8e372cdf5feb",
"0xe0182c91c81aab4460cc3d0049c608414b53eba75384dc7d7790a60c6ca3f3f0",
"0x9f07206482539371ecee75aa7276c6e47bed329157ededbfca048e24a9d2b681"
],
"transactionsRoot": "0xfd20c4c122d52bf89aecc1b322a53f13508e119195f7d36c8f7b9b8a4c3824d7",
"uncles": []
},
"id": "1"
}

eth_getBlockByNumber

Returns information about a Block by hash.

Parameters

  1. Block Parameter [required]

  2. Show Transaction Details Flag [required]

    • True - returns full transaction objects.

    • False - returns only the hashes of the transactions.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_getBlockByNumber","params":["0x5BAD55", false]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x5BAD55", false],"id":1}

Response

Returns

  • Block - A Block object, or null when no Block was found

  • number - the Block number. null when the returned Block is the pending Block.

  • hash - 32 Bytes - hash of the Block. null when the returned Block is the pending Block.

  • parentHash - 32 Bytes - hash of the parent Block.

  • nonce - 8 Bytes - hash of the generated proof-of-work. null when the returned Block is the pending Block.

  • sha3Uncles - 32 Bytes - SHA3 of the uncles data in the Block.

  • logsBloom - 256 Bytes - the bloom filter for the logs of the Block. null when the returned Block is the pending Block.

  • transactionsRoot - 32 Bytes - the root of the transaction trie of the Block.

  • stateRoot - 32 Bytes - the root of the final state trie of the Block.

  • receiptsRoot - 32 Bytes - the root of the receipts trie of the Block.

  • miner: 20 Bytes - the address of the beneficiary to whom the mining rewards were given.

  • difficulty - integer of the difficulty for this Block.

  • totalDifficulty - integer of the total difficulty of the chain until this Block.

  • extraData - the "extra data" field of this Block.

  • size - integer the size of this Block in bytes.

  • gasLimit - the maximum gas allowed in this Block.

  • gasUsed - the total used gas by all transactions in this Block.

  • timestamp - the unix timestamp for when the Block was collated.

  • transactions - Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.

  • uncles - an Array of uncle hashes.

{
"jsonrpc":"2.0",
"result":{
"author":"0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c",
"difficulty":"0xbfabcdbd93dda",
"extraData":"0x737061726b706f6f6c2d636e2d6e6f64652d3132",
"gasLimit":"0x79f39e",
"gasUsed":"0x79ccd3",
"hash":"0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35",
"logsBloom":"0x4848112002a2020aaa0812180045840210020005281600c80104264300080008000491220144461026015300100000128005018401002090a824a4150015410020140400d808440106689b29d0280b1005200007480ca950b15b010908814e01911000054202a020b05880b914642a0000300003010044044082075290283516be82504082003008c4d8d14462a8800c2990c88002a030140180036c220205201860402001014040180002006860810ec0a1100a14144148408118608200060461821802c081000042d0810104a8004510020211c088200420822a082040e10104c00d010064004c122692020c408a1aa2348020445403814002c800888208b1",
"miner":"0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c",
"mixHash":"0x3d1fdd16f15aeab72e7db1013b9f034ee33641d92f71c0736beab4e67d34c7a7",
"nonce":"0x4db7a1c01d8a8072",
"number":"0x5bad55",
"parentHash":"0x61a8ad530a8a43e3583f8ec163f773ad370329b2375d66433eb82f005e1d6202",
"receiptsRoot":"0x5eced534b3d84d3d732ddbc714f5fd51d98a941b28182b6efe6df3a0fe90004b",
"sealFields":[
"0xa03d1fdd16f15aeab72e7db1013b9f034ee33641d92f71c0736beab4e67d34c7a7",
"0x884db7a1c01d8a8072"
],
"sha3Uncles":"0x8a562e7634774d3e3a36698ac4915e37fc84a2cd0044cb84fa5d80263d2af4f6",
"size":"0x41c7",
"stateRoot":"0xf5208fffa2ba5a3f3a2f64ebd5ca3d098978bedd75f335f56b705d8715ee2305",
"timestamp":"0x5b541449",
"totalDifficulty":"0x12ac11391a2f3872fcd",
"transactions":[
"0x8784d99762bccd03b2086eabccee0d77f14d05463281e121a62abfebcf0d2d5f",
"0x311be6a9b58748717ac0f70eb801d29973661aaf1365960d159e4ec4f4aa2d7f",
"0xe42b0256058b7cad8a14b136a0364acda0b4c36f5b02dea7e69bfd82cef252a2",
"0x4eb05376055c6456ed883fc843bc43df1dcf739c321ba431d518aecd7f98ca11",
"0x994dd9e72b212b7dc5fd0466ab75adf7d391cf4f206a65b7ad2a1fd032bb06d7",
"0xf6feecbb9ab0ac58591a4bc287059b1133089c499517e91a274e6a1f5e7dce53",
"0x7e537d687a5525259480440c6ea2e1a8469cd98906eaff8597f3d2a44422ff97",
"0xa762220e92bed6d77a2c19ffc60dad77d71bd5028c5230c896ab4b9552a39b50",
"0xf1fa677edda7e5add8e794732c7554cd5459a5c12781dc71de73c7937dfb2775",
"0x3220af8e317fde6dac80b1199f9ceeafe60ada4974a7e04a75fbce1ac4cb46c3",
"0x5566528978250828168f0d30bcc8a3689d129c75d820d604f7eb84c25b34ec81",
"0x646c98e323a05862778f0c9063a989b6aefd94f28842a3a09d2edb37a050717d",
"0xe951ea55764f7e8e0720f7042dd1db67525965302ed974a0c8e3b769bc1818e3",
"0x7ecf2528b7df3831712501f5c60ef156bf5fcac9912199e0a64afcb963ea91ca",
"0xc43b89783f68b2844918ea515cc146c006e5f162c9be9aedf5e7a6ae1f32e164",
"0xd74503ede63d6fd41367796433aa14439902e8f57293a0583e19aa6ebf3f128e",
"0x021e5b7d3ddac97b4c6cb9c3f333766a533c1ed9fbcfb8b2515c38ecd0c53f89",
"0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0",
"0x25f65866dba34783200c25fb1c120b36326c9ad3a47e8bc34c3edbc9208f1378",
"0x5336f5c4132ef00e8b469ecfd4ee0d6800f6bd60aefb1c62232cbce81c085ae2",
"0xb87410cfe0a75c004f7637736b3de1e8f4e08e9e2b05ab963622a40a5505664d",
"0x990857a27ec7cfd6dfd88015173adf81959b5abaff6eefbe8e9df6b0f40f2711",
"0x3563ccb5734b7b5015122a20b558723afe992ff1109a04b57e02f26edd5a6a38",
"0xd7885d9412cc494fbe680b016bf7402b633c34c66833b35cad59af2a4aff4f0b",
"0x48e60927d6fb9ae76f69a6400490b5ffcb2f9da3105fad6c61f21256ef0c217c",
"0x9e30af26ff3836c4b55af62ba134bc55db662cf1d396cca437d12a8195bfcbe4",
"0x2476eeede4764c6871f50f3235ebeb9a56d33b41bc3bb1ce3c18c5d710a0609c",
"0x1cd3520fbb1eb6f2f6f257ab7c3cba957806b0b87182baedb4f81c62868064c1",
"0x78ae3aee0ff16d8ea4f394b7b80021804e1d9f35cdbb9c6189bb6cbf58bc52c4",
"0xfcc75bad728b8d302ba0674ebe3122fc50e3b78fe4948ddfc0d37ee987e666ca",
"0xd2175464d72bcc61b2e07aa3aac742b4184480d7a9f6ae5c2ba24d9c9bb9f304",
"0x42b56b504e59e42a3dc94e740bb4231e6326daaac7a73ef93ee8db7b96ac5d71",
"0xd42681091641cd2a71f18299e8e206d5659c3076b1c63adc26f5b7740e230d2b",
"0x1202c354f0a00b31adf9e3d895e0c8f3896182bb3ab9fc69d6c21d31a1bf279c",
"0xa5cea1f6957431caf589a8dbb58c102fb191b39967fbe8d26cecf6f28bb835da",
"0x2045efeb2f5ea9176690ece680d3fd7ca9e945d0d572d17786810d323628f98c",
"0xbf55d13976616a23114b724b14049eaaf91db3f1950320b5306006a6b648b24f",
"0x9e5c5ea885eb1d6b1b3ffcf703e3381b7681f7420f35408d30ba93ec0cdf0792",
"0x6f1a61dc4306ca5e976a1706afe1f32279548df98e0373c5fee0ea189ddb77a0",
"0xc5c16b30c22ee4f90c3a2de70554f7975eb476592ff13c61986d760da6cf7f9d",
"0xb09de28497227c0537df0a78797fa00407dcd04a4f90d9de602484b61f7bf169",
"0x1bfea966fa7772a26b4b2c8add15ceedcb70a903618f5d4603d69f52b9954025",
"0xe58be9c0e3cedd4444c76d1adc098ba40cbe21ef886b2bfc2edb6ed96ba8d966",
"0x3a29096f712ccdafd56e9a3c635d4fe2e6224ac3666d466c21da66c8829bbfd6",
"0x31feab77d7c1c87eb79af54193400c8edad16645e1ea5fcc10f2eaec51fe3992",
"0x4e0278fce62dca8e23cfae6a020fcd3b2facc03244d54b964bbde424f902ffe1",
"0x300239a64a50ad0e646c232f85cfa4f3d3ed30090cd574329c782d95c2b42532",
"0x41755f354b06b4b8a452db1cc9b5c810c75b1bbe236603cbc0950c3c81b80c51",
"0x1e3fbeffc326f1ffd8559c6024c12557e6014bc02c12d65dbc1baa4e1aed94b7",
"0x4a459a32cf68e9b7697a3a656432b340d6d27c3d4a513e6cce770d63df99839a",
"0x3ef484913d185de728c787a1053ec1444ec1c7a5827eecba521d3b406b088a89",
"0x43afa584c21f27a2747a8397b00d3ec4b460d929b61b510d017f01037a3ded3f",
"0x44e6a37a6c1d8696fa0537385b9d1bb535b2b3309b5482209e95b5b6c58fc8da",
"0x2a8bca48147955efcfd697f1a97304ae4cc467a7778741c2c47e516610f0a876",
"0x4c6bd64c8974f8b949cfe265da1c1bb997e3c886f024b38c99d170acc70b83df",
"0x103f0cca1ae13600c5be5b217e92430a72b0471d05e283c105f5d0df36438b2a",
"0x00a06bf6fbd07b3a89ef9031a2108c8fa31b467b33a6edcd6eb3687c158743cf",
"0x0175496d8265dedd693cf88884626c33b699ebcf4f2110e4c7fb7603c53215b2",
"0x11fb433ab551b33f30d00a34396835fab72e316e81d1e0afcbc92e79801f30c4",
"0x060dc4541fd534d107f6e49b96d84f5ec6dbe4eb714890e800bd02399a6bfb7f",
"0x01956de9f96f9a268c6524fffb9919d7fa3de7a4c25d53c2ccc43d0cb022a7ff",
"0x15057378f2d223829269ec0f31ba4bb03146134220d34eb8eb7c403aa4a2e569",
"0x16ea0218d72b5e3f69d0ae4daa8085150f5f7e69ee22a3b054744e35e2082879",
"0x0baf4e8ff92058c1cac3b95c237edb4d2c12ad41d210356c209f1e0bf0d2d12a",
"0x1a8ac77aff614caeca16a5a3a0931375a5a4fbe0ef1e15d6d15bf6f8e3c60f4f",
"0xdb899136f41a3d4710907345b09d241490776383271e6b9887499fd05b80fcd4",
"0x1007e17b1120d37fb930f953d8a3440ca11b8fd84470eb107c8b4a402a9813fd",
"0x0910324706ffeebf8aa25ca0784636518bf67e5d173c22438a64dd43d5f4aa2a",
"0x028f2bee56aee7005abcb2258d6d9f0f078a85a65c3d669aca40564ef4bd7f94",
"0x14adac9bc94cde3166f4b7d42e8862a745483c708e51afbe89ecd6532acc532e",
"0x54bed12ccad43523ba8527d1b99f5fa04a55b3a7724cfff2e0a21ec90b08590e",
"0xcdf05df923f6e418505750069d6486276b15fcc3cd2f42a7044c642d19a86d51",
"0x0c66977ed87db75074cb2bea66b254af3b20bb3315e8095290ceb1260b1b7449",
"0x22626e2678da34b505b233ef08fc91ea79c5006dff00e33a442fa51a11e34c25",
"0xe2989560000a1fc7c434c5e9c4bba82e1501bf435292ac25acc3cb182c1c2cd0",
"0x348cfc85c58b7f3b2e8bdaa517dc8e3c5f8fb41e3ba235f28892b46bc3484756",
"0x4ac009cebc1f2416b9e39bcc5b41cd53b1a9239e8f6c0ab043b8830ef1ffc563",
"0xf2a96682362b9ffe9a77190bcbc47937743b6e1da2c56257f9b562f15bbd3cfa",
"0xf1cd627c97746bc75727c2f0efa2d0dc66cca1b36d8e45d897e18a9b19af2f60",
"0x241d89f7888fbcfadfd415ee967882fec6fdd67c07ca8a00f2ca4c910a84c7dd"
],
"transactionsRoot":"0xf98631e290e88f58a46b7032f025969039aa9b5696498efc76baf436fa69b262",
"uncles":[
"0x824cce7c7c2ec6874b9fa9a9a898eb5f27cbaf3991dfa81084c3af60d1db618c"
]
},
"id":"1"
}

eth_getBlockTransactionCountByHash

Returns the number of transactions in a Block from a Block matching the given Block hash.

Parameters

  1. Block Hash [required]

    • 32 Bytes - a string representing the hash of a Block.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_getBlockTransactionCountByHash","params":["0xef1fb2b8805b0d1e180adbd3778e5c5f699ed70a8e0da2ff188706933a664b29"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_getBlockTransactionCountByHash","params":["0xef1fb2b8805b0d1e180adbd3778e5c5f699ed70a8e0da2ff188706933a664b29"],"id":1}

Response

Returns - Block Transaction Count - a hex code of the integer representing the number of transactions in the provided Block

{"jsonrpc":"2.0","result":"0x21","id":"1"}

eth_getBlockTransactionCountByNumber

Parameters

Returns the number of transactions in a Block from a Block matching the given Block hash.

  1. Block Hash [required]

    • 32 Bytes - a string representing the hash of a Block.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_getBlockTransactionCountByNumber","params":["0x5BAD55"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_getBlockTransactionCountByNumber","params":["0x5BAD55"],"id":1}

Response

Returns - Block Transaction Count - a hex code of the integer representing the number of transactions in the provided Block

{"jsonrpc":"2.0","result":"0x50","id":"1"}

eth_getCode

Returns the number of transactions in a Block from a Block matching the given Block hash.

Parameters

  1. Address [required]

    • 20 Bytes - a string representing the address of the code.

  2. Block Parameter [required]

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_getCode","params":["0x514910771af9ca656af840dff83e8264ecf986ca","latest"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_getCode","params":["0x514910771af9ca656af840dff83e8264ecf986ca","latest"],"id":1}

Response

Returns - Data - a hex of the code at the given address.

{
"jsonrpc": "2.0",
"result": "0x606060405236156100b75763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100bc578063095ea7b31461014757806318160ddd1461017d57806323b872dd146101a2578063313ce567146101de5780634000aea014610207578063661884631461028057806370a08231146102b657806395d89b41146102e7578063a9059cbb14610372578063d73dd623146103a8578063dd62ed3e146103de575b600080fd5b34156100c757600080fd5b6100cf610415565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561010c5780820151818401525b6020016100f3565b50505050905090810190601f1680156101395780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015257600080fd5b610169600160a060020a036004351660243561044c565b604051901515815260200160405180910390f35b341561018857600080fd5b610190610499565b60405190815260200160405180910390f35b34156101ad57600080fd5b610169600160a060020a03600435811690602435166044356104a9565b604051901515815260200160405180910390f35b34156101e957600080fd5b6101f16104f8565b60405160ff909116815260200160405180910390f35b341561021257600080fd5b61016960048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506104fd95505050505050565b604051901515815260200160405180910390f35b341561028b57600080fd5b610169600160a060020a036004351660243561054c565b604051901515815260200160405180910390f35b34156102c157600080fd5b610190600160a060020a0360043516610648565b60405190815260200160405180910390f35b34156102f257600080fd5b6100cf610667565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561010c5780820151818401525b6020016100f3565b50505050905090810190601f1680156101395780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561037d57600080fd5b610169600160a060020a036004351660243561069e565b604051901515815260200160405180910390f35b34156103b357600080fd5b610169600160a060020a03600435166024356106eb565b604051901515815260200160405180910390f35b34156103e957600080fd5b610190600160a060020a0360043581169060243516610790565b60405190815260200160405180910390f35b60408051908101604052600f81527f436861696e4c696e6b20546f6b656e0000000000000000000000000000000000602082015281565b600082600160a060020a03811615801590610479575030600160a060020a031681600160a060020a031614155b151561048457600080fd5b61048e84846107bd565b91505b5b5092915050565b6b033b2e3c9fd0803ce800000081565b600082600160a060020a038116158015906104d6575030600160a060020a031681600160a060020a031614155b15156104e157600080fd5b6104ec85858561082a565b91505b5b509392505050565b601281565b600083600160a060020a0381161580159061052a575030600160a060020a031681600160a060020a031614155b151561053557600080fd5b6104ec85858561093c565b91505b5b509392505050565b600160a060020a033381166000908152600260209081526040808320938616835292905290812054808311156105a957600160a060020a0333811660009081526002602090815260408083209388168352929052908120556105e0565b6105b9818463ffffffff610a2316565b600160a060020a033381166000908152600260209081526040808320938916835292905220555b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a3600191505b5092915050565b600160a060020a0381166000908152600160205260409020545b919050565b60408051908101604052600481527f4c494e4b00000000000000000000000000000000000000000000000000000000602082015281565b600082600160a060020a038116158015906106cb575030600160a060020a031681600160a060020a031614155b15156106d657600080fd5b61048e8484610a3a565b91505b5b5092915050565b600160a060020a033381166000908152600260209081526040808320938616835292905290812054610723908363ffffffff610afa16565b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020849055919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591905190815260200160405180910390a35060015b92915050565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b600160a060020a03808416600081815260026020908152604080832033909516835293815283822054928252600190529182205461086e908463ffffffff610a2316565b600160a060020a0380871660009081526001602052604080822093909355908616815220546108a3908463ffffffff610afa16565b600160a060020a0385166000908152600160205260409020556108cc818463ffffffff610a2316565b600160a060020a03808716600081815260026020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3600191505b509392505050565b60006109488484610a3a565b5083600160a060020a031633600160a060020a03167fe19260aff97b920c7df27010903aeb9c8d2be5d310a2c67824cf3f15396e4c16858560405182815260406020820181815290820183818151815260200191508051906020019080838360005b838110156109c35780820151818401525b6020016109aa565b50505050905090810190601f1680156109f05780820380516001836020036101000a031916815260200191505b50935050505060405180910390a3610a0784610b14565b15610a1757610a17848484610b23565b5b5060015b9392505050565b600082821115610a2f57fe5b508082035b92915050565b600160a060020a033316600090815260016020526040812054610a63908363ffffffff610a2316565b600160a060020a033381166000908152600160205260408082209390935590851681522054610a98908363ffffffff610afa16565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060015b92915050565b600082820183811015610b0957fe5b8091505b5092915050565b6000813b908111905b50919050565b82600160a060020a03811663a4c0ed363385856040518463ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018084600160a060020a0316600160a060020a0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610bbd5780820151818401525b602001610ba4565b50505050905090810190601f168015610bea5780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b1515610c0a57600080fd5b6102c65a03f11515610c1b57600080fd5b5050505b505050505600a165627a7a72305820c5f438ff94e5ddaf2058efa0019e246c636c37a622e04bb67827c7374acad8d60029",
"id": "1"
}

eth_getStorageAt

Polling method for a filter, which returns an array of logs which occurred since last poll.

Parameters

  1. Address [required]

    • 20 Bytes - a string representing the address of the code.

  2. Storage Position [required]

    • A hex code of the position in the storage.

  3. Block Parameter [optional]

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_getStorageAt","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1","0x0","latest"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_getStorageAt","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1","0x0","latest"],"id":1}

Response

Returns - Data - a hex code of the integer indicating the value of the storage position at the provided address.

{"jsonrpc":"2.0","result":"0x0000000000000000000000000000000000000000000000000000000000000000","id":"1"}

eth_getTransactionByBlockHashAndIndex

Polling method for a filter, which returns an array of logs which occurred since last poll.

Parameters

  1. Block Hash [required]

    • 32 Bytes - a string representing the hash of a Block.

  2. TRANSACTION INDEX POSITION [required]

    • A hex code of the position in the storage.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_getTransactionByBlockHashAndIndex","params":["0x66026bf8bf369b445f9a06e1a8f73e352a72923f0d130b043cf2adb6dcb6e1d8","0x0"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_getTransactionByBlockHashAndIndex","params":["0x66026bf8bf369b445f9a06e1a8f73e352a72923f0d130b043cf2adb6dcb6e1d8","0x0"],"id":1}

Response

Returns

  • Object - A transaction object, or null when no transaction was found:

  • hash- 32 Bytes - hash of the transaction.

  • nonce- the number of transactions made by the sender prior to this one.

  • BlockHash- 32 Bytes - hash of the Block where this transaction was in. null when its pending.

  • BlockNumber- Block number where this transaction was in. null when its pending.

  • transactionIndex- integer of the transactions index position in the Block. null when its pending.

  • from- 20 Bytes - address of the sender.

  • to- 20 Bytes - address of the receiver. null when its a contract creation transaction.

  • value- value transferred in Wei.

  • gasPrice- gas price provided by the sender in Wei.

  • gas- gas provided by the sender.

  • input- the data send along with the transaction.

{
"jsonrpc": "2.0",
"result": {
"blockHash": "0x66026bf8bf369b445f9a06e1a8f73e352a72923f0d130b043cf2adb6dcb6e1d8",
"blockNumber": "0x8acc45",
"chainId": null,
"condition": null,
"creates": null,
"from": "0x90ba5a9a6f2c780487e1a8e357836bba155cef94",
"gas": "0x30d40",
"gasPrice": "0xdf8475800",
"hash": "0x12e561eebe40f3ef5fa2bdfdb614c5473a5a412517e32797f6a14ada789c4f7c",
"input": "0xa9059cbb000000000000000000000000f6c109141c93021b59a0bb0c34449e70b29b2f2800000000000000000000000000000000000000000000000000000000001fd82e",
"nonce": "0x1d57",
"publicKey": "0x871c9a78df7b4667df4e003e7ae3b84281b66163842af8873108f820d833b0b7b8276daf2151c6ec28def26b208b70dfcc851216453ed896f55d34911fa8f002",
"r": "0x6b2adcb097564798b4b839e5a77fc4e83fa21b2512fc29fd787d0bb8e6f0b11c",
"raw": "0xf8ac821d57850df847580083030d4094dac17f958d2ee523a2206206994597c13d831ec780b844a9059cbb000000000000000000000000f6c109141c93021b59a0bb0c34449e70b29b2f2800000000000000000000000000000000000000000000000000000000001fd82e1ca06b2adcb097564798b4b839e5a77fc4e83fa21b2512fc29fd787d0bb8e6f0b11ca043638756df34cde3d0dcfa509a8e2e0807193c4d11fe9278b8e91a815f48fb08",
"s": "0x43638756df34cde3d0dcfa509a8e2e0807193c4d11fe9278b8e91a815f48fb08",
"standardV": "0x1",
"to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"transactionIndex": "0x0",
"v": "0x1c",
"value": "0x0"
},
"id": "1"
}

eth_getTransactionByBlockNumberAndIndex

Returns information about a transaction by Block hash and transaction index position.

Parameters

  1. Block Parameter [required]

  2. TRANSACTION INDEX POSITION [required]

    • A hex code of the position in the storage.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_getTransactionByBlockNumberAndIndex","params":["latest","0x0"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_getTransactionByBlockNumberAndIndex","params":["latest","0x0"],"id":1}

Response

Returns

  • Object - A transaction object, or null when no transaction was found.

  • hash- 32 Bytes - hash of the transaction.

  • nonce- the number of transactions made by the sender prior to this one.

  • BlockHash- 32 Bytes - hash of the Block where this transaction was in. null when its pending.

  • BlockNumber- Block number where this transaction was in. null when its pending.

  • transactionIndex- integer of the transactions index position in the Block. null when its pending.

  • from- 20 Bytes - address of the sender.

  • to- 20 Bytes - address of the receiver. null when its a contract creation transaction.

  • value- value transferred in Wei.

  • gasPrice- gas price provided by the sender in Wei.

  • gas- gas provided by the sender.

  • input- the data send along with the transaction.

{
"jsonrpc": "2.0",
"result": {
"blockHash": "0x28d81fb0106803782d13052180c1ee4aa108a256e0bcee7a6c2cadb84553a970",
"blockNumber": "0x8acc86",
"chainId": null,
"condition": null,
"creates": null,
"from": "0xffcdfd98c455c29818697ab2eeafccbc4e59fd3d",
"gas": "0xbad12",
"gasPrice": "0xba43b7400",
"hash": "0xc33b9ff5fd0df9bb5e1f5963545799fa132ab3b3865e892bdf95706cad035b71",
"input": "0x010305060b1ca4695f88b9f30b51d88471718848ed000000000000000000000000a260306fe5e57cae7bdcc7ff0488061eace32b58000000000000000000000000e3818504c1b32bf1557b16c238b2e01fd3149c17000000000000000000000000000000000000000000000a0b037af28773f1e49d000000000000000000000000000000000000000000000a111ac0d276f800000000000000000000000000000000000000000000000000000002c1fa19c018d6c0000000000000000000000000e3818504c1b32bf1557b16c238b2e01fd3149c17000000000000000000000000000000000000000000000038d3aeb885af81800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000301858ba5acad4000000000000000000000000000000000000000000000000000000000008acf40000000000000000000000000000000000000000000000000000000d1ffbd6fb4000000000000000000000000527d9213e5dce36954bc63def1b50ad7e8dcd558000000000000000000000000000000000000000000000000000000000000001b9ec322790faf11bee1a65918501b8e17c31409e1b76f968bf5e263f99b8a197e72294e93bcc536ab3d29775b12ede7e353e99b344481feb7efc516fc8718cfa6000000000000000000000000000000000000000000000038ff2dfcb671120000",
"nonce": "0x1fe7",
"publicKey": "0x81a82f71b1ab71d547ddf6d2b5bd7bea79bfdabdff75062817a0c7543cda8cefbbf5829f01b69265b5c78e4f48452fd8f08126b5f8edb69aea39993a4bcbd379",
"r": "0x71382d5ea37ac1ec9fe88d90e50cb47e7bd2eefbd67f4ab7fe42c771bbbca4e1",
"raw": "0xf9027e821fe7850ba43b7400830bad12948018280076d7fa2caa1147e441352e8a89e1ddbe80b90215010305060b1ca4695f88b9f30b51d88471718848ed000000000000000000000000a260306fe5e57cae7bdcc7ff0488061eace32b58000000000000000000000000e3818504c1b32bf1557b16c238b2e01fd3149c17000000000000000000000000000000000000000000000a0b037af28773f1e49d000000000000000000000000000000000000000000000a111ac0d276f800000000000000000000000000000000000000000000000000000002c1fa19c018d6c0000000000000000000000000e3818504c1b32bf1557b16c238b2e01fd3149c17000000000000000000000000000000000000000000000038d3aeb885af81800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000301858ba5acad4000000000000000000000000000000000000000000000000000000000008acf40000000000000000000000000000000000000000000000000000000d1ffbd6fb4000000000000000000000000527d9213e5dce36954bc63def1b50ad7e8dcd558000000000000000000000000000000000000000000000000000000000000001b9ec322790faf11bee1a65918501b8e17c31409e1b76f968bf5e263f99b8a197e72294e93bcc536ab3d29775b12ede7e353e99b344481feb7efc516fc8718cfa6000000000000000000000000000000000000000000000038ff2dfcb6711200001ba071382d5ea37ac1ec9fe88d90e50cb47e7bd2eefbd67f4ab7fe42c771bbbca4e1a01b53587827cf0ba0704c882a5ab7a4f3f4b3ef3dea16379caeec5c5ebb75efcd",
"s": "0x1b53587827cf0ba0704c882a5ab7a4f3f4b3ef3dea16379caeec5c5ebb75efcd",
"standardV": "0x0",
"to": "0x8018280076d7fa2caa1147e441352e8a89e1ddbe",
"transactionIndex": "0x0",
"v": "0x1b",
"value": "0x0"
},
"id": "1"
}

eth_getTransactionByHash

Returns the information about a transaction requested by transaction hash.

Parameters

  1. Transaction Hash [required]

    • 32 Bytes - hash of a transaction.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_getTransactionByHash","params":["0xff6cc08a160c7d2c8d4bcb33cb41d1d985e71ebc19f6fd61dbbc93217546c0ad"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_getTransactionByHash","params":["0xff6cc08a160c7d2c8d4bcb33cb41d1d985e71ebc19f6fd61dbbc93217546c0ad"],"id":1}

Response

Returns

  • Transaction - A transaction object, or null when no transaction was found.

  • hash- 32 Bytes - hash of the transaction.

  • nonce- the number of transactions made by the sender prior to this one.

  • BlockHash- 32 Bytes - hash of the Block where this transaction was in. null when its pending.

  • BlockNumber- Block number where this transaction was in. null when its pending.

  • transactionIndex- integer of the transactions index position in the Block. null when its pending.

  • from- 20 Bytes - address of the sender.

  • to- 20 Bytes - address of the receiver. null when its a contract creation transaction.

  • value- value transferred in Wei.

  • gasPrice- gas price provided by the sender in Wei.

  • gas- gas provided by the sender.

  • input- the data send along with the transaction.

{
"jsonrpc": "2.0",
"result": {
"blockHash": "0x66026bf8bf369b445f9a06e1a8f73e352a72923f0d130b043cf2adb6dcb6e1d8",
"blockNumber": "0x8acc45",
"chainId": "0x1",
"condition": null,
"creates": null,
"from": "0xc2be9e536eee410a720c6440cbac293f4358451c",
"gas": "0xe8e0",
"gasPrice": "0x3b9aca00",
"hash": "0xff6cc08a160c7d2c8d4bcb33cb41d1d985e71ebc19f6fd61dbbc93217546c0ad",
"input": "0x095ea7b30000000000000000000000001f0678d1238921dc99309360668b16a17098aa2a0000000000000000000000000000000000000000000000000000000000002d9a",
"nonce": "0x772f",
"publicKey": "0xf64e763a4b200d6a760a9bfa83dac7eae8d0bdccde2051d1ce8b736d7f291b922eb2b4ed21b713729a83b8e4edbeb4d582ab38bb59ea4cd14695f3a2d1eabddc",
"r": "0x4dacf6f643fd8e2f69de9031d20ee37626c2c252dcc4cb157ef6cca35b16a6b9",
"raw": "0xf8aa82772f843b9aca0082e8e0942a46f2ffd99e19a89476e2f62270e0a35bbf075680b844095ea7b30000000000000000000000001f0678d1238921dc99309360668b16a17098aa2a0000000000000000000000000000000000000000000000000000000000002d9a26a04dacf6f643fd8e2f69de9031d20ee37626c2c252dcc4cb157ef6cca35b16a6b9a02c6755ea9ed93d39d7ab71e6e7a347aafd801ea3993d7896e36de58928a6880f",
"s": "0x2c6755ea9ed93d39d7ab71e6e7a347aafd801ea3993d7896e36de58928a6880f",
"standardV": "0x1",
"to": "0x2a46f2ffd99e19a89476e2f62270e0a35bbf0756",
"transactionIndex": "0x60",
"v": "0x26",
"value": "0x0"
},
"id": "1"
}

eth_getTransactionCount

Returns the number of transactions sent from an address.

Parameters

  1. Address [required]

    • 20 Bytes - address to check for balance.

  2. Block Parameter [optional]

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_getTransactionCount","params":["0xc2be9e536eee410a720c6440cbac293f4358451c"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_getTransactionCount","params":["0xc2be9e536eee410a720c6440cbac293f4358451c"],"id":1}

Response

Returns

  • Transaction Count - a hex code of the integer representing the number of transactions sent from this address.

{"jsonrpc":"2.0","result":"0x7730","id":"1"}

eth_getTransactionReceipt

Returns the receipt of a transaction by transaction hash.

Note that the receipt is available even for pending transactions.

Parameters

  1. Transaction Hash [required]

    • 32 Bytes - hash of a transaction.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_getTransactionReceipt","params":["0xff6cc08a160c7d2c8d4bcb33cb41d1d985e71ebc19f6fd61dbbc93217546c0ad"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0xff6cc08a160c7d2c8d4bcb33cb41d1d985e71ebc19f6fd61dbbc93217546c0ad"],"id":1}

Response

Returns

  • TRANSACTION RECEIPT - A transaction receipt object, or null when no receipt was found:

    • transactionHash- 32 Bytes - hash of the transaction.

    • transactionIndex- integer of the transactions index position in the Block.

    • BlockHash- 32 Bytes - hash of the Block where this transaction was in.

    • BlockNumber- Block number where this transaction was in.

    • from- 20 Bytes - address of the sender.

    • to- 20 Bytes - address of the receiver. Null when the transaction is a contract creation transaction.

    • cumulativeGasUsed- the total amount of gas used when this transaction was executed in the Block.

    • gasUsed- the amount of gas used by this specific transaction alone.

    • contractAddress- 20 Bytes - the contract address created, if the transaction was a contract creation, otherwise - null.

    • logs- Array - Array of log objects, which this transaction generated.

    • logsBloom- 256 Bytes - Bloom filter for light clients to quickly retrieve related logs.

It also returns either: - root : 32 bytes of post-transaction stateroot (pre Byzantium) - status: either 1 (success) or 0 (failure)

{
"jsonrpc": "2.0",
"result": {
"blockHash": "0x66026bf8bf369b445f9a06e1a8f73e352a72923f0d130b043cf2adb6dcb6e1d8",
"blockNumber": "0x8acc45",
"contractAddress": null,
"cumulativeGasUsed": "0x96d3c7",
"from": "0xc2be9e536eee410a720c6440cbac293f4358451c",
"gasUsed": "0xd3b5",
"logs": [
{
"address": "0x2a46f2ffd99e19a89476e2f62270e0a35bbf0756",
"blockHash": "0x66026bf8bf369b445f9a06e1a8f73e352a72923f0d130b043cf2adb6dcb6e1d8",
"blockNumber": "0x8acc45",
"data": "0x0000000000000000000000000000000000000000000000000000000000002d9a",
"logIndex": "0x91",
"removed": false,
"topics": [
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"0x0000000000000000000000000d8c8a4f802f1d75391910d4d7c96144903803d7",
"0x0000000000000000000000001f0678d1238921dc99309360668b16a17098aa2a"
],
"transactionHash": "0xff6cc08a160c7d2c8d4bcb33cb41d1d985e71ebc19f6fd61dbbc93217546c0ad",
"transactionIndex": "0x60",
"transactionLogIndex": "0x0",
"type": "mined"
}
],
"logsBloom": "0x00000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000200000000000000000000000020000000040000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000002000010000001000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000",
"status": "0x1",
"to": "0x2a46f2ffd99e19a89476e2f62270e0a35bbf0756",
"transactionHash": "0xff6cc08a160c7d2c8d4bcb33cb41d1d985e71ebc19f6fd61dbbc93217546c0ad",
"transactionIndex": "0x60"
},
"id": "1"
}

eth_getUncleByBlockHashAndIndex

Returns information about a uncle of a Block by hash and Uncle Index Position.

Parameters

  1. Block Hash [required]

    • 32 Bytes - a string representing the hash of a Block

  2. Uncle Index Position [required]

    • a hex of the integer indicating the uncle's index position.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_getUncleByBlockHashAndIndex","params":["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35","0x0"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_getUncleByBlockHashAndIndex","params":["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35","0x0"],"id":1}

Response

Returns

  • Block - A Block object, or null when no Block was found

    • number- the Block number. Null when the returned Block is the pending Block.

    • hash- 32 Bytes - hash of the Block. null when its pending Block.

    • parentHash- 32 Bytes - hash of the parent Block.

    • nonce- 8 Bytes - hash of the generated proof-of-work. Null when the returned Block is the pending Block.

    • sha3Uncles- 32 Bytes - SHA3 of the uncles data in the Block.

    • logsBloom- 256 Bytes - the bloom filter for the logs of the Block. Null when the returned Block is the pending Block.

    • transactionsRoot- 32 Bytes - the root of the transaction trie of the Block.

    • stateRoot- 32 Bytes - the root of the final state trie of the Block.

    • receiptsRoot- 32 Bytes - the root of the receipts trie of the Block.

    • miner- 20 Bytes - the address of the beneficiary to whom the mining rewards were given.

    • difficulty- integer of the difficulty for this Block.

    • totalDifficulty- integer of the total difficulty of the chain until this Block.

    • extraData- the "extra data" field of this Block.

    • size- integer the size of this Block in bytes.

    • gasLimit- the maximum gas allowed in this Block.

    • gasUsed- the total used gas by all transactions in this Block.

    • timestamp- the unix timestamp for when the Block was collated.

    • uncles- an Array of uncle hashes.

Note: An uncle doesn't contain individual transactions.

{
"jsonrpc": "2.0",
"result": {
"author": "0xea674fdde714fd979de3edf0f56aa9716b898ec8",
"difficulty": "0xbf93da424b943",
"extraData": "0x65746865726d696e652d657539",
"gasLimit": "0x7a121d",
"gasUsed": "0x79ea62",
"hash": "0x824cce7c7c2ec6874b9fa9a9a898eb5f27cbaf3991dfa81084c3af60d1db618c",
"logsBloom": "0x0948432021200401804810002000000000381001001202440000010020000080a016262050e44850268052000400100505022305a64000054004200b0c04110000080c1055c42001054b804940a0401401008a00112d80082113400c10006580140005011a40220020000010001c0a00082300434002000050840010102082801c2000148540201004491814020480080111a0300600000003800640024200109c00202010044000880000106810a1a010000028a0100000422000140011000050a2a44b3080001060800000540c108102102600d000004730404a880100600021080100403000180000062642408b440060590400080101e046f08000000430",
"miner": "0xea674fdde714fd979de3edf0f56aa9716b898ec8",
"mixHash": "0x0b15fe0a9aa789c167b0f5ade7b72969d9f2193014cb4e98382254f60ffb2f4a",
"nonce": "0xa212d6400b89b3f6",
"number": "0x5bad54",
"parentHash": "0x05e19fb68d9ec798073808e8b3170875cb327d4b6cde7d6f60fe194677bb26fd",
"receiptsRoot": "0x90807b32c4aa4610c57289de57fa68ba50ed53f14dd2c25f1862aa049029dcd6",
"sealFields": [
"0xa00b15fe0a9aa789c167b0f5ade7b72969d9f2193014cb4e98382254f60ffb2f4a",
"0x88a212d6400b89b3f6"
],
"sha3Uncles": "0xf763576c1ea6a8c61a206e16b1a2451bec5cba1c7545d7ff733a1e8c78715569",
"size": null,
"stateRoot": "0xebc7a1603bfffe0a14bdb89f898e2f2824abb40f04579beb7b920c56d6e273c9",
"timestamp": "0x5b54143f",
"totalDifficulty": "0x12ac10796e617adf1f3",
"transactions": [],
"transactionsRoot": "0x7562cba41e067b364b933e7b566fb2444f6954fef3964a5a487d4cd79d97a56c",
"uncles": []
},
"id": "1"
}

eth_getUncleByBlockNumberAndIndex

Returns information about a uncle of a Block by number and Uncle Index Position.

Parameters

  1. Block Parameter [required]

  2. Uncle Index Position [required]

    • a hex of the integer indicating the uncle's index position.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_getUncleByBlockNumberAndIndex","params":["0x29c","0x0"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_getUncleByBlockNumberAndIndex","params":["0x29c","0x0"],"id":1}

Response

Returns

  • Block - A Block object, or null when no Block was found

    • number- the Block number. null when its pending Block.

    • hash- 32 Bytes - hash of the Block. null when its pending Block.

    • parentHash- 32 Bytes - hash of the parent Block.

    • nonce- 8 Bytes - hash of the generated proof-of-work. null when its pending Block.

    • sha3Uncles- 32 Bytes - SHA3 of the uncles data in the Block.

    • logsBloom- 256 Bytes - the bloom filter for the logs of the Block. null when its pending Block.

    • transactionsRoot- 32 Bytes - the root of the transaction trie of the Block.

    • stateRoot- 32 Bytes - the root of the final state trie of the Block.

    • receiptsRoot- 32 Bytes - the root of the receipts trie of the Block.

    • miner- 20 Bytes - the address of the beneficiary to whom the mining rewards were given.

    • difficulty- integer of the difficulty for this Block.

    • totalDifficulty- integer of the total difficulty of the chain until this Block.

    • extraData- the "extra data" field of this Block.

    • size: integer the size of this Block in bytes.

    • gasLimit- the maximum gas allowed in this Block.

    • gasUsed- the total used gas by all transactions in this Block.

    • timestamp- the unix timestamp for when the Block was collated.

    • uncles- an Array of uncle hashes.

Note: An uncle doesn't contain individual transactions.

{
"jsonrpc": "2.0",
"result": {
"author": "0x5bf5e9cf9b456d6591073513de7fd69a9bef04bc",
"difficulty": "0x57f117f5c",
"extraData": "0x476574682f76312e302e302f77696e646f77732f676f312e342e32",
"gasLimit": "0x1388",
"gasUsed": "0x0",
"hash": "0x932bdf904546a2287a2c9b2ede37925f698a7657484b172d4e5184f80bdd464d",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner": "0x5bf5e9cf9b456d6591073513de7fd69a9bef04bc",
"mixHash": "0x4500aa4ee2b3044a155252e35273770edeb2ab6f8cb19ca8e732771484462169",
"nonce": "0x24732773618192ac",
"number": "0x299",
"parentHash": "0xa779859b1ee558258b7008bbabff272280136c5dd3eb3ea3bfa8f6ae03bf91e5",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"sealFields": [
"0xa04500aa4ee2b3044a155252e35273770edeb2ab6f8cb19ca8e732771484462169",
"0x8824732773618192ac"
],
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": null,
"stateRoot": "0x2604fbf5183f5360da249b51f1b9f1e0f315d2ff3ffa1a4143ff221ad9ca1fec",
"timestamp": "0x55ba4827",
"totalDifficulty": "0xc3601160946",
"transactions": [],
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncles": []
},
"id": "1"
}

eth_getUncleCountByBlockHash

Returns the number of uncles in a Block from a Block matching the given Block hash.

Parameters

  1. Block Hash [required]

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_getUncleCountByBlockHash","params":["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_getUncleCountByBlockHash","params":["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"],"id":1}

Response

Returns

  • Block Transaction Count - a hex code of the integer representing the number of uncles in the provided Block

{"jsonrpc":"2.0","result":"0x1","id":"1"}

eth_getUncleCountByBlockNumber

Returns the number of uncles in a Block from a Block matching the given Block number.

Parameters

  1. Block Hash [required]

    • 32 Bytes - a string representing the hash of a Block.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_getUncleCountByBlockNumber","params":["0x5bad55"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_getUncleCountByBlockNumber","params":["0x5bad55"],"id":1}

Response

Returns

  • Block Transaction Count - a hex code of the integer representing the number of uncles in the provided Block

{"jsonrpc":"2.0","result":"0x1","id":"1"}

eth_getWork

Returns the hash of the current Block, the seedHash, and the boundary condition to be met (“target”).

In order to return the eth_getWork method, you must first run Parity with --author to configure. In order to run this flag, you’ll need to access the instance via SSH. “SSH Access” {text is linked to SSH Access article}

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_getWork","params":[]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_getWork","params":[],"id":1}

Response

Returns

  • WORK ARRAY

    • 32 Bytes - current Block header pow-hash

    • 32 Bytes - the seed hash used for the DAG.

    • 32 Bytes - the boundary condition ("target"), 2^256 / difficulty.

{
"id": 1,
"jsonrpc": "2.0",
"result": [
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"0x5EED00000000000000000000000000005EED0000000000000000000000000000",
"0xd1ff1c01710000000000000000000000d1ff1c01710000000000000000000000",
"0x1" // 1
]
}

eth_hashrate

Returns the number of hashes per second that the node is mining with. Only applicable when the node is mining.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_hashrate","params":[]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_hashrate","params":[],"id":1}

Response

Returns

  • HASHRATE - a hex code of an integer representing the number of hashes per second.

{"jsonrpc":"2.0","result":"0x0","id":"1"}

eth_mining

Returns true if client is actively mining new blocks.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_mining","params":[]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_mining","params":[],"id":1}

Response

Returns

  • HASHRATE - a hex code of an integer representing the number of hashes per second.

{"jsonrpc":"2.0","result":false,"id":"1"}

eth_protocolVersion

Returns the current ethereum protocol version.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_protocolVersion","params":[]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_protocolVersion","params":[],"id":1}

Response

Returns

  • PROTOCOL VERSION - a string indicating the current Ethereum protocol version.

{"jsonrpc":"2.0","result":"63","id":"1"}

eth_sendRawTransaction

Creates new message call transaction or a contract creation for signed transactions.

Parameters

  1. Trasaction Data [required]

    • The signed transaction data.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_sendRawTransaction","params":["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"],"id":1}

Response

Returns

  • Transaction Hash - 32 Bytes - the transaction hash, or the zero hash if the transaction is not yet available

{
"id": 1,
"jsonrpc": "2.0",
"result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}

eth_submitWork

Used for submitting a proof-of-work solution.

Parameters

  1. Data - 8 Bytes - The nonce found (64 bits)

  2. Data - 32 Bytes - The header's pow-hash (256 bits)

  3. Data - 32 Bytes - The mix digest (256 bits)

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"eth_submitWork","params":["0x0000000000000001","0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef","0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"eth_submitWork","params":["0x0000000000000001","0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef","0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"],"id":1}

Response

Returns

  • IS VALID FLAG - returns true if the provided solution is valid, otherwise false.

{"jsonrpc":"2.0","result":false,"id":"1"}

net_listening

Returns true if client is actively listening for network connections.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"net_listening","params":[]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"net_listening","params":[],"id":1}

Response

Returns

  • LISTENING FLAG - a boolean indicating whether the client is actively listening for network connections.

{"jsonrpc":"2.0","result":true,"id":"1"}

net_peerCount

Returns the number of peers currently connected to the client.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"net_peerCount","params":[]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}

Response

Returns

  • PEER COUNT - integer of the number of connected peers.

{"jsonrpc":"2.0","result":"0x27","id":"1"}

web3_clientVersion

Returns the current client version.

JSON-RPC
WSS
JSON-RPC
curl \
--data '{"jsonrpc":"2.0","id":"1","method":"web3_clientVersion","params":[]}' \
--header 'Content-Type: application/json' \
'https://gethmainnet1575643211288.nodes.deploy.radar.tech/?apikey=YOUR_API_KEY'
WSS

You'll need a WebSocket connection opened before running the following JSON-RPC method over WebSockets. For more information on WebSocket connections see: WebSockets Guide

{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":1}

Response

Returns

  • STRING - The current client version.

{"jsonrpc":"2.0","id":"1","result":"Geth/v1.9.7-stable-a718daa6/linux-amd64/go1.13.4"}