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

# Build a Service

> Create and expose x402-protected services

## Define Service

```typescript theme={null}
const myService = defineService({
  name: "price-feed",
  category: "data.prices",
  price: "0.01"
});
```

## Register Service

```typescript theme={null}
await provider.register(myService);
```
