> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lenarchain.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# RPC overview

> Base URL, conventions, and error format for the RPC API.

## Network

Lenarchain currently runs as a mainnet alpha: a lightweight chain that supports transfers only. The RPC API may change as more features are added.

## Base URL

The public node is available at `https://alpha.lenarchain.xyz`.

```python theme={null}
import requests

rpc_url = "https://alpha.lenarchain.xyz"
```

## Endpoints

| Method | Path | Description |
| - | - | - |
| POST | `/send_transaction` | [Send a signed transaction](https://docs.lenarchain.xyz/rpc/send-transaction.md) |
| GET | `/account/:address` | [Get account info](https://docs.lenarchain.xyz/rpc/account.md) |
| GET | `/traffic` | [Get tip recommendations](https://docs.lenarchain.xyz/rpc/traffic.md) |
| GET | `/transaction/:tx_hash` | [Get transaction details](https://docs.lenarchain.xyz/rpc/transaction.md) |
| GET | `/block/:blocknumber` | [Get block details](https://docs.lenarchain.xyz/rpc/block.md) |
| GET | `/block_number` | [Get the latest block number](https://docs.lenarchain.xyz/rpc/block-number.md) |
| GET | `/power_price` | [Get the current power price](https://docs.lenarchain.xyz/rpc/power-price.md) |
| GET | `/chainid` | [Get the chain ID](https://docs.lenarchain.xyz/rpc/chain-id.md) |
| GET | `/token_supply` | [Get token supply details](https://docs.lenarchain.xyz/rpc/token-supply.md) |

## Number format

Integers from `uint64` up to `uint256` are returned as decimal strings, for example `"balance": "11910600000100600000"` or `"nonce": "19"`. Smaller integers (`uint8`, `uint16`, `uint32`), such as `status`, `version`, `chainid`, and `position`, are returned as JSON numbers.

In Python, convert a string number with `int()`:

```python theme={null}
balance = int(account["balance"])
```

## Errors

When a request fails, the response contains a single `error` field with a message.

```json theme={null}
{
  "error": "The error explanation is here"
}
```

> [!NOTE]
>
> HTTP status codes will be documented in a future update.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.