All pages
Powered by GitBook
1 of 65

Rootstock (RSK)

db_getString {disallowed} - Rootstock

Example code for the db_getString {disallowed} json-rpc method. Сomplete guide on how to use db_getString {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "db_getString",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

db_putHex {disallowed} - Rootstock

Example code for the db_putHex {disallowed} json-rpc method. Сomplete guide on how to use db_putHex {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "db_putHex",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

db_putString {disallowed} - Rootstock

Example code for the db_putString {disallowed} json-rpc method. Сomplete guide on how to use db_putString {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "db_putString",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

eth_accounts - Rootstock

Example code for the eth_accounts json-rpc method. Сomplete guide on how to use eth_accounts json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_accounts",
"params": [],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": []
}

eth_blockNumber - Rootstock

Example code for the eth_blockNumber json-rpc method. Сomplete guide on how to use eth_blockNumber json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x526f5e"
}

eth_call - Rootstock

Example code for the eth_call json-rpc method. Сomplete guide on how to use eth_call json-rpc in GetBlock.io Web3 documentation.

Parameters

object - json object

The transacion call object in format: { "from": "address" (optional, string) - The address the transaction is sent from. "to": "address" (optional, string) - The address the transaction is directed to. "gas": "quantity" (optional, string) - Integer of the gas provided for the transaction execution. eth_call consumes zero gas, but this parameter may be needed by some executions. "gasPrice": "quantity" (optional, string) - Integer of the gasPrice used for each paid gas "value": "quantity" (optional, string) - Integer of the value sent with this transaction "data": "data" (optional, string) - Hash of the method signature and encoded parameters. }

QUANTITY|TAG - string

integer block number, or the string "latest", "earliest" or "pending".

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_call",
"params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x"
}

eth_chainId - Rootstock

Example code for the eth_chainId json-rpc method. Сomplete guide on how to use eth_chainId json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_chainId",
"params": [],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x1e"
}

eth_coinbase - Rootstock

Example code for the eth_coinbase json-rpc method. Сomplete guide on how to use eth_coinbase json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_coinbase",
"params": [],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x0000000000000000000000000000000000000000"
}

eth_compileLLL {disallowed} - Rootstock

Example code for the eth_compileLLL {disallowed} json-rpc method. Сomplete guide on how to use eth_compileLLL {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_compileLLL",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

eth_compileSerpent {disallowed} - Rootstock

Example code for the eth_compileSerpent {disallowed} json-rpc method. Сomplete guide on how to use eth_compileSerpent {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_compileSerpent",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

eth_compileSolidity {disallowed} - Rootstock

Example code for the eth_compileSolidity {disallowed} json-rpc method. Сomplete guide on how to use eth_compileSolidity {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_compileSolidity",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

eth_estimateGas - Rootstock

Example code for the eth_estimateGas json-rpc method. Сomplete guide on how to use eth_estimateGas json-rpc in GetBlock.io Web3 documentation.

Parameters

object - json object

The transacion call object in format: { "from": "address" (optional, string) - The address the transaction is sent from. "to": "address" (optional, string) - The address the transaction is directed to. "gas": "quantity" (optional, string) - Integer of the gas provided for the transaction execution. eth_call consumes zero gas, but this parameter may be needed by some executions. "gasPrice": "quantity" (optional, string) - Integer of the gasPrice used for each paid gas "value": "quantity" (optional, string) - Integer of the value sent with this transaction "data": "data" (optional, string) - Hash of the method signature and encoded parameters. }

QUANTITY|TAG - string

integer block number, or the string "latest", "earliest" or "pending".

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_estimateGas",
"params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x5208"
}

eth_gasPrice - Rootstock

Example code for the eth_gasPrice json-rpc method. Сomplete guide on how to use eth_gasPrice json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_gasPrice",
"params": [],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x3e252e0"
}

eth_getBalance - Rootstock

Example code for the eth_getBalance json-rpc method. Сomplete guide on how to use eth_getBalance json-rpc in GetBlock.io Web3 documentation.

Parameters

DATA - string

address to check for balance.

QUANTITY|TAG - integer or string

block number or "latest", "earliest" or "pending"

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": ["0x8afad2f417e5132ee983b74d28600c0dedcc3e07", "latest"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x10a160a214bbdf6ba"
}

eth_getBlockByHash - Rootstock

Example code for the eth_getBlockByHash json-rpc method. Сomplete guide on how to use eth_getBlockByHash json-rpc in GetBlock.io Web3 documentation.

Parameters

DATA - string

Hash of a block.

Boolean - Boolean

