This doc describes all supported JSON-RPC methods, except skale_* and debug methods. Doc describes methods' parameters and return values.
This doc does NOT describe all possible erroneous situations.
Parameters marked as OPTIONAL are optional, otherwise they are required!
| Compatibility | |
|---|---|
| Core vs ETH | Mostly same |
| Historic vs ETH | Mostly same |
Get detailed skaled version
None
String representing exact build of skaled
Example: "skaled/3.19.0+commit.859d742c/linux/gnu9.5.0/debug"
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Get sha3 (keccak256) hash of input data
- Input data represented as a "0x"-prefixed hex
String
Output data represented as a "0x"-prefixed hex String (32 bytes)
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Returns chainID from config.json
None
Decimal number as String
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Returns true
None
Boolean literal true
| Compatibility | |
|---|---|
| Core vs ETH | Compatible, but makes no sense in SKALE |
| Historic vs ETH | Compatible, but makes no sense in SKALE |
Returns 0
None
String value "0x0"
| Compatibility | |
|---|---|
| Core vs ETH | SKALE uses hex, ETH uses dec |
| Historic vs ETH | SKALE uses hex, ETH uses dec |
Returns 0x3f
None
String value "0x3f"
| Compatibility | |
|---|---|
| Core vs ETH | SKALE uses dec, ETH uses hex |
| Historic vs ETH | SKALE uses dec, ETH uses hex |
Get node's sync status.
If node has all up-to-date blocks - returns false.
If it's behind others and is catching up - retuns object:
- "startingBlock": decimal literal;
- "highestBlock": decimal literal;
- "currentBlock": decimal literal.
None
Boolean literal false
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Returns sChainOwner address from config.json (it is used as coinbase address)
None
"0x"-prefixed hex String (20 bytes)
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Returns chainID from config.json as hex string
None
"0x"-prefixed hex String
| Compatibility | |
|---|---|
| Core vs ETH | Compatible, but makes no sense in SKALE |
| Historic vs ETH | Compatible, but makes no sense in SKALE |
Returns false
None
Boolean literal false
| Compatibility | |
|---|---|
| Core vs ETH | Compatible, but makes no sense in SKALE |
| Historic vs ETH | Compatible, but makes no sense in SKALE |
There is no hashrate for SKALE s-chains, always returns 0
None
String literal "0x0"
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Get current minimum gas price needed for transaction to be accepted into the Transaction Queue. Gas price is dynamically adjusted from 100k wei and above as load grows
None
"0x"-prefixed hex String representing current gas price
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Get list of accounts with locally-stored private keys
None
Array of "0x"-prefixed hex Strings, 20 bytes each
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Get the number of most recent block
None
"0x"-prefixed hex String representing block number
| Compatibility | |
|---|---|
| Core vs ETH | SKALE ignores block number |
| Historic vs ETH | Same |
Get the balance of the account of given address
- Address: "0x"-prefixed hex
String, 20 bytes - Block number:
Stringthat is interpreted differently for normal and historic builds:
Normal build: parameter ignored, latest balance is always returned.
Historic build:
- "latest" or "pending" - latest balance is returned;
- "earliest" - balance before block 1 is returned;
Stringrepresentation of an integer block number, either decimal or "0x"-prefixed hexadecimal.
"0x"-prefixed hex String representing balance in wei
| Compatibility | |
|---|---|
| Core vs ETH | SKALE ignores block number |
| Historic vs ETH | Same |
Get the value from a storage position at a given account
- Address: "0x"-prefixed hex
String, 20 bytes; - Position:
Stringrepresentation of an integer storage position, either decimal or "0x"-prefixed hexadecimal; - Block number:
Stringthat is interpreted differently for normal and historic builds:
Normal build: parameter ignored, latest value is always returned.
Historic build:
- "latest" or "pending" - latest value is returned;
- "earliest" - value before block 1 is returned;
Stringrepresentation of an integer block number, either decimal or "0x"-prefixed hexadecimal.
"0x"-prefixed hex String (32 bytes)
| Compatibility | |
|---|---|
| Core vs ETH | SKALE ignores block number |
| Historic vs ETH | Same |
Get the number of transactions sent from an address.
- Address: "0x"-prefixed hex
String, 20 bytes; - Block number:
Stringthat is interpreted differently for normal and historic builds:
Normal build: parameter ignored, latest value is always returned.
Historic build:
- "latest" or "pending" - latest value is returned;
- "earliest" - value before block 1 is returned;
Stringrepresentation of an integer block number, either decimal or "0x"-prefixed hexadecimal.
"0x"-prefixed hex String representing transaction count
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Get number of transactions in a block
- Block hash: "0x"-prefixed hex
String, 32 bytes
"0x"-prefixed hex String representing transaction count
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Get number of transactions in a block
- Block number:
- "earliest", "latest", or "pending";
Stringrepresentation of an integer block number, either decimal or "0x"-prefixed hexadecimal.
"0x"-prefixed hex String representing transaction count
| Compatibility | |
|---|---|
| Core vs ETH | Compatible, but makes no sense in SKALE |
| Historic vs ETH | Compatible, but makes no sense in SKALE |
Always returns 0.
- Block hash: "0x"-prefixed hex
String, 32 bytes
String literal "0x0"
| Compatibility | |
|---|---|
| Core vs ETH | Compatible, but makes no sense in SKALE |
| Historic vs ETH | Compatible, but makes no sense in SKALE |
Always returns 0.
- Block number:
- "earliest", "latest", or "pending";
Stringrepresentation of an integer block number, either decimal or "0x"-prefixed hexadecimal.
String literal "0x0"
| Compatibility | |
|---|---|
| Core vs ETH | SKALE ignores block number |
| Historic vs ETH | Same |
Get code at a given address
- Address: "0x"-prefixed hex
String, 20 bytes; - Block number:
Stringthat is interpreted differently for normal and historic builds:
Normal build: parameter ignored, latest value is always returned.
Historic build:
- "latest" or "pending" - latest value is returned;
- "earliest" - value before block 1 is returned;
Stringrepresentation of an integer block number, either decimal or "0x"-prefixed hexadecimal.
"0x"-prefixed hex String
| Compatibility | |
|---|---|
| Core vs ETH | Not supported in SKALE |
| Historic vs ETH | Not supported in SKALE |
Not supported
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Sign transaction using stored private key and make raw transaction
- Object same as
eth_sendTransaction
Object:
- "raw": "0x"-prefixed hex
String; - "tx": same as in
eth_inspectTransaction
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Create new transaction from the provided fields, sign it with the specified from address and submit it to the Transaction Queue
- JSON object with the following fields:
- "from": OPTIONAL "0x"-prefixed hex
String, 20 bytes OR null; if omitted or null, personal account with the largest balance is used; - "to": OPTIONAL "0x"-prefixed hex
String, 20 bytes OR "0x" OR null; omitted/null/""/"0x" means contract creation; - "value": OPTIONAL decimal
StringOR "0x"-prefixed hexadecimalStringOR integer literal OR "" OR "0x" OR null; defaults to 0; - "gas": OPTIONAL decimal
StringOR "0x"-prefixed hexadecimalStringOR integer literal OR null; defaults to 90000 if omitted or null; - "gasPrice": OPTIONAL decimal
StringOR "0x"-prefixed hexadecimalStringOR integer literal OR null; defaults to eth_gasPrice() if omitted or null; - "maxFeePerGas": OPTOPNAL same as "gasPrice", used if "gasPrice" is absent or null;
- "code": OPTIONAL same as "data";
- "data": OPTIONAL "0x"-prefixed hex
StringOR "0x" OR "" OR null; defaults to empty; - "input": OPTIONAL same as "data";
- "nonce": OPTIONAL decimal
StringOR "0x"-prefixed hexadecimalStringOR integer literal OR null; defaults to current nonce of the sender OR maximum nonce of the sender's transactions in the Transaction Queue if it is larger (default is applied if omitted or null).
"0x"-prefixed hex String, 32 bytes - hash of the transaction.
If transaction was attributed to a proxy account, empty hash is returned.
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Submit pre-signed transaction into the Transaction Queue
- "0x"-prefixed hex
String- transaction bytes.
"0x"-prefixed hex String, 32 bytes - hash of the transaction.
| Compatibility | |
|---|---|
| Core vs ETH | SKALE ignores block number |
| Historic vs ETH | Same |
Execute read-only contract call
- Same object as in
eth_sendTransaction. - Block number:
Stringthat is interpreted differently for normal and historic builds:
Normal build: parameter ignored, latest value is always returned.
Historic build:
- "latest" or "pending" - latest value is returned;
- "earliest" - value before block 1 is returned;
Stringrepresentation of an integer block number, either decimal or "0x"-prefixed hexadecimal: theStateafter executing of the specified block is used to execute call.
"0x"-prefixed hex String or "0x", call result
| Compatibility | |
|---|---|
| Core vs ETH | SKALE ignores block number |
| Historic vs ETH | SKALE ignores block number |
Execute transaction on a temporary state without committing to DB and return gas usage
- Same object as in
eth_sendTransaction. - OPTIONAL Ignored
"0x"-prefixed hex String, gas estimate
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Get details about block
- Block hash: "0x"-prefixed hex
String, 32 bytes - Include transactions: boolean literal - true/false
null if block is absent or rotated out.
Otherwise - object with the following fields:
- "hash": "0x"-prefixed hex
String, 32 bytes; - "parentHash": "0x"-prefixed hex
String, 32 bytes; - "sha3Uncles": "0x"-prefixed hex
String, 32 bytes; - "author": "0x"-prefixed hex
String, 20 bytes - address of schainOwner; - "stateRoot": "0x"-prefixed hex
String, 32 bytes; - "transactionsRoot": "0x"-prefixed hex
String, 32 bytes; - "receiptsRoot": "0x"-prefixed hex
String, 32 bytes; - "number": decimal literal;
- "gasUsed": decimal literal;
- "gasLimit": decimal literal;
- "extraData":
String"0x736b616c65" ("skale" in ASCII); - "logsBloom": "0x"-prefixed hex
String, 256 bytes; - "timestamp": decimal literal;
- "miner": same as
author; - "nonce":
String"0x0000000000000000"; - "seedHash":
String"0x0000000000000000000000000000000000000000000000000000000000000000", 32 bytes; - "mixHash":
String"0x0000000000000000000000000000000000000000000000000000000000000000", 32 bytes; - "boundary":
String"0x0000000000000000000000000000000000000000000000000000000000000000", 32 bytes; - "difficulty": decimal literal 0;
- "totalDifficulty": decimal literal 0;
- "size": decimal literal;
- "uncles": empty arra;
- "baseFeePerGas": "0x"-prefixed hex
String, gas price in block, field is present only if EIP-1559 is enabled; for rotated out old blocks this field is set to latest gasPrice; - "transactions": array of transaction hashes ("0x"-prefixed hex
Strings, 32 bytes) OR detaled transactions info (same as ineth_getTransactionByHash) if 2nd argument wastrue;
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Get details about block
- Block number:
- "latest" or "pending" - latest value is returned;
- "earliest" - value before block 1 is returned;
Stringrepresentation of an integer block number, either decimal or "0x"-prefixed hexadecimal.
- Include transactions: boolean literal - true/false
Same as eth_getBlockByHash
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Get details about transaction
- Transaction hash: "0x"-prefixed hex
String, 32 bytes
null if transaction not found.
Otherwise, object with the following fields:
- "blockHash": "0x"-prefixed hex
String, 32 bytes; - "blockNumber": decimal literal;
- "from": "0x"-prefixed hex
String, 20 bytes; - "gas": decimal literal;
- "gasPrice": decimal literal;
- "hash": "0x"-prefixed hex
String, 32 bytes; - "input": "0x"-prefixed hex
StringOR "0x" if there is no input; - "nonce": decimal literal;
- "to": "0x"-prefixed hex
String, 20 bytes ORnullif contract creation; - "transactionIndex": decimal literal;
- "value": decimal literal;
- "v": "0x"-prefixed hex
String; - "r": "0x"-prefixed hex
String, 32 bytes; - "s": "0x"-prefixed hex
String, 32 bytes; - "type": "0x"-prefixed hex
String: "0x0", "0x1", or "0x2"; - "yParity": "0x"-prefixed hex
String(present intype 1andtype 2); - "accessList": present in
type 1andtype 2; - "maxPriorityFeePerGas": "0x"-prefixed hex
String(present intype 2only); - "maxFeePerGas": "0x"-prefixed hex
String(present intype 2only);
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Get details about transaction
- Block hash: "0x"-prefixed hex
String, 32 bytes - Transaction index: either decimal or "0x"-prefixed hexadecimal
String
Same as eth_getTransactionByHash
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Get details about transaction
- Block number:
- "latest" or "pending" - latest block is used;
- "earliest" - block 0;
Stringrepresentation of an integer block number, either decimal or "0x"-prefixed hexadecimal;
- Transaction index: either decimal or "0x"-prefixed hexadecimal
String
Same as eth_getTransactionByHash
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Get transaction receipt
- Transaction hash: "0x"-prefixed hex
String, 32 bytes
null if transaction not mined.
Otherwise - object with the following fields:
- "from": "0x"-prefixed hex
String, 20 bytes; - "to": "0x"-prefixed hex
String, 32 bytes (contains all 0s if contract deployment); - "transactionHash": "0x"-prefixed hex
String, 32 bytes; - "transactionIndex": decimal literal;
- "blockHash": "0x"-prefixed hex
String, 32 bytes; - "blockNumber": decimal literal;
- "cumulativeGasUsed": decimal literal;
- "gasUsed": decimal literal;
- "contractAddress": "0x"-prefixed hex
String, 20 bytes if deployment ORnullif not; - "logs":
Array; - "logsBloom": "0x"-prefixed hex
String, 256 bytes; - "status":
String"0x0" or "0x1"; - "revertReason" OPTIONAL:
String; - "type": "0x"-prefixed hex
String: "0x0", "0x1", or "0x2"; - "effectiveGasPrice": "0x"-prefixed hex
String.
| Compatibility | |
|---|---|
| Core vs ETH | Compatible, but makes no sense in SKALE |
| Historic vs ETH | Compatible, but makes no sense in SKALE |
Return null
- Block hash: "0x"-prefixed hex
String, 32 bytes - Uncle index: either decimal or "0x"-prefixed hexadecimal
String
null
| Compatibility | |
|---|---|
| Core vs ETH | Compatible, but makes no sense in SKALE |
| Historic vs ETH | Compatible, but makes no sense in SKALE |
Return null
- Block number:
- "latest" or "pending" - latest block;
- "earliest" - block 0;
Stringrepresentation of an integer block number, either decimal or "0x"-prefixed hexadecimal;
- Uncle index: either decimal or "0x"-prefixed hexadecimal
String
null
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Create new logs (events) filter and return it's ID
- Object:
- "fromBlock" OPTIONAL defaults to "earliest" with values:
- "earliest", "latest" or "pending";
Stringrepresentation of an integer block number, either decimal or "0x"-prefixed hexadecimal;
- "toBlock" OPTIONAL defaults to "pending" with values:
- "earliest", "latest" or "pending";
Stringrepresentation of an integer block number, either decimal or "0x"-prefixed hexadecimal;
- "address" OPTIONAL: "0x"-prefixed hex
String, 20 bytes; - "topics" OPTIONAL:
Array, see https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_newfilter
"0x"-prefixed hex String - ID of the filter
Any non-WS filter is deleted if it's not being polled for 20 seconds
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Create filter for monitoring new blocks and returns it's ID
None
"0x"-prefixed hex String - ID of the filter
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Create filter for monitoring new transactins and returns it's ID
None
"0x"-prefixed hex String - ID of the filter
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Remove previously created filter
- Decimal or "0x"-prefixed hex
String- ID of the filter
true if filter was successfully found and uninstalled, false if it's not found
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Get changes in filter results since previous call (or filter creation)
Ignores logs that originated from blocks that were "rotated out"
- Decimal or "0x"-prefixed hex
String- ID of the filter
Array of changes (can be empty).
For a block filter, array items are block hashes.
For a transaction filter, array items are transaction hashes.
For an event filter, array items are objects with the following fields:
- "data"
- "address"
- "topics"
- "polarity"
- "type": "mined" or "pending"
- "blockNumber"
- "blockHash"
- "logIndex"
- "transactionHash"
- "transactionIndex"
Throws INVALID_PARAMS if filter cannot be found
If a block is removed from the DB due to block rotation, it doesn't affect this call results
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Get all events matching a filter
- Decimal or "0x"-prefixed hex
String- ID of the filter
Same as eth_getFilterChanges
Throws INVALID_PARAMS if filter cannot be found or if response size is exceeded
Response size is limited by number of consecutive blocks that can be requested. It is set in getLogsBlocksLimit config parameter, which currenly is 2000 blocks.
| Compatibility | |
|---|---|
| Core vs ETH | Same |
| Historic vs ETH | Same |
Same as eth_getFilterLogs, but doesn't require filter creation
- Object:
- "fromBlock" OPTIONAL defaults to "earliest" with values:
- "earliest", "latest" or "pending";
Stringrepresentation of an integer block number, either decimal or "0x"-prefixed hexadecimal;
- "toBlock" OPTIONAL defaults to "pending" with values:
- "earliest", "latest" or "pending";
Stringrepresentation of an integer block number, either decimal or "0x"-prefixed hexadecimal;
- "address" OPTIONAL: "0x"-prefixed hex
String, 20 bytes; - "topics" OPTIONAL:
Array, see https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_newfilter - "blockHash" OPTIONAL: "0x"-prefixed hex
String, 32 bytes; if this field is present, thenfromBlockandtoBlockare not allowed.
Same as eth_getFilterChanges
Throws INVALID_PARAMS if block does not exist, if response size is exceeded, or fromBlock or toBlock are present together with blockHash
Response size limit is determined by getLogsBlocksLimit config parameter, and currenly is 2000 logs per request.
Not supported
| Compatibility | |
|---|---|
| Core vs ETH | Unknown |
| Historic vs ETH | Unknown |
Returns three magic hashes
None
Array of three "0x"-prefixed hex Strings, 32 bytes each
| Compatibility | |
|---|---|
| Core vs ETH | Unknown |
| Historic vs ETH | Unknown |
- nonce: decimal or "0x"-prefixed hexadecimal number, 8 bytes;
- powHash: decimal or "0x"-prefixed hexadecimal number, 32 bytes;
- mixDigest: decimal or "0x"-prefixed hexadecimal number, 32 bytes.
true
| Compatibility | |
|---|---|
| Core vs ETH | Unknown |
| Historic vs ETH | Unknown |
- hashrate: decimal or "0x"-prefixed hexadecimal number, 32 bytes;
- miner id: decimal or "0x"-prefixed hexadecimal number, 32 bytes.
true
Not supported
| Compatibility | |
|---|---|
| Core vs ETH | Unknown |
| Historic vs ETH | Unknown |
Add proxy account
- Address: "0x"-prefixed hex
String, 20 bytes
"0x"-prefixed hex String - id of added account
| Compatibility | |
|---|---|
| Core vs ETH | Unknown |
| Historic vs ETH | Unknown |
Remove proxy account
- id: decimal or "0x"-prefixed hexadecimal number, previously obtained through
eth_register
true if account was found and removed, false otherwise
| Compatibility | |
|---|---|
| Core vs ETH | Unknown |
| Historic vs ETH | Unknown |
Probably it will mine a block with PoW
None
true
Returns empty access list
- Transaction object same as in
eth_sendTransaction; Stringblock hash or number (ignored).
Object:
- "accessList" - empty list;
- "gasUsed" - "0x" prefixed hex
String- result ofeth_estimateGas.
| Compatibility | |
|---|---|
| Core vs ETH | Unknown |
| Historic vs ETH | Unknown |
Same as eth_getFilterChanges
| Compatibility | |
|---|---|
| Core vs ETH | Unsupported in both |
| Historic vs ETH | Supported in Historic, unsupported in ETH |
Get account's storageRoot (according to Yellow Paper)
Normal node - call always throws exception.
Historic node - see below.
- Address: "0x"-prefixed hex
String, 20 bytes; - Block number:
- "latest" or "pending" - latest value is returned;
- "earliest" - value before block 1 is returned;
Stringrepresentation of an integer block number, either decimal or "0x"-prefixed hexadecimal - value after execution of specified block is returned.
"0x"-prefixed hex String (32 bytes). If account cannot be found - sha3( rlp( "" ) ) is returned
| Compatibility | |
|---|---|
| Core vs ETH | Unsupported in ETH |
| Historic vs ETH | Unsupported in ETH |
Parse binary transaction into fields
- Raw transaction: "0x"-prefixed hex
String
Object, see eth_getTransactionByHash
None
"0x0"
String- ignored
false
Get transaction queue
None
Array of Objects, see eth_getTransactionByHash. sighash equals to hash
HTTP(S): unsupported, always throws exception
WS(S): subscribe for new events/transactions/blocks/stats
Stringsubscription type:
- "logs";
- "newPendingTransactions";
- "newHeads";
- "skaleStats".
- Used only when type="logs": object, format is the same as in
eth_newFilter
"0x"-prefixed hex String - subscription id
Depending on the type of subscription, different data is pushed back to the client when requested event happens.
- type="logs":
{
"jsonrpc":"2.0",
"method":"eth_subscription",
"params":{
"result":{
"address":"0x"-prefixed hex `String`, 20 bytes,
"blockHash":"0x"-prefixed hex `String`, 32 bytes,
"blockNumber":"0x"-prefixed hex `String`,
"data":"0x"-prefixed hex `String`,
"logIndex": integer literal,
"topics": array of "0x"-prefixed hex `String`s, 32 bytes each,
"transactionHash":"0x"-prefixed hex `String`, 32 bytes,
"transactionIndex": integer literal
},
"subscription": "0x"-prefixed hex `String`, subscription id
}
}
- type="newHeads"
{
"jsonrpc":"2.0",
"method":"eth_subscription",
"params":{
"result": see `eth_getBlockByHash`, includeTransactions=false,
"subscription": "0x"-prefixed hex `String`, subscription id
}
}
- type="newPendingTransactions"
{
"jsonrpc":"2.0",
"method":"eth_subscription",
"params":{
"result": "0x"-prefixed hex `String`, 32 bytes - transaction hash,
"subscription": "0x"-prefixed hex `String`, subscription id
}
}
HTTP(S): unsupported, always throws exception
WS(S): unsubscribe from events/transactions/blocks/stats (see eth_subscribe)
- id: decimal or "0x"-prefixed hexadecimal number
StringOR number literal - previously obtained througheth_subscribe
None
Not supported
Not supported
Not supported
Not supported, always throws exception
Not supported, always throws exception
Not supported, always throws exception
Gets timestamps for all patches defined.
None
Returns the timestamp of each defined patch. Returns 0 for any undefined patch timestamp.
Returns the current common BLS public key(s) and epoch id(s) for threshold encryption. During committee rotation periods, this method may return two sets of data to support seamless transition between epochs.
None
A JSON array of 1 or 2 objects. Each object contains:
epochId- decimal number representing the epoch identifiercommonBLSPublicKey- 128-byte hexadecimal string representing the BLS public key for threshold encryption
Single epoch (normal operation):
[
{
"epochId": 42,
"commonBLSPublicKey": "1a2b3c4d5e6f7890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12"
}
]During committee rotation (starting from 3 minutes before):
[
{
"epochId": 42,
"commonBLSPublicKey": "1a2b3c4d5e6f7890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12"
},
{
"epochId": 43,
"commonBLSPublicKey": "9876543210fedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321fedcba"
}
]- If the node is in a catch-up state, it may return outdated information
- During committee rotation (scheduled for the next 3 minutes), two epoch keys are returned
Retrieves the decrypted data and destination address for a BITE transaction. This method returns the original plaintext data that was encrypted in the transaction.
- Transaction hash: "0x"-prefixed hex
String, 32 bytes
Object with the following fields:
data- "0x"-prefixed hexStringrepresenting the decrypted transaction datato- "0x"-prefixed hexString, 20 bytes representing the original destination address
{
"data": "0xa9059cbb000000000000000000000000742d35cc6634c0532925a3b8d4f25d00000000000000000000000000000000000000000000000000000de0b6b3a7640000",
"to": "0x742d35cc6634c0532925a3b8d4025d00000000"
}- Throws error if the transaction hash does not exist
- Throws error if the transaction is not a BITE transaction
- Throws error if the transaction has not been successfully decrypted
Retrieves the list of hashes of CTXs crafted by given transaction.
- Transaction hash: "0x"-prefixed hex
String, 32 bytes
A JSON array of transaction hashes, each "0x"-prefixed hex String, 32 bytes.
[
"0xb217cdf70dd4691e53040030b8931807b02633d92052d8c74f38b20944788922"
]- Throws error if the transaction hash does not exist
Retrieves the transaction that created particular CTX.
- Transaction hash: "0x"-prefixed hex
String, 32 bytes
Transaction hash: "0x"-prefixed hex String, 32 bytes
"0xb217cdf70dd4691e53040030b8931807b02633d92052d8c74f38b20944788922"- Throws error if the transaction hash does not exist
- Throws error if given transaction is not CTX