# Geth Proxy

## eth\_blockNumber&#x20;

***

Get the current height data of the block

### Request address

```
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' https://rpc01.trias.one
```

### Request Parameters

no

### Return data description

Current block height

**Trias return data example**

```
{"jsonrpc":"2.0","id":1,"result":"0x8bd98"}
```

## eth\_getBlockByNumber&#x20;

***

Returns the block with the specified number

### Request address

```
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x2a239", false],"id":1}' https://rpc01.trias.one 
```

### Request Parameters

QUANTITY|TAG - integer block number, or the strings "earliest", "latest", or "pending" Boolean - returns the full transaction object if true, otherwise only the transaction hash is returned

### Return data description

Object - the object of the matching block, or null if no block is found

**Trias return data example**

```
{
          "jsonrpc":  "2.0",
          "id":  1,
          "result":  {
                    "difficulty":  "0x2",
                    "extraData":  "0xd883010111846765746888676f312e31382e32856c696e757800000002fd401bebd123fd1c31f8fdd535651550478b07907f3317ceb5b60a65eab3ea234172150db69c58cad901577ea640047e8de52ae7ee63f1a144ab61953fae6313df737001",
                    "gasLimit":  "0x7a1200",
                    "gasUsed":  "0xa410",
                    "hash":  "0x6e1cd6073a73c25db8e6aa0f8efc9e16cf4e460294778a750696b348321450b5",
                    "logsBloom":  "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
                    "miner":  "0xeef9becbf568559653fbce25d0b946cc2e30771c",
                    "mixHash":  "0x0000000000000000000000000000000000000000000000000000000000000000",
                    "nonce":  "0x0000000000000000",
                    "number":  "0x2a239",
                    "parentHash":  "0x6ab97ccac4c67951b6a423092665ffc86ffe3f9e8810d54ad852bd5d0e5f8544",
                    "receiptsRoot":  "0x7e26c3df4eeb7dd90966c51459d1061085b99f25b8a75962405027db5fdbc92e",
                    "sha3Uncles":  "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
                    "size":  "0x534",
                    "stateRoot":  "0x0bce7f8a263066f93f35e861533d40a50cc689affec1b99ce837165d4b672566",
                    "timestamp":  "0x659e5949",
                    "totalDifficulty":  "0x5442a",
                    "transactions":  [
                              "0x91ae577212072562e010745651a59c0966a9971c1742b79904d147ad7793fec1",
                              "0x3fd414c312742063220900290c3b8a6ea3c1c2e7916b938d3e94860f30a60e3a",
                              "0x09305f44836751356a8a5ce5a608f6d03fe5daa6dcc815f6fa3ce96e8c1debeb",
                              "0x4a74619696853df2212b06cb3ae58f7f5b48e11abf354153ea9a026b38ac3372"
                    ],
                    "transactionsRoot":  "0xe46d0927cf0338b59cc4d84a793e4045789c18514cede4bf45f9179b5be6a942",
                    "trustNodeScore":  "0x193bfba425e7d3451d8410f1f4fa4554812df7133a3a0000ac37279915786fb12e67f0f18b765ca6831d9a73a5e33a3a0000ac432ac30b3946da0fa0d94db97f680e0e1ebaaa3c863a3a0000ac493637f213c9dbd5e2d8c65a6410475aec410473d53a3a0000abca394fb9f059d2887a61abace3dccbbf32d91fa1233a3a0000accd9a059e83defaef0b7dc650222dae7abc3dc0d0c73a3a0000ab23dd38105ee1915e04342568575869c94a1270805e3a3a0000acfaecb7bed0204d3b8d244e7a121d649ba654ede4923a3a0000add6eef9becbf568559653fbce25d0b946cc2e30771c3a3a0000ad9700000000",
                    "uncles":  [

                    ]
          }
}
```

## eth\_getBlockTransactionCountByNumber&#x20;

***

Returns the number of transactions in the specified block, using the block number to specify the block

### Request address

```
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBlockTransactionCountByNumber","params":["0x2a239"],"id":1}' https://rpc01.trias.one 
```

### Request Parameters

QUANTITY|TAG - integer block number, or the strings "earliest", "latest", or "pending".

### Return data description

Number of transactions for a given block

**Trias return data example**

```
{"jsonrpc":"2.0","id":1,"result":"0x4"} 
```