If true it returns the full transaction objects, if false only the hashes of the transactions.

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": ["0xf2a2b854721d4372474fc76cc13445a73369c0c334f4935c88bde3c310f28c9a", false],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "bitcoinMergedMiningCoinbaseTransaction": "0x00000000000000801b7166e18eab15ccfc98fcaa0d3a02aee399ec2c1510a82305bc5dbc653c39f995b62e0000ffffffff04f67a2627000000001976a914536ffa992491508dca0354e52f32a3a7a679a53a88ac00000000000000002b6a2952534b424c4f434b3aed5dee214b9c87fc0a537f09a43dea0fa24572692dd1eccaee2ce72e003833b40000000000000000266a24b9e11b6d0884dc1a5c15703833afb41cc6ecb90034c3c7cf707245ab33f2bc674a1970560000000000000000266a24aa21a9ed06add201fab80d3059b99e01d1be9e4c3078c3706e8ec395085bc62e0cd0bd3400000000",
        "bitcoinMergedMiningHeader": "0x04000020bdef3021fd9228d1d173128b68b5e64a53e748f822c608000000000000000000e55c6d2a8b93b683abe796452ddc0bdbc88fe9964b36b16b541ee2ee03cb2ccc03783f61e4480f17a8c69ef2",
        "bitcoinMergedMiningMerkleProof": "0xf5ad51cfde2cce28a4a0bcd95843b61083d2b43aeb794feadac91d7ba0720b8c2fcb356ceef25bff76344c01b23f31c7cb50807cceabf7ed75008ae40b124c158b682c57170593b9d951fb714e2d70bb90b00adef2874464711fb7571dfde68c05d60dde4718d9855395609f019fd9ba5aac9ac5c550d3b27b07b4efbcca50177c5b4bc7cf1aba107e8f1a08ab591afcc105107724c9938f4e5eb7caff759dfc93ed8e8635bf79467e77bcf3c6a6b01c1b7a0dfeb03d247e2e9a6734def2971f8dc3135174dff6ebcc5bafac867460773c5b1857e3e0856d6f8afda269f6278e3b08498fc86b56b306610489b68c943b265f895d2a2488a9d0df65260b5ab1e05b037e0550015a05bd474ed6d8502f858e18d6b35800c80747b854b673d3ff562782a3815060df0f4da78a53b4e46681979e68cdbb34f384d8dfab822e89ad8a96b152f8cc19ab2e3602cb02d5be3ddc7152092d8647762ffcd4eaf710b98e43dee4b0b6516716979c8ba460f139cf95e7ee877582e869220e478a0af9a103d9",
        "cumulativeDifficulty": "0x3ce8823f90c189bcc9",
        "difficulty": "0x3ce8823f90c189bcc9",
        "extraData": "0xce018c495249532d62613031656132",
        "gasLimit": "0x67c280",
        "gasUsed": "0x89679",
        "hash": "0xf2a2b854721d4372474fc76cc13445a73369c0c334f4935c88bde3c310f28c9a",
        "hashForMergedMining": "0xed5dee214b9c87fc0a537f09a43dea0fa24572692dd1eccaee2ce72e003833b4",
        "logsBloom": "0x40000080000000000000101010000100000080008040000000000000400000000000000000010000000000000000201000000001000000108000000000200000000010800000080000000008050008000000000000000400000000200000000080040000020000002000000040000c000200000000011008000a001042000000000100800004008000000000000000c000000000000000000010001020000000020000080282400000080000000008000080000010400080040888000044000000020002000004020000001002008010000000000000000010000040002020000012414000002000002008000000800000000000140020008001000004001000",
        "miner": "0x8afad2f417e5132ee983b74d28600c0dedcc3e07",
        "minimumGasPrice": "0x387ee40",
        "number": "0x3833b4",
        "paidFees": "0x22980bac1af0",
        "parentHash": "0xee273cd4b05b71fca2a84da3246cce4e256bc07057f18b8e0303d61bb6266d9e",
        "receiptsRoot": "0xdbc9c439a9b3232d2f327d9b2b611ffd649d28e15cf081aa2cac23398c36a2e1",
        "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
        "size": "0x928",
        "stateRoot": "0x8f6f1c6e65446022be77367f245274474e23a9023f8d2e11abab1edd80d30134",
        "timestamp": "0x613f77f3",
        "totalDifficulty": "0xddf285809e1d6b1b3cdf969",
        "transactions": [
            "0x9683445fc38c4c33a15a7bea1d6b35bbb90874b97136563e8faf036f884f77e0",
            "0xe3671d57122d1db6361710a76b2300803f38df92520c8df7baf439489f231550",
            "0xf1b1d43e9d4cecf3edb35858c2f769e2c03fa19a77a24e8ab35d9dbdd6df9f0a",
            "0xc16454010ab91a359e9a958acb0a33a371c1517edfd6a8b723ce7e276a391f0f",
            "0xfbf3459c6f72827cfe267f3050d04d6d782016a662644e439558641393af4f0f",
            "0x71b64360a3c5bb1b7806e259cdae7b74a0f3e13f1b290dc89091cccb0bbd5ba1",
            "0x263f817cf204c47f068b50cf18810aa99341d5ff343d41f786fe47f0b129842a"
        ],
        "transactionsRoot": "0xb77bd65fb30451cc3822415723e1dd4dd488041ad2c724a39630d631bff5a08e",
        "uncles": []
    }
}

eth_getBlockByNumber - Rootstock

Example code for the eth_getBlockByNumber json-rpc method. Сomplete guide on how to use eth_getBlockByNumber json-rpc in GetBlock.io Web3 documentation.

Parameters

QUANTITY|TAG - integer or string

block number or "latest", "earliest" or "pending"

Boolean - Boolean

