qc_chainId
Returns the EIP-155 chain ID. Quantum Chain mainnet is20803 (0x5143).
qc_blockNumber
Returns the number of the most recent block.qc_syncing
Returnsfalse if the node is fully synced, or an object with sync progress.
qc_getBlockByNumber
Returns a block by number. SetfullTx to true to include full transaction objects instead of just hashes.
| Parameter | Type | Description |
|---|---|---|
blockNumber | string | Block number (hex) or tag: "latest", "pending", "earliest", "finalized", "safe" |
fullTx | boolean | If true, return full transaction objects |
qc_getBlockByHash
Returns a block by its hash. Same parameters asqc_getBlockByNumber but accepts a block hash.
| Parameter | Type | Description |
|---|---|---|
blockHash | string | 32-byte block hash (hex) |
fullTx | boolean | If true, return full transaction objects |
qc_getHeaderByNumber
Returns a block header by number.| Parameter | Type | Description |
|---|---|---|
blockNumber | string | Block number (hex) or tag |
qc_getHeaderByHash
Returns a block header by its hash.| Parameter | Type | Description |
|---|---|---|
blockHash | string | 32-byte block hash (hex) |
qc_getUncleCountByBlockNumber
Returns the number of uncles in a block by block number.| Parameter | Type | Description |
|---|---|---|
blockNumber | string | Block number (hex) or tag |
qc_getUncleCountByBlockHash
Returns the number of uncles in a block by block hash.| Parameter | Type | Description |
|---|---|---|
blockHash | string | 32-byte block hash (hex) |
qc_getUncleByBlockNumberAndIndex
Returns uncle block data by block number and uncle index.| Parameter | Type | Description |
|---|---|---|
blockNumber | string | Block number (hex) or tag |
uncleIndex | string | Uncle position index (hex) |
qc_getUncleByBlockHashAndIndex
Returns uncle block data by block hash and uncle index.| Parameter | Type | Description |
|---|---|---|
blockHash | string | 32-byte block hash (hex) |
uncleIndex | string | Uncle position index (hex) |