## eth\_getTransactionByHash&#x20;

***

Get the current height data of the block

### Request address

```
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getTransactionByHash","params":["0xe8c78cf417fd00214c4419223ff28001abcc16691899044e550acf8e35f81251"],"id":1}' https://rpc01.trias.one 
```

### Request Parameters

DATA, 32 bytes - transaction hash

### Return data description

Current transaction object information

**Trias return data example**

```
{
          "jsonrpc":  "2.0",
          "id":  1,
          "result":  {
                    "blockHash":  "0x271d42b2a8b99785b79e3133b17621ec2e7b101803fcc0b1b1540037bfaee768",
                    "blockNumber":  "0x238e2",
                    "from":  "0x947dd1558257a631049fad9d686f427f86033c16",
                    "gas":  "0x419ce0",
                    "gasPrice":  "0x3b9aca00",
                    "hash":  "0xe8c78cf417fd00214c4419223ff28001abcc16691899044e550acf8e35f81251",
                    "input":  "0xa9059cbb00000000000000000000000061983e26eab9d8eb07b4f0bebaef6a461d982a660000000000000000000000000000000000000000000000000000000c1b710800",
                    "nonce":  "0x81c4",
                    "to":  "0x1ffc121a47a70f24b4628815ce325908ff91e71a",
                    "transactionIndex":  "0x2",
                    "value":  "0x0",
                    "type":  "0x0",
                    "v":  "0x43",
                    "r":  "0x1d3ead5263f1e8c57284fb40bb884c531ec629d9d33b3ec7dd1916684c566ee1",
                    "s":  "0x1ad5410eec255cd224211e8db61e857b0d017d6168ded0fd9541de4cd0541bef"
          }
}
```

## eth\_getTransactionReceipt&#x20;

***

Returns the receipt for the specified transaction, using the hash of the specified transaction

### Request address

```
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0xe8c78cf417fd00214c4419223ff28001abcc16691899044e550acf8e35f81251"],"id":1}' https://rpc01.trias.one 
```

### Request Parameters

DATA, 32 bytes - transaction hash

### Return data description

Returns the receipt for the specified transaction

**Trias return data example**

```
{
          "jsonrpc":  "2.0",
          "id":  1,
          "result":  {
                    "blockHash":  "0x271d42b2a8b99785b79e3133b17621ec2e7b101803fcc0b1b1540037bfaee768",
                    "blockNumber":  "0x238e2",
                    "contractAddress":  null,
                    "cumulativeGasUsed":  "0x13354",
                    "effectiveGasPrice":  "0x3b9aca00",
                    "from":  "0x947dd1558257a631049fad9d686f427f86033c16",
                    "gasUsed":  "0x8f44",
                    "logs":  [
                              {
                                        "address":  "0x1ffc121a47a70f24b4628815ce325908ff91e71a",
                                        "topics":  [
                                                  "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                                                  "0x000000000000000000000000947dd1558257a631049fad9d686f427f86033c16",
                                                  "0x00000000000000000000000061983e26eab9d8eb07b4f0bebaef6a461d982a66"
                                        ],
                                        "data":  "0x0000000000000000000000000000000000000000000000000000000c1b710800",
                                        "blockNumber":  "0x238e2",
                                        "transactionHash":  "0xe8c78cf417fd00214c4419223ff28001abcc16691899044e550acf8e35f81251",
                                        "transactionIndex":  "0x2",
                                        "blockHash":  "0x271d42b2a8b99785b79e3133b17621ec2e7b101803fcc0b1b1540037bfaee768",
                                        "logIndex":  "0x0",
                                        "removed":  false
                              }
                    ],
                    "logsBloom":  "0x00000000000000000000000000000000000000000000000000000000000000000000000000000020000000400000000000000000000000000000000000000000000040000000000000000008000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000010000000000000000010000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000004000000400000000000000000",
                    "status":  "0x1",
                    "to":  "0x1ffc121a47a70f24b4628815ce325908ff91e71a",
                    "transactionHash":  "0xe8c78cf417fd00214c4419223ff28001abcc16691899044e550acf8e35f81251",
                    "transactionIndex":  "0x2",
                    "type":  "0x0"
          }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://netx.gitbook.io/netx-docs/developer-docs/geth-proxy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