If true it returns the full transaction objects, if false only the hashes of the transactions.

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
"params": ["latest", false],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "bitcoinMergedMiningCoinbaseTransaction": "0x00000000000000807b02dd1f8f86518e0753f3ce89adea5c5c4867c79d876e037b8a92b887f70618c501000000000000ffffffff030131ba26000000001976a914536ffa992491508dca0354e52f32a3a7a679a53a88ac00000000000000002b6a2952534b424c4f434b3aa200a22c1dca73692918e194a6bc097f416f904fb0fcc6ff5ea9082200526f5e0000000000000000266a24aa21a9ed80b926a302d67cc3e48a14296b19b76ce9a8b327fcab89f9f47b4657fe87791300000000",
        "bitcoinMergedMiningHeader": "0x00004027bea28c30ec6dc3eb2b9f4e1b7f2bc94b25c1582c9f26010000000000000000007124bae44340e48f21b12709731b03406aa3b387dc874bdf5f772658a74f4565dd7690646d60051702149da6",
        "bitcoinMergedMiningMerkleProof": "0xcb31ef257ca70983d6407cbc55acdb58fbdd3aef8c91a1b61291fc91f77b8717a65040e205dcea6022e0c48c7b201fe72e9efb7db5189fe2bb8d760ece0c3b30c76bb47984325db66331ec49313e86911ce5165d43c3268c8f6552c2644bad67c72906444b743c39fd97acd0e82b7c3777c819323cb6b4642bce5fd510b2d201a972e282cdc3e27ee2bb744e46e088b2fd4ea0d6cfedbca3fb486b79c1f2c9ec3533c0666a71a8dfcf74b08d14eddf04950169320a66a71a90c9db230b09a7cf9ce51321f3b36adccaa2b56d82739296e112786ac91383ae8eb11a2320db6d479e9d6bdaab04dea7e1524cac235c2fdf90f942ad6a2355253610d0fa7ad35e7eeef1d8ed76309567a9311e82fcbd59907e9e21d04fc29d9b99d18e88ee80fc52419fa842d63852532f2b9616a98db42971d7366c044c8f176a756c0518c70264fb541c08867a63818a8f98d6b8db6bd11f5a7b1ccfb881a01a67bae4c43c38003709a9ad2aefeef46ab39614a20be9baf72708390029848e25e5431c3924f345",
        "cumulativeDifficulty": "0x84e7364a63d2217126",
        "difficulty": "0x84e7364a63d2217126",
        "extraData": "0xcd018b484f502d61316532363036",
        "gasLimit": "0x67c280",
        "gasUsed": "0x5388f",
        "hash": "0x41b823bebbf0106fa664f8bdec4074a7edbb62c0cfc79d83fef84a169ad4d05c",
        "hashForMergedMining": "0xa200a22c1dca73692918e194a6bc097f416f904fb0fcc6ff5ea9082200526f5e",
        "logsBloom": "0x0000400000000000000010100000000902000000000000000200000000000000002040000001000000000000000000000000000001000000000880000000000000000000008000000000000000000000000000000000000000000200400000000001000000000000004000000000000000000000000000000010000000000000000000000000000100000000000400000000000000000000000000002008000000000000020010002000000000000000008000000000008200100002000000000000000104000000000000000000800000002000010000000020000010000000000000000000000000200000008010000002040000000000a000200000000000",
        "miner": "0x8afad2f417e5132ee983b74d28600c0dedcc3e07",
        "minimumGasPrice": "0x387ee40",
        "number": "0x526f5e",
        "paidFees": "0x14503e83f2f0",
        "parentHash": "0x655abe8bc2abfcfde655098e6252ae382519e427325e1e507d16cf80cabcb1d6",
        "receiptsRoot": "0xc30455de14e30fccd59fc4d3df551b9c47d56a31f6fd13fb1f8739fe2216a5b3",
        "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
        "size": "0xe0f",
        "stateRoot": "0x495bba6a71afce0ca92a780308680dd54803b759160391297492cd647ea59959",
        "timestamp": "0x649076cd",
        "totalDifficulty": "0x219e28335af4e56bf0338718",
        "transactions": [
            "0x0574007fab723ab2d4c642ad3c453c5200a90eb860847a8af6e552046cabbdf6",
            "0x8796d5c6b3979791252fd33416002c06e8730244180188b2eb8cd4ae275dee63",
            "0x6b9ef530e7da502a32e2d5d00ae17716ee84352e8ddabb6da6bda318da024d9d",
            "0x7e691dff7ae07727f80c722e61e31c76fd6b1fc233bcb8d7b2b67eebd9ed82fc",
            "0xb068225042c92e150638ca1997f5d067fd9f5b74e1cdd0ab20359ba06ce5ebe4"
        ],
        "transactionsRoot": "0x118c6ed270cf291df4977e155ca5d9e9d925c4645fdd12c91106c5cc7006fa5b",
        "uncles": []
    }
}

eth_getBlockTransactionCountByHash - Rootstock

Example code for the eth_getBlockTransactionCountByHash json-rpc method. Сomplete guide on how to use eth_getBlockTransactionCountByHash json-rpc in GetBlock.io Web3 documentation.

Parameters

DATA - string

hash of the block.

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByHash",
"params": ["0xf2a2b854721d4372474fc76cc13445a73369c0c334f4935c88bde3c310f28c9a"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x7"
}

eth_getBlockTransactionCountByNumber - Rootstock

Example code for the eth_getBlockTransactionCountByNumber json-rpc method. Сomplete guide on how to use eth_getBlockTransactionCountByNumber json-rpc in GetBlock.io Web3 documentation.

Parameters

QUANTITY|TAG - integer or string

block number or "latest", "earliest" or "pending"

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByNumber",
"params": ["latest"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x5"
}

eth_getCode - Rootstock

Example code for the eth_getCode json-rpc method. Сomplete guide on how to use eth_getCode json-rpc in GetBlock.io Web3 documentation.

Parameters

DATA - string

address.

QUANTITY|TAG - integer or string

block number or "latest", "earliest" or "pending"

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getCode",
"params": ["0x8afad2f417e5132ee983b74d28600c0dedcc3e07", "latest"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x"
}

eth_getCompilers {disallowed} - Rootstock

