Skip to content

Commit

Permalink
New Layout
Browse files Browse the repository at this point in the history
Changing layout based on new design
  • Loading branch information
ziaddarwishcreoshift committed Sep 11, 2024
1 parent 7ee2cb0 commit e886047
Show file tree
Hide file tree
Showing 27 changed files with 2,535 additions and 0 deletions.
74 changes: 74 additions & 0 deletions zq2/docs/apis/1123f1a7/api/erigon/erigon_getHeaderByNumber.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
---
id: APIs/1123f1a7/api/erigon/erigon_getHeaderByNumber
title: erigon_getHeaderByNumber
keywords: erigon,header,number
---
---



Returns the erigon headers for a given block number
### Example Request


=== "cURL"

```shell
curl -d '{
"id": "1",
"jsonrpc": "2.0",
"method": "erigon_getHeaderByNumber",
"params": [ 1000 ]
}' -H "Content-Type: application/json" -X POST "https://api.zq2-devnet.zilliqa.com"
```












### Example response


```json
{
"jsonrpc": "2.0",
"result": {
"number": "0x3e8",
"hash": "0x7dbeae485c26511423301be854c6cdec6b07170427f3270ac1748782f4fe4a8f",
"parentHash": "0x71d2d959e0eb73b429686c0c1107e4183f04c0a54752d4fe519a1f0c54ab7cdb",
"nonce": "0x0000000000000000",
"sha3Uncles": "0x0000000000000000000000000000000000000000000000000000000000000000",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"transactionsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
"stateRoot": "0xd639a448087e7d087fb2d0fef4a1bd95237a965277dcbf7ee33344384491d409",
"receiptsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
"miner": "0x768af8c0b4792ed2948186857f1122f3cd6a695d",
"difficulty": "0x0",
"totalDifficulty": "0x0",
"extraData": "0x",
"size": "0x0",
"gasLimit": "0x501bd00",
"gasUsed": "0x0",
"timestamp": "0x6602d4bc",
"transactions": [],
"uncles": []
},
"id": "1"
}
```


### Arguments


| Parameter | Type | Required | Description |
| --------- | ------ | -------- | ------------------------- |
| `block` | number | Required | The block number to query |

52 changes: 52 additions & 0 deletions zq2/docs/apis/1123f1a7/api/ots/ots_getApiLevel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
id: APIs/1123f1a7/api/ots/ots_getApiLevel
title: ots_getApiLevel
keywords: ots
---
---



Returns the Otterscan API level
### Example Request


=== "cURL"

```shell
curl -d '{
"id": "1",
"jsonrpc": "2.0",
"method": "ots_getApiLevel",
"params": [ ]
}' -H "Content-Type: application/json" -X POST "https://api.zq2-devnet.zilliqa.com"
```












### Example response


```json
{
"jsonrpc": "2.0",
"result": 8,
"id": "1"
}
```


### Arguments




82 changes: 82 additions & 0 deletions zq2/docs/apis/1123f1a7/api/ots/ots_getBlockDetails.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
id: APIs/1123f1a7/api/ots/ots_getBlockDetails
title: ots_getBlockDetails
keywords: ots,details,block
---
---



Returns details of a numbered block for otterscan
### Example Request


=== "cURL"

```shell
curl -d '{
"id": "1",
"jsonrpc": "2.0",
"method": "ots_getBlockDetails",
"params": [ 1000 ]
}' -H "Content-Type: application/json" -X POST "https://api.zq2-devnet.zilliqa.com"
```












### Example response


```json
{
"jsonrpc": "2.0",
"result": {
"block": {
"number": "0x3e8",
"hash": "0x7dbeae485c26511423301be854c6cdec6b07170427f3270ac1748782f4fe4a8f",
"parentHash": "0x71d2d959e0eb73b429686c0c1107e4183f04c0a54752d4fe519a1f0c54ab7cdb",
"nonce": "0x0",
"sha3Uncles": "0x0000000000000000000000000000000000000000000000000000000000000000",
"transactionsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
"stateRoot": "0xd639a448087e7d087fb2d0fef4a1bd95237a965277dcbf7ee33344384491d409",
"receiptsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
"miner": "0x768af8c0b4792ed2948186857f1122f3cd6a695d",
"difficulty": "0x0",
"totalDifficulty": "0x0",
"extraData": "0x",
"size": "0x0",
"gasLimit": "0x1",
"gasUsed": "0x0",
"timestamp": "0x6602d4bc",
"transactionCount": 0,
"uncles": [],
"baseFeePerGas": "0x0"
},
"issuance": {
"blockReward": "0x0",
"uncleReward": "0x0",
"issuance": "0x0"
},
"totalFees": "0x0"
},
"id": "1"
}
```


### Arguments


| Parameter | Type | Required | Description |
| --------- | ------ | -------- | ------------------------- |
| `block` | number | Required | The block number to query |

82 changes: 82 additions & 0 deletions zq2/docs/apis/1123f1a7/api/ots/ots_getBlockDetailsByHash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
id: APIs/1123f1a7/api/ots/ots_getBlockDetailsByHash
title: ots_getBlockDetailsByHash
keywords: ots,api,hash,block,details
---
---



Returns details of a block for otterscan by hash
### Example Request


=== "cURL"

```shell
curl -d '{
"id": "1",
"jsonrpc": "2.0",
"method": "ots_getBlockDetailsByHash",
"params": [ "0x7dbeae485c26511423301be854c6cdec6b07170427f3270ac1748782f4fe4a8f" ]
}' -H "Content-Type: application/json" -X POST "https://api.zq2-devnet.zilliqa.com"
```












### Example response


```json
{
"jsonrpc": "2.0",
"result": {
"block": {
"number": "0x3e8",
"hash": "0x7dbeae485c26511423301be854c6cdec6b07170427f3270ac1748782f4fe4a8f",
"parentHash": "0x71d2d959e0eb73b429686c0c1107e4183f04c0a54752d4fe519a1f0c54ab7cdb",
"nonce": "0x0",
"sha3Uncles": "0x0000000000000000000000000000000000000000000000000000000000000000",
"transactionsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
"stateRoot": "0xd639a448087e7d087fb2d0fef4a1bd95237a965277dcbf7ee33344384491d409",
"receiptsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
"miner": "0x768af8c0b4792ed2948186857f1122f3cd6a695d",
"difficulty": "0x0",
"totalDifficulty": "0x0",
"extraData": "0x",
"size": "0x0",
"gasLimit": "0x1",
"gasUsed": "0x0",
"timestamp": "0x6602d4bc",
"transactionCount": 0,
"uncles": [],
"baseFeePerGas": "0x0"
},
"issuance": {
"blockReward": "0x0",
"uncleReward": "0x0",
"issuance": "0x0"
},
"totalFees": "0x0"
},
"id": "1"
}
```


### Arguments


| Parameter | Type | Required | Description |
| --------- | ------ | -------- | ----------------------- |
| `hash` | string | Required | The block hash to query |

Loading

0 comments on commit e886047

Please sign in to comment.