# Tenet

<figure><img src="/files/xz8iyCDT1b8OGMSQ0FgI" alt=""><figcaption></figcaption></figure>

> Tenet API is available on [Web3 API platform](https://crypto-chief.com/rpc/tenet/).

*Tenet* is an EVM-compatible Layer 1 that introduces diversified proof-of-stake: validators stake major liquid staking tokens (LSTs) such as stETH, rETH, and BNB alongside the native TENET token. This design makes Tenet security proportional to the broad crypto-asset ecosystem rather than a single token, while the chain remains fully compatible with Ethereum tooling.

The node exposes the standard Ethereum [JSON-RPC](https://www.jsonrpc.org/specification) interface — Solidity contracts, MetaMask, and ethers.js all connect without modification.

***

### Methods supported

* [`web3_clientVersion`](#web3_clientversion) — returns the current client version.
* [`web3_sha3`](#web3_sha3) — returns Keccak-256 (not the standardized SHA3-256) of the given data.
* [`net_version`](#net_version) — returns the current network ID.
* [`net_listening`](#net_listening) — returns true if client is actively listening for network connections.
* [`eth_syncing`](#eth_syncing) — returns data on the sync status or false.
* [`eth_gasPrice`](#eth_gasprice) — returns the current price per gas in wei.
* [`eth_accounts`](#eth_accounts) — returns a list of addresses owned by client.
* [`eth_blockNumber`](#eth_blocknumber) — returns the number of most recent block.
* [`eth_getBalance`](#eth_getbalance) — returns the balance of the account specified by address.
* [`eth_getStorageAt`](#eth_getstorageat) — returns the value from a storage position at an address specified.
* [`eth_getTransactionCount`](#eth_gettransactioncount) — returns the number of transactions sent from an address.
* [`eth_getBlockTransactionCountByHash`](#eth_getblocktransactioncountbyhash) — returns the number of transactions in a block specified by block hash.
* [`eth_getBlockTransactionCountByNumber`](#eth_getblocktransactioncountbynumber) — returns the number of transactions in the block specified by number.
* [`eth_getUncleCountByBlockHash`](#eth_getunclecountbyblockhash) — returns the number of uncles in a block specified by block hash.
* [`eth_getUncleCountByBlockNumber`](#eth_getunclecountbyblocknumber) — returns the number of uncles in a block specified by block number.
* [`eth_getCode`](#eth_getcode) — returns code at an address specified.
* [`eth_sendRawTransaction`](#eth_sendrawtransaction) — creates a new message call transaction or a contract creation for signed transactions.
* [`eth_call`](#eth_call) — executes a new message call immediately without creating a transaction on the blockchain.
* [`eth_estimateGas`](#eth_estimategas) — generates and returns an estimate of how much gas is necessary to allow the transaction to complete.
* [`eth_getBlockByHash`](#eth_getblockbyhash) — returns information for the block specified by block hash.
* [`eth_getBlockByNumber`](#eth_getblockbynumber) — returns information for the block specified by block number.
* [`eth_getTransactionByHash`](#eth_gettransactionbyhash) — returns information on a transaction specified by transaction hash.
* [`eth_getTransactionByBlockHashAndIndex`](#eth_gettransactionbyblockhashandindex) — returns information on a transaction specified by block hash and transaction index position.
* [`eth_getTransactionByBlockNumberAndIndex`](#eth_gettransactionbyblocknumberandindex) — returns information on a transaction by block number and transaction index position.
* [`eth_getTransactionReceipt`](#eth_gettransactionreceipt) — returns the receipt of a transaction by transaction hash.
* [`eth_getUncleByBlockHashAndIndex`](#eth_getunclebyblockhashandindex) — returns information about an uncle of a block by hash and uncle index position.
* [`eth_getUncleByBlockNumberAndIndex`](#eth_getunclebyblocknumberandindex) — returns information about an uncle of a block by number and uncle index position.
* [`eth_getLogs`](#eth_getlogs) — returns logs matching the parameters specified.

***

### `web3_clientVersion`

> Returns the version string of the connected execution client.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required): None.

#### Returns

* `<string>`: the current client version.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "web3_clientVersion",
      "params": [],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "web3_clientVersion",
    params: [],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "web3_clientVersion",
        "params": [],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

```json
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "Version dev ()\nCompiled at  using Go go1.19.5 (amd64)"
}
```

***

### `web3_sha3`

> Computes and returns the Keccak-256 hash of the supplied data.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  * `<string>` (data): the data to convert into a SHA3 hash.

#### Returns

* `<string>` (data): the SHA3 result of the given string.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "web3_sha3",
      "params": ["0x68656c6c6f20776f726c64"],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "web3_sha3",
    params: ["0x68656c6c6f20776f726c64"],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "web3_sha3",
        "params": ["0x68656c6c6f20776f726c64"],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

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

***

### `net_version`

> Returns the numeric chain/network ID as a string.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required): None.

#### Returns

* `<string>`: the current network ID.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "net_version",
      "params": [],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "net_version",
    params: [],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "net_version",
        "params": [],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

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

***

### `net_listening`

> Returns true if the node is actively listening for peer connections.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required): None.

#### Returns

* `<boolean>`: `true` when listening, otherwise `false`.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "net_listening",
      "params": [],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "net_listening",
    params: [],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "net_listening",
        "params": [],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

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

***

### `eth_syncing`

> Returns the sync status object while syncing, or false when fully synced.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required): None.

#### Returns

* `<object>`|`<boolean>`: an object with sync status data or `false`, when not syncing:
  * `startingBlock` (quantity): the block at which the import started (will only be reset, after the sync reached its head).
  * `currentBlock` (quantity): the current block, same as `eth_blockNumber`.
  * `highestBlock` (quantity): the estimated highest block.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_syncing",
      "params": [],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_syncing",
    params: [],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_syncing",
        "params": [],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example (syncing)

```json
{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "startingBlock": "0x384",
        "currentBlock": "0x386",
        "highestBlock": "0x454"
    }
}
```

#### Response example (not syncing)

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

***

### `eth_gasPrice`

> Returns the current median gas price in wei as reported by recent blocks.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required): None.

#### Returns

* `<string>` (quantity): the current gas price in wei.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_gasPrice",
      "params": [],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_gasPrice",
    params: [],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_gasPrice",
        "params": [],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

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

***

### `eth_accounts`

> Returns the list of addresses managed by the connected node (empty for remote nodes).

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required): None.

#### Returns

* `<array>` (string; data, 20 bytes): addresses owned by the client.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_accounts",
      "params": [],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_accounts",
    params: [],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_accounts",
        "params": [],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

```json
{
    "id": 1,
    "jsonrpc": "2.0",
    "result": [
        "0x407d73d8a49eeb85d32cf465507dd71d507100c1"
    ]
}
```

***

### `eth_blockNumber`

> Returns the height (number) of the most recently mined block.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required): None.

#### Returns

* `<string>` (quantity): the current block number the client is on.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_blockNumber",
      "params": [],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_blockNumber",
    params: [],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_blockNumber",
        "params": [],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

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

***

### `eth_getBalance`

> Returns the wei balance of the specified address at the given block.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<string>` (data, 20 bytes): an address to check for balance.
  2. `<string>` (quantity|tag): either the hex value of a *block number* or one of the following *block tags*:
     * `earliest`: the lowest numbered block available on the client.
     * `finalized`: the most recent crypto-economically secure block; cannot be re-orged outside of manual intervention driven by community coordination.
     * `safe`: the most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions.
     * `latest`: the most recent block in the canonical chain observed by the client; this block can be re-orged out of the canonical chain even under healthy/normal conditions.
     * `pending`: a sample next block built by the client on top of the `latest` and containing the set of transactions usually taken from local mempool. In other words, it is the block that has not been mined yet.

#### Returns

* `<string>` (quantity): the current balance in wei.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_getBalance",
      "params": ["0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749", "latest"],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_getBalance",
    params: ["0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749", "latest"],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_getBalance",
        "params": ["0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749", "latest"],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

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

***

### `eth_getStorageAt`

> Returns the 32-byte value stored at a given storage slot of a contract.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<string>` (data, 20 bytes): an address of the storage (hex encoded).
  2. `<string>` (quantity): a slot position in the storage (hex encoded unsigned integer).
  3. `<string>` (quantity|tag): either the hex value of a *block number* or one of the following *block tags*:
     * `earliest`: the lowest numbered block available on the client.
     * `finalized`: the most recent crypto-economically secure block; cannot be re-orged outside of manual intervention driven by community coordination.
     * `safe`: the most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions.
     * `latest`: the most recent block in the canonical chain observed by the client; this block can be re-orged out of the canonical chain even under healthy/normal conditions.
     * `pending`: a sample next block built by the client on top of the `latest` and containing the set of transactions usually taken from local mempool. In other words, it is the block that has not been mined yet.

#### Returns

* `<string>` (data): the value at this storage position.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_getStorageAt",
      "params": ["0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749", "0x0", "latest"],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_getStorageAt",
    params: ["0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749", "0x0", "latest"],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_getStorageAt",
        "params": ["0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749", "0x0", "latest"],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

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

***

### `eth_getTransactionCount`

> Returns the nonce (number of transactions sent) for the specified address.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<string>` (data, 20 bytes): an address.
  2. `<string>` (quantity|tag): either the hex value of a *block number* or one of the following *block tags*:
     * `earliest`: the lowest numbered block available on the client.
     * `finalized`: the most recent crypto-economically secure block; cannot be re-orged outside of manual intervention driven by community coordination.
     * `safe`: the most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions.
     * `latest`: the most recent block in the canonical chain observed by the client; this block can be re-orged out of the canonical chain even under healthy/normal conditions.
     * `pending`: a sample next block built by the client on top of the `latest` and containing the set of transactions usually taken from local mempool. In other words, it is the block that has not been mined yet.

#### Returns

* `<string>` (quantity): the number of transactions send from this address.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_getTransactionCount",
      "params": ["0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749", "latest"],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_getTransactionCount",
    params: ["0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749", "latest"],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_getTransactionCount",
        "params": ["0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749", "latest"],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

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

***

### `eth_getBlockTransactionCountByHash`

> Returns the number of transactions in the block with the given hash.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<string>` (data, 32 bytes): a block hash.

#### Returns

* `<string>` (quantity): the number of transactions in this block.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_getBlockTransactionCountByHash",
      "params": ["0x3c6b5de22d61621fa770d84ad4e5e676e19614ca0d472bfabdd85d74eb21af8b"],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_getBlockTransactionCountByHash",
    params: ["0x3c6b5de22d61621fa770d84ad4e5e676e19614ca0d472bfabdd85d74eb21af8b"],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_getBlockTransactionCountByHash",
        "params": ["0x3c6b5de22d61621fa770d84ad4e5e676e19614ca0d472bfabdd85d74eb21af8b"],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

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

***

### `eth_getBlockTransactionCountByNumber`

> Returns the number of transactions in the block at the given height.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<string>` (quantity|tag): either the hex value of a *block number* or one of the following *block tags*:
     * `earliest`: the lowest numbered block available on the client.
     * `finalized`: the most recent crypto-economically secure block; cannot be re-orged outside of manual intervention driven by community coordination.
     * `safe`: the most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions.
     * `latest`: the most recent block in the canonical chain observed by the client; this block can be re-orged out of the canonical chain even under healthy/normal conditions.
     * `pending`: a sample next block built by the client on top of the `latest` and containing the set of transactions usually taken from local mempool. In other words, it is the block that has not been mined yet.

#### Returns

* `<string>` (quantity): the number of transactions in this block.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_getBlockTransactionCountByNumber",
      "params": ["latest"],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_getBlockTransactionCountByNumber",
    params: ["latest"],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_getBlockTransactionCountByNumber",
        "params": ["latest"],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

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

***

### `eth_getUncleCountByBlockHash`

> Returns the number of uncle blocks referenced by the block with the given hash.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<string>` (data, 32 bytes): a block hash.

#### Returns

* `<string>` (quantity): the number of uncles in this block.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_getUncleCountByBlockHash",
      "params": ["0x3c6b5de22d61621fa770d84ad4e5e676e19614ca0d472bfabdd85d74eb21af8b"],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_getUncleCountByBlockHash",
    params: ["0x3c6b5de22d61621fa770d84ad4e5e676e19614ca0d472bfabdd85d74eb21af8b"],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_getUncleCountByBlockHash",
        "params": ["0x3c6b5de22d61621fa770d84ad4e5e676e19614ca0d472bfabdd85d74eb21af8b"],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

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

***

### `eth_getUncleCountByBlockNumber`

> Returns the number of uncle blocks referenced by the block at the given height.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<string>` (quantity|tag): either the hex value of a *block number* or one of the following *block tags*:
     * `earliest`: the lowest numbered block available on the client.
     * `finalized`: the most recent crypto-economically secure block; cannot be re-orged outside of manual intervention driven by community coordination.
     * `safe`: the most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions.
     * `latest`: the most recent block in the canonical chain observed by the client; this block can be re-orged out of the canonical chain even under healthy/normal conditions.
     * `pending`: a sample next block built by the client on top of the `latest` and containing the set of transactions usually taken from local mempool. In other words, it is the block that has not been mined yet.

#### Returns

* `<string>` (quantity): the number of uncles in this block.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_getUncleCountByBlockNumber",
      "params": ["latest"],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_getUncleCountByBlockNumber",
    params: ["latest"],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_getUncleCountByBlockNumber",
        "params": ["latest"],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

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

***

### `eth_getCode`

> Returns the deployed bytecode at the specified contract address.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<string>` (data, 20 bytes): an address to get the code from.
  2. `<string>` (quantity|tag): either the hex value of a *block number* or one of the following *block tags*:
     * `earliest`: the lowest numbered block available on the client.
     * `finalized`: the most recent crypto-economically secure block; cannot be re-orged outside of manual intervention driven by community coordination.
     * `safe`: the most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions.
     * `latest`: the most recent block in the canonical chain observed by the client; this block can be re-orged out of the canonical chain even under healthy/normal conditions.
     * `pending`: a sample next block built by the client on top of the `latest` and containing the set of transactions usually taken from local mempool. In other words, it is the block that has not been mined yet.

#### Returns

* `<string>` (data): the code from the given address.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_getCode",
      "params": ["0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749", "latest"],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_getCode",
    params: ["0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749", "latest"],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_getCode",
        "params": ["0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749", "latest"],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

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

***

### `eth_sendRawTransaction`

> Broadcasts a pre-signed, RLP-encoded transaction to the network.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<string>` (data): the signed transaction data.

#### Returns

* `<string>` (data, 32 bytes): the transaction hash, or the zero hash if the transaction is not yet available.

Use [eth\_getTransactionReceipt](#eth_gettransactionreceipt) to get the contract address, after the transaction was mined, when you created a contract.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
    "jsonrpc": "2.0",
    "method": "eth_sendRawTransaction",
    "params": ["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"],
    "id": 1
}'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_sendRawTransaction",
    params: ["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_sendRawTransaction",
        "params": ["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

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

***

### `eth_call`

> Executes a read-only call against the EVM state without broadcasting a transaction.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<object>` (hex encoded): the transaction object:
     * `from` (string; data, 20 bytes; optional): the address the transaction is sent from.
     * `to` (string; data, 20 bytes): the address the transaction is directed to.
     * `gas` (string; quantity; optional): the gas provided for the transaction execution. `eth_call` consumes zero gas, but this parameter may be needed by some executions.
     * `gasPrice` (string; quantity; optional): the gas price willing to be paid by the sender in wei.
     * `value` (string; quantity; optional): the value sent with this transaction, in wei.
     * `data` (string; data; optional): the hash of the method signature and encoded parameters.
  2. `<string>` (quantity|tag): either the hex value of a *block number* or one of the following *block tags*:
     * `earliest`: the lowest numbered block available on the client.
     * `finalized`: the most recent crypto-economically secure block; cannot be re-orged outside of manual intervention driven by community coordination.
     * `safe`: the most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions.
     * `latest`: the most recent block in the canonical chain observed by the client; this block can be re-orged out of the canonical chain even under healthy/normal conditions.
     * `pending`: a sample next block built by the client on top of the `latest` and containing the set of transactions usually taken from local mempool. In other words, it is the block that has not been mined yet.

#### Returns

* `<string>` (hex encoded bytes): the return value of executed contract.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
    "jsonrpc": "2.0",
    "method": "eth_call",
    "params": [{"from":null,"to":"0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749","data":"0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest"],
    "id": 1
}'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_call",
    params: [{"from": null, "to": "0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest"],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_call",
        "params": [{"from": None, "to": "0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest"],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

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

***

### `eth_estimateGas`

> Simulates a transaction and returns the estimated gas units it would consume.

The transaction will not be added to the blockchain. Note that the estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics and node performance.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<object>` (hex encoded): the transaction object:
     * `from` (string; data, 20 bytes; optional): the address the transaction is sent from.
     * `to` (string; data, 20 bytes; optional): the address the transaction is directed to.
     * `gas` (string; quantity; optional): the gas provided for the transaction execution. `eth_call` consumes zero gas, but this parameter may be needed by some executions.
     * `gasPrice` (string; quantity; optional): the gas price willing to be paid by the sender in wei.
     * `value` (string; quantity; optional): the value sent with this transaction, in wei; note that if the value exceeds the `from` address balance (which is 0.000000000000000001 ETH by default), then you'll receive an `insufficient funds` error in response.
     * `data` (string; data; optional): the hash of the method signature and encoded parameters.
  2. `<string>` (quantity|tag; optional): either a HEX value of a *block number* or one of the following *block tags*:
     * `earliest`: the lowest numbered block available on the client.
     * `finalized`: the most recent crypto-economically secure block; cannot be re-orged outside of manual intervention driven by community coordination.
     * `safe`: the most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions.
     * `latest`: the most recent block in the canonical chain observed by the client; this block can be re-orged out of the canonical chain even under healthy/normal conditions.
     * `pending`: a sample next block built by the client on top of the `latest` and containing the set of transactions usually taken from local mempool. In other words, it is the block that has not been mined yet.

#### Returns

* `<string>` (quantity): the amount of gas used.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
    "jsonrpc": "2.0",
    "method": "eth_estimateGas",
    "params": [{"to":"0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749"}],
    "id": 1
}'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_estimateGas",
    params: [{"to": "0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749"}],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_estimateGas",
        "params": [{"to": "0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749"}],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

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

***

### `eth_getBlockByHash`

> Returns full block data for the block identified by the given hash.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<string>` (data, 32 bytes): the block hash.
  2. `<boolean>`: if `true` it returns the full transaction objects, if `false` — only the hashes of the transactions.

#### Returns

* `<object>`: a block object, or null when no block was found:
  * `number` (string; quantity): the block number; null when it's a pending block.
  * `hash` (string; data, 32 bytes): the hash of the block; null when it's a pending block.
  * `parentHash` (string; data, 32 bytes): the hash of the parent block.
  * `nonce` (string; data, 8 bytes): the hash of the generated proof-of-work; null when it's a pending block.
  * `sha3Uncles` (string; data, 32 bytes): SHA3 of the uncles data in the block.
  * `logsBloom` (string; data, 256 bytes): the bloom filter for the logs of the block. null when its pending block.
  * `transactionsRoot` (string; data, 32 bytes): the root of the transaction trie of the block.
  * `stateRoot` (string; data, 32 bytes): the root of the final state trie of the block.
  * `receiptsRoot` (string; data, 32 bytes): the root of the receipts trie of the block.
  * `miner` (string; data, 20 bytes): the address of the beneficiary to whom the mining rewards were given.
  * `difficulty` (string; quantity): the difficulty for this block.
  * `totalDifficulty` (string; quantity): the total difficulty of the chain until this block.
  * `extraData` (string; data): the **extra data** field of this block.
  * `size` (string; quantity): the size of this block in bytes.
  * `gasLimit` (string; quantity): the maximum gas allowed in this block.
  * `gasUsed` (string; quantity): the total used gas by all transactions in this block.
  * `timestamp` (string; quantity): the unix timestamp for when the block was collated.
  * `transactions` (array of strings): an array of transaction objects, or 32 bytes transaction hashes depending on the last given parameter.
  * `uncles` (array of strings): an array of uncle hashes.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_getBlockByHash",
      "params": ["0x3c6b5de22d61621fa770d84ad4e5e676e19614ca0d472bfabdd85d74eb21af8b", false],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_getBlockByHash",
    params: ["0x3c6b5de22d61621fa770d84ad4e5e676e19614ca0d472bfabdd85d74eb21af8b", false],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_getBlockByHash",
        "params": ["0x3c6b5de22d61621fa770d84ad4e5e676e19614ca0d472bfabdd85d74eb21af8b", False],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

```json
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "baseFeePerGas": "0x4a817c800",
        "difficulty": "0x0",
        "extraData": "0x",
        "gasLimit": "0x1312d00",
        "gasUsed": "0x1e736",
        "hash": "0x3c6b5de22d61621fa770d84ad4e5e676e19614ca0d472bfabdd85d74eb21af8b",
        "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "miner": "0x20a37d499419f154ffe3806850bb144d133bae29",
        "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "nonce": "0x0000000000000000",
        "number": "0x14f787",
        "parentHash": "0xf474f4f9086aafc54897c0136cdb78804a0fbc7dfbef4a51ad5c9269f04eec6d",
        "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
        "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
        "size": "0x1262",
        "stateRoot": "0xfdbdae899c0a9c3a08f1c8c0d4a9a8aa6319bd282c287a14101723f9a7dddd6b",
        "timestamp": "0x648ae4f9",
        "totalDifficulty": "0x0",
        "transactions": [
            "0x4ad59daf052794fae3a031fea42fb994b574315ccb5b14f7c075e3e6bee7f4f0",
            "0x8707167ae0b7c619030d551c6b1b47281c82dbc8bd45d677f5ec0d6c31742cb2"
        ],
        "transactionsRoot": "0x577fb6e605a1637f6d35e56d520f408f8575933049e793b31156238a9fe2e605",
        "uncles": []
    }
}
```

***

### `eth_getBlockByNumber`

> Returns full block data for the block at the specified height.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<string>` (quantity|tag): either the hex value of a *block number* or one of the following *block tags*:
     * `earliest`: the lowest numbered block available on the client.
     * `finalized`: the most recent crypto-economically secure block; cannot be re-orged outside of manual intervention driven by community coordination.
     * `safe`: the most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions.
     * `latest`: the most recent block in the canonical chain observed by the client; this block can be re-orged out of the canonical chain even under healthy/normal conditions.
     * `pending`: a sample next block built by the client on top of the `latest` and containing the set of transactions usually taken from local mempool. In other words, it is the block that has not been mined yet.
  2. `<boolean>`: if `true` it returns the full transaction objects, if `false` — only the hashes of the transactions.

#### Returns

* `<object>`: a block object, or null when no block was found:
  * `number` (string; quantity): the block number; null when it's a pending block.
  * `hash` (string; data, 32 bytes): the hash of the block; null when it's a pending block.
  * `parentHash` (string; data, 32 bytes): the hash of the parent block.
  * `nonce` (string; data, 8 bytes): the hash of the generated proof-of-work; null when it's a pending block.
  * `sha3Uncles` (string; data, 32 bytes): SHA3 of the uncles data in the block.
  * `logsBloom` (string; data, 256 bytes): the bloom filter for the logs of the block. null when its pending block.
  * `transactionsRoot` (string; data, 32 bytes): the root of the transaction trie of the block.
  * `stateRoot` (string; data, 32 bytes): the root of the final state trie of the block.
  * `receiptsRoot` (string; data, 32 bytes): the root of the receipts trie of the block.
  * `miner` (string; data, 20 bytes): the address of the beneficiary to whom the mining rewards were given.
  * `difficulty` (string; quantity): the difficulty for this block.
  * `totalDifficulty` (string; quantity): the total difficulty of the chain until this block.
  * `extraData` (string; data): the **extra data** field of this block.
  * `size` (string; quantity): the size of this block in bytes.
  * `gasLimit` (string; quantity): the maximum gas allowed in this block.
  * `gasUsed` (string; quantity): the total used gas by all transactions in this block.
  * `timestamp` (string; quantity): the unix timestamp for when the block was collated.
  * `transactions` (array of strings): an array of transaction objects, or 32 bytes transaction hashes depending on the last given parameter.
  * `uncles` (array of strings): an array of uncle hashes.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_getBlockByNumber",
      "params": ["latest", false],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_getBlockByNumber",
    params: ["latest", false],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_getBlockByNumber",
        "params": ["latest", False],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

```json
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "baseFeePerGas": "0x4a817c800",
        "difficulty": "0x0",
        "extraData": "0x",
        "gasLimit": "0x1312d00",
        "gasUsed": "0x0",
        "hash": "0xbfe3f0fd32a07c66d4a5e67eddf3d90333585f9c01e67c72501ff81ee453dcc1",
        "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "miner": "0xacfa03a75b28e450aa3b06d6a0cb10feee31bb8d",
        "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "nonce": "0x0000000000000000",
        "number": "0x14f7f8",
        "parentHash": "0xe8c017283e21f855b54c3f04364d61559e887cc83dc4244ce204ee1c0a578f25",
        "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
        "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
        "size": "0xded",
        "stateRoot": "0x552fd8837d4c8976a8c1a7675e215c78337caf3f6dca75c25debc898fc3ce434",
        "timestamp": "0x648ae683",
        "totalDifficulty": "0x0",
        "transactions": [],
        "transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
        "uncles": []
    }
}
```

***

### `eth_getTransactionByHash`

> Returns the transaction details for the given transaction hash.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<string>` (data, 32 bytes): a transaction hash.

#### Returns

* `blockHash` (string; data, 32 bytes): a hash of the block containing the transaction; null when it's pending.
* `blockNumber` (string; quantity): a number of the block containing the transaction; null when it's pending.
* `from` (string; data, 20 bytes): an address of the sender.
* `gas` (string; quantity): the gas provided by the sender.
* `gasPrice` (string; quantity): the gas price provided by the sender in wei.
* `hash` (string; data, 32 bytes): the hash of the transaction.
* `input` (string; data): the data send along with the transaction.
* `nonce` (string; quantity): the number of transactions made by the sender prior to this one.
* `to` (string: data, 20 bytes): an address of the receiver: null when it's a contract creation transaction.
* `transactionIndex` (string; quantity): the transaction index position in the block; null when it's pending.
* `value` (string; quantity): the value transferred in wei.
* `v` (string; quantity): ECDSA recovery ID.
* `r` (string; quantity): ECDSA signature r.
* `s` (string; quantity): ECDSA signature s.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_getTransactionByHash",
      "params": ["0x8707167ae0b7c619030d551c6b1b47281c82dbc8bd45d677f5ec0d6c31742cb2"],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_getTransactionByHash",
    params: ["0x8707167ae0b7c619030d551c6b1b47281c82dbc8bd45d677f5ec0d6c31742cb2"],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_getTransactionByHash",
        "params": ["0x8707167ae0b7c619030d551c6b1b47281c82dbc8bd45d677f5ec0d6c31742cb2"],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

```json
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "blockHash": "0x3c6b5de22d61621fa770d84ad4e5e676e19614ca0d472bfabdd85d74eb21af8b",
        "blockNumber": "0x14f787",
        "from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",
        "gas": "0x1e736",
        "gasPrice": "0x7aef40a00",
        "hash": "0x8707167ae0b7c619030d551c6b1b47281c82dbc8bd45d677f5ec0d6c31742cb2",
        "input": "0x711746e20000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000650000000000000000000000000000000000000000000000000000185ec6dde43d00000000000000000000000000000000000000000000000000000004d21abeb50000000000000000000000000000000000000000000000000000000000000008",
        "nonce": "0x20b1",
        "to": "0xcb566e3b6934fa77258d68ea18e931fa75e1aaaa",
        "transactionIndex": "0x1",
        "value": "0x0",
        "type": "0x0",
        "chainId": "0x617",
        "v": "0xc51",
        "r": "0x1e6ffba4caefbfffada28951261531481df568b9c753f326aa87627790d2c17d",
        "s": "0x40d930ae4d84586f138d7d5bf1216055c199491014fc2b75eb7dfa0005b4a6ae"
    }
}
```

***

### `eth_getTransactionByBlockHashAndIndex`

> Returns the transaction at the specified index within the block identified by hash.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<string>` (data, 32 bytes): a block hash.
  2. `<string>` (quantity): a transaction index position.

#### Returns

* `blockHash` (string; data, 32 bytes): a hash of the block containing the transaction; null when it's pending.
* `blockNumber` (string; quantity): a number of the block containing the transaction; null when it's pending.
* `from` (string; data, 20 bytes): an address of the sender.
* `gas` (string; quantity): the gas provided by the sender.
* `gasPrice` (string; quantity): the gas price provided by the sender in wei.
* `hash` (string; data, 32 bytes): the hash of the transaction.
* `input` (string; data): the data send along with the transaction.
* `nonce` (string; quantity): the number of transactions made by the sender prior to this one.
* `to` (string: data, 20 bytes): an address of the receiver: null when it's a contract creation transaction.
* `transactionIndex` (string; quantity): the transaction index position in the block; null when it's pending.
* `value` (string; quantity): the value transferred in wei.
* `v` (string; quantity): ECDSA recovery ID.
* `r` (string; quantity): ECDSA signature r.
* `s` (string; quantity): ECDSA signature s.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_getTransactionByBlockHashAndIndex",
      "params": ["0x3c6b5de22d61621fa770d84ad4e5e676e19614ca0d472bfabdd85d74eb21af8b", "0x0"],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_getTransactionByBlockHashAndIndex",
    params: ["0x3c6b5de22d61621fa770d84ad4e5e676e19614ca0d472bfabdd85d74eb21af8b", "0x0"],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_getTransactionByBlockHashAndIndex",
        "params": ["0x3c6b5de22d61621fa770d84ad4e5e676e19614ca0d472bfabdd85d74eb21af8b", "0x0"],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

```json
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "blockHash": "0x3c6b5de22d61621fa770d84ad4e5e676e19614ca0d472bfabdd85d74eb21af8b",
        "blockNumber": "0x14f787",
        "from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",
        "gas": "0x1e736",
        "gasPrice": "0x7aef40a00",
        "hash": "0x4ad59daf052794fae3a031fea42fb994b574315ccb5b14f7c075e3e6bee7f4f0",
        "input": "0x711746e200000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006d00000000000000000000000000000000000000000000000000000002540be4010000000000000000000000000000000000000000000000000000002b2430f5820000000000000000000000000000000000000000000000000000000000000010",
        "nonce": "0x20b0",
        "to": "0xcb566e3b6934fa77258d68ea18e931fa75e1aaaa",
        "transactionIndex": "0x0",
        "value": "0x0",
        "type": "0x0",
        "chainId": "0x617",
        "v": "0xc51",
        "r": "0x625bf6649511826e90ab5cba214a9339127bfe83ee7effc3b7fd7b65196ce52d",
        "s": "0x32bf53faf86c8412062b9ac3c0627da8cde00ef4d7665406f5517f8e226ff5f9"
    }
}
```

***

### `eth_getTransactionByBlockNumberAndIndex`

> Returns the transaction at the specified index within the block at the given height.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<string>` (quantity|tag): either the hex value of a *block number* or one of the following *block tags*:
     * `earliest`: the lowest numbered block available on the client.
     * `finalized`: the most recent crypto-economically secure block; cannot be re-orged outside of manual intervention driven by community coordination.
     * `safe`: the most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions.
     * `latest`: the most recent block in the canonical chain observed by the client; this block can be re-orged out of the canonical chain even under healthy/normal conditions.
     * `pending`: a sample next block built by the client on top of the `latest` and containing the set of transactions usually taken from local mempool. In other words, it is the block that has not been mined yet.
  2. `<string>` (quantity): the transaction index position.

#### Returns

* `blockHash` (string; data, 32 bytes): a hash of the block containing the transaction; null when it's pending.
* `blockNumber` (string; quantity): a number of the block containing the transaction; null when it's pending.
* `from` (string; data, 20 bytes): an address of the sender.
* `gas` (string; quantity): the gas provided by the sender.
* `gasPrice` (string; quantity): the gas price provided by the sender in wei.
* `hash` (string; data, 32 bytes): the hash of the transaction.
* `input` (string; data): the data send along with the transaction.
* `nonce` (string; quantity): the number of transactions made by the sender prior to this one.
* `to` (string: data, 20 bytes): an address of the receiver: null when it's a contract creation transaction.
* `transactionIndex` (string; quantity): the transaction index position in the block; null when it's pending.
* `value` (string; quantity): the value transferred in wei.
* `v` (string; quantity): ECDSA recovery ID.
* `r` (string; quantity): ECDSA signature r.
* `s` (string; quantity): ECDSA signature s.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_getTransactionByBlockNumberAndIndex",
      "params": ["0x14F787", "0x0"],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_getTransactionByBlockNumberAndIndex",
    params: ["0x14F787", "0x0"],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_getTransactionByBlockNumberAndIndex",
        "params": ["0x14F787", "0x0"],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

```json
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "blockHash": "0x3c6b5de22d61621fa770d84ad4e5e676e19614ca0d472bfabdd85d74eb21af8b",
        "blockNumber": "0x14f787",
        "from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",
        "gas": "0x1e736",
        "gasPrice": "0x7aef40a00",
        "hash": "0x4ad59daf052794fae3a031fea42fb994b574315ccb5b14f7c075e3e6bee7f4f0",
        "input": "0x711746e200000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006d00000000000000000000000000000000000000000000000000000002540be4010000000000000000000000000000000000000000000000000000002b2430f5820000000000000000000000000000000000000000000000000000000000000010",
        "nonce": "0x20b0",
        "to": "0xcb566e3b6934fa77258d68ea18e931fa75e1aaaa",
        "transactionIndex": "0x0",
        "value": "0x0",
        "type": "0x0",
        "chainId": "0x617",
        "v": "0xc51",
        "r": "0x625bf6649511826e90ab5cba214a9339127bfe83ee7effc3b7fd7b65196ce52d",
        "s": "0x32bf53faf86c8412062b9ac3c0627da8cde00ef4d7665406f5517f8e226ff5f9"
    }
}
```

***

### `eth_getTransactionReceipt`

> Returns the post-execution receipt (status, logs, gas used, contract address) for a transaction.

The receipt is not available for pending transactions.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<string>` (data, 32 bytes): a hash of the transaction.

#### Returns

* `object`: a transaction receipt object, or null when no receipt was found:
  * `transactionHash` (string; data, 32 bytes): a hash of the transaction.
  * `transactionIndex` (string; quantity): the transactions index position in the block.
  * `blockHash` (string; data, 32 bytes): a hash of the block containing the transaction.
  * `blockNumber` (string; quantity): a number of the block containing the transaction.
  * `from` (string; data, 20 bytes): an address of the sender.
  * `to` (string; data, 20 bytes): an address of the receiver; null when it's a contract creation transaction.
  * `cumulativeGasUsed` (string; quantity): the total amount of gas used when this transaction was executed in the block.
  * `effectiveGasPrice` (string; quantity): the sum of the base fee and tip paid per unit of gas.
  * `gasUsed` (string; quantity): the amount of gas used by this specific transaction alone.
  * `contractAddress` (string; data, 20 bytes): the contract address created, if the transaction was a contract creation, otherwise null.
  * `logs` (array): an array of log objects, which this transaction generated.
  * `logsBloom` (string; data, 256 bytes): a bloom filter for light clients to quickly retrieve related logs.
  * `type` (string; data): the transaction type, `0x00` for legacy transactions, `0x01` for access list types, `0x02` for dynamic fees. It also returns either of the following:
    * `root` (string; data, 32 bytes): a post-transaction stateroot (pre Byzantium).
    * `status` (string; quantity): either 1 (success) or 0 (failure).

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_getTransactionReceipt",
      "params": ["0x8707167ae0b7c619030d551c6b1b47281c82dbc8bd45d677f5ec0d6c31742cb2"],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_getTransactionReceipt",
    params: ["0x8707167ae0b7c619030d551c6b1b47281c82dbc8bd45d677f5ec0d6c31742cb2"],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_getTransactionReceipt",
        "params": ["0x8707167ae0b7c619030d551c6b1b47281c82dbc8bd45d677f5ec0d6c31742cb2"],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

```json
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "blockHash": "0x3c6b5de22d61621fa770d84ad4e5e676e19614ca0d472bfabdd85d74eb21af8b",
        "blockNumber": "0x14f787",
        "contractAddress": null,
        "cumulativeGasUsed": "0x1e736",
        "from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",
        "gasUsed": "0xf39b",
        "logs": [],
        "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "status": "0x1",
        "to": "0xcb566e3b6934fa77258d68ea18e931fa75e1aaaa",
        "transactionHash": "0x8707167ae0b7c619030d551c6b1b47281c82dbc8bd45d677f5ec0d6c31742cb2",
        "transactionIndex": "0x1",
        "type": "0x0"
    }
}
```

***

### `eth_getUncleByBlockHashAndIndex`

> Returns the uncle block at the specified index within the block identified by hash.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<string>` (data, 32 bytes): the hash of a block.
  2. `<string>` (quantity): the uncle's index position.

#### Returns

* `<object>`: a block object, or null when no block was found:
  * `number` (string; quantity): the block number; null when it's a pending block.
  * `hash` (string; data, 32 bytes): the hash of the block; null when it's a pending block.
  * `parentHash` (string; data, 32 bytes): the hash of the parent block.
  * `nonce` (string; data, 8 bytes): the hash of the generated proof-of-work; null when it's a pending block.
  * `sha3Uncles` (string; data, 32 bytes): SHA3 of the uncles data in the block.
  * `logsBloom` (string; data, 256 bytes): the bloom filter for the logs of the block. null when its pending block.
  * `transactionsRoot` (string; data, 32 bytes): the root of the transaction trie of the block.
  * `stateRoot` (string; data, 32 bytes): the root of the final state trie of the block.
  * `receiptsRoot` (string; data, 32 bytes): the root of the receipts trie of the block.
  * `miner` (string; data, 20 bytes): the address of the beneficiary to whom the mining rewards were given.
  * `difficulty` (string; quantity): the difficulty for this block.
  * `totalDifficulty` (string; quantity): the total difficulty of the chain until this block.
  * `extraData` (string; data): the **extra data** field of this block.
  * `size` (string; quantity): the size of this block in bytes.
  * `gasLimit` (string; quantity): the maximum gas allowed in this block.
  * `gasUsed` (string; quantity): the total used gas by all transactions in this block.
  * `timestamp` (string; quantity): the unix timestamp for when the block was collated.
  * `transactions` (array of strings): an array of transaction objects, or 32 bytes transaction hashes depending on the last given parameter.
  * `uncles` (array of strings): an array of uncle hashes.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_getUncleByBlockHashAndIndex",
      "params": ["0x24a06bc0dbeca06b4f3304d304d23e9dfcf2ecb8240c481d49f81724598bb0a0", "0x0"],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_getUncleByBlockHashAndIndex",
    params: ["0x24a06bc0dbeca06b4f3304d304d23e9dfcf2ecb8240c481d49f81724598bb0a0", "0x0"],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_getUncleByBlockHashAndIndex",
        "params": ["0x24a06bc0dbeca06b4f3304d304d23e9dfcf2ecb8240c481d49f81724598bb0a0", "0x0"],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

```json
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "difficulty": "0x4ea3f27bc",
        "extraData": "0x476574682f4c5649562f76312e302e302f6c696e75782f676f312e342e32",
        "gasLimit": "0x1388",
        "gasUsed": "0x0",
        "hash": "0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae",
        "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "miner": "0xbb7b8287f3f0a933474a79eae42cbca977791171",
        "mixHash": "0x4fffe9ae21f1c9e15207b1f472d5bbdd68c9595d461666602f2be20daf5e7843",
        "nonce": "0x689056015818adbe",
        "number": "0x1b4",
        "parentHash": "0xe99e022112df268087ea7eafaf4790497fd21dbeeb6bd7a1721df161a6657a54",
        "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
        "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
        "size": "0x220",
        "stateRoot": "0xddc8b0234c2e0cad087c8b389aa7ef01f7d79b2570bccb77ce48648aa61c904d",
        "timestamp": "0x55ba467c",
        "totalDifficulty": "0x78ed983323d",
        "transactions": [],
        "transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
        "uncles": []
    }
}
```

***

### `eth_getUncleByBlockNumberAndIndex`

> Returns the uncle block at the specified index within the block at the given height.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `<string>` (quantity|tag): the hex value of a *block number*.
  2. `<string>` (quantity): the uncle's index position.

#### Returns

* `<object>`: a block object, or null when no block was found:
  * `number` (string; quantity): the block number; null when it's a pending block.
  * `hash` (string; data, 32 bytes): the hash of the block; null when it's a pending block.
  * `parentHash` (string; data, 32 bytes): the hash of the parent block.
  * `nonce` (string; data, 8 bytes): the hash of the generated proof-of-work; null when it's a pending block.
  * `sha3Uncles` (string; data, 32 bytes): SHA3 of the uncles data in the block.
  * `logsBloom` (string; data, 256 bytes): the bloom filter for the logs of the block. null when its pending block.
  * `transactionsRoot` (string; data, 32 bytes): the root of the transaction trie of the block.
  * `stateRoot` (string; data, 32 bytes): the root of the final state trie of the block.
  * `receiptsRoot` (string; data, 32 bytes): the root of the receipts trie of the block.
  * `miner` (string; data, 20 bytes): the address of the beneficiary to whom the mining rewards were given.
  * `difficulty` (string; quantity): the difficulty for this block.
  * `totalDifficulty` (string; quantity): the total difficulty of the chain until this block.
  * `extraData` (string; data): the **extra data** field of this block.
  * `size` (string; quantity): the size of this block in bytes.
  * `gasLimit` (string; quantity): the maximum gas allowed in this block.
  * `gasUsed` (string; quantity): the total used gas by all transactions in this block.
  * `timestamp` (string; quantity): the unix timestamp for when the block was collated.
  * `transactions` (array of strings): an array of transaction objects, or 32 bytes transaction hashes depending on the last given parameter.
  * `uncles` (array of strings): an array of uncle hashes.

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_getUncleByBlockNumberAndIndex",
      "params": ["0x14F670", "0x0"],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_getUncleByBlockNumberAndIndex",
    params: ["0x14F670", "0x0"],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_getUncleByBlockNumberAndIndex",
        "params": ["0x14F670", "0x0"],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

```json
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "difficulty": "0x57f117f5c",
        "extraData": "0x476574682f76312e302e302f77696e646f77732f676f312e342e32",
        "gasLimit": "0x1388",
        "gasUsed": "0x0",
        "hash": "0x932bdf904546a2287a2c9b2ede37925f698a7657484b172d4e5184f80bdd464d",
        "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "miner": "0x5bf5e9cf9b456d6591073513de7fd69a9bef04bc",
        "mixHash": "0x4500aa4ee2b3044a155252e35273770edeb2ab6f8cb19ca8e732771484462169",
        "nonce": "0x24732773618192ac",
        "number": "0x299",
        "parentHash": "0xa779859b1ee558258b7008bbabff272280136c5dd3eb3ea3bfa8f6ae03bf91e5",
        "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
        "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
        "size": "0x21d",
        "stateRoot": "0x2604fbf5183f5360da249b51f1b9f1e0f315d2ff3ffa1a4143ff221ad9ca1fec",
        "timestamp": "0x55ba4827",
        "totalDifficulty": "0xc46826a2c6a",
        "transactions": [],
        "transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
        "uncles": []
    }
}
```

***

### `eth_getLogs`

> Returns all event logs matching an ad-hoc filter object, scoped by address, topics, and block range.

#### Parameters

* `id` (integer; required): a request ID (example: 1).
* `jsonrpc` (string; required): a JSON RPC spec used (example: 2.0).
* `method` (string; required): a method used for the request.
* `params` (array; required):
  1. `object`: the filter options:
     * `fromBlock` (string; quantity|tag; optional; default: "latest"): either the *block number* or one of the following *block tags*:
       * `latest`: for the last mined block.
       * `earliest`: for the lowest numbered block available on the client.
       * `pending`: for not yet mined transactions.
     * `toBlock` (string; quantity|tag; optional; default: "latest"): either the *block number* or one of the following *block tags*:
       * `latest`: for the last mined block.
       * `earliest`: for the lowest numbered block available on the client.
       * `pending`: for not yet mined transactions.
     * `address` (array of strings; data, 20 bytes; optional): a contract address or a list of addresses from which logs should originate.
     * `topics` (array of strings; data; optional): an array of 32 bytes data topics. Topics are order-dependent. Each topic can also be an array of data with "or" options.
     * `blockhash` (string; data, 32 bytes; optional; **future**): with the addition of EIP-234, `blockHash` will be a new filter option which restricts the logs returned to the single block with the 32-byte hash blockHash. Using blockHash is equivalent to `fromBlock = toBlock = the block` number with hash blockHash. If `blockHash` is present in the filter criteria, then neither `fromBlock` nor `toBlock` are allowed.

#### Returns

* `removed` (string; tag): `true` when the log was removed, due to a chain reorganization; `false` if it's a valid log.
* `logIndex` (string; quantity): the log index position in the block; null when it's a pending log.
* `transactionIndex` (string; quantity): the transactions index position log was created from; null when it's a pending log.
* `transactionHash` (string; data, 32 bytes): a hash of the transactions this log was created from; null when it's a pending log.
* `blockHash` (string; data, 32 bytes): a hash of the block containing the log; null when it's pending; null when it's a pending log.
* `blockNumber` (string; quantity): the number of the block containing the log; null when it's pending; null when it's a pending log.
* `address` (string; data, 20 bytes): an address from which this log originated.
* `data` (string; data): contains one or more 32 bytes non-indexed arguments of the log.
* `topics` (array of strings; data): an array of 0 to 4 32 bytes data of indexed log arguments. (In solidity: The first topic is the hash of the signature of the event (e.g. Deposit(address,bytes32,uint256)), except you declared the event with the anonymous specifier.)

#### Request example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm \
-H 'Content-Type: application/json' \
-d '{
      "jsonrpc": "2.0",
      "method": "eth_getLogs",
      "params": [{"address": "0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749"}],
      "id": 1
    }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch("https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    method: "eth_getLogs",
    params: [{"address": "0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749"}],
    id: 1
  })
});
const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://rpc.crypto-chief.com/stellar/{YOUR_API_KEY}/tenet_evm",
    json={
        "jsonrpc": "2.0",
        "method": "eth_getLogs",
        "params": [{"address": "0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749"}],
        "id": 1
    }
)
print(response.json())
```

{% endtab %}
{% endtabs %}

#### Response example

```json
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
        {
            "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
            "topics": [
                "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                "0x0000000000000000000000009acbb72cf67103a30333a32cd203459c6a9c3311",
                "0x000000000000000000000000994871e1103c5da4be270365fa62771ea4525520"
            ],
            "data": "0x000000000000000000000000000000000000000000000000000000001ec39aa0",
            "blockNumber": "0xf6289d",
            "transactionHash": "0xc7ed73c9b219d4243872e5993ad2950c8ea87d15af28562d33b0c05d46a90cee",
            "transactionIndex": "0x1e",
            "blockHash": "0x1e12377f0357320c0e5cfcadc2dfbc9c75fc339be668e118c34e4333f835ef31",
            "logIndex": "0x13",
            "removed": false
        },
        {
            "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
            "topics": [
                "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                "0x0000000000000000000000005879975799597392c031f10b6eff282cb7974ac8",
                "0x0000000000000000000000006d52ab66340f3f78d0c1007bec484268876b5948"
            ],
            "data": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "blockNumber": "0xf6289d",
            "transactionHash": "0x0118499f7be4c3510bd60fe3a3aee5f5f316743b6cc13a8cb0528d784f962aec",
            "transactionIndex": "0x20",
            "blockHash": "0x1e12377f0357320c0e5cfcadc2dfbc9c75fc339be668e118c34e4333f835ef31",
            "logIndex": "0x14",
            "removed": false
        }
    ]
}
```


---

# 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://docs-rpc.crypto-chief.com/chains/tenet.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.