Example code for the eth_getCompilers {disallowed} json-rpc method. Сomplete guide on how to use eth_getCompilers {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getCompilers",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

eth_getFilterChanges - Rootstock

Example code for the eth_getFilterChanges json-rpc method. Сomplete guide on how to use eth_getFilterChanges json-rpc in GetBlock.io Web3 documentation.

Parameters

QUANTITY - string

The filter id.

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getFilterChanges",
"params": ["0x16"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": null
}

eth_getFilterLogs - Rootstock

Example code for the eth_getFilterLogs json-rpc method. Сomplete guide on how to use eth_getFilterLogs json-rpc in GetBlock.io Web3 documentation.

Parameters

QUANTITY - string

The filter id.

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getFilterLogs",
"params": ["0x16"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": null
}

eth_getLogs - Rootstock

Example code for the eth_getLogs json-rpc method. Сomplete guide on how to use eth_getLogs json-rpc in GetBlock.io Web3 documentation.

Parameters

Object - object

The filter options

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getLogs",
"params": [{"topics": []}],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": [
        {
            "address": "0x461750b4824b14c3d9b7702bc6fbb82469082b23",
            "blockHash": "0xce6eaa95170f1d59d5bd971a4a8e3de38e795a063fb1ebcfa3e9d5a6af1635a3",
            "blockNumber": "0x526f5f",
            "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000645a6866990000000000000000000000000000000000000000000000000134227e9baf1c4900000000000000000000000000000000000000000000000000000000649078f8000000000000000000000000504efcadfb020d6bbaec8a5c5bb21453719d0e00",
            "logIndex": "0x0",
            "topics": [
                "0x5a68669900000000000000000000000000000000000000000000000000000000",
                "0x000000000000000000000000d554a563adfd9198782add9ad7554c6ffe87ef09",
                "0x0000000000000000000000000000000000000000000000000134227e9baf1c49",
                "0x00000000000000000000000000000000000000000000000000000000649078f8"
            ],
            "transactionHash": "0xbbf9233fc0040143409d9cfdc81243359f4c7488d71aa678d6f262f11be4c6aa",
            "transactionIndex": "0x0"
        },
        {
            "address": "0x504efcadfb020d6bbaec8a5c5bb21453719d0e00",
            "blockHash": "0xce6eaa95170f1d59d5bd971a4a8e3de38e795a063fb1ebcfa3e9d5a6af1635a3",
            "blockNumber": "0x526f5f",
            "data": "0x0000000000000000000000000000000000000000000000000134216039f82e25",
            "logIndex": "0x1",
            "topics": [
                "0x296ba4ca62c6c21c95e828080cb8aec7481b71390585605300a8a76f9e95b527"
            ],
            "transactionHash": "0xbbf9233fc0040143409d9cfdc81243359f4c7488d71aa678d6f262f11be4c6aa",
            "transactionIndex": "0x0"
        },
        {
            "address": "0x7ecfda6072942577d36f939ad528b366b020004b",
            "blockHash": "0xce6eaa95170f1d59d5bd971a4a8e3de38e795a063fb1ebcfa3e9d5a6af1635a3",
            "blockNumber": "0x526f5f",
            "data": "0x0000000000000000000000000000000000000000000000000000000000526f5d00000000000000000000000000000000000000000000000000000000010b40f600000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000005322e302e31000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002652736b4a2f342e322e302f4c696e75782f4a617661312e382f484f502d65616638653539303800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000031476574682f76312e31312e352d737461626c652d61333866343130382f6c696e75782d616d6436342f676f312e32302e32000000000000000000000000000000",
            "logIndex": "0x0",
            "topics": [
                "0xbb00e6cbdccbb5b7549e189335249187223d88583604555326aa1d7ccbcad442",
                "0x000000000000000000000000a4398c6ff62e9b93b32b28dd29bd27c6b106245f"
            ],
            "transactionHash": "0xa0b6086ed57d3e3ffbadaadf3813288b991466dcbdbc7b80964666026f54110f",
            "transactionIndex": "0x1"
        }
    ]
}

eth_getStorageAt - Rootstock

Example code for the eth_getStorageAt json-rpc method. Сomplete guide on how to use eth_getStorageAt json-rpc in GetBlock.io Web3 documentation.

Parameters

DATA - string

address to check for balance.

QUANTITY - integer

Position in the storage.

QUANTITY|TAG - integer or string

block number or "latest", "earliest" or "pending"

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getStorageAt",
"params": ["0x8afad2f417e5132ee983b74d28600c0dedcc3e07", 1, "latest"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x0"
}

eth_getTransactionByBlockHashAndIndex - Rootstock

Example code for the eth_getTransactionByBlockHashAndIndex json-rpc method. Сomplete guide on how to use eth_getTransactionByBlockHashAndIndex json-rpc in GetBlock.io Web3 documentation.

Parameters

DATA - string

Hash of a block.

QUANTITY - integer

