<!-- Generated from the function registry (sdk/src/functions) by `cd sdk && npm run gen`. Do not edit. -->

# Mesh

> **Status:** Current (generated)

Interchain: peer networks anchored here, and messages waiting for relayers.

| Function | Kind | Description |
|---|---|---|
| [`mesh.peers`](#meshpeers) | read | Registered peer networks: their latest checkpoint anchored here, value and rent caps, the next inbound message |
| [`mesh.outbox`](#meshoutbox) | read | Interchain messages to `dest` from `from_seq`, as ready-to-submit deliveries for relayers |

## mesh.peers

Registered peer networks: their latest checkpoint anchored here, value and rent caps, the next inbound message.

- **Kind:** read
- **Runs:** JSON-RPC `mox_peers` (`POST /`) on the gateway

**Input**

None.

**Output**

An array of objects.

| Field | Type | Required | Description |
|---|---|---|---|
| `chain_id` | integer |  | Peer chain |
| `anchored_index` | integer or null |  |  |
| `next_in` | integer |  | Next inbound message |

**Example**

```json
{
  "name": "mesh.peers",
  "input": {}
}
```

## mesh.outbox

Interchain messages to `dest` from `from_seq`, as ready-to-submit deliveries for relayers.

- **Kind:** read
- **Runs:** JSON-RPC `mox_outbox` (`POST /`) on the gateway

**Input**

| Field | Type | Required | Description |
|---|---|---|---|
| `dest` | integer | yes | Destination chain id |
| `from_seq` | integer |  | First message |

**Output**

An array of objects.

| Field | Type | Required | Description |
|---|---|---|---|
| `checkpoint` | integer |  | Checkpoint |
| `first_seq` | integer or null |  |  |
| `count` | integer |  | Messages |
| `payload` | hex |  | Deliver payload (MXE): 0x hex |
