---
title: "RPC | wasmCloud"
description: "How wasmCloud uses wRPC for distributed communication between components and providers over NATS."
canonical: "https://wasmcloud.com/docs/v1/hosts/lattice-protocols/rpc/"
---

This is documentation for wasmCloud **v1**, which is no longer actively maintained.

For up-to-date documentation, see the **[latest version](https://wasmcloud.com/docs/)** (v2).

Version: v1

# RPC

wasmCloud uses the ByteCode Alliance hosted project [wRPC](https://github.com/bytecodealliance/wrpc) for all distributed communication between components and capability providers. wasmCloud was the first reference implementation for wRPC, and was designed to make distributed communication between components to feel exactly like [composing components](https://wasmcloud.com/docs/v1/ecosystem/wasmtime/#composition-and-the-runtime).

Components (via the wasmCloud host) and capability providers subscribe on NATS subjects to serve all `export`s as defined in their WIT interface. The subject is of the following form:

console

```console
{lattice}.{component_id}.wrpc.{protocol_version}.{namespace}:{package}/{interface}@{version}.{function}
```

For example, the subject is as follows when invoking the HTTP hello world component in our [quickstart](https://wasmcloud.com/docs/v1/tour/hello-world/):

console

```console
default.http-hello-world.wrpc.0.0.1.wasi:http/incoming-handler@0.2.0.handle
```

## Headers

In order to determine the source, target and link name of an invocation, wasmCloud includes the following headers on every wRPC invocation:

console

```console
source: <source_id>
target: <target>
link_name: <link_name>
```

## Debugging

You can subscribe to all traffic sent over wRPC using the following subscription:

bash

```bash
nats sub "*.*.wrpc.>"
```

### References

See the [0.82 RPC Documentation](https://wasmcloud.com/docs/0.82/hosts/lattice-protocols/rpc/) for information about the no-longer-supported wasmbus RPC protocol.

Last updated on **Jun 10, 2026** by **Liam Randall**