Transaction index position.

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getTransactionByBlockHashAndIndex",
"params": ["0xf2a2b854721d4372474fc76cc13445a73369c0c334f4935c88bde3c310f28c9a", "0x0"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "blockHash": "0xf2a2b854721d4372474fc76cc13445a73369c0c334f4935c88bde3c310f28c9a",
        "blockNumber": "0x3833b4",
        "from": "0x90070628f8244fb2ba509c0184ba68d89bf0adad",
        "gas": "0x30d40",
        "gasPrice": "0x44fb308",
        "hash": "0x9683445fc38c4c33a15a7bea1d6b35bbb90874b97136563e8faf036f884f77e0",
        "input": "0x095ea7b30000000000000000000000005a0d867e0d70fcc6ade25c3f1b89d618b5b4eaa7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
        "nonce": "0xd",
        "r": "0x23597cfa09c50c07fb1a80f109b75bebb30134017801ec28adbddbd34b7e136c",
        "s": "0x3569307e82e5712be4e4cba5a7f496bd97fb87a3eee4d4993aebbd8d8b67f012",
        "to": "0xe700691da7b9851f2f35f8b8182c69c53ccad9db",
        "transactionIndex": "0x0",
        "type": "0x0",
        "v": "0x5f",
        "value": "0x0"
    }
}

eth_getTransactionByBlockNumberAndIndex - Rootstock

Example code for the eth_getTransactionByBlockNumberAndIndex json-rpc method. Сomplete guide on how to use eth_getTransactionByBlockNumberAndIndex json-rpc in GetBlock.io Web3 documentation.

Parameters

QUANTITY|TAG - integer or string

block number or "latest", "earliest" or "pending"

QUANTITY - integer

Transaction index position.

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getTransactionByBlockNumberAndIndex",
"params": ["latest", "0x0"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "blockHash": "0xce6eaa95170f1d59d5bd971a4a8e3de38e795a063fb1ebcfa3e9d5a6af1635a3",
        "blockNumber": "0x526f5f",
        "from": "0xd554a563adfd9198782add9ad7554c6ffe87ef09",
        "gas": "0x30d40",
        "gasPrice": "0x3ec6f15",
        "hash": "0xbbf9233fc0040143409d9cfdc81243359f4c7488d71aa678d6f262f11be4c6aa",
        "input": "0x5a6866990000000000000000000000000000000000000000000000000134227e9baf1c4900000000000000000000000000000000000000000000000000000000649078f8000000000000000000000000504efcadfb020d6bbaec8a5c5bb21453719d0e00",
        "nonce": "0x79d8a",
        "r": "0xb158144529857b29cb15c51afbac2205d7952f31a10765b10d4784eb6490f022",
        "s": "0x5c35d69ecb29ef2223ee2b986f64b6a7482e7cc59ec89689788c34dcd14f2fa0",
        "to": "0x461750b4824b14c3d9b7702bc6fbb82469082b23",
        "transactionIndex": "0x0",
        "type": "0x0",
        "v": "0x60",
        "value": "0x0"
    }
}

eth_getTransactionByHash - Rootstock

Example code for the eth_getTransactionByHash json-rpc method. Сomplete guide on how to use eth_getTransactionByHash json-rpc in GetBlock.io Web3 documentation.

Parameters

DATA - string

Hash of a transaction.

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": ["0x9683445fc38c4c33a15a7bea1d6b35bbb90874b97136563e8faf036f884f77e0"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "blockHash": "0xf2a2b854721d4372474fc76cc13445a73369c0c334f4935c88bde3c310f28c9a",
        "blockNumber": "0x3833b4",
        "from": "0x90070628f8244fb2ba509c0184ba68d89bf0adad",
        "gas": "0x30d40",
        "gasPrice": "0x44fb308",
        "hash": "0x9683445fc38c4c33a15a7bea1d6b35bbb90874b97136563e8faf036f884f77e0",
        "input": "0x095ea7b30000000000000000000000005a0d867e0d70fcc6ade25c3f1b89d618b5b4eaa7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
        "nonce": "0xd",
        "r": "0x23597cfa09c50c07fb1a80f109b75bebb30134017801ec28adbddbd34b7e136c",
        "s": "0x3569307e82e5712be4e4cba5a7f496bd97fb87a3eee4d4993aebbd8d8b67f012",
        "to": "0xe700691da7b9851f2f35f8b8182c69c53ccad9db",
        "transactionIndex": "0x0",
        "type": "0x0",
        "v": "0x5f",
        "value": "0x0"
    }
}

eth_getTransactionCount - Rootstock

Example code for the eth_getTransactionCount json-rpc method. Сomplete guide on how to use eth_getTransactionCount json-rpc in GetBlock.io Web3 documentation.

Parameters

DATA - string

address.

QUANTITY|TAG - integer or string

block number or "latest", "earliest" or "pending"

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getTransactionCount",
"params": ["0x8afad2f417e5132ee983b74d28600c0dedcc3e07", "latest"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x0"
}

eth_getTransactionReceipt - Rootstock

Example code for the eth_getTransactionReceipt json-rpc method. Сomplete guide on how to use eth_getTransactionReceipt json-rpc in GetBlock.io Web3 documentation.

Parameters

DATA - string

Hash of a transaction.

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": ["0x9683445fc38c4c33a15a7bea1d6b35bbb90874b97136563e8faf036f884f77e0"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "blockHash": "0xf2a2b854721d4372474fc76cc13445a73369c0c334f4935c88bde3c310f28c9a",
        "blockNumber": "0x3833b4",
        "contractAddress": null,
        "cumulativeGasUsed": "0xb9b2",
        "from": "0x90070628f8244fb2ba509c0184ba68d89bf0adad",
        "gasUsed": "0xb9b2",
        "logs": [
            {
                "address": "0xe700691da7b9851f2f35f8b8182c69c53ccad9db",
                "blockHash": "0xf2a2b854721d4372474fc76cc13445a73369c0c334f4935c88bde3c310f28c9a",
                "blockNumber": "0x3833b4",
                "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
                "logIndex": "0x0",
                "topics": [
                    "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                    "0x00000000000000000000000090070628f8244fb2ba509c0184ba68d89bf0adad",
                    "0x0000000000000000000000005a0d867e0d70fcc6ade25c3f1b89d618b5b4eaa7"
                ],
                "transactionHash": "0x9683445fc38c4c33a15a7bea1d6b35bbb90874b97136563e8faf036f884f77e0",
                "transactionIndex": "0x0"
            }
        ],
        "logsBloom": "0x00000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400020000000000000000020000000000000000008000000000000000000000000000000000000000000000000000000000020000000002000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000012000000000000000000000000000000000000000000000000000000000000",
        "status": "0x1",
        "to": "0xe700691da7b9851f2f35f8b8182c69c53ccad9db",
        "transactionHash": "0x9683445fc38c4c33a15a7bea1d6b35bbb90874b97136563e8faf036f884f77e0",
        "transactionIndex": "0x0",
        "type": "0x0"
    }
}

eth_getUncleByBlockHashAndIndex - Rootstock

Example code for the eth_getUncleByBlockHashAndIndex json-rpc method. Сomplete guide on how to use eth_getUncleByBlockHashAndIndex json-rpc in GetBlock.io Web3 documentation.

Parameters

DATA - string

Hash of a block.

QUANTITY - string

the uncle’s index position.

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getUncleByBlockHashAndIndex",
"params": ["0xf2a2b854721d4372474fc76cc13445a73369c0c334f4935c88bde3c310f28c9a", "0x0"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": null
}

eth_getUncleByBlockNumberAndIndex - Rootstock

Example code for the eth_getUncleByBlockNumberAndIndex json-rpc method. Сomplete guide on how to use eth_getUncleByBlockNumberAndIndex json-rpc in GetBlock.io Web3 documentation.

Parameters

QUANTITY|TAG - integer or string

block number or "latest", "earliest" or "pending"

QUANTITY - string

the uncle’s index position.

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getUncleByBlockNumberAndIndex",
"params": ["latest", "0x0"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "bitcoinMergedMiningCoinbaseTransaction": "0x0000000000000140848490e257ea221d388f86b9ab6d65913bb41f6afc76d71bf4f836baeaa9b75b2952534b424c4f434b3a153e547846e305096486a3b443445c8de0843db5b0fcc6ff5ea9082300526f5d269b3a3f",
        "bitcoinMergedMiningHeader": "0x00205a27bea28c30ec6dc3eb2b9f4e1b7f2bc94b25c1582c9f2601000000000000000000e874001dfcc7e9c1325064d4c2d76f4371050171cfefeee93758b34f2bd92d0eb37690646d6005176570f1c0",
        "bitcoinMergedMiningMerkleProof": "0x35b240e43d3a89f02e94448969f9d682c619237fe2d869e145532a69c3432dd037fd31d4efbe1c2d6c4f1b5b878139129c2d5e68564f6841acbcecbfb3db79ddb1012e26e20287cd83285f64fb3ad5db9977b909c70025633daaf3cd9bd513ae3caa21913fd8593c045dc4194168b231e2f004e4a2e36fe690968e9338ff2b9b90ea444c681d373f10db0848b8a0fde804acf4fdb8b1369e234c1450f0996ef907e96117c5d00bedeb672f60486cb66a1ff35c4ba30eb5d166c309b505c2b84784eb6d309cc882161a237fd956399b0d607b57f8e65c0982147385989204a21b3a92de91854a718fbe078dc41b77139f2fb7178388edab4fe8c62a9ab26f47a663358dfb0a9e5703faa46d41e04e77baff70da5ef5793d7d1c4727f3a070f5e559dc9a97ae8f749e9a7ff607e5f9b2fb87db13bdea39454b8eccfdbc84595a6a497f185711d35a800a01dd0d55ec6a46c424e85196f11568d1c322815b472924e22870f422d7cfe21416c7c02c13729df8666310605403d1c6e4084735c30b9e",
        "cumulativeDifficulty": "0x18fb5e04eb75205c212",
        "difficulty": "0x853c7bb84a6826a89c",
        "extraData": "0xcd018b484f502d65616638653539",
        "gasLimit": "0x67c280",
        "gasUsed": "0x375f5",
        "hash": "0x8d5eb6f5d66086e9aa08ae0c0293e0320a1f6c79ab228be7bed903bf3ad7e490",
        "hashForMergedMining": "0x153e547846e305096486a3b443445c8de0843db5b0fcc6ff5ea9082300526f5d",
        "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000010000000000000000000000100000000000000000000000000000000000000000080000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000",
        "miner": "0x12d3178a62ef1f520944534ed04504609f7307a1",
        "minimumGasPrice": "0x37ee430",
        "number": "0x526f5d",
        "paidFees": "0xd712019b060",
        "parentHash": "0x91e4a62319b7b4ccbcd84c45c7f611fe50a0e2509abd2103721c23245def181c",
        "receiptsRoot": "0x6c8b6572ed4d3eb02e429ab6846d151393439265ed9f91a81abf423d1913cb83",
        "sha3Uncles": "0x61b1148ff1ea50c46a041b6c7656a5ba10d82446caf6bfa41b9c9a184642a8f3",
        "size": "0xd74",
        "stateRoot": "0x58eb6c23e82731576261ccfbe844b2bd19ce12554f1e615c96fc5eb6de082f22",
        "timestamp": "0x649076a0",
        "totalDifficulty": "0x219e27ae73be9b081e1215f2",
        "transactions": [
            "0xaad4abc4e705f8baa06ad8e8ab0df28773ad887004d3e9d0f2e089761cb11e70",
            "0x478272239d79f0ddfb48fcb837359e5b275c6ea0110aa95ee3f48676a06f4225"
        ],
        "transactionsRoot": "0x3f239abf645c934a9ba3b0392da25f4cbe7d895ebeec63a87527b0871c2aff9b",
        "uncles": [
            "0x614457e94ed6d25d20f98ec575992fe0f9195fac6e2e8427cca05b1613cc8ee6",
            "0x878432d38a0e920896bbf8e3d86c4da63a1fd8ebf5b802fb9e979c33682cad77"
        ]
    }
}

eth_getUncleCountByBlockHash - Rootstock

Example code for the eth_getUncleCountByBlockHash json-rpc method. Сomplete guide on how to use eth_getUncleCountByBlockHash json-rpc in GetBlock.io Web3 documentation.

Parameters

DATA - string

hash of the block.

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getUncleCountByBlockHash",
"params": ["0xf2a2b854721d4372474fc76cc13445a73369c0c334f4935c88bde3c310f28c9a"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x0"
}

eth_getUncleCountByBlockNumber - Rootstock

Example code for the eth_getUncleCountByBlockNumber json-rpc method. Сomplete guide on how to use eth_getUncleCountByBlockNumber json-rpc in GetBlock.io Web3 documentation.

Parameters

QUANTITY|TAG - integer or string

block number or "latest", "earliest" or "pending"

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getUncleCountByBlockNumber",
"params": ["latest"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x0"
}

eth_hashrate - Rootstock

Example code for the eth_hashrate json-rpc method. Сomplete guide on how to use eth_hashrate json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_hashrate",
"params": [],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": 0
}

eth_mining - Rootstock

Example code for the eth_mining json-rpc method. Сomplete guide on how to use eth_mining json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_mining",
"params": [],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": false
}

eth_newBlockFilter - Rootstock

Example code for the eth_newBlockFilter json-rpc method. Сomplete guide on how to use eth_newBlockFilter json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_newBlockFilter",
"params": [],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x5e90"
}

eth_newFilter - Rootstock

Example code for the eth_newFilter json-rpc method. Сomplete guide on how to use eth_newFilter json-rpc in GetBlock.io Web3 documentation.

Parameters

Object - object

Filter options

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_newFilter",
"params": [[]],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x1abd0"
}

eth_newPendingTransactionFilter - Rootstock

Example code for the eth_newPendingTransactionFilter json-rpc method. Сomplete guide on how to use eth_newPendingTransactionFilter json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_newPendingTransactionFilter",
"params": [],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x5e91"
}

eth_pendingTransactions - Rootstock

Example code for the eth_pendingTransactions json-rpc method. Сomplete guide on how to use eth_pendingTransactions json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_pendingTransactions",
"params": [],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": [
        {
            "blockHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "blockNumber": null,
            "from": "0x28bdb9c230f4d5e45435e4d006326ee32e487b31",
            "gas": "0x205940",
            "gasPrice": "0x4a817c800",
            "hash": "0x8e4340ea3983d86e4b6c44249362f716ec9e09849ef9b6e3321140581d2e4dac",
            "input": "0xe4b6c4424936",
            "nonce": "0x14",
            "to": null,
            "transactionIndex": "0x0",
            "value": "0x0",
            "v": "0x3d",
            "r": "0x1ec191ef20b0e9628c4397665977cbe7a53a263c04f6f185132b77fa0fd5ca44",
            "s": "0x8a58e00c63e05cfeae4f1cf19f05ce82079dc4d5857e2cc281b7797d58b5faf"
        }
    ]
}

eth_protocolVersion - Rootstock

Example code for the eth_protocolVersion json-rpc method. Сomplete guide on how to use eth_protocolVersion json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_protocolVersion",
"params": [],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "62"
}

eth_sendRawTransaction - Rootstock

Example code for the eth_sendRawTransaction json-rpc method. Сomplete guide on how to use eth_sendRawTransaction json-rpc in GetBlock.io Web3 documentation.

Parameters

DATA - string

The signed transaction data.

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_sendRawTransaction",
"params": ["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}

eth_sendTransaction - Rootstock

Example code for the eth_sendTransaction json-rpc method. Сomplete guide on how to use eth_sendTransaction json-rpc in GetBlock.io Web3 documentation.

Parameters

object - json object

The transacion call object in format: { "from": "address" (optional, string) - The address the transaction is sent from. "to": "address" (optional, string) - The address the transaction is directed to. "gas": "quantity" (optional, string) - Integer of the gas provided for the transaction execution. eth_call consumes zero gas, but this parameter may be needed by some executions. "gasPrice": "quantity" (optional, string) - Integer of the gasPrice used for each paid gas "value": "quantity" (optional, string) - Integer of the value sent with this transaction "data": "data" (optional, string) - Hash of the method signature and encoded parameters. "nonce": "quantity" (optional, string) - Integer of a nonce. This allows to overwrite your own pending transactions that use the same nonce. }

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_sendTransaction",
"params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}

eth_sign - Rootstock

Example code for the eth_sign json-rpc method. Сomplete guide on how to use eth_sign json-rpc in GetBlock.io Web3 documentation.

Parameters

DATA - string

address.

DATA - string

message to sign.

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_sign",
"params": ["0x9b2055d370f73ec7d8a03e965129118dc8f5bf83", "0xdeadbeaf"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0xa3f20717a250c2b0b729b7e5becbff67fdaef7e0699da4de7ca5895b02a170a12d887fd3b17bfdce3481f10bea41f45ba9f709d39ce8325427b57afcfc994cee1b"
}

eth_submitHashrate {disallowed} - Rootstock

Example code for the eth_submitHashrate {disallowed} json-rpc method. Сomplete guide on how to use eth_submitHashrate {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

hashrate - string

Hexadecimal string representation of the hash rate.

id - string

Random hexadecimal ID identifying the client.

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_submitHashrate",
"params": ["0x0000000000000000000000000000000000000000000000000000000000500000", "0x59daa26581d0acd1fce254fb7e85952f4c09d0915afd33d3886cd914bc7d283c"],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

eth_syncing - Rootstock

Example code for the eth_syncing json-rpc method. Сomplete guide on how to use eth_syncing json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_syncing",
"params": [],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": false
}

eth_uninstallFilter - Rootstock

Example code for the eth_uninstallFilter json-rpc method. Сomplete guide on how to use eth_uninstallFilter json-rpc in GetBlock.io Web3 documentation.

Parameters

QUANTITY - string

The filter id.

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_uninstallFilter",
"params": ["0xb"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": false
}

mnr_getWork - Rootstock

Example code for the mnr_getWork json-rpc method. Сomplete guide on how to use mnr_getWork json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "mnr_getWork",
"params": [],
"id": "getblock.io"}

Response

{
    "error": {
        "code": -32601,
        "message": "the method mnr_getWork does not exist/is not available"
    },
    "id": "getblock.io",
    "jsonrpc": "2.0"
}

mnr_submitWork {disallowed} - Rootstock

Example code for the mnr_submitWork {disallowed} json-rpc method. Сomplete guide on how to use mnr_submitWork {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

data - string

The nonce found (64 bits)

data - string

The header’s pow-hash (256 bits)

data - string

The mix digest (256 bits)

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "mnr_submitWork",
"params": [null, null, null],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

net_listening - Rootstock

Example code for the net_listening json-rpc method. Сomplete guide on how to use net_listening json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "net_listening",
"params": [],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": true
}

net_peerCount - Rootstock

Example code for the net_peerCount json-rpc method. Сomplete guide on how to use net_peerCount json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "net_peerCount",
"params": [],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x20"
}

net_peerList {disallowed} - Rootstock

Example code for the net_peerList {disallowed} json-rpc method. Сomplete guide on how to use net_peerList {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "net_peerList",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

net_version - Rootstock

Example code for the net_version json-rpc method. Сomplete guide on how to use net_version json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "net_version",
"params": [],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "30"
}

shh_addToGroup {disallowed} - Rootstock

Example code for the shh_addToGroup {disallowed} json-rpc method. Сomplete guide on how to use shh_addToGroup {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "shh_addToGroup",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

shh_getFilterChanges {disallowed} - Rootstock

Example code for the shh_getFilterChanges {disallowed} json-rpc method. Сomplete guide on how to use shh_getFilterChanges {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "shh_getFilterChanges",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

shh_getMessages {disallowed} - Rootstock

Example code for the shh_getMessages {disallowed} json-rpc method. Сomplete guide on how to use shh_getMessages {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "shh_getMessages",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

shh_hasIdentity {disallowed} - Rootstock

Example code for the shh_hasIdentity {disallowed} json-rpc method. Сomplete guide on how to use shh_hasIdentity {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "shh_hasIdentity",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

shh_newFilter {disallowed} - Rootstock

Example code for the shh_newFilter {disallowed} json-rpc method. Сomplete guide on how to use shh_newFilter {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "shh_newFilter",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

shh_newGroup {disallowed} - Rootstock

Example code for the shh_newGroup {disallowed} json-rpc method. Сomplete guide on how to use shh_newGroup {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "shh_newGroup",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

shh_newIdentity {disallowed} - Rootstock

Example code for the shh_newIdentity {disallowed} json-rpc method. Сomplete guide on how to use shh_newIdentity {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "shh_newIdentity",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

shh_post {disallowed} - Rootstock

Example code for the shh_post {disallowed} json-rpc method. Сomplete guide on how to use shh_post {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "shh_post",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

shh_uninstallFilter {disallowed} - Rootstock

Example code for the shh_uninstallFilter {disallowed} json-rpc method. Сomplete guide on how to use shh_uninstallFilter {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "shh_uninstallFilter",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

shh_version {disallowed} - Rootstock

Example code for the shh_version {disallowed} json-rpc method. Сomplete guide on how to use shh_version {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "shh_version",
"params": [],
"id": "getblock.io"}

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

web3_clientVersion - Rootstock

Example code for the web3_clientVersion json-rpc method. Сomplete guide on how to use web3_clientVersion json-rpc in GetBlock.io Web3 documentation.

Parameters

-

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "web3_clientVersion",
"params": [],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "RskJ/4.4.0/Linux/Java1.8/HOP-25b937d"
}

web3_sha3 - Rootstock

Example code for the web3_sha3 json-rpc method. Сomplete guide on how to use web3_sha3 json-rpc in GetBlock.io Web3 documentation.

Parameters

DATA - array of string

the data to convert into a SHA3 hash.

Request

wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "web3_sha3",
"params": ["0xf2a2b854721d4372474fc76cc13445a73369c0c334f4935c88bde3c310f28c9a"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0xf5d3389b32cee33308ce9af2d8aefa1517aa90ccb7b1d2eb29c61f13e1fd3cea"
